diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 410c719..715f904 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,3 +66,13 @@ New version should show up on Terraform Repository in 10-15 minutes. # Update Retool CLI Retool CLI has a `terraform` command that generates Terraform configuration from existing Retool org: https://github.com/tryretool/retool-cli/blob/master/src/commands/terraform.ts. If you added a new resource or updated an existing one, you should update Retool CLI as well, so that your changes are reflected in auto-generated configuration. + +# Reviewing + +Reviewing PRs to this repo can be a challenge, particularly when they impact the OpenAPI generated code for the SDK. + +As a general rule, code within `internal/provider/sdk` will be generated, and can largely be ignored during reviews. + +Code _outside_ of this should be given close attention. `internal/provider` code is what drives the terraform behavior, and should be reviewed for correctness and backward compatibility. Tests should accompany new features, and reviewers should make a habit of checking out PR branches and running them against realisitic example retool deployments. + +Updates should always include documentation updates for new/changed behaviors. diff --git a/docs/data-sources/folders.md b/docs/data-sources/folders.md index 2950f3b..732e121 100644 --- a/docs/data-sources/folders.md +++ b/docs/data-sources/folders.md @@ -30,7 +30,7 @@ output "all_folders" { Read-Only: -- `folder_type` (String) The type of the folder: (app|file|resource|workflow). +- `folder_type` (String) The type of the folder: (app|file|resource|workflow|agent). - `id` (String) The id of the folder. - `is_system_folder` (Boolean) Whether the folder is a system folder. - `legacy_id` (String) The legacy id of the folder. diff --git a/docs/data-sources/groups.md b/docs/data-sources/groups.md index 4f5de19..0eae565 100644 --- a/docs/data-sources/groups.md +++ b/docs/data-sources/groups.md @@ -30,6 +30,7 @@ output "all_groups" { Read-Only: +- `account_details_access` (Boolean) Whether the group has access to account details. - `audit_log_access` (Boolean) Whether the group has audit log access. - `created_at` (String) The date the group was created. - `id` (String) The id of the group. @@ -37,6 +38,7 @@ Read-Only: - `legacy_id` (String) The legacy id of the group. - `members` (Attributes List) The members of the group. (see [below for nested schema](#nestedatt--groups--members)) - `name` (String) The name of the group. +- `theme_access` (Boolean) Whether the group has access to edit themes. - `universal_app_access` (String) The universal app access level of the group. - `universal_query_library_access` (String) The universal query library access level of the group. - `universal_resource_access` (String) The universal resource access level of the group. diff --git a/docs/resources/configuration_variable.md b/docs/resources/configuration_variable.md index c07c164..c1d2c3a 100644 --- a/docs/resources/configuration_variable.md +++ b/docs/resources/configuration_variable.md @@ -12,46 +12,46 @@ Manages a Retool configuration variable. Configuration variables are used to sto ```terraform resource "retool_configuration_variable" "test_config_var" { - name = "Test Space" - value = [ + name = "Test Config Var" + values = [ { - environment_id = "production" + environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod value = "value1" }, { - environment_id = "staging" + environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging value = "value2" } ] } -resource "retool_configuration_variable" "test_config_var_with_descritpion" { - name = "Test Space with creation options" +resource "retool_configuration_variable" "test_config_var_with_description" { + name = "Test Config Var with description" description = "This is a test configuration variable with a description" - value = [ + values = [ { - environment_id = "production" + environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod value = "value1" }, { - environment_id = "staging" + environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging value = "value2" } ] } resource "retool_configuration_variable" "test_config_var_as_secret" { - name = "Test Space with creation options" - description = "This is a test configuration variable with a description" + name = "Test Secret Config Var" + description = "This is a secret configuration variable" secret = true - value = [ + values = [ { - environment_id = "production" - value = "value1" + environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod + value = "secret_value1" }, { - environment_id = "staging" - value = "value2" + environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging + value = "secret_value2" } ] } @@ -68,11 +68,11 @@ resource "retool_configuration_variable" "test_config_var_as_secret" { ### Optional - `description` (String) A brief description of the configuration variable's purpose. +- `secret` (Boolean) Whether the configuration variable is a secret. Secrets are encrypted and not exposed in the Retool UI. ### Read-Only - `id` (String) The unique identifier for the configuration variable. -- `secret` (Boolean) Whether the configuration variable is a secret. Secrets are encrypted and not exposed in the Retool UI. Secert is currently not supported as the values are encrypted and cannot be retrieved via the API. ### Nested Schema for `values` @@ -80,6 +80,6 @@ resource "retool_configuration_variable" "test_config_var_as_secret" { Required: - `environment_id` (String) The ID of the environment this value is associated with. -- `value` (String) The value of the configuration variable for the specified environment. +- `value` (String, Sensitive) The value of the configuration variable for the specified environment. diff --git a/docs/resources/folder.md b/docs/resources/folder.md index 84439c2..2b8fc75 100644 --- a/docs/resources/folder.md +++ b/docs/resources/folder.md @@ -26,6 +26,16 @@ resource "retool_folder" "resource_example" { name = "Terraform Example Folder" folder_type = "resource" } + +resource "retool_folder" "workflow_example" { + name = "Terraform Workflow Folder" + folder_type = "workflow" +} + +resource "retool_folder" "agent_example" { + name = "Terraform Agent Folder" + folder_type = "agent" +} ``` @@ -33,7 +43,7 @@ resource "retool_folder" "resource_example" { ### Required -- `folder_type` (String) The type of the folder: (app|resource|workflow). +- `folder_type` (String) The type of the folder: (app|resource|workflow|agent). - `name` (String) The name of the folder. ### Optional diff --git a/docs/resources/group.md b/docs/resources/group.md index 0f1249b..ad0a5ea 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -22,6 +22,7 @@ resource "retool_group" "example" { audit_log_access = true unpublished_release_access = false usage_analytics_access = true + theme_access = false account_details_access = true landing_page_app_id = "c37676ba-116f-11ea-b17d-d7734e1526f2" } @@ -39,6 +40,7 @@ resource "retool_group" "example" { - `account_details_access` (Boolean) Whether the group has access to account details. - `audit_log_access` (Boolean) Whether the group has access to the audit log. - `landing_page_app_id` (String) The app ID of the landing page. +- `theme_access` (Boolean) Whether the group has access to edit themes. - `universal_app_access` (String) The universal app access level for the group. This denotes the access level that this group has for all apps. Accepted values: none|use|edit|own - `universal_query_library_access` (String) Level of access that the group has to the Query Library. Accepted values: none|use|edit - `universal_resource_access` (String) The universal resource access level for the group. This denotes the access level that this group has for all resources. Accepted values: none|use|edit|own diff --git a/docs/resources/source_control_settings.md b/docs/resources/source_control_settings.md index 3958ac7..4678d82 100644 --- a/docs/resources/source_control_settings.md +++ b/docs/resources/source_control_settings.md @@ -16,6 +16,7 @@ resource "retool_source_control_settings" "scm_settings" { custom_pull_request_template_enabled = true custom_pull_request_template = "custom-pull-request-template" version_control_locked = true + auto_cleanup_branches_enabled = false force_uuid_mapping = false } ``` @@ -26,6 +27,7 @@ resource "retool_source_control_settings" "scm_settings" { ### Optional - `auto_branch_naming_enabled` (Boolean) When enabled, Retool automatically suggests a branch name on branch creation. Defaults to true. +- `auto_cleanup_branches_enabled` (Boolean) When enabled, Retool automatically cleans up branches after they are merged. Defaults to false. - `custom_pull_request_template` (String) Pull requests created from Retool will use the template specified. - `custom_pull_request_template_enabled` (Boolean) When enabled, Retool will use the template specified to create pull requests. Defaults to false. - `force_uuid_mapping` (Boolean) When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. diff --git a/examples/resources/retool_configuration_variable/resource.tf b/examples/resources/retool_configuration_variable/resource.tf index 9383412..61a54b5 100644 --- a/examples/resources/retool_configuration_variable/resource.tf +++ b/examples/resources/retool_configuration_variable/resource.tf @@ -1,44 +1,44 @@ resource "retool_configuration_variable" "test_config_var" { - name = "Test Space" - value = [ + name = "Test Config Var" + values = [ { - environment_id = "production" + environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod value = "value1" }, { - environment_id = "staging" + environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging value = "value2" } ] } -resource "retool_configuration_variable" "test_config_var_with_descritpion" { - name = "Test Space with creation options" +resource "retool_configuration_variable" "test_config_var_with_description" { + name = "Test Config Var with description" description = "This is a test configuration variable with a description" - value = [ + values = [ { - environment_id = "production" + environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod value = "value1" }, { - environment_id = "staging" + environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging value = "value2" } ] } resource "retool_configuration_variable" "test_config_var_as_secret" { - name = "Test Space with creation options" - description = "This is a test configuration variable with a description" + name = "Test Secret Config Var" + description = "This is a secret configuration variable" secret = true - value = [ + values = [ { - environment_id = "production" - value = "value1" + environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod + value = "secret_value1" }, { - environment_id = "staging" - value = "value2" + environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging + value = "secret_value2" } ] } diff --git a/examples/resources/retool_folder/resource.tf b/examples/resources/retool_folder/resource.tf index 2271847..cb3341b 100644 --- a/examples/resources/retool_folder/resource.tf +++ b/examples/resources/retool_folder/resource.tf @@ -13,3 +13,13 @@ resource "retool_folder" "resource_example" { name = "Terraform Example Folder" folder_type = "resource" } + +resource "retool_folder" "workflow_example" { + name = "Terraform Workflow Folder" + folder_type = "workflow" +} + +resource "retool_folder" "agent_example" { + name = "Terraform Agent Folder" + folder_type = "agent" +} diff --git a/examples/resources/retool_group/resource.tf b/examples/resources/retool_group/resource.tf index 1da9929..93383a0 100644 --- a/examples/resources/retool_group/resource.tf +++ b/examples/resources/retool_group/resource.tf @@ -7,6 +7,7 @@ resource "retool_group" "example" { audit_log_access = true unpublished_release_access = false usage_analytics_access = true + theme_access = false account_details_access = true landing_page_app_id = "c37676ba-116f-11ea-b17d-d7734e1526f2" } diff --git a/examples/resources/retool_source_control_settings/resource.tf b/examples/resources/retool_source_control_settings/resource.tf index e979059..1ad7460 100644 --- a/examples/resources/retool_source_control_settings/resource.tf +++ b/examples/resources/retool_source_control_settings/resource.tf @@ -3,5 +3,6 @@ resource "retool_source_control_settings" "scm_settings" { custom_pull_request_template_enabled = true custom_pull_request_template = "custom-pull-request-template" version_control_locked = true + auto_cleanup_branches_enabled = false force_uuid_mapping = false } diff --git a/internal/acctest/http_recorder.go b/internal/acctest/http_recorder.go index e3fbd70..dd4b7c6 100644 --- a/internal/acctest/http_recorder.go +++ b/internal/acctest/http_recorder.go @@ -1,6 +1,7 @@ package acctest import ( + "crypto/tls" "net/http" "os" "path" @@ -28,11 +29,21 @@ const ( func newHTTPRecorder(t *testing.T) *recorder.Recorder { t.Helper() + // Create an HTTP client with TLS verification disabled for recording. + httpClient := &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, // #nosec G402 -- This is for test recording only + }, + }, + } + recorderTransport, err := recorder.NewWithOptions( &recorder.Options{ CassetteName: cassetteName(t.Name()), Mode: recorder.ModeRecordOnce, SkipRequestLatency: true, + RealTransport: httpClient.Transport, }, ) require.NoError(t, err) diff --git a/internal/provider/configurationvariable/resource.go b/internal/provider/configurationvariable/resource.go index e0b0957..d441827 100644 --- a/internal/provider/configurationvariable/resource.go +++ b/internal/provider/configurationvariable/resource.go @@ -97,8 +97,9 @@ func (r *configurationVariableResource) Schema(_ context.Context, _ resource.Sch PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, }, "secret": schema.BoolAttribute{ + Optional: true, Computed: true, - Description: "Whether the configuration variable is a secret. Secrets are encrypted and not exposed in the Retool UI. Secert is currently not supported as the values are encrypted and cannot be retrieved via the API.", + Description: "Whether the configuration variable is a secret. Secrets are encrypted and not exposed in the Retool UI.", Default: booldefault.StaticBool(false), }, "values": schema.ListNestedAttribute{ @@ -114,6 +115,7 @@ func (r *configurationVariableResource) Schema(_ context.Context, _ resource.Sch "value": schema.StringAttribute{ Description: "The value of the configuration variable for the specified environment.", Required: true, + Sensitive: true, Validators: []validator.String{stringvalidator.LengthBetween(1, 4096)}, }, }, @@ -139,7 +141,7 @@ func (r *configurationVariableResource) Create(ctx context.Context, req resource if !plan.Description.IsNull() { configuratonVariable.Description = plan.Description.ValueStringPointer() } - configuratonVariable.Secret = false + configuratonVariable.Secret = plan.Secret.ValueBool() var values []api.ConfigurationVariablesGet200ResponseDataInnerValuesInner for _, v := range plan.Values { @@ -216,22 +218,48 @@ func (r *configurationVariableResource) Read(ctx context.Context, req resource.R } else { state.Description = types.StringNull() } - if response.Data.Secret { - resp.Diagnostics.AddError( - "Could not read configuration variable that is a secret", - fmt.Sprintf("Could not read configuration variable with ID %s", configurationVariableID), - ) - } state.Secret = types.BoolValue(response.Data.Secret) - // Clear current values and repopulate from API response to handle deletions correctly. - state.Values = nil - for _, v := range response.Data.Values { - state.Values = append(state.Values, configurationVariableValueModel{ - EnvironmentID: types.StringValue(v.EnvironmentId), - Value: types.StringValue(v.Value), - }) + // For secrets, the API returns encrypted values that we cannot use. + // We preserve values from the existing state (which come from the config). + // During import, state values will be empty/null, which signals to the user they must provide them. + if response.Data.Secret { + // Preserve existing state values for secrets since API returns encrypted placeholders. + // We need to update the environment IDs from the API response, but keep the values from state. + existingValues := make(map[string]types.String) + for _, v := range state.Values { + existingValues[v.EnvironmentID.ValueString()] = v.Value + } + + state.Values = nil + for _, v := range response.Data.Values { + envID := v.EnvironmentId + existingValue, hasExisting := existingValues[envID] + + // Use existing value if present (normal refresh), otherwise null (import scenario). + if hasExisting && !existingValue.IsNull() { + state.Values = append(state.Values, configurationVariableValueModel{ + EnvironmentID: types.StringValue(envID), + Value: existingValue, + }) + } else { + state.Values = append(state.Values, configurationVariableValueModel{ + EnvironmentID: types.StringValue(envID), + Value: types.StringNull(), // API sends placeholder, set to null for import. + }) + tflog.Warn(ctx, "Configuration variable is a secret with no value in state. Value must be provided in your Terraform configuration.", map[string]interface{}{"id": configurationVariableID, "environment_id": envID}) + } + } + } else { + // Clear current values and repopulate from API response to handle deletions correctly. + state.Values = nil + for _, v := range response.Data.Values { + state.Values = append(state.Values, configurationVariableValueModel{ + EnvironmentID: types.StringValue(v.EnvironmentId), + Value: types.StringValue(v.Value), + }) + } } diags = resp.State.Set(ctx, &state) @@ -269,7 +297,7 @@ func (r *configurationVariableResource) Update(ctx context.Context, req resource updatePayload := api.ConfigurationVariablesPostRequest{ Name: plan.Name.ValueString(), Description: plan.Description.ValueStringPointer(), - Secret: false, + Secret: plan.Secret.ValueBool(), Values: values, } diff --git a/internal/provider/configurationvariable/resource_test.go b/internal/provider/configurationvariable/resource_test.go index 1545276..1e9899f 100644 --- a/internal/provider/configurationvariable/resource_test.go +++ b/internal/provider/configurationvariable/resource_test.go @@ -18,11 +18,11 @@ resource "retool_configuration_variable" "test_configuration_variable" { description = "Terraform acceptance test configuration variable" values = [ { - environment_id = "ee07e7dd-9b48-414c-9d2b-212d148bd4ac" + environment_id = "23ba02f3-12c2-456e-826f-13b616daa5ce" value = "value1" }, { - environment_id = "3b553dd9-7d8f-41e5-9bf6-5510b38d0231" + environment_id = "fc4a3c5b-6328-4990-b368-6879a1f38855" value = "value2" } ] @@ -35,11 +35,11 @@ resource "retool_configuration_variable" "test_configuration_variable" { description = "Terraform acceptance test configuration variable modified" values = [ { - environment_id = "ee07e7dd-9b48-414c-9d2b-212d148bd4ac" + environment_id = "23ba02f3-12c2-456e-826f-13b616daa5ce" value = "new_value1" }, { - environment_id = "3b553dd9-7d8f-41e5-9bf6-5510b38d0231" + environment_id = "fc4a3c5b-6328-4990-b368-6879a1f38855" value = "new_value2" } ] @@ -59,6 +59,24 @@ resource "retool_configuration_variable" "test_configuration_variable" { } ` +const testConfigurationVariableSecret = ` +resource "retool_configuration_variable" "test_secret_configuration_variable" { + name = "tf-acc-test-secret-configuration-variable" + description = "Terraform acceptance test secret configuration variable" + secret = true + values = [ + { + environment_id = "23ba02f3-12c2-456e-826f-13b616daa5ce" + value = "secret_value1" + }, + { + environment_id = "fc4a3c5b-6328-4990-b368-6879a1f38855" + value = "secret_value2" + } + ] +} +` + func TestMain(m *testing.M) { resource.TestMain(m) } @@ -141,6 +159,31 @@ func sweepConfigurationVariables(region string) error { return nil } +func TestAccConfigurationVariableSecret(t *testing.T) { + acctest.Test(t, resource.TestCase{ + Steps: []resource.TestStep{ + // Create a secret configuration variable. + { + Config: testConfigurationVariableSecret, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("retool_configuration_variable.test_secret_configuration_variable", "name", "tf-acc-test-secret-configuration-variable"), + resource.TestCheckResourceAttr("retool_configuration_variable.test_secret_configuration_variable", "description", "Terraform acceptance test secret configuration variable"), + resource.TestCheckResourceAttr("retool_configuration_variable.test_secret_configuration_variable", "secret", "true"), + resource.TestCheckResourceAttrSet("retool_configuration_variable.test_secret_configuration_variable", "id"), + resource.TestCheckResourceAttr("retool_configuration_variable.test_secret_configuration_variable", "values.#", "2"), + ), + }, + // Import state - secret values are set to null on read, so we ignore them in verification. + { + ResourceName: "retool_configuration_variable.test_secret_configuration_variable", + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"values.0.value", "values.1.value"}, // Secret values are set to null on read. + }, + }, + }) +} + func init() { resource.AddTestSweepers("retool_configuration_variable", &resource.Sweeper{ Name: "retool_configuration_variable", diff --git a/internal/provider/environments/data_source.go b/internal/provider/environments/data_source.go index 237ff12..debc0bf 100644 --- a/internal/provider/environments/data_source.go +++ b/internal/provider/environments/data_source.go @@ -108,7 +108,7 @@ func (d *environmentsDataSource) Schema(_ context.Context, _ datasource.SchemaRe func (d *environmentsDataSource) Read(ctx context.Context, _ datasource.ReadRequest, resp *datasource.ReadResponse) { var state environmentsDataSourceModel - environments, _, err := d.client.EnvironmentAPI.EnvironmentsGet(ctx).Execute() + environments, _, err := d.client.EnvironmentsAPI.EnvironmentsGet(ctx).Execute() if err != nil { resp.Diagnostics.AddError( "Unable to Read Retool Environments", diff --git a/internal/provider/folder/data_source.go b/internal/provider/folder/data_source.go index 4475f30..e79fbc5 100644 --- a/internal/provider/folder/data_source.go +++ b/internal/provider/folder/data_source.go @@ -100,7 +100,7 @@ func (d *foldersDataSource) Schema(_ context.Context, _ datasource.SchemaRequest }, "folder_type": schema.StringAttribute{ Computed: true, - Description: "The type of the folder: (app|file|resource|workflow).", + Description: "The type of the folder: (app|file|resource|workflow|agent).", }, }, }, diff --git a/internal/provider/folder/resource.go b/internal/provider/folder/resource.go index be3f526..f7d3060 100644 --- a/internal/provider/folder/resource.go +++ b/internal/provider/folder/resource.go @@ -103,12 +103,12 @@ func (r *folderResource) Schema(_ context.Context, _ resource.SchemaRequest, res }, "folder_type": schema.StringAttribute{ Required: true, - Description: "The type of the folder: (app|resource|workflow).", + Description: "The type of the folder: (app|resource|workflow|agent).", PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), // Changing the folder type requires replacing the resource. }, Validators: []validator.String{ - stringvalidator.OneOf("app", "file", "resource", "workflow"), + stringvalidator.OneOf("app", "file", "resource", "workflow", "agent"), }, }, }, @@ -250,18 +250,18 @@ func (r *folderResource) Update(ctx context.Context, req resource.UpdateRequest, // Generate API request body. patchReq := api.FoldersFolderIdPatchRequest{} if !plan.Name.Equal(state.Name) { - op := api.NewUsersUserIdPatchRequestOperationsInnerAnyOf("replace", "/name") + op := api.NewReplaceOperation("replace", "/name") op.Value = plan.Name.ValueString() - patchReq.Operations = append(patchReq.Operations, api.FoldersFolderIdPatchRequestOperationsInner{UsersUserIdPatchRequestOperationsInnerAnyOf: op}) + patchReq.Operations = append(patchReq.Operations, api.FoldersFolderIdPatchRequestOperationsInner{ReplaceOperation: op}) } if !plan.ParentFolderID.Equal(state.ParentFolderID) { parentFolderID := r.getTrueParentFolderID(ctx, plan.FolderType.ValueString(), plan.ParentFolderID.ValueString(), &resp.Diagnostics) if resp.Diagnostics.HasError() { return } - op := api.NewUsersUserIdPatchRequestOperationsInnerAnyOf("replace", "/parent_folder_id") + op := api.NewReplaceOperation("replace", "/parent_folder_id") op.Value = parentFolderID - patchReq.Operations = append(patchReq.Operations, api.FoldersFolderIdPatchRequestOperationsInner{UsersUserIdPatchRequestOperationsInnerAnyOf: op}) + patchReq.Operations = append(patchReq.Operations, api.FoldersFolderIdPatchRequestOperationsInner{ReplaceOperation: op}) } _, httpResponse, err := r.client.FoldersAPI.FoldersFolderIdPatch(ctx, state.ID.ValueString()).FoldersFolderIdPatchRequest(patchReq).Execute() if err != nil { @@ -290,16 +290,15 @@ func (r *folderResource) Delete(ctx context.Context, req resource.DeleteRequest, return } - // Delete existing order. - recursive := true - deleteRequest := api.FoldersFolderIdDeleteRequest{} - deleteRequest.Recursive = &recursive + // Delete existing folder. + // Note: We don't use recursive=true here because Terraform manages the deletion order + // through its dependency graph. Child folders will be deleted before parent folders. + httpResponse, err := r.client.FoldersAPI.FoldersFolderIdDelete(ctx, state.ID.ValueString()).Execute() - httpResponse, err := r.client.FoldersAPI.FoldersFolderIdDelete(ctx, state.ID.ValueString()).FoldersFolderIdDeleteRequest(deleteRequest).Execute() if err != nil && !(httpResponse != nil && httpResponse.StatusCode == 404) { // It's ok to not find the resource being deleted. resp.Diagnostics.AddError( "Error Deleting Folder", - "Could not delete folder"+state.ID.ValueString()+", unexpected error: "+err.Error(), + "Could not delete folder "+state.ID.ValueString()+", unexpected error: "+err.Error(), ) tflog.Error(ctx, "Error Deleting Folder", utils.AddHTTPStatusCode(map[string]any{"error": err.Error()}, httpResponse)) return diff --git a/internal/provider/folder/resource_test.go b/internal/provider/folder/resource_test.go index d096bcf..d394f9e 100644 --- a/internal/provider/folder/resource_test.go +++ b/internal/provider/folder/resource_test.go @@ -11,7 +11,6 @@ import ( "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/tryretool/terraform-provider-retool/internal/acctest" - "github.com/tryretool/terraform-provider-retool/internal/sdk/api" ) const testFolderConfig = ` @@ -65,10 +64,7 @@ func sweepFolders(region string) error { if strings.HasPrefix(folder.Name, "tf-acc") { log.Printf("Deleting folder %s", folder.Name) tflog.Info(context.Background(), "Deleting folder", map[string]interface{}{"folder": folder.Name}) - recursive := true - deleteRequest := api.FoldersFolderIdDeleteRequest{} - deleteRequest.Recursive = &recursive - _, err := client.FoldersAPI.FoldersFolderIdDelete(context.Background(), folder.Id).FoldersFolderIdDeleteRequest(deleteRequest).Execute() + _, err := client.FoldersAPI.FoldersFolderIdDelete(context.Background(), folder.Id).Recursive(true).Execute() if err != nil { return fmt.Errorf("Error deleting folder %s: %s", folder.Name, err.Error()) } diff --git a/internal/provider/group/data_source.go b/internal/provider/group/data_source.go index 279287d..2555567 100644 --- a/internal/provider/group/data_source.go +++ b/internal/provider/group/data_source.go @@ -66,6 +66,8 @@ type groupModel struct { AuditLogAccess types.Bool `tfsdk:"audit_log_access"` UnpublishedReleaseAccess types.Bool `tfsdk:"unpublished_release_access"` UsageAnalyticsAccess types.Bool `tfsdk:"usage_analytics_access"` + ThemeAccess types.Bool `tfsdk:"theme_access"` + AccountDetailsAccess types.Bool `tfsdk:"account_details_access"` LandingPageAppID types.String `tfsdk:"landing_page_app_id"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` @@ -217,6 +219,14 @@ func (d *groupsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, Computed: true, Description: "Whether the group has usage analytics access.", }, + "theme_access": schema.BoolAttribute{ + Computed: true, + Description: "Whether the group has access to edit themes.", + }, + "account_details_access": schema.BoolAttribute{ + Computed: true, + Description: "Whether the group has access to account details.", + }, "landing_page_app_id": schema.StringAttribute{ Computed: true, Description: "The id of the landing page app for the group.", @@ -266,6 +276,8 @@ func (d *groupsDataSource) Read(ctx context.Context, _ datasource.ReadRequest, r AuditLogAccess: types.BoolValue(group.AuditLogAccess), UnpublishedReleaseAccess: types.BoolValue(group.UnpublishedReleaseAccess), UsageAnalyticsAccess: types.BoolValue(group.UsageAnalyticsAccess), + ThemeAccess: types.BoolValue(group.ThemeAccess), + AccountDetailsAccess: types.BoolValue(group.AccountDetailsAccess), LandingPageAppID: types.StringPointerValue(group.LandingPageAppId.Get()), CreatedAt: types.StringValue(group.CreatedAt), UpdatedAt: types.StringValue(group.UpdatedAt), diff --git a/internal/provider/group/resource.go b/internal/provider/group/resource.go index 03a4b84..aedf9b9 100644 --- a/internal/provider/group/resource.go +++ b/internal/provider/group/resource.go @@ -46,6 +46,7 @@ type groupResourceModel struct { AuditLogAccess types.Bool `tfsdk:"audit_log_access"` UnpublishedReleaseAccess types.Bool `tfsdk:"unpublished_release_access"` UsageAnalyticsAccess types.Bool `tfsdk:"usage_analytics_access"` + ThemeAccess types.Bool `tfsdk:"theme_access"` AccountDetailsAccess types.Bool `tfsdk:"account_details_access"` LandingPageAppID types.String `tfsdk:"landing_page_app_id"` } @@ -162,6 +163,12 @@ func (r *groupResource) Schema(_ context.Context, _ resource.SchemaRequest, resp Default: booldefault.StaticBool(false), Description: "Whether the group has access to usage analytics.", }, + "theme_access": schema.BoolAttribute{ + Optional: true, + Computed: true, + Default: booldefault.StaticBool(false), + Description: "Whether the group has access to edit themes.", + }, "account_details_access": schema.BoolAttribute{ Optional: true, Computed: true, @@ -197,6 +204,7 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, group.AuditLogAccess = plan.AuditLogAccess.ValueBoolPointer() group.UnpublishedReleaseAccess = plan.UnpublishedReleaseAccess.ValueBoolPointer() group.UsageAnalyticsAccess = plan.UsageAnalyticsAccess.ValueBoolPointer() + group.ThemeAccess = plan.ThemeAccess.ValueBoolPointer() group.AccountDetailsAccess = plan.AccountDetailsAccess.ValueBoolPointer() if !plan.LandingPageAppID.IsNull() && !plan.LandingPageAppID.IsUnknown() { group.LandingPageAppId.Set(plan.LandingPageAppID.ValueStringPointer()) @@ -277,6 +285,7 @@ func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp state.AuditLogAccess = types.BoolValue(group.Data.AuditLogAccess) state.UnpublishedReleaseAccess = types.BoolValue(group.Data.UnpublishedReleaseAccess) state.UsageAnalyticsAccess = types.BoolValue(group.Data.UsageAnalyticsAccess) + state.ThemeAccess = types.BoolValue(group.Data.ThemeAccess) state.AccountDetailsAccess = types.BoolValue(group.Data.AccountDetailsAccess) state.LandingPageAppID = types.StringPointerValue(group.Data.LandingPageAppId.Get()) @@ -326,6 +335,7 @@ func (r *groupResource) Update(ctx context.Context, req resource.UpdateRequest, AuditLogAccess: plan.AuditLogAccess.ValueBoolPointer(), UnpublishedReleaseAccess: plan.UnpublishedReleaseAccess.ValueBoolPointer(), UsageAnalyticsAccess: plan.UsageAnalyticsAccess.ValueBoolPointer(), + ThemeAccess: plan.ThemeAccess.ValueBoolPointer(), AccountDetailsAccess: plan.AccountDetailsAccess.ValueBoolPointer(), Members: convertGroupMembersToPutRequestType(group.Data.Members), UserInvites: group.Data.UserInvites, diff --git a/internal/provider/permissions/resource.go b/internal/provider/permissions/resource.go index 44f6588..7b3b810 100644 --- a/internal/provider/permissions/resource.go +++ b/internal/provider/permissions/resource.go @@ -158,18 +158,37 @@ func createNewAPIPermissionsSubject(subjectModel permissionSubjectModel) api.Per return api.PermissionsListObjectsPostRequestSubject{} } floatGroupID := float32(groupID) // Our client uses float32 to represent "number" ids. - subject.PermissionsListObjectsPostRequestSubjectOneOf = api.NewPermissionsListObjectsPostRequestSubjectOneOf("group", *api.NewNullableFloat32(&floatGroupID)) + groupSubject := api.NewGroup("group", *api.NewNullableFloat32(&floatGroupID)) + subject = api.GroupAsPermissionsListObjectsPostRequestSubject(groupSubject) } else if subjectModel.Type.ValueString() == "user" { - subject.PermissionsListObjectsPostRequestSubjectOneOf1 = api.NewPermissionsListObjectsPostRequestSubjectOneOf1("user", subjectModel.ID.ValueString()) + userSubject := api.NewUser("user", subjectModel.ID.ValueString()) + subject = api.UserAsPermissionsListObjectsPostRequestSubject(userSubject) } return subject } func createNewAPIPermissionsObject(objectModel permissionObjectModel) api.PermissionsGrantPostRequestObject { - object := api.PermissionsGrantPostRequestObject{ - PermissionsGrantPostRequestObjectOneOf: api.NewPermissionsGrantPostRequestObjectOneOf(objectModel.Type.ValueString(), objectModel.ID.ValueString()), + objType := objectModel.Type.ValueString() + objID := objectModel.ID.ValueString() + + // Use the appropriate constructor and wrapper function based on object type. + switch objType { + case "app": + app := api.NewApp(objType, objID) + return api.AppAsPermissionsGrantPostRequestObject(app) + case "folder": + folder := api.NewFolder(objType, objID) + return api.FolderAsPermissionsGrantPostRequestObject(folder) + case "resource": + resource := api.NewResource(objType, objID) + return api.ResourceAsPermissionsGrantPostRequestObject(resource) + case "resource_configuration": + resourceConfig := api.NewResourceConfiguration(objType, objID) + return api.ResourceConfigurationAsPermissionsGrantPostRequestObject(resourceConfig) + default: + // Fallback: return empty object if type is unknown. + return api.PermissionsGrantPostRequestObject{} } - return object } func getPermissionID(subject permissionSubjectModel, object permissionObjectModel) string { @@ -317,10 +336,37 @@ func (r *permissionResource) Read(ctx context.Context, req resource.ReadRequest, for _, obj := range permissionsResponse.Data { var objID string var accessLevel string - if obj.PermissionsListObjectsPost200ResponseDataInnerOneOf != nil { - objID = obj.PermissionsListObjectsPost200ResponseDataInnerOneOf.Id - accessLevel = obj.PermissionsListObjectsPost200ResponseDataInnerOneOf.AccessLevel + + // Check which variant is populated (folder, app, resource, or resource_configuration). + switch { + case obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf != nil: + // Folder. + objID = obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf.Id + accessLevel = obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf.AccessLevel + case obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf1 != nil: + // App. + objID = obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf1.Id + accessLevel = obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf1.AccessLevel + case obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf2 != nil: + // Resource. + objID = obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf2.Id + accessLevel = obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf2.AccessLevel + case obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf3 != nil: + // Resource Configuration. + objID = obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf3.Id + accessLevel = obj.PermissionsListObjectsPost200ResponseDataInnerAnyOf3.AccessLevel + default: + // None of the variants matched - log and skip this permission. + tflog.Warn(ctx, "Permission object did not match any known type variant, skipping", map[string]interface{}{"objectType": objectType}) + continue + } + + // Skip if objID or accessLevel are empty. + if objID == "" || accessLevel == "" { + tflog.Warn(ctx, "Permission object has empty ID or access level, skipping", map[string]interface{}{"objectType": objectType, "objID": objID, "accessLevel": accessLevel}) + continue } + objValue := permissionObjectModel{ ID: types.StringValue(objID), Type: types.StringValue(objectType), diff --git a/internal/provider/sourcecontrol/resource.go b/internal/provider/sourcecontrol/resource.go index c0a8d83..a2fd56e 100644 --- a/internal/provider/sourcecontrol/resource.go +++ b/internal/provider/sourcecontrol/resource.go @@ -392,7 +392,7 @@ func updateSourceControlConfig(ctx context.Context, client *api.APIClient, model if globalDiags.HasError() { return } - innerConfig := api.SourceControlConfigGet200ResponseDataOneOfConfig{} + innerConfig := api.GitHubConfig{} if !utils.IsEmptyObject(githubConfig.AppAuthentication) { var appAuthConfig appAuthConfigModel @@ -401,7 +401,7 @@ func updateSourceControlConfig(ctx context.Context, client *api.APIClient, model if globalDiags.HasError() { return } - innerConfig.SourceControlConfigGet200ResponseDataOneOfConfigOneOf = &api.SourceControlConfigGet200ResponseDataOneOfConfigOneOf{ + innerConfig.GitHubConfigAnyOf = &api.GitHubConfigAnyOf{ Type: "App", AppId: appAuthConfig.AppID.ValueString(), InstallationId: appAuthConfig.InstallationID.ValueString(), @@ -411,7 +411,7 @@ func updateSourceControlConfig(ctx context.Context, client *api.APIClient, model } } else { // Assuming here that the personal access token is set. - innerConfig.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1 = &api.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1{ + innerConfig.GitHubConfigAnyOf1 = &api.GitHubConfigAnyOf1{ Type: "Personal", PersonalAccessToken: githubConfig.PersonalAccessToken.ValueString(), Url: githubConfig.URL.ValueStringPointer(), @@ -419,15 +419,10 @@ func updateSourceControlConfig(ctx context.Context, client *api.APIClient, model } } + github := api.NewGitHub(innerConfig, "GitHub", model.Org.ValueString(), model.Repo.ValueString(), model.DefaultBranch.ValueString()) + github.RepoVersion = model.RepoVersion.ValueStringPointer() config = api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf: &api.SourceControlConfigGet200ResponseDataOneOf{ - Provider: "GitHub", - Config: innerConfig, - Org: model.Org.ValueString(), - Repo: model.Repo.ValueString(), - DefaultBranch: model.DefaultBranch.ValueString(), - RepoVersion: model.RepoVersion.ValueStringPointer(), - }, + GitHub: github, } case !utils.IsEmptyObject(model.GitLab): var gitlabConfig gitlabConfigModel @@ -442,19 +437,11 @@ func updateSourceControlConfig(ctx context.Context, client *api.APIClient, model globalDiags.AddError("Invalid project ID", "The project ID must be a number") return } + gitlabConfigObj := api.NewGitLabConfig(float32(projectID), gitlabConfig.URL.ValueString(), gitlabConfig.ProjectAccessToken.ValueString()) + gitlab := api.NewGitLab(*gitlabConfigObj, "GitLab", model.Org.ValueString(), model.Repo.ValueString(), model.DefaultBranch.ValueString()) + gitlab.RepoVersion = model.RepoVersion.ValueStringPointer() config = api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf1: &api.SourceControlConfigGet200ResponseDataOneOf1{ - Provider: "GitLab", - Config: api.SourceControlConfigGet200ResponseDataOneOf1Config{ - ProjectId: float32(projectID), - Url: gitlabConfig.URL.ValueString(), - ProjectAccessToken: gitlabConfig.ProjectAccessToken.ValueString(), - }, - Org: model.Org.ValueString(), - Repo: model.Repo.ValueString(), - DefaultBranch: model.DefaultBranch.ValueString(), - RepoVersion: model.RepoVersion.ValueStringPointer(), - }, + GitLab: gitlab, } case !utils.IsEmptyObject(model.AWSCodeCommit): var awsCodeCommitConfig awsCodeCommitConfigModel @@ -464,22 +451,11 @@ func updateSourceControlConfig(ctx context.Context, client *api.APIClient, model return } + awsConfigObj := api.NewAWSCodeCommitConfig(awsCodeCommitConfig.URL.ValueString(), awsCodeCommitConfig.Region.ValueString(), awsCodeCommitConfig.AccessKeyID.ValueString(), awsCodeCommitConfig.SecretAccessKey.ValueString(), awsCodeCommitConfig.HTTPSUsername.ValueString(), awsCodeCommitConfig.HTTPSPassword.ValueString()) + awsCodeCommit := api.NewAWSCodeCommit(*awsConfigObj, "AWS CodeCommit", model.Org.ValueString(), model.Repo.ValueString(), model.DefaultBranch.ValueString()) + awsCodeCommit.RepoVersion = model.RepoVersion.ValueStringPointer() config = api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf2: &api.SourceControlConfigGet200ResponseDataOneOf2{ - Provider: "AWS CodeCommit", - Config: api.SourceControlConfigGet200ResponseDataOneOf2Config{ - Url: awsCodeCommitConfig.URL.ValueString(), - Region: awsCodeCommitConfig.Region.ValueString(), - AccessKeyId: awsCodeCommitConfig.AccessKeyID.ValueString(), - SecretAccessKey: awsCodeCommitConfig.SecretAccessKey.ValueString(), - HttpsUsername: awsCodeCommitConfig.HTTPSUsername.ValueString(), - HttpsPassword: awsCodeCommitConfig.HTTPSPassword.ValueString(), - }, - Org: model.Org.ValueString(), - Repo: model.Repo.ValueString(), - DefaultBranch: model.DefaultBranch.ValueString(), - RepoVersion: model.RepoVersion.ValueStringPointer(), - }, + AWSCodeCommit: awsCodeCommit, } case !utils.IsEmptyObject(model.Bitbucket): var bitbucketConfig bitbucketConfigModel @@ -488,20 +464,16 @@ func updateSourceControlConfig(ctx context.Context, client *api.APIClient, model if globalDiags.HasError() { return } + bitbucketConfigInner := api.NewBitbucketConfigAnyOf(bitbucketConfig.Username.ValueString(), bitbucketConfig.AppPassword.ValueString()) + bitbucketConfigInner.Url = bitbucketConfig.URL.ValueStringPointer() + bitbucketConfigInner.EnterpriseApiUrl = bitbucketConfig.EnterpriseAPIURL.ValueStringPointer() + bitbucketConfigWrapped := api.BitbucketConfig{ + BitbucketConfigAnyOf: bitbucketConfigInner, + } + bitbucket := api.NewBitbucket(bitbucketConfigWrapped, "Bitbucket", model.Org.ValueString(), model.Repo.ValueString(), model.DefaultBranch.ValueString()) + bitbucket.RepoVersion = model.RepoVersion.ValueStringPointer() config = api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf3: &api.SourceControlConfigGet200ResponseDataOneOf3{ - Provider: "Bitbucket", - Config: api.SourceControlConfigGet200ResponseDataOneOf3Config{ - Username: bitbucketConfig.Username.ValueString(), - Url: bitbucketConfig.URL.ValueStringPointer(), - EnterpriseApiUrl: bitbucketConfig.EnterpriseAPIURL.ValueStringPointer(), - AppPassword: bitbucketConfig.AppPassword.ValueString(), - }, - Org: model.Org.ValueString(), - Repo: model.Repo.ValueString(), - DefaultBranch: model.DefaultBranch.ValueString(), - RepoVersion: model.RepoVersion.ValueStringPointer(), - }, + Bitbucket: bitbucket, } case !utils.IsEmptyObject(model.AzureRepos): var azureReposConfig azureReposConfigModel @@ -510,21 +482,11 @@ func updateSourceControlConfig(ctx context.Context, client *api.APIClient, model if globalDiags.HasError() { return } + azureConfigObj := api.NewAzureReposConfig(azureReposConfig.URL.ValueString(), azureReposConfig.Project.ValueString(), azureReposConfig.User.ValueString(), azureReposConfig.PersonalAccessToken.ValueString(), azureReposConfig.UseBasicAuth.ValueBool()) + azureRepos := api.NewAzureRepos(*azureConfigObj, "Azure Repos", model.Org.ValueString(), model.Repo.ValueString(), model.DefaultBranch.ValueString()) + azureRepos.RepoVersion = model.RepoVersion.ValueStringPointer() config = api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf4: &api.SourceControlConfigGet200ResponseDataOneOf4{ - Provider: "Azure Repos", - Config: api.SourceControlConfigGet200ResponseDataOneOf4Config{ - Url: azureReposConfig.URL.ValueString(), - Project: azureReposConfig.Project.ValueString(), - User: azureReposConfig.User.ValueString(), - PersonalAccessToken: azureReposConfig.PersonalAccessToken.ValueString(), - UseBasicAuth: azureReposConfig.UseBasicAuth.ValueBool(), - }, - Org: model.Org.ValueString(), - Repo: model.Repo.ValueString(), - DefaultBranch: model.DefaultBranch.ValueString(), - RepoVersion: model.RepoVersion.ValueStringPointer(), - }, + AzureRepos: azureRepos, } } @@ -591,17 +553,17 @@ func (r *sourceControlResource) Read(ctx context.Context, _ resource.ReadRequest state.AzureRepos = types.ObjectNull(azureReposConfigModel{}.attributeTypes()) switch { - case response.Data.SourceControlConfigGet200ResponseDataOneOf != nil: - state.Org = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.Org) - state.Repo = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.Repo) - state.DefaultBranch = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.DefaultBranch) - state.RepoVersion = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.RepoVersion) + case response.Data.GitHub != nil: + state.Org = types.StringValue(response.Data.GitHub.Org) + state.Repo = types.StringValue(response.Data.GitHub.Repo) + state.DefaultBranch = types.StringValue(response.Data.GitHub.DefaultBranch) + state.RepoVersion = types.StringPointerValue(response.Data.GitHub.RepoVersion) githubConfigModel := githubConfigModel{} - if response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf != nil { + if response.Data.GitHub.Config.GitHubConfigAnyOf != nil { appAuthConfig := appAuthConfigModel{ - AppID: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf.AppId), - InstallationID: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf.InstallationId), + AppID: types.StringValue(response.Data.GitHub.Config.GitHubConfigAnyOf.AppId), + InstallationID: types.StringValue(response.Data.GitHub.Config.GitHubConfigAnyOf.InstallationId), PrivateKey: types.StringNull(), // API sends placeholder value that we don't need. } appAuthConfigModelObj, diags := types.ObjectValueFrom(ctx, appAuthConfig.attributeTypes(), appAuthConfig) @@ -611,13 +573,13 @@ func (r *sourceControlResource) Read(ctx context.Context, _ resource.ReadRequest } githubConfigModel.PersonalAccessToken = types.StringNull() githubConfigModel.AppAuthentication = appAuthConfigModelObj - githubConfigModel.URL = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf.Url) - githubConfigModel.EnterpriseAPIURL = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf.EnterpriseApiUrl) + githubConfigModel.URL = types.StringPointerValue(response.Data.GitHub.Config.GitHubConfigAnyOf.Url) + githubConfigModel.EnterpriseAPIURL = types.StringPointerValue(response.Data.GitHub.Config.GitHubConfigAnyOf.EnterpriseApiUrl) } else { githubConfigModel.PersonalAccessToken = types.StringNull() // API sends placeholder value that we don't need. githubConfigModel.AppAuthentication = types.ObjectNull(appAuthConfigModel{}.attributeTypes()) - githubConfigModel.URL = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1.Url) - githubConfigModel.EnterpriseAPIURL = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1.EnterpriseApiUrl) + githubConfigModel.URL = types.StringPointerValue(response.Data.GitHub.Config.GitHubConfigAnyOf1.Url) + githubConfigModel.EnterpriseAPIURL = types.StringPointerValue(response.Data.GitHub.Config.GitHubConfigAnyOf1.EnterpriseApiUrl) } githubConfigModelObj, diags := types.ObjectValueFrom(ctx, githubConfigModel.attributeTypes(), githubConfigModel) resp.Diagnostics.Append(diags...) @@ -626,15 +588,15 @@ func (r *sourceControlResource) Read(ctx context.Context, _ resource.ReadRequest } state.GitHub = githubConfigModelObj - case response.Data.SourceControlConfigGet200ResponseDataOneOf1 != nil: - state.Org = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf1.Org) - state.Repo = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf1.Repo) - state.DefaultBranch = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf1.DefaultBranch) - state.RepoVersion = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf1.RepoVersion) + case response.Data.GitLab != nil: + state.Org = types.StringValue(response.Data.GitLab.Org) + state.Repo = types.StringValue(response.Data.GitLab.Repo) + state.DefaultBranch = types.StringValue(response.Data.GitLab.DefaultBranch) + state.RepoVersion = types.StringPointerValue(response.Data.GitLab.RepoVersion) gitlabConfigModel := gitlabConfigModel{ - ProjectID: types.StringValue(utils.Float32PtrToIntString(&response.Data.SourceControlConfigGet200ResponseDataOneOf1.Config.ProjectId)), - URL: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf1.Config.Url), + ProjectID: types.StringValue(utils.Float32PtrToIntString(&response.Data.GitLab.Config.ProjectId)), + URL: types.StringValue(response.Data.GitLab.Config.Url), ProjectAccessToken: types.StringNull(), // API sends placeholder value that we don't need. } gitlabConfigModelObj, diags := types.ObjectValueFrom(ctx, gitlabConfigModel.attributeTypes(), gitlabConfigModel) @@ -644,18 +606,18 @@ func (r *sourceControlResource) Read(ctx context.Context, _ resource.ReadRequest } state.GitLab = gitlabConfigModelObj - case response.Data.SourceControlConfigGet200ResponseDataOneOf2 != nil: - state.Org = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf2.Org) - state.Repo = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf2.Repo) - state.DefaultBranch = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf2.DefaultBranch) - state.RepoVersion = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf2.RepoVersion) + case response.Data.AWSCodeCommit != nil: + state.Org = types.StringValue(response.Data.AWSCodeCommit.Org) + state.Repo = types.StringValue(response.Data.AWSCodeCommit.Repo) + state.DefaultBranch = types.StringValue(response.Data.AWSCodeCommit.DefaultBranch) + state.RepoVersion = types.StringPointerValue(response.Data.AWSCodeCommit.RepoVersion) awsCodeCommitConfigModel := awsCodeCommitConfigModel{ - URL: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf2.Config.Url), - Region: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf2.Config.Region), + URL: types.StringValue(response.Data.AWSCodeCommit.Config.Url), + Region: types.StringValue(response.Data.AWSCodeCommit.Config.Region), AccessKeyID: types.StringNull(), // API sends placeholder value that we don't need. SecretAccessKey: types.StringNull(), // API sends placeholder value that we don't need,. - HTTPSUsername: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf2.Config.HttpsUsername), + HTTPSUsername: types.StringValue(response.Data.AWSCodeCommit.Config.HttpsUsername), HTTPSPassword: types.StringNull(), // API sends placeholder value that we don't need. } awsCodeCommitConfigModelObj, diags := types.ObjectValueFrom(ctx, awsCodeCommitConfigModel.attributeTypes(), awsCodeCommitConfigModel) @@ -665,16 +627,16 @@ func (r *sourceControlResource) Read(ctx context.Context, _ resource.ReadRequest } state.AWSCodeCommit = awsCodeCommitConfigModelObj - case response.Data.SourceControlConfigGet200ResponseDataOneOf3 != nil: - state.Org = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf3.Org) - state.Repo = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf3.Repo) - state.DefaultBranch = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf3.DefaultBranch) - state.RepoVersion = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf3.RepoVersion) + case response.Data.Bitbucket != nil: + state.Org = types.StringValue(response.Data.Bitbucket.Org) + state.Repo = types.StringValue(response.Data.Bitbucket.Repo) + state.DefaultBranch = types.StringValue(response.Data.Bitbucket.DefaultBranch) + state.RepoVersion = types.StringPointerValue(response.Data.Bitbucket.RepoVersion) bitbucketConfigModel := bitbucketConfigModel{ - Username: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf3.Config.Username), - URL: types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf3.Config.Url), - EnterpriseAPIURL: types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf3.Config.EnterpriseApiUrl), + Username: types.StringValue(response.Data.Bitbucket.Config.BitbucketConfigAnyOf.Username), + URL: types.StringPointerValue(response.Data.Bitbucket.Config.BitbucketConfigAnyOf.Url), + EnterpriseAPIURL: types.StringPointerValue(response.Data.Bitbucket.Config.BitbucketConfigAnyOf.EnterpriseApiUrl), AppPassword: types.StringNull(), // API sends placeholder value that we don't need. } bitbucketConfigModelObj, diags := types.ObjectValueFrom(ctx, bitbucketConfigModel.attributeTypes(), bitbucketConfigModel) @@ -684,18 +646,18 @@ func (r *sourceControlResource) Read(ctx context.Context, _ resource.ReadRequest } state.Bitbucket = bitbucketConfigModelObj - case response.Data.SourceControlConfigGet200ResponseDataOneOf4 != nil: - state.Org = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf4.Org) - state.Repo = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf4.Repo) - state.DefaultBranch = types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf4.DefaultBranch) - state.RepoVersion = types.StringPointerValue(response.Data.SourceControlConfigGet200ResponseDataOneOf4.RepoVersion) + case response.Data.AzureRepos != nil: + state.Org = types.StringValue(response.Data.AzureRepos.Org) + state.Repo = types.StringValue(response.Data.AzureRepos.Repo) + state.DefaultBranch = types.StringValue(response.Data.AzureRepos.DefaultBranch) + state.RepoVersion = types.StringPointerValue(response.Data.AzureRepos.RepoVersion) azureReposConfigModel := azureReposConfigModel{ - URL: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf4.Config.Url), - Project: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf4.Config.Project), - User: types.StringValue(response.Data.SourceControlConfigGet200ResponseDataOneOf4.Config.User), + URL: types.StringValue(response.Data.AzureRepos.Config.Url), + Project: types.StringValue(response.Data.AzureRepos.Config.Project), + User: types.StringValue(response.Data.AzureRepos.Config.User), PersonalAccessToken: types.StringNull(), // API sends placeholder value that we don't need. - UseBasicAuth: types.BoolValue(response.Data.SourceControlConfigGet200ResponseDataOneOf4.Config.UseBasicAuth), + UseBasicAuth: types.BoolValue(response.Data.AzureRepos.Config.UseBasicAuth), } azureReposConfigModelObj, diags := types.ObjectValueFrom(ctx, azureReposConfigModel.attributeTypes(), azureReposConfigModel) resp.Diagnostics.Append(diags...) diff --git a/internal/provider/sourcecontrol/source_control_api_test.go b/internal/provider/sourcecontrol/source_control_api_test.go index 6095600..0baae17 100644 --- a/internal/provider/sourcecontrol/source_control_api_test.go +++ b/internal/provider/sourcecontrol/source_control_api_test.go @@ -11,162 +11,119 @@ import ( ) func testAppGitHubConfig(t *testing.T, client *api.APIClient) { - apiRequestConfigPart := api.SourceControlConfigGet200ResponseDataOneOfConfigOneOf{ - Type: "App", - AppId: "app_id", - InstallationId: "installation_id", - PrivateKey: "private_key", + githubConfig := api.GitHubConfig{ + GitHubConfigAnyOf: &api.GitHubConfigAnyOf{ + Type: "App", + AppId: "app_id", + InstallationId: "installation_id", + PrivateKey: "private_key", + }, } + github := api.NewGitHub(githubConfig, "GitHub", "org", "repo", "default_branch") apiRequest := api.SourceControlConfigPutRequest{ Config: api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf: &api.SourceControlConfigGet200ResponseDataOneOf{ - Provider: "GitHub", - Org: "org", - Repo: "repo", - DefaultBranch: "default_branch", - Config: api.SourceControlConfigGet200ResponseDataOneOfConfig{ - SourceControlConfigGet200ResponseDataOneOfConfigOneOf: &apiRequestConfigPart, - }, - }, + GitHub: github, }, } response, httpResponse, err := client.SourceControlAPI.SourceControlConfigPut(context.Background()).SourceControlConfigPutRequest(apiRequest).Execute() assert.NoError(t, err) assert.NotNil(t, response) - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf.Provider, "GitHub") - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf.Type, "App") + assert.Equal(t, response.Data.GitHub.Provider, "GitHub") + assert.Equal(t, response.Data.GitHub.Config.GitHubConfigAnyOf.Type, "App") assert.NotNil(t, httpResponse) } func testPersonalGitHubConfig(t *testing.T, client *api.APIClient) { - apiRequestConfigPart := api.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1{ - Type: "Personal", - PersonalAccessToken: "personal_access_token", + githubConfig := api.GitHubConfig{ + GitHubConfigAnyOf1: &api.GitHubConfigAnyOf1{ + Type: "Personal", + PersonalAccessToken: "personal_access_token", + }, } + github := api.NewGitHub(githubConfig, "GitHub", "org", "repo", "default_branch") apiRequest := api.SourceControlConfigPutRequest{ Config: api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf: &api.SourceControlConfigGet200ResponseDataOneOf{ - Provider: "GitHub", - Org: "org", - Repo: "repo", - DefaultBranch: "default_branch", - Config: api.SourceControlConfigGet200ResponseDataOneOfConfig{ - SourceControlConfigGet200ResponseDataOneOfConfigOneOf1: &apiRequestConfigPart, - }, - }, + GitHub: github, }, } response, httpResponse, err := client.SourceControlAPI.SourceControlConfigPut(context.Background()).SourceControlConfigPutRequest(apiRequest).Execute() assert.NoError(t, err) assert.NotNil(t, response) - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf.Provider, "GitHub") - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf.Config.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1.Type, "Personal") + assert.Equal(t, response.Data.GitHub.Provider, "GitHub") + assert.Equal(t, response.Data.GitHub.Config.GitHubConfigAnyOf1.Type, "Personal") assert.NotNil(t, httpResponse) } func testGitLabConfig(t *testing.T, client *api.APIClient) { + gitlabConfig := api.NewGitLabConfig(1234, "https://gitlab.com", "project_access_token") + gitlab := api.NewGitLab(*gitlabConfig, "GitLab", "org", "repo", "default_branch") apiRequest := api.SourceControlConfigPutRequest{ Config: api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf1: &api.SourceControlConfigGet200ResponseDataOneOf1{ - Provider: "GitLab", - Org: "org", - Repo: "repo", - DefaultBranch: "default_branch", - Config: api.SourceControlConfigGet200ResponseDataOneOf1Config{ - ProjectId: 1234, - Url: "https://gitlab.com", - ProjectAccessToken: "project_access_token", - }, - }, + GitLab: gitlab, }, } response, httpResponse, err := client.SourceControlAPI.SourceControlConfigPut(context.Background()).SourceControlConfigPutRequest(apiRequest).Execute() assert.NoError(t, err) assert.NotNil(t, response) - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf1.Provider, "GitLab") - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf1.Config.ProjectId, float32(1234)) + assert.Equal(t, response.Data.GitLab.Provider, "GitLab") + assert.Equal(t, response.Data.GitLab.Config.ProjectId, float32(1234)) assert.NotNil(t, httpResponse) } func testCodeCommitConfig(t *testing.T, client *api.APIClient) { + awsConfig := api.NewAWSCodeCommitConfig("https://git-codecommit.us-west-2.amazonaws.com", "us-west-2", "access_key_id", "secret_access_key", "https_username", "https_password") + awsCodeCommit := api.NewAWSCodeCommit(*awsConfig, "AWS CodeCommit", "org", "repo", "default_branch") apiRequest := api.SourceControlConfigPutRequest{ Config: api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf2: &api.SourceControlConfigGet200ResponseDataOneOf2{ - Provider: "AWS CodeCommit", - Org: "org", - Repo: "repo", - DefaultBranch: "default_branch", - Config: api.SourceControlConfigGet200ResponseDataOneOf2Config{ - Url: "https://git-codecommit.us-west-2.amazonaws.com", - Region: "us-west-2", - AccessKeyId: "access_key_id", - SecretAccessKey: "secret_access_key", - HttpsUsername: "https_username", - HttpsPassword: "https_password", - }, - }, + AWSCodeCommit: awsCodeCommit, }, } response, httpResponse, err := client.SourceControlAPI.SourceControlConfigPut(context.Background()).SourceControlConfigPutRequest(apiRequest).Execute() assert.NoError(t, err) assert.NotNil(t, response) - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf2.Provider, "AWS CodeCommit") - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf2.Config.Region, "us-west-2") + assert.Equal(t, response.Data.AWSCodeCommit.Provider, "AWS CodeCommit") + assert.Equal(t, response.Data.AWSCodeCommit.Config.Region, "us-west-2") assert.NotNil(t, httpResponse) } func testBitbucketConfig(t *testing.T, client *api.APIClient) { + bitbucketConfigInner := api.NewBitbucketConfigAnyOf("username", "app_password") + bitbucketConfig := api.BitbucketConfig{ + BitbucketConfigAnyOf: bitbucketConfigInner, + } + bitbucket := api.NewBitbucket(bitbucketConfig, "Bitbucket", "org", "repo", "default_branch") apiRequest := api.SourceControlConfigPutRequest{ Config: api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf3: &api.SourceControlConfigGet200ResponseDataOneOf3{ - Provider: "Bitbucket", - Org: "org", - Repo: "repo", - DefaultBranch: "default_branch", - Config: api.SourceControlConfigGet200ResponseDataOneOf3Config{ - Username: "username", - AppPassword: "app_password", - }, - }, + Bitbucket: bitbucket, }, } response, httpResponse, err := client.SourceControlAPI.SourceControlConfigPut(context.Background()).SourceControlConfigPutRequest(apiRequest).Execute() assert.NoError(t, err) assert.NotNil(t, response) - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf3.Provider, "Bitbucket") - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf3.Config.Username, "username") + assert.Equal(t, response.Data.Bitbucket.Provider, "Bitbucket") + assert.Equal(t, response.Data.Bitbucket.Config.BitbucketConfigAnyOf.Username, "username") assert.NotNil(t, httpResponse) } func testAzureReposConfig(t *testing.T, client *api.APIClient) { + azureConfig := api.NewAzureReposConfig("https://dev.azure.com/organization", "project", "user", "personal_access_token", true) + azureRepos := api.NewAzureRepos(*azureConfig, "Azure Repos", "org", "repo", "default_branch") apiRequest := api.SourceControlConfigPutRequest{ Config: api.SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf4: &api.SourceControlConfigGet200ResponseDataOneOf4{ - Provider: "Azure Repos", - Org: "org", - Repo: "repo", - DefaultBranch: "default_branch", - Config: api.SourceControlConfigGet200ResponseDataOneOf4Config{ - Url: "https://dev.azure.com/organization", - Project: "project", - User: "user", - PersonalAccessToken: "personal_access_token", - UseBasicAuth: true, - }, - }, + AzureRepos: azureRepos, }, } response, httpResponse, err := client.SourceControlAPI.SourceControlConfigPut(context.Background()).SourceControlConfigPutRequest(apiRequest).Execute() assert.NoError(t, err) assert.NotNil(t, response) - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf4.Provider, "Azure Repos") - assert.Equal(t, response.Data.SourceControlConfigGet200ResponseDataOneOf4.Config.Url, "https://dev.azure.com/organization") + assert.Equal(t, response.Data.AzureRepos.Provider, "Azure Repos") + assert.Equal(t, response.Data.AzureRepos.Config.Url, "https://dev.azure.com/organization") assert.NotNil(t, httpResponse) } diff --git a/internal/provider/sourcecontrolsettings/resource.go b/internal/provider/sourcecontrolsettings/resource.go index 78e45b4..611a03e 100644 --- a/internal/provider/sourcecontrolsettings/resource.go +++ b/internal/provider/sourcecontrolsettings/resource.go @@ -33,6 +33,7 @@ type scmSettingsModel struct { CustomPullRequestTemplateEnabled types.Bool `tfsdk:"custom_pull_request_template_enabled"` CustomPullRequestTemplate types.String `tfsdk:"custom_pull_request_template"` VersionControlLocked types.Bool `tfsdk:"version_control_locked"` + AutoCleanupBranchesEnabled types.Bool `tfsdk:"auto_cleanup_branches_enabled"` ForceUUIDMapping types.Bool `tfsdk:"force_uuid_mapping"` } @@ -93,6 +94,12 @@ func (r *scmSettingsResource) Schema(_ context.Context, _ resource.SchemaRequest Description: "When set to true, creates a read-only instance of Retool, where app editing is disabled. Defaults to false.", Default: booldefault.StaticBool(false), }, + "auto_cleanup_branches_enabled": schema.BoolAttribute{ + Optional: true, + Computed: true, + Description: "When enabled, Retool automatically cleans up branches after they are merged. Defaults to false.", + Default: booldefault.StaticBool(false), + }, "force_uuid_mapping": schema.BoolAttribute{ Optional: true, Computed: true, @@ -110,6 +117,7 @@ func updateSourceControlSettings(ctx context.Context, client *api.APIClient, mod CustomPullRequestTemplateEnabled: model.CustomPullRequestTemplateEnabled.ValueBoolPointer(), CustomPullRequestTemplate: model.CustomPullRequestTemplate.ValueStringPointer(), VersionControlLocked: model.VersionControlLocked.ValueBoolPointer(), + AutoCleanupBranchesEnabled: model.AutoCleanupBranchesEnabled.ValueBoolPointer(), ForceUuidMapping: model.ForceUUIDMapping.ValueBoolPointer(), }, } @@ -170,6 +178,7 @@ func (r *scmSettingsResource) Read(ctx context.Context, _ resource.ReadRequest, state.CustomPullRequestTemplateEnabled = types.BoolValue(response.Data.CustomPullRequestTemplateEnabled) state.CustomPullRequestTemplate = types.StringValue(response.Data.CustomPullRequestTemplate) state.VersionControlLocked = types.BoolValue(response.Data.VersionControlLocked) + state.AutoCleanupBranchesEnabled = types.BoolValue(response.Data.AutoCleanupBranchesEnabled) state.ForceUUIDMapping = types.BoolValue(response.Data.ForceUuidMapping) diags := resp.State.Set(ctx, state) diff --git a/internal/provider/sso/resource.go b/internal/provider/sso/resource.go index fc535f7..ea45902 100644 --- a/internal/provider/sso/resource.go +++ b/internal/provider/sso/resource.go @@ -517,22 +517,11 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - ssoConfig := api.SsoConfigPostRequestDataOneOf4{ - ConfigType: "google & saml", - GoogleClientId: googleConfig.ClientID.ValueString(), - GoogleClientSecret: googleConfig.ClientSecret.ValueString(), - DisableEmailPasswordLogin: plan.DisableEmailPasswordLogin.ValueBool(), - IdpMetadataXml: samlConfig.IDPMetadataXML.ValueString(), - SamlFirstNameAttribute: samlConfig.FirstNameAttribute.ValueString(), - SamlLastNameAttribute: samlConfig.LastNameAttribute.ValueString(), - SamlGroupsAttribute: samlConfig.GroupsAttribute.ValueStringPointer(), - SamlSyncGroupClaims: samlConfig.SyncGroupClaims.ValueBool(), - LdapSyncGroupClaims: samlConfig.LDAPSyncGroupClaims.ValueBoolPointer(), - LdapRoleMapping: getLdapRolesMapping(ctx, samlConfig, globalDiags), - JitEnabled: samlConfig.JITEnabled.ValueBool(), - TriggerLoginAutomatically: samlConfig.TriggerLoginAutomatically.ValueBool(), - RestrictedDomain: getRestrictedDomains(ctx, samlConfig.RestrictedDomains, globalDiags), - } + ssoConfig := api.NewGoogleSAML("google & saml", googleConfig.ClientID.ValueString(), googleConfig.ClientSecret.ValueString(), plan.DisableEmailPasswordLogin.ValueBool(), samlConfig.IDPMetadataXML.ValueString(), samlConfig.FirstNameAttribute.ValueString(), samlConfig.LastNameAttribute.ValueString(), samlConfig.SyncGroupClaims.ValueBool(), samlConfig.JITEnabled.ValueBool(), samlConfig.TriggerLoginAutomatically.ValueBool()) + ssoConfig.SamlGroupsAttribute = samlConfig.GroupsAttribute.ValueStringPointer() + ssoConfig.LdapSyncGroupClaims = samlConfig.LDAPSyncGroupClaims.ValueBoolPointer() + ssoConfig.LdapRoleMapping = getLdapRolesMapping(ctx, samlConfig, globalDiags) + ssoConfig.RestrictedDomain = getRestrictedDomains(ctx, samlConfig.RestrictedDomains, globalDiags) // Add ldap config if present. if !utils.IsEmptyObject(samlConfig.LDAPConfig) { var ldapConfig ldapConfigModel @@ -550,7 +539,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - apiRequest.Data.SsoConfigPostRequestDataOneOf4 = &ssoConfig + apiRequest.Data = api.GoogleSAMLAsSsoConfigPostRequestData(ssoConfig) case !utils.IsEmptyObject(plan.OIDC): // SSO type is "google & oidc" // Get google and oidc configs. @@ -566,7 +555,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - ssoConfig := api.SsoConfigPostRequestDataOneOf2{ + ssoConfig := api.GoogleOIDC{ ConfigType: "google & oidc", GoogleClientId: googleConfig.ClientID.ValueString(), GoogleClientSecret: googleConfig.ClientSecret.ValueString(), @@ -590,7 +579,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - apiRequest.Data.SsoConfigPostRequestDataOneOf2 = &ssoConfig + apiRequest.Data = api.GoogleOIDCAsSsoConfigPostRequestData(&ssoConfig) default: // SSO type is "google". var googleConfig googleConfigModel @@ -599,7 +588,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - ssoConfig := api.SsoConfigPostRequestDataOneOf{ + ssoConfig := api.Google{ ConfigType: "google", GoogleClientId: googleConfig.ClientID.ValueString(), GoogleClientSecret: googleConfig.ClientSecret.ValueString(), @@ -608,7 +597,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - apiRequest.Data.SsoConfigPostRequestDataOneOf = &ssoConfig + apiRequest.Data = api.GoogleAsSsoConfigPostRequestData(&ssoConfig) } case !utils.IsEmptyObject(plan.OIDC): // SSO type is "oidc". @@ -618,7 +607,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - ssoConfig := api.SsoConfigPostRequestDataOneOf1{ + ssoConfig := api.OIDC{ ConfigType: "oidc", DisableEmailPasswordLogin: plan.DisableEmailPasswordLogin.ValueBool(), OidcClientId: oidcConfig.ClientID.ValueString(), @@ -640,7 +629,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - apiRequest.Data.SsoConfigPostRequestDataOneOf1 = &ssoConfig + apiRequest.Data = api.OIDCAsSsoConfigPostRequestData(&ssoConfig) case !utils.IsEmptyObject(plan.SAML): // SSO type is "saml". var samlConfig samlConfigModel @@ -649,7 +638,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - ssoConfig := api.SsoConfigPostRequestDataOneOf3{ + ssoConfig := api.SAML{ ConfigType: "saml", DisableEmailPasswordLogin: plan.DisableEmailPasswordLogin.ValueBool(), IdpMetadataXml: samlConfig.IDPMetadataXML.ValueString(), @@ -680,7 +669,7 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel if globalDiags.HasError() { return nil } - apiRequest.Data.SsoConfigPostRequestDataOneOf3 = &ssoConfig + apiRequest.Data = api.SAMLAsSsoConfigPostRequestData(&ssoConfig) default: globalDiags.AddError( "Error creating SSO config", @@ -700,11 +689,23 @@ func (r *ssoResource) updateSSOConfig(ctx context.Context, plan ssoResourceModel tflog.Error(ctx, "Error creating SSO config", utils.AddHTTPStatusCode(map[string]interface{}{"error": err.Error()}, httpResponse)) return nil } - secrets := &encryptedSecrets{ - googleClientSecret: response.Data.SSOConfig.GoogleClientSecret, - oidcClientSecret: response.Data.SSOConfig.OidcClientSecret, - ldapServerKey: response.Data.SSOConfig.LdapServerKey, - ldapServerCertificate: response.Data.SSOConfig.LdapServerCertificate, + // Extract secrets from the response based on which config type was created. + secrets := &encryptedSecrets{} + switch { + case response.Data.Google != nil: + secrets.googleClientSecret = &response.Data.Google.GoogleClientSecret + case response.Data.GoogleOIDC != nil: + secrets.googleClientSecret = &response.Data.GoogleOIDC.GoogleClientSecret + secrets.oidcClientSecret = &response.Data.GoogleOIDC.OidcClientSecret + case response.Data.GoogleSAML != nil: + secrets.googleClientSecret = &response.Data.GoogleSAML.GoogleClientSecret + secrets.ldapServerKey = response.Data.GoogleSAML.LdapServerKey + secrets.ldapServerCertificate = response.Data.GoogleSAML.LdapServerCertificate + case response.Data.OIDC != nil: + secrets.oidcClientSecret = &response.Data.OIDC.OidcClientSecret + case response.Data.SAML != nil: + secrets.ldapServerKey = response.Data.SAML.LdapServerKey + secrets.ldapServerCertificate = response.Data.SAML.LdapServerCertificate } return secrets } @@ -800,12 +801,306 @@ func parseLdapRolesMappingValue(ctx context.Context, rolesMappingValue string) m } // Check if any of the LDAP config attributes are present. -func isLdapConfigPresent(ssoConfig *api.SSOConfig) bool { - return ssoConfig.LdapServerUrl != nil || - ssoConfig.LdapBaseDomainComponents != nil || - ssoConfig.LdapServerName != nil || - ssoConfig.LdapServerKey != nil || - ssoConfig.LdapServerCertificate != nil +func isLdapConfigPresentInGoogleSAML(config *api.GoogleSAML) bool { + return config.LdapServerUrl != nil || + config.LdapBaseDomainComponents != nil || + config.LdapServerName != nil || + config.LdapServerKey != nil || + config.LdapServerCertificate != nil +} + +func isLdapConfigPresentInSAML(config *api.SAML) bool { + return config.LdapServerUrl != nil || + config.LdapBaseDomainComponents != nil || + config.LdapServerName != nil || + config.LdapServerKey != nil || + config.LdapServerCertificate != nil +} + +// Helper function to process Google SSO config. +func (r *ssoResource) processGoogleConfig(ctx context.Context, config *api.Google, state *ssoResourceModel, resp *resource.ReadResponse) bool { + googleConfig := googleConfigModel{ + ClientID: types.StringPointerValue(&config.GoogleClientId), + EncryptedClientSecret: types.StringPointerValue(&config.GoogleClientSecret), + } + googleConfig.ClientSecret = getSecretValue( + ctx, + &resp.State, + googleConfig.EncryptedClientSecret, + path.Root("google").AtName("client_secret"), + path.Root("google").AtName("encrypted_client_secret"), + &resp.Diagnostics) + if resp.Diagnostics.HasError() { + return false + } + googleConfigObject, diags := types.ObjectValueFrom(ctx, googleConfig.attributeTypes(), googleConfig) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return false + } + state.Google = googleConfigObject + return true +} + +// Helper function to process OIDC SSO config. +func (r *ssoResource) processOIDCConfig(ctx context.Context, config *api.GoogleOIDC, state *ssoResourceModel, resp *resource.ReadResponse) bool { + oidcConfig := oidcConfigModel{ + ClientID: types.StringPointerValue(&config.OidcClientId), + EncryptedClientSecret: types.StringPointerValue(&config.OidcClientSecret), + Scopes: types.StringPointerValue(&config.OidcScopes), + AuthURL: types.StringPointerValue(&config.OidcAuthUrl), + TokenURL: types.StringPointerValue(&config.OidcTokenUrl), + UserInfoURL: types.StringPointerValue(config.OidcUserinfoUrl), + Audience: types.StringPointerValue(config.OidcAudience), + JWTEmailKey: types.StringPointerValue(&config.JwtEmailKey), + JWTRolesKey: types.StringPointerValue(config.JwtRolesKey), + JWTFirstNameKey: types.StringPointerValue(&config.JwtFirstNameKey), + JWTLastNameKey: types.StringPointerValue(&config.JwtLastNameKey), + TriggerLoginAutomatically: types.BoolPointerValue(&config.TriggerLoginAutomatically), + JITEnabled: types.BoolPointerValue(&config.JitEnabled), + } + oidcConfig.ClientSecret = getSecretValue( + ctx, + &resp.State, + oidcConfig.EncryptedClientSecret, + path.Root("oidc").AtName("client_secret"), + path.Root("oidc").AtName("encrypted_client_secret"), + &resp.Diagnostics) + if resp.Diagnostics.HasError() { + return false + } + + if config.RolesMapping != nil { + tflog.Info(ctx, "Roles mapping detected"+*config.RolesMapping) + roleMapTuples := strings.Split(*config.RolesMapping, ",") + rolesMapping := make(map[string]types.String, len(roleMapTuples)) + for _, roleMapping := range roleMapTuples { + roleMappingParts := strings.Split(roleMapping, "->") + if len(roleMappingParts) != 2 { + tflog.Warn(ctx, "Invalid role mapping: "+roleMapping) + continue + } + rolesMapping[strings.TrimSpace(roleMappingParts[0])] = types.StringValue(strings.TrimSpace(roleMappingParts[1])) + } + var diags diag.Diagnostics + oidcConfig.RolesMapping, diags = types.MapValueFrom(ctx, types.StringType, rolesMapping) + resp.Diagnostics.Append(diags...) + } else { + oidcConfig.RolesMapping = types.MapNull(types.StringType) + } + if config.RestrictedDomain != nil { + restrictedDomains := strings.Split(*config.RestrictedDomain, ",") + var diags diag.Diagnostics + oidcConfig.RestrictedDomains, diags = types.ListValueFrom(ctx, types.StringType, restrictedDomains) + resp.Diagnostics.Append(diags...) + } else { + oidcConfig.RestrictedDomains = types.ListNull(types.StringType) + } + + oidcConfigObject, diags := types.ObjectValueFrom(ctx, oidcConfig.attributeTypes(), oidcConfig) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return false + } + state.OIDC = oidcConfigObject + return true +} + +// Helper function to process standalone OIDC SSO config (without Google). +func (r *ssoResource) processStandaloneOIDCConfig(ctx context.Context, config *api.OIDC, state *ssoResourceModel, resp *resource.ReadResponse) bool { + oidcConfig := oidcConfigModel{ + ClientID: types.StringPointerValue(&config.OidcClientId), + EncryptedClientSecret: types.StringPointerValue(&config.OidcClientSecret), + Scopes: types.StringPointerValue(&config.OidcScopes), + AuthURL: types.StringPointerValue(&config.OidcAuthUrl), + TokenURL: types.StringPointerValue(&config.OidcTokenUrl), + UserInfoURL: types.StringPointerValue(config.OidcUserinfoUrl), + Audience: types.StringPointerValue(config.OidcAudience), + JWTEmailKey: types.StringPointerValue(&config.JwtEmailKey), + JWTRolesKey: types.StringPointerValue(config.JwtRolesKey), + JWTFirstNameKey: types.StringPointerValue(&config.JwtFirstNameKey), + JWTLastNameKey: types.StringPointerValue(&config.JwtLastNameKey), + TriggerLoginAutomatically: types.BoolPointerValue(&config.TriggerLoginAutomatically), + JITEnabled: types.BoolPointerValue(&config.JitEnabled), + } + oidcConfig.ClientSecret = getSecretValue( + ctx, + &resp.State, + oidcConfig.EncryptedClientSecret, + path.Root("oidc").AtName("client_secret"), + path.Root("oidc").AtName("encrypted_client_secret"), + &resp.Diagnostics) + if resp.Diagnostics.HasError() { + return false + } + + if config.RolesMapping != nil { + tflog.Info(ctx, "Roles mapping detected"+*config.RolesMapping) + roleMapTuples := strings.Split(*config.RolesMapping, ",") + rolesMapping := make(map[string]types.String, len(roleMapTuples)) + for _, roleMapping := range roleMapTuples { + roleMappingParts := strings.Split(roleMapping, "->") + if len(roleMappingParts) != 2 { + tflog.Warn(ctx, "Invalid role mapping: "+roleMapping) + continue + } + rolesMapping[strings.TrimSpace(roleMappingParts[0])] = types.StringValue(strings.TrimSpace(roleMappingParts[1])) + } + var diags diag.Diagnostics + oidcConfig.RolesMapping, diags = types.MapValueFrom(ctx, types.StringType, rolesMapping) + resp.Diagnostics.Append(diags...) + } else { + oidcConfig.RolesMapping = types.MapNull(types.StringType) + } + if config.RestrictedDomain != nil { + restrictedDomains := strings.Split(*config.RestrictedDomain, ",") + var diags diag.Diagnostics + oidcConfig.RestrictedDomains, diags = types.ListValueFrom(ctx, types.StringType, restrictedDomains) + resp.Diagnostics.Append(diags...) + } else { + oidcConfig.RestrictedDomains = types.ListNull(types.StringType) + } + + oidcConfigObject, diags := types.ObjectValueFrom(ctx, oidcConfig.attributeTypes(), oidcConfig) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return false + } + state.OIDC = oidcConfigObject + return true +} + +// Helper function to process LDAP config for SAML. +func (r *ssoResource) processLDAPConfig(ctx context.Context, ldapServerURL, ldapBaseDomainComponents, ldapServerName, ldapServerKey, ldapServerCertificate *string, resp *resource.ReadResponse) types.Object { + ldapConfig := ldapConfigModel{ + ServerURL: types.StringPointerValue(ldapServerURL), + BaseDomainComponents: types.StringPointerValue(ldapBaseDomainComponents), + ServerName: types.StringPointerValue(ldapServerName), + EncryptedServerKey: types.StringPointerValue(ldapServerKey), + EncryptedServerCertificate: types.StringPointerValue(ldapServerCertificate), + } + ldapConfig.ServerKey = getSecretValue( + ctx, + &resp.State, + ldapConfig.EncryptedServerKey, + path.Root("saml").AtName("ldap_config").AtName("server_key"), + path.Root("saml").AtName("ldap_config").AtName("encrypted_server_key"), + &resp.Diagnostics) + if resp.Diagnostics.HasError() { + return types.ObjectNull(ldapConfigModel{}.attributeTypes()) + } + ldapConfig.ServerCertificate = getSecretValue( + ctx, + &resp.State, + ldapConfig.EncryptedServerCertificate, + path.Root("saml").AtName("ldap_config").AtName("server_certificate"), + path.Root("saml").AtName("ldap_config").AtName("encrypted_server_certificate"), + &resp.Diagnostics) + if resp.Diagnostics.HasError() { + return types.ObjectNull(ldapConfigModel{}.attributeTypes()) + } + + ldapConfigObject, diags := types.ObjectValueFrom(ctx, ldapConfig.attributeTypes(), ldapConfig) + resp.Diagnostics.Append(diags...) + return ldapConfigObject +} + +// Helper function to process SAML config (for GoogleSAML). +func (r *ssoResource) processSAMLConfigFromGoogleSAML(ctx context.Context, config *api.GoogleSAML, state *ssoResourceModel, resp *resource.ReadResponse) bool { + samlConfig := samlConfigModel{ + IDPMetadataXML: types.StringPointerValue(&config.IdpMetadataXml), + FirstNameAttribute: types.StringPointerValue(&config.SamlFirstNameAttribute), + LastNameAttribute: types.StringPointerValue(&config.SamlLastNameAttribute), + GroupsAttribute: types.StringPointerValue(config.SamlGroupsAttribute), + SyncGroupClaims: types.BoolPointerValue(&config.SamlSyncGroupClaims), + LDAPSyncGroupClaims: types.BoolPointerValue(config.LdapSyncGroupClaims), + JITEnabled: types.BoolPointerValue(&config.JitEnabled), + TriggerLoginAutomatically: types.BoolPointerValue(&config.TriggerLoginAutomatically), + } + var diags diag.Diagnostics + if config.LdapRoleMapping != nil { + rolesMapping := parseLdapRolesMappingValue(ctx, *config.LdapRoleMapping) + rolesMappingTF := make(map[string]types.List, len(rolesMapping)) + for key, value := range rolesMapping { + rolesMappingTF[key], diags = types.ListValueFrom(ctx, types.StringType, value) + resp.Diagnostics.Append(diags...) + } + samlConfig.RolesMapping, diags = types.MapValueFrom(ctx, types.ListType{ElemType: types.StringType}, rolesMappingTF) + resp.Diagnostics.Append(diags...) + } else { + samlConfig.RolesMapping = types.MapNull(types.ListType{ElemType: types.StringType}) + } + if config.RestrictedDomain != nil { + restrictedDomains := strings.Split(*config.RestrictedDomain, ",") + samlConfig.RestrictedDomains, diags = types.ListValueFrom(ctx, types.StringType, restrictedDomains) + resp.Diagnostics.Append(diags...) + } else { + samlConfig.RestrictedDomains = types.ListNull(types.StringType) + } + if isLdapConfigPresentInGoogleSAML(config) { + samlConfig.LDAPConfig = r.processLDAPConfig(ctx, config.LdapServerUrl, config.LdapBaseDomainComponents, config.LdapServerName, config.LdapServerKey, config.LdapServerCertificate, resp) + } else { + samlConfig.LDAPConfig = types.ObjectNull(ldapConfigModel{}.attributeTypes()) + } + if resp.Diagnostics.HasError() { + return false + } + samlConfigObject, diags := types.ObjectValueFrom(ctx, samlConfig.attributeTypes(), samlConfig) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return false + } + state.SAML = samlConfigObject + return true +} + +// Helper function to process standalone SAML config (without Google). +func (r *ssoResource) processStandaloneSAMLConfig(ctx context.Context, config *api.SAML, state *ssoResourceModel, resp *resource.ReadResponse) bool { + samlConfig := samlConfigModel{ + IDPMetadataXML: types.StringPointerValue(&config.IdpMetadataXml), + FirstNameAttribute: types.StringPointerValue(&config.SamlFirstNameAttribute), + LastNameAttribute: types.StringPointerValue(&config.SamlLastNameAttribute), + GroupsAttribute: types.StringPointerValue(config.SamlGroupsAttribute), + SyncGroupClaims: types.BoolPointerValue(&config.SamlSyncGroupClaims), + LDAPSyncGroupClaims: types.BoolPointerValue(config.LdapSyncGroupClaims), + JITEnabled: types.BoolPointerValue(&config.JitEnabled), + TriggerLoginAutomatically: types.BoolPointerValue(&config.TriggerLoginAutomatically), + } + var diags diag.Diagnostics + if config.LdapRoleMapping != nil { + rolesMapping := parseLdapRolesMappingValue(ctx, *config.LdapRoleMapping) + rolesMappingTF := make(map[string]types.List, len(rolesMapping)) + for key, value := range rolesMapping { + rolesMappingTF[key], diags = types.ListValueFrom(ctx, types.StringType, value) + resp.Diagnostics.Append(diags...) + } + samlConfig.RolesMapping, diags = types.MapValueFrom(ctx, types.ListType{ElemType: types.StringType}, rolesMappingTF) + resp.Diagnostics.Append(diags...) + } else { + samlConfig.RolesMapping = types.MapNull(types.ListType{ElemType: types.StringType}) + } + if config.RestrictedDomain != nil { + restrictedDomains := strings.Split(*config.RestrictedDomain, ",") + samlConfig.RestrictedDomains, diags = types.ListValueFrom(ctx, types.StringType, restrictedDomains) + resp.Diagnostics.Append(diags...) + } else { + samlConfig.RestrictedDomains = types.ListNull(types.StringType) + } + if isLdapConfigPresentInSAML(config) { + samlConfig.LDAPConfig = r.processLDAPConfig(ctx, config.LdapServerUrl, config.LdapBaseDomainComponents, config.LdapServerName, config.LdapServerKey, config.LdapServerCertificate, resp) + } else { + samlConfig.LDAPConfig = types.ObjectNull(ldapConfigModel{}.attributeTypes()) + } + if resp.Diagnostics.HasError() { + return false + } + samlConfigObject, diags := types.ObjectValueFrom(ctx, samlConfig.attributeTypes(), samlConfig) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return false + } + state.SAML = samlConfigObject + return true } // Read SSO config. @@ -832,164 +1127,52 @@ func (r *ssoResource) Read(ctx context.Context, req resource.ReadRequest, resp * return } - state.DisableEmailPasswordLogin = types.BoolValue(response.Data.SSOConfig.DisableEmailPasswordLogin) - if response.Data.SSOConfig.ConfigType == "google" || response.Data.SSOConfig.ConfigType == "google & oidc" || response.Data.SSOConfig.ConfigType == "google & saml" { - googleConfig := googleConfigModel{ - ClientID: types.StringPointerValue(response.Data.SSOConfig.GoogleClientId), - EncryptedClientSecret: types.StringPointerValue(response.Data.SSOConfig.GoogleClientSecret), - } - googleConfig.ClientSecret = getSecretValue( - ctx, - &resp.State, - googleConfig.EncryptedClientSecret, - path.Root("google").AtName("client_secret"), - path.Root("google").AtName("encrypted_client_secret"), - &resp.Diagnostics) - if resp.Diagnostics.HasError() { + // Handle different SSO config types based on which field is populated. + var disableEmailPasswordLogin bool + + switch { + case response.Data.Google != nil: + disableEmailPasswordLogin = response.Data.Google.DisableEmailPasswordLogin + if !r.processGoogleConfig(ctx, response.Data.Google, &state, resp) { return } - googleConfigObject, diags := types.ObjectValueFrom(ctx, googleConfig.attributeTypes(), googleConfig) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { + case response.Data.GoogleOIDC != nil: + disableEmailPasswordLogin = response.Data.GoogleOIDC.DisableEmailPasswordLogin + if !r.processGoogleConfig(ctx, &api.Google{ + GoogleClientId: response.Data.GoogleOIDC.GoogleClientId, + GoogleClientSecret: response.Data.GoogleOIDC.GoogleClientSecret, + DisableEmailPasswordLogin: response.Data.GoogleOIDC.DisableEmailPasswordLogin, + }, &state, resp) { return } - state.Google = googleConfigObject - } - if response.Data.SSOConfig.ConfigType == "oidc" || response.Data.SSOConfig.ConfigType == "google & oidc" { - oidcConfig := oidcConfigModel{ - ClientID: types.StringPointerValue(response.Data.SSOConfig.OidcClientId), - EncryptedClientSecret: types.StringPointerValue(response.Data.SSOConfig.OidcClientSecret), - Scopes: types.StringPointerValue(response.Data.SSOConfig.OidcScopes), - AuthURL: types.StringPointerValue(response.Data.SSOConfig.OidcAuthUrl), - TokenURL: types.StringPointerValue(response.Data.SSOConfig.OidcTokenUrl), - UserInfoURL: types.StringPointerValue(response.Data.SSOConfig.OidcUserinfoUrl), - Audience: types.StringPointerValue(response.Data.SSOConfig.OidcAudience), - JWTEmailKey: types.StringPointerValue(response.Data.SSOConfig.JwtEmailKey), - JWTRolesKey: types.StringPointerValue(response.Data.SSOConfig.JwtRolesKey), - JWTFirstNameKey: types.StringPointerValue(response.Data.SSOConfig.JwtFirstNameKey), - JWTLastNameKey: types.StringPointerValue(response.Data.SSOConfig.JwtLastNameKey), - TriggerLoginAutomatically: types.BoolPointerValue(response.Data.SSOConfig.TriggerLoginAutomatically), - JITEnabled: types.BoolPointerValue(response.Data.SSOConfig.JitEnabled), - } - oidcConfig.ClientSecret = getSecretValue( - ctx, - &resp.State, - oidcConfig.EncryptedClientSecret, - path.Root("oidc").AtName("client_secret"), - path.Root("oidc").AtName("encrypted_client_secret"), - &resp.Diagnostics) - if resp.Diagnostics.HasError() { + if !r.processOIDCConfig(ctx, response.Data.GoogleOIDC, &state, resp) { return } - - if response.Data.SSOConfig.RolesMapping != nil { - tflog.Info(ctx, "Roles mapping detected"+*response.Data.SSOConfig.RolesMapping) - roleMapTuples := strings.Split(*response.Data.SSOConfig.RolesMapping, ",") - rolesMapping := make(map[string]types.String, len(roleMapTuples)) - for _, roleMapping := range roleMapTuples { - roleMappingParts := strings.Split(roleMapping, "->") - if len(roleMappingParts) != 2 { - tflog.Warn(ctx, "Invalid role mapping: "+roleMapping) - continue - } - rolesMapping[strings.TrimSpace(roleMappingParts[0])] = types.StringValue(strings.TrimSpace(roleMappingParts[1])) - } - oidcConfig.RolesMapping, diags = types.MapValueFrom(ctx, types.StringType, rolesMapping) - resp.Diagnostics.Append(diags...) - } else { - oidcConfig.RolesMapping = types.MapNull(types.StringType) - } - if response.Data.SSOConfig.RestrictedDomain != nil { - restrictedDomains := strings.Split(*response.Data.SSOConfig.RestrictedDomain, ",") - oidcConfig.RestrictedDomains, diags = types.ListValueFrom(ctx, types.StringType, restrictedDomains) - resp.Diagnostics.Append(diags...) - } else { - oidcConfig.RestrictedDomains = types.ListNull(types.StringType) - } - - oidcConfigObject, diags := types.ObjectValueFrom(ctx, oidcConfig.attributeTypes(), oidcConfig) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { + case response.Data.GoogleSAML != nil: + disableEmailPasswordLogin = response.Data.GoogleSAML.DisableEmailPasswordLogin + if !r.processGoogleConfig(ctx, &api.Google{ + GoogleClientId: response.Data.GoogleSAML.GoogleClientId, + GoogleClientSecret: response.Data.GoogleSAML.GoogleClientSecret, + DisableEmailPasswordLogin: response.Data.GoogleSAML.DisableEmailPasswordLogin, + }, &state, resp) { return } - state.OIDC = oidcConfigObject - } - if response.Data.SSOConfig.ConfigType == "saml" || response.Data.SSOConfig.ConfigType == "google & saml" { - samlConfig := samlConfigModel{ - IDPMetadataXML: types.StringPointerValue(response.Data.SSOConfig.IdpMetadataXml), - FirstNameAttribute: types.StringPointerValue(response.Data.SSOConfig.SamlFirstNameAttribute), - LastNameAttribute: types.StringPointerValue(response.Data.SSOConfig.SamlLastNameAttribute), - GroupsAttribute: types.StringPointerValue(response.Data.SSOConfig.SamlGroupsAttribute), - SyncGroupClaims: types.BoolPointerValue(response.Data.SSOConfig.SamlSyncGroupClaims), - LDAPSyncGroupClaims: types.BoolPointerValue(response.Data.SSOConfig.LdapSyncGroupClaims), - JITEnabled: types.BoolPointerValue(response.Data.SSOConfig.JitEnabled), - TriggerLoginAutomatically: types.BoolPointerValue(response.Data.SSOConfig.TriggerLoginAutomatically), - } - if response.Data.SSOConfig.LdapRoleMapping != nil { - rolesMapping := parseLdapRolesMappingValue(ctx, *response.Data.SSOConfig.LdapRoleMapping) - rolesMappingTF := make(map[string]types.List, len(rolesMapping)) - for key, value := range rolesMapping { - rolesMappingTF[key], diags = types.ListValueFrom(ctx, types.StringType, value) - resp.Diagnostics.Append(diags...) - } - samlConfig.RolesMapping, diags = types.MapValueFrom(ctx, types.ListType{ElemType: types.StringType}, rolesMappingTF) - resp.Diagnostics.Append(diags...) - } else { - samlConfig.RolesMapping = types.MapNull(types.ListType{ElemType: types.StringType}) - } - if response.Data.SSOConfig.RestrictedDomain != nil { - restrictedDomains := strings.Split(*response.Data.SSOConfig.RestrictedDomain, ",") - samlConfig.RestrictedDomains, diags = types.ListValueFrom(ctx, types.StringType, restrictedDomains) - resp.Diagnostics.Append(diags...) - } else { - samlConfig.RestrictedDomains = types.ListNull(types.StringType) + if !r.processSAMLConfigFromGoogleSAML(ctx, response.Data.GoogleSAML, &state, resp) { + return } - if isLdapConfigPresent(response.Data.SSOConfig) { - ldapConfig := ldapConfigModel{ - ServerURL: types.StringPointerValue(response.Data.SSOConfig.LdapServerUrl), - BaseDomainComponents: types.StringPointerValue(response.Data.SSOConfig.LdapBaseDomainComponents), - ServerName: types.StringPointerValue(response.Data.SSOConfig.LdapServerName), - EncryptedServerKey: types.StringPointerValue(response.Data.SSOConfig.LdapServerKey), - EncryptedServerCertificate: types.StringPointerValue(response.Data.SSOConfig.LdapServerCertificate), - } - ldapConfig.ServerKey = getSecretValue( - ctx, - &resp.State, - ldapConfig.EncryptedServerKey, - path.Root("saml").AtName("ldap_config").AtName("server_key"), - path.Root("saml").AtName("ldap_config").AtName("encrypted_server_key"), - &resp.Diagnostics) - if resp.Diagnostics.HasError() { - return - } - ldapConfig.ServerCertificate = getSecretValue( - ctx, - &resp.State, - ldapConfig.EncryptedServerCertificate, - path.Root("saml").AtName("ldap_config").AtName("server_certificate"), - path.Root("saml").AtName("ldap_config").AtName("encrypted_server_certificate"), - &resp.Diagnostics) - if resp.Diagnostics.HasError() { - return - } - - ldapConfigObject, diags := types.ObjectValueFrom(ctx, ldapConfig.attributeTypes(), ldapConfig) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - samlConfig.LDAPConfig = ldapConfigObject - } else { - samlConfig.LDAPConfig = types.ObjectNull(ldapConfigModel{}.attributeTypes()) + case response.Data.OIDC != nil: + disableEmailPasswordLogin = response.Data.OIDC.DisableEmailPasswordLogin + if !r.processStandaloneOIDCConfig(ctx, response.Data.OIDC, &state, resp) { + return } - samlConfigObject, diags := types.ObjectValueFrom(ctx, samlConfig.attributeTypes(), samlConfig) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { + case response.Data.SAML != nil: + disableEmailPasswordLogin = response.Data.SAML.DisableEmailPasswordLogin + if !r.processStandaloneSAMLConfig(ctx, response.Data.SAML, &state, resp) { return } - state.SAML = samlConfigObject } + state.DisableEmailPasswordLogin = types.BoolValue(disableEmailPasswordLogin) diags = resp.State.Set(ctx, &state) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { diff --git a/internal/sdk/README.md b/internal/sdk/README.md index 9eaa069..a89e3d4 100644 --- a/internal/sdk/README.md +++ b/internal/sdk/README.md @@ -30,13 +30,50 @@ NOTE: To make the client work with our API, I had to manually update `openAPISpe One of these is for the imprecise conversion of zod discriminated unions (used internally) to openapi - instead of `oneOf` schemas, `anyOf` is more accurate for nested object types. +### Known OpenAPI Spec Corrections + +#### Bitbucket Source Control Configuration +The OpenAPI spec incorrectly marks the `type` field as required for Bitbucket configurations (both `AppPassword` and `Token` variants). In practice, the Retool API does not accept this field for Bitbucket configs and returns a 400 error if it's included. The `type` field has been removed from the `required` arrays for all Bitbucket configuration schemas (12 locations across GET/POST/PUT endpoints for both request and response schemas). + +#### Permissions OneOf → AnyOf (Fixed) +The permissions API endpoints (`/permissions/listObjects`, `/permissions/grant`, `/permissions/revoke`) return schemas where all variants have identical structure (type, id, access_level) but different enum values for the `type` field (folder, app, resource, resource_configuration). + +**The Problem**: Using `oneOf` causes the OpenAPI Generator to create unmarshaling code that requires exactly one schema to match. Since all variants have the same fields, multiple schemas match, causing "data matches more than one schema in oneOf" errors. + +**The Solution**: Changed from `oneOf` to `anyOf` in the OpenAPI spec (lines 16892, 17236, 17570). With `anyOf`, the generator allows multiple matches, which resolves the unmarshaling issue. The spec change includes discriminators on the `type` field, though the generator doesn't fully utilize them for Go - it falls back to trying all variants, which works fine with `anyOf`. + +**Additional Fix**: The OpenAPI Generator failed to create separate type files for the grant and revoke endpoint array items (`PermissionsGrantPost200ResponseDataInner` and `PermissionsRevokePost200ResponseDataInner`). Type aliases were manually created to point these to `PermissionsListObjectsPost200ResponseDataInner` since all three endpoints use identical structures. + ## Generate client library code Just run `go generate` in this folder. All generated code lives in the `api` folder. Command line parameters for `openapi-generator` invocation are controlled via `generate.go` file. +### Post-Generation Fixes +The OpenAPI Generator has some bugs that affect the generated Go code. We automatically fix these issues after generation using `fix_generated_code.sh`, which is run automatically by the `go generate` command. + +#### Bug 1: Pointer-to-Pointer Marshaling +The generator creates `json.Marshal(&src.Field)` where `Field` is already a pointer type (e.g., `*GitHub`). This causes Go's JSON marshaler to use reflection and expose internal struct field names instead of calling the custom `MarshalJSON` method. The fix changes these to `json.Marshal(src.Field)`. + +#### Bug 2: Value Receiver for MarshalJSON +The generator creates `MarshalJSON` methods with pointer receivers (`func (src *Type) MarshalJSON()`), but when these structs are used as value types in parent structs (e.g., `Config SourceControlConfigPutRequestConfig` in `SourceControlConfigPutRequest`), Go won't call the pointer receiver method. The fix changes all `MarshalJSON` methods to use value receivers (`func (src Type) MarshalJSON()`). + ## Test client library There's a simple executable in `client` folder that makes an API request to localhost:3000 and prints out the response. You can run it as follows: ``` RETOOL_ACCESS_TOKEN= go run client/main.go ``` + + +## Notes from updating to 2.9.0 + +LLMs have sped this up a fair bit. With Sonnet 4.5 in cursor I was able to add a copy of the original spec this was based on (2.4.0), point it at the modified spec in this repo, and add the spec we were targeting (2.9.0). The following propmt yielded really good results: +``` +@openAPISpecv2.4.0.json was updated to @openAPISpec.json to support terraform client autogeneration as described in @README.md + +Understand those changes, and attempt to update autogeneration to v2.9.0 as described in @openApiSpecv2.9.json + +You can understand what commands to run to build the library, and get more context on how the original file was modified in the README file +``` + +Following that a cursor agent was able to make remarkable progress on updating the provider code to respect this, including tests. \ No newline at end of file diff --git a/internal/sdk/api/.openapi-generator-ignore b/internal/sdk/api/.openapi-generator-ignore index 0d17839..6c60eb3 100644 --- a/internal/sdk/api/.openapi-generator-ignore +++ b/internal/sdk/api/.openapi-generator-ignore @@ -24,4 +24,9 @@ .travis.yml git_push.sh -test/** \ No newline at end of file +test/** + +# Type aliases manually created for permissions endpoints +# The generator doesn't create these for grant/revoke endpoints, only for listObjects +model__permissions_grant_post_200_response_data_inner.go +model__permissions_revoke_post_200_response_data_inner.go \ No newline at end of file diff --git a/internal/sdk/api/.openapi-generator/FILES b/internal/sdk/api/.openapi-generator/FILES index 2010299..f2bbdcc 100644 --- a/internal/sdk/api/.openapi-generator/FILES +++ b/internal/sdk/api/.openapi-generator/FILES @@ -2,14 +2,17 @@ README.md api/openapi.yaml api_access_request.go +api_access_tokens.go api_app_themes.go api_apps.go api_configuration_variables.go api_custom_component_library.go -api_environment.go +api_environments.go api_folders.go api_groups.go +api_info.go api_observability.go +api_organization.go api_permissions.go api_resource_configurations.go api_resources.go @@ -19,9 +22,14 @@ api_sso.go api_usage.go api_user_attributes.go api_user_invite.go +api_user_tasks.go api_users.go +api_workflow_run.go +api_workflows.go client.go configuration.go +docs/AWSCodeCommit.md +docs/AWSCodeCommitConfig.md docs/AccessRequest.md docs/AccessRequestAPI.md docs/AccessRequestsAccessRequestIdGet200Response.md @@ -29,20 +37,38 @@ docs/AccessRequestsAccessRequestIdPatch200Response.md docs/AccessRequestsAccessRequestIdPatchRequest.md docs/AccessRequestsGet200Response.md docs/AccessRequestsGet200ResponseDataInner.md +docs/AccessToken.md +docs/AccessTokensAPI.md +docs/AccessTokensAccessTokenIdGet200Response.md +docs/AccessTokensAccessTokenIdGet200ResponseData.md +docs/AccessTokensGet200Response.md +docs/AccessTokensGet200ResponseDataInner.md +docs/AccessTokensPost200Response.md +docs/AccessTokensPost200ResponseData.md +docs/AccessTokensPostRequest.md docs/AddOperation.md +docs/AnalyticsIntegrationsSettings.md docs/App.md docs/AppSummary.md docs/AppTheme.md docs/AppThemesAPI.md +docs/AppThemesGet200Response.md +docs/AppThemesGet200ResponseDataInner.md docs/AppThemesIdGet200Response.md docs/AppThemesIdGet200ResponseData.md docs/AppThemesPut200Response.md docs/AppThemesPut200ResponseData.md -docs/AppThemesPutRequest.md docs/AppsAPI.md docs/AppsAppIdGet200Response.md docs/AppsAppIdGet200ResponseData.md +docs/AppsCloneAppPostRequest.md docs/AppsGet200Response.md +docs/AzureRepos.md +docs/AzureReposConfig.md +docs/Bitbucket.md +docs/BitbucketConfig.md +docs/BitbucketConfigAnyOf.md +docs/BitbucketConfigAnyOf1.md docs/ConfigurationVariable.md docs/ConfigurationVariablesAPI.md docs/ConfigurationVariablesGet200Response.md @@ -50,6 +76,7 @@ docs/ConfigurationVariablesGet200ResponseDataInner.md docs/ConfigurationVariablesGet200ResponseDataInnerValuesInner.md docs/ConfigurationVariablesPost200Response.md docs/ConfigurationVariablesPostRequest.md +docs/CopyOperation.md docs/CustomComponentLibrariesGet200Response.md docs/CustomComponentLibrariesLibraryIdGet200Response.md docs/CustomComponentLibrariesLibraryIdGet200ResponseData.md @@ -65,28 +92,39 @@ docs/CustomComponentLibraryAPI.md docs/CustomComponentLibraryRevision.md docs/CustomComponentLibraryRevisionFile.md docs/Environment.md -docs/EnvironmentAPI.md +docs/EnvironmentsAPI.md docs/EnvironmentsEnvironmentIdGet200Response.md docs/EnvironmentsEnvironmentIdGet200ResponseData.md +docs/EnvironmentsEnvironmentIdPatch200Response.md +docs/EnvironmentsEnvironmentIdPatch200ResponseData.md +docs/EnvironmentsEnvironmentIdPatchRequest.md docs/EnvironmentsGet200Response.md +docs/EnvironmentsPost200Response.md +docs/EnvironmentsPost200ResponseData.md +docs/EnvironmentsPostRequest.md docs/Folder.md docs/FoldersAPI.md -docs/FoldersFolderIdDeleteRequest.md docs/FoldersFolderIdGet200Response.md docs/FoldersFolderIdGet200ResponseData.md docs/FoldersFolderIdPatch200Response.md docs/FoldersFolderIdPatch200ResponseData.md docs/FoldersFolderIdPatchRequest.md docs/FoldersFolderIdPatchRequestOperationsInner.md -docs/FoldersFolderIdPatchRequestOperationsInnerAnyOf.md -docs/FoldersFolderIdPatchRequestOperationsInnerAnyOf1.md -docs/FoldersFolderIdPatchRequestOperationsInnerAnyOf2.md docs/FoldersGet200Response.md docs/FoldersGet200ResponseDataInner.md docs/FoldersPost200Response.md docs/FoldersPost200ResponseData.md docs/FoldersPost409Response.md docs/FoldersPostRequest.md +docs/GitHub.md +docs/GitHubConfig.md +docs/GitHubConfigAnyOf.md +docs/GitHubConfigAnyOf1.md +docs/GitLab.md +docs/GitLabConfig.md +docs/Google.md +docs/GoogleOIDC.md +docs/GoogleSAML.md docs/Group.md docs/GroupsAPI.md docs/GroupsGet200Response.md @@ -97,7 +135,6 @@ docs/GroupsGroupIdGet200ResponseDataMembersInner.md docs/GroupsGroupIdGet200ResponseDataUserInvitesInner.md docs/GroupsGroupIdMembersPostRequest.md docs/GroupsGroupIdPatchRequest.md -docs/GroupsGroupIdPatchRequestOperationsInner.md docs/GroupsGroupIdPut200Response.md docs/GroupsGroupIdPut200ResponseData.md docs/GroupsGroupIdPutRequest.md @@ -106,8 +143,15 @@ docs/GroupsGroupIdUserInvitesPostRequest.md docs/GroupsPost200Response.md docs/GroupsPost200ResponseData.md docs/GroupsPostRequest.md +docs/InfoAPI.md +docs/InfoIpAllowlistGet200Response.md +docs/InfoIpAllowlistGet200ResponseData.md +docs/InfoIpAllowlistGet200ResponseDataIpAddresses.md +docs/IpAllowlist.md +docs/MoveOperation.md docs/MySQLOptions.md docs/MySQLOptionsDatabaseOptions.md +docs/OIDC.md docs/ObservabilityAPI.md docs/ObservabilityConfigConfigIdPut200Response.md docs/ObservabilityConfigConfigIdPut200ResponseData.md @@ -123,25 +167,42 @@ docs/ObservabilityConfigPostRequest.md docs/ObservabilityConfiguration.md docs/ObservabilityProviderProviderTestPost200Response.md docs/ObservabilityProviderProviderTestPost200ResponseData.md -docs/ObservabilityProviderProviderTestPost200ResponseDataAnyOf.md -docs/ObservabilityProviderProviderTestPost200ResponseDataAnyOf1.md +docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf.md +docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf1.md docs/ObservabilityProviderProviderTestPostProviderParameter.md -docs/Organization.md +docs/OrganizationAPI.md +docs/OrganizationAiSettingsGet200Response.md +docs/OrganizationAiSettingsGet200ResponseData.md +docs/OrganizationAiSettingsPut200Response.md +docs/OrganizationAnalyticsIntegrationsGet200Response.md +docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInner.md +docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf.md +docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1.md +docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2.md +docs/OrganizationGet200Response.md +docs/OrganizationGet200ResponseData.md +docs/OrganizationPatch200Response.md +docs/OrganizationPatch200ResponseData.md +docs/OrganizationPatchRequest.md +docs/OrganizationSettings.md docs/PermissionsAPI.md +docs/PermissionsAccessListObjectTypeObjectIdGet200Response.md +docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseData.md +docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner.md +docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources.md +docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner.md +docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited.md +docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject.md docs/PermissionsGrantPostRequest.md docs/PermissionsGrantPostRequestObject.md -docs/PermissionsGrantPostRequestObjectOneOf.md docs/PermissionsListObjectsPost200Response.md docs/PermissionsListObjectsPost200ResponseDataInner.md -docs/PermissionsListObjectsPost200ResponseDataInnerOneOf.md +docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf.md +docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf1.md +docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf2.md +docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf3.md docs/PermissionsListObjectsPostRequest.md docs/PermissionsListObjectsPostRequestSubject.md -docs/PermissionsListObjectsPostRequestSubjectOneOf.md -docs/PermissionsListObjectsPostRequestSubjectOneOf1.md -docs/PermissionsRevokePost200Response.md -docs/PermissionsRevokePost200ResponseDataInner.md -docs/PermissionsRevokePost200ResponseDataInnerAnyOf.md -docs/PermissionsRevokePost200ResponseDataInnerAnyOf1.md docs/PermissionsRevokePostRequest.md docs/PostgresOptions.md docs/PostgresOptionsDatabaseOptions.md @@ -158,18 +219,26 @@ docs/Resource.md docs/ResourceConfiguration.md docs/ResourceConfigurationsAPI.md docs/ResourceConfigurationsConfigurationIdGet200Response.md +docs/ResourceConfigurationsConfigurationIdPatch200Response.md +docs/ResourceConfigurationsConfigurationIdPatch200ResponseData.md +docs/ResourceConfigurationsConfigurationIdPatchRequest.md docs/ResourceConfigurationsGet200Response.md docs/ResourceConfigurationsGet200ResponseDataInner.md docs/ResourceConfigurationsGet200ResponseDataInnerEnvironment.md +docs/ResourceConfigurationsPost200Response.md +docs/ResourceConfigurationsPost200ResponseData.md +docs/ResourceConfigurationsPostRequest.md docs/ResourcesAPI.md docs/ResourcesGet200Response.md docs/ResourcesGet200ResponseDataInner.md -docs/ResourcesGet200ResponseDataInnerId.md docs/ResourcesPost200Response.md docs/ResourcesPost200ResponseData.md docs/ResourcesPostRequest.md docs/ResourcesPostRequestOptions.md docs/ResourcesResourceIdGet200Response.md +docs/ResourcesResourceIdPatch200Response.md +docs/ResourcesResourceIdPatch200ResponseData.md +docs/ResourcesResourceIdPatchRequest.md docs/RestAPIOptions.md docs/RestAPIOptionsAuthenticationOptions.md docs/RestAPIOptionsAuthenticationOptionsAnyOf.md @@ -180,8 +249,15 @@ docs/RestAPIOptionsAuthenticationOptionsAnyOf4.md docs/RestAPIOptionsAuthenticationOptionsAnyOf4Oauth1SignatureMethod.md docs/RestAPIOptionsAuthenticationOptionsAnyOf5.md docs/RestAPIOptionsAuthenticationOptionsAnyOf6.md +docs/Role.md +docs/RolePermissionsRoleGrantsPostRequest.md +docs/RolePermissionsRolesGet200Response.md +docs/RolePermissionsRolesGet200ResponseDataInner.md +docs/RolePermissionsRolesPost201Response.md +docs/RolePermissionsRolesPostRequest.md +docs/RolePermissionsRolesRoleIdPatchRequest.md +docs/SAML.md docs/SSOAPI.md -docs/SSOConfig.md docs/SnowflakeOptions.md docs/SnowflakeOptionsAuthenticationOptions.md docs/SnowflakeOptionsAuthenticationOptionsAnyOf.md @@ -191,18 +267,6 @@ docs/SnowflakeOptionsDatabaseOptions.md docs/SourceControlAPI.md docs/SourceControlConfigGet200Response.md docs/SourceControlConfigGet200ResponseData.md -docs/SourceControlConfigGet200ResponseDataOneOf.md -docs/SourceControlConfigGet200ResponseDataOneOf1.md -docs/SourceControlConfigGet200ResponseDataOneOf1Config.md -docs/SourceControlConfigGet200ResponseDataOneOf2.md -docs/SourceControlConfigGet200ResponseDataOneOf2Config.md -docs/SourceControlConfigGet200ResponseDataOneOf3.md -docs/SourceControlConfigGet200ResponseDataOneOf3Config.md -docs/SourceControlConfigGet200ResponseDataOneOf4.md -docs/SourceControlConfigGet200ResponseDataOneOf4Config.md -docs/SourceControlConfigGet200ResponseDataOneOfConfig.md -docs/SourceControlConfigGet200ResponseDataOneOfConfigOneOf.md -docs/SourceControlConfigGet200ResponseDataOneOfConfigOneOf1.md docs/SourceControlConfigPost200Response.md docs/SourceControlConfigPost200ResponseData.md docs/SourceControlConfigPut200Response.md @@ -210,10 +274,26 @@ docs/SourceControlConfigPut200ResponseData.md docs/SourceControlConfigPutRequest.md docs/SourceControlConfigPutRequestConfig.md docs/SourceControlConfiguration.md -docs/SourceControlConfigurationAnyOf.md -docs/SourceControlConfigurationAnyOfConfig.md docs/SourceControlDeployPost200Response.md docs/SourceControlDeployPost200ResponseData.md +docs/SourceControlManifestsGet200Response.md +docs/SourceControlManifestsGet200ResponseData.md +docs/SourceControlManifestsGet200ResponseDataManifestsInner.md +docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md +docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease.md +docs/SourceControlManifestsManifestNameAppsAppUuidPutRequest.md +docs/SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease.md +docs/SourceControlManifestsManifestNameDeletePostRequest.md +docs/SourceControlManifestsManifestNameGet200Response.md +docs/SourceControlManifestsManifestNameGet200ResponseData.md +docs/SourceControlManifestsManifestNameGet200ResponseDataManifest.md +docs/SourceControlManifestsManifestNamePut200Response.md +docs/SourceControlManifestsManifestNamePut200ResponseData.md +docs/SourceControlManifestsManifestNamePutRequest.md +docs/SourceControlManifestsManifestNamePutRequestManifest.md +docs/SourceControlReleasesAppsAppUuidGet200Response.md +docs/SourceControlReleasesAppsAppUuidGet200ResponseDataInner.md +docs/SourceControlReleasesAppsAppUuidPostRequest.md docs/SourceControlSettings.md docs/SourceControlSettingsGet200Response.md docs/SourceControlSettingsGet200ResponseData.md @@ -254,14 +334,11 @@ docs/SsoConfigPost200Response.md docs/SsoConfigPost200ResponseData.md docs/SsoConfigPostRequest.md docs/SsoConfigPostRequestData.md -docs/SsoConfigPostRequestDataOneOf.md -docs/SsoConfigPostRequestDataOneOf1.md -docs/SsoConfigPostRequestDataOneOf2.md -docs/SsoConfigPostRequestDataOneOf3.md -docs/SsoConfigPostRequestDataOneOf4.md docs/SsoConfiguration.md +docs/TestOperation.md docs/Usage.md docs/UsageAPI.md +docs/UsageAnalyticsOrganization.md docs/UsageAppDetailsGet200Response.md docs/UsageAppDetailsGet200ResponseData.md docs/UsageAppDetailsGet200ResponseDataOverallSummaryInner.md @@ -286,6 +363,12 @@ docs/UserAttributes.md docs/UserAttributesAPI.md docs/UserAttributesGet200Response.md docs/UserAttributesGet200ResponseDataInner.md +docs/UserAttributesIdPatch200Response.md +docs/UserAttributesIdPatch200ResponseData.md +docs/UserAttributesIdPatchRequest.md +docs/UserAttributesPost200Response.md +docs/UserAttributesPost200ResponseData.md +docs/UserAttributesPostRequest.md docs/UserInvite.md docs/UserInviteAPI.md docs/UserInvitesGet200Response.md @@ -298,6 +381,20 @@ docs/UserInvitesUserInviteIdUserAttributesAttributeNameDelete200ResponseData.md docs/UserInvitesUserInviteIdUserAttributesPost200Response.md docs/UserInvitesUserInviteIdUserAttributesPost200ResponseData.md docs/UserInvitesUserInviteIdUserAttributesPostRequest.md +docs/UserTask.md +docs/UserTasksAPI.md +docs/UserTasksGet200Response.md +docs/UserTasksGet200ResponseDataInner.md +docs/UserTasksGet200ResponseDataInnerAssigneesInner.md +docs/UserTasksGetAssignedToUsersParameter.md +docs/UserTasksTaskIdCancelPatchRequest.md +docs/UserTasksTaskIdReassignPatchRequest.md +docs/UserTasksTaskIdReassignPatchRequestAssigneesInner.md +docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf.md +docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1.md +docs/UserTasksTaskIdSubmitPatch200Response.md +docs/UserTasksTaskIdSubmitPatch200ResponseData.md +docs/UserTasksTaskIdSubmitPatchRequest.md docs/UsersAPI.md docs/UsersGet200Response.md docs/UsersPost200Response.md @@ -307,26 +404,41 @@ docs/UsersUserIdGet200Response.md docs/UsersUserIdGet200ResponseData.md docs/UsersUserIdPatchRequest.md docs/UsersUserIdPatchRequestOperationsInner.md -docs/UsersUserIdPatchRequestOperationsInnerAnyOf.md -docs/UsersUserIdPatchRequestOperationsInnerAnyOf1.md -docs/UsersUserIdPatchRequestOperationsInnerAnyOf2.md docs/UsersUserIdUserAttributesAttributeNameDelete200Response.md docs/UsersUserIdUserAttributesAttributeNameDelete200ResponseData.md docs/UsersUserIdUserAttributesPost200Response.md docs/UsersUserIdUserAttributesPost200ResponseData.md docs/UsersUserIdUserAttributesPostRequest.md +docs/Workflow.md +docs/WorkflowRunAPI.md +docs/WorkflowRunIdGet200Response.md +docs/WorkflowRunWithUserTask.md +docs/WorkflowsAPI.md +docs/WorkflowsGet200Response.md +docs/WorkflowsGet200ResponseDataInner.md +docs/WorkflowsGet403Response.md +docs/WorkflowsWorkflowIdGet200Response.md model__access_requests__access_request_id__get_200_response.go model__access_requests__access_request_id__patch_200_response.go model__access_requests__access_request_id__patch_request.go model__access_requests_get_200_response.go model__access_requests_get_200_response_data_inner.go +model__access_tokens__access_token_id_get_200_response.go +model__access_tokens__access_token_id_get_200_response_data.go +model__access_tokens_get_200_response.go +model__access_tokens_get_200_response_data_inner.go +model__access_tokens_post_200_response.go +model__access_tokens_post_200_response_data.go +model__access_tokens_post_request.go model__app_themes__id__get_200_response.go model__app_themes__id__get_200_response_data.go +model__app_themes_get_200_response.go +model__app_themes_get_200_response_data_inner.go model__app_themes_put_200_response.go model__app_themes_put_200_response_data.go -model__app_themes_put_request.go model__apps__app_id__get_200_response.go model__apps__app_id__get_200_response_data.go +model__apps_clone_app_post_request.go model__apps_get_200_response.go model__configuration_variables_get_200_response.go model__configuration_variables_get_200_response_data_inner.go @@ -345,17 +457,19 @@ model__custom_component_libraries_post_200_response.go model__custom_component_libraries_post_request.go model__environments__environment_id__get_200_response.go model__environments__environment_id__get_200_response_data.go +model__environments__environment_id__patch_200_response.go +model__environments__environment_id__patch_200_response_data.go +model__environments__environment_id__patch_request.go model__environments_get_200_response.go -model__folders__folder_id__delete_request.go +model__environments_post_200_response.go +model__environments_post_200_response_data.go +model__environments_post_request.go model__folders__folder_id__get_200_response.go model__folders__folder_id__get_200_response_data.go model__folders__folder_id__patch_200_response.go model__folders__folder_id__patch_200_response_data.go model__folders__folder_id__patch_request.go model__folders__folder_id__patch_request_operations_inner.go -model__folders__folder_id__patch_request_operations_inner_any_of.go -model__folders__folder_id__patch_request_operations_inner_any_of_1.go -model__folders__folder_id__patch_request_operations_inner_any_of_2.go model__folders_get_200_response.go model__folders_get_200_response_data_inner.go model__folders_post_200_response.go @@ -368,7 +482,6 @@ model__groups__group_id__get_200_response_data_members_inner.go model__groups__group_id__get_200_response_data_user_invites_inner.go model__groups__group_id__members_post_request.go model__groups__group_id__patch_request.go -model__groups__group_id__patch_request_operations_inner.go model__groups__group_id__put_200_response.go model__groups__group_id__put_200_response_data.go model__groups__group_id__put_request.go @@ -379,6 +492,9 @@ model__groups_get_200_response_data_inner.go model__groups_post_200_response.go model__groups_post_200_response_data.go model__groups_post_request.go +model__info_ip_allowlist_get_200_response.go +model__info_ip_allowlist_get_200_response_data.go +model__info_ip_allowlist_get_200_response_data_ip_addresses.go model__observability_config__config_id__put_200_response.go model__observability_config__config_id__put_200_response_data.go model__observability_config__config_id__put_request.go @@ -392,50 +508,68 @@ model__observability_config_post_200_response_data.go model__observability_config_post_request.go model__observability_provider__provider__test_post_200_response.go model__observability_provider__provider__test_post_200_response_data.go -model__observability_provider__provider__test_post_200_response_data_any_of.go -model__observability_provider__provider__test_post_200_response_data_any_of_1.go +model__observability_provider__provider__test_post_200_response_data_one_of.go +model__observability_provider__provider__test_post_200_response_data_one_of_1.go model__observability_provider__provider__test_post_provider_parameter.go +model__organization__get_200_response.go +model__organization__get_200_response_data.go +model__organization__patch_200_response.go +model__organization__patch_200_response_data.go +model__organization__patch_request.go +model__organization_ai_settings_get_200_response.go +model__organization_ai_settings_get_200_response_data.go +model__organization_ai_settings_put_200_response.go +model__organization_analytics_integrations_get_200_response.go +model__organization_analytics_integrations_get_200_response_data_inner.go +model__organization_analytics_integrations_get_200_response_data_inner_one_of.go +model__organization_analytics_integrations_get_200_response_data_inner_one_of_1.go +model__organization_analytics_integrations_get_200_response_data_inner_one_of_2.go +model__permissions_access_list__object_type___object_id__get_200_response.go +model__permissions_access_list__object_type___object_id__get_200_response_data.go +model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner.go +model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources.go +model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources_groups_inner.go +model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources_inherited.go +model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_subject.go model__permissions_grant_post_request.go model__permissions_grant_post_request_object.go -model__permissions_grant_post_request_object_one_of.go model__permissions_list_objects_post_200_response.go model__permissions_list_objects_post_200_response_data_inner.go -model__permissions_list_objects_post_200_response_data_inner_one_of.go +model__permissions_list_objects_post_200_response_data_inner_any_of.go +model__permissions_list_objects_post_200_response_data_inner_any_of_1.go +model__permissions_list_objects_post_200_response_data_inner_any_of_2.go +model__permissions_list_objects_post_200_response_data_inner_any_of_3.go model__permissions_list_objects_post_request.go model__permissions_list_objects_post_request_subject.go -model__permissions_list_objects_post_request_subject_one_of.go -model__permissions_list_objects_post_request_subject_one_of_1.go -model__permissions_revoke_post_200_response.go -model__permissions_revoke_post_200_response_data_inner.go -model__permissions_revoke_post_200_response_data_inner_any_of.go -model__permissions_revoke_post_200_response_data_inner_any_of_1.go model__permissions_revoke_post_request.go model__resource_configurations__configuration_id__get_200_response.go +model__resource_configurations__configuration_id__patch_200_response.go +model__resource_configurations__configuration_id__patch_200_response_data.go +model__resource_configurations__configuration_id__patch_request.go model__resource_configurations_get_200_response.go model__resource_configurations_get_200_response_data_inner.go model__resource_configurations_get_200_response_data_inner_environment.go +model__resource_configurations_post_200_response.go +model__resource_configurations_post_200_response_data.go +model__resource_configurations_post_request.go model__resources__resource_id__get_200_response.go +model__resources__resource_id__patch_200_response.go +model__resources__resource_id__patch_200_response_data.go +model__resources__resource_id__patch_request.go model__resources_get_200_response.go model__resources_get_200_response_data_inner.go -model__resources_get_200_response_data_inner_id.go model__resources_post_200_response.go model__resources_post_200_response_data.go model__resources_post_request.go model__resources_post_request_options.go +model__role_permissions_role_grants_post_request.go +model__role_permissions_roles__role_id__patch_request.go +model__role_permissions_roles_get_200_response.go +model__role_permissions_roles_get_200_response_data_inner.go +model__role_permissions_roles_post_201_response.go +model__role_permissions_roles_post_request.go model__source_control_config_get_200_response.go model__source_control_config_get_200_response_data.go -model__source_control_config_get_200_response_data_one_of.go -model__source_control_config_get_200_response_data_one_of_1.go -model__source_control_config_get_200_response_data_one_of_1_config.go -model__source_control_config_get_200_response_data_one_of_2.go -model__source_control_config_get_200_response_data_one_of_2_config.go -model__source_control_config_get_200_response_data_one_of_3.go -model__source_control_config_get_200_response_data_one_of_3_config.go -model__source_control_config_get_200_response_data_one_of_4.go -model__source_control_config_get_200_response_data_one_of_4_config.go -model__source_control_config_get_200_response_data_one_of_config.go -model__source_control_config_get_200_response_data_one_of_config_one_of.go -model__source_control_config_get_200_response_data_one_of_config_one_of_1.go model__source_control_config_post_200_response.go model__source_control_config_post_200_response_data.go model__source_control_config_put_200_response.go @@ -444,6 +578,24 @@ model__source_control_config_put_request.go model__source_control_config_put_request_config.go model__source_control_deploy_post_200_response.go model__source_control_deploy_post_200_response_data.go +model__source_control_manifests__manifest_name__apps__app_uuid__put_request.go +model__source_control_manifests__manifest_name__apps__app_uuid__put_request_release.go +model__source_control_manifests__manifest_name__delete_post_request.go +model__source_control_manifests__manifest_name__get_200_response.go +model__source_control_manifests__manifest_name__get_200_response_data.go +model__source_control_manifests__manifest_name__get_200_response_data_manifest.go +model__source_control_manifests__manifest_name__put_200_response.go +model__source_control_manifests__manifest_name__put_200_response_data.go +model__source_control_manifests__manifest_name__put_request.go +model__source_control_manifests__manifest_name__put_request_manifest.go +model__source_control_manifests_get_200_response.go +model__source_control_manifests_get_200_response_data.go +model__source_control_manifests_get_200_response_data_manifests_inner.go +model__source_control_manifests_get_200_response_data_manifests_inner_apps_inner.go +model__source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release.go +model__source_control_releases_apps__app_uuid__get_200_response.go +model__source_control_releases_apps__app_uuid__get_200_response_data_inner.go +model__source_control_releases_apps__app_uuid__post_request.go model__source_control_settings_get_200_response.go model__source_control_settings_get_200_response_data.go model__source_control_settings_put_200_response.go @@ -481,11 +633,6 @@ model__sso_config_post_200_response.go model__sso_config_post_200_response_data.go model__sso_config_post_request.go model__sso_config_post_request_data.go -model__sso_config_post_request_data_one_of.go -model__sso_config_post_request_data_one_of_1.go -model__sso_config_post_request_data_one_of_2.go -model__sso_config_post_request_data_one_of_3.go -model__sso_config_post_request_data_one_of_4.go model__usage_app_details_get_200_response.go model__usage_app_details_get_200_response_data.go model__usage_app_details_get_200_response_data_overall_summary_inner.go @@ -505,8 +652,14 @@ model__usage_user_details_get_200_response_data_overall_summary_inner.go model__usage_user_details_get_200_response_data_viewer_summary_inner.go model__usage_user_summary_get_200_response.go model__usage_user_summary_get_200_response_data_inner.go +model__user_attributes__id__patch_200_response.go +model__user_attributes__id__patch_200_response_data.go +model__user_attributes__id__patch_request.go model__user_attributes_get_200_response.go model__user_attributes_get_200_response_data_inner.go +model__user_attributes_post_200_response.go +model__user_attributes_post_200_response_data.go +model__user_attributes_post_request.go model__user_invites__user_invite_id__get_200_response.go model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response.go model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response_data.go @@ -517,13 +670,22 @@ model__user_invites_get_200_response.go model__user_invites_post_200_response.go model__user_invites_post_200_response_data.go model__user_invites_post_request.go +model__user_tasks__task_id__cancel_patch_request.go +model__user_tasks__task_id__reassign_patch_request.go +model__user_tasks__task_id__reassign_patch_request_assignees_inner.go +model__user_tasks__task_id__reassign_patch_request_assignees_inner_any_of.go +model__user_tasks__task_id__reassign_patch_request_assignees_inner_any_of_1.go +model__user_tasks__task_id__submit_patch_200_response.go +model__user_tasks__task_id__submit_patch_200_response_data.go +model__user_tasks__task_id__submit_patch_request.go +model__user_tasks_get_200_response.go +model__user_tasks_get_200_response_data_inner.go +model__user_tasks_get_200_response_data_inner_assignees_inner.go +model__user_tasks_get_assigned_to_users_parameter.go model__users__user_id__get_200_response.go model__users__user_id__get_200_response_data.go model__users__user_id__patch_request.go model__users__user_id__patch_request_operations_inner.go -model__users__user_id__patch_request_operations_inner_any_of.go -model__users__user_id__patch_request_operations_inner_any_of_1.go -model__users__user_id__patch_request_operations_inner_any_of_2.go model__users__user_id__user_attributes__attribute_name__delete_200_response.go model__users__user_id__user_attributes__attribute_name__delete_200_response_data.go model__users__user_id__user_attributes_post_200_response.go @@ -533,22 +695,50 @@ model__users_get_200_response.go model__users_post_200_response.go model__users_post_200_response_data.go model__users_post_request.go +model__workflow_run__id__get_200_response.go +model__workflows__workflow_id__get_200_response.go +model__workflows_get_200_response.go +model__workflows_get_200_response_data_inner.go +model__workflows_get_403_response.go model_access_request.go +model_access_token.go model_add_operation.go +model_analytics_integrations_settings.go model_app.go model_app_summary.go model_app_theme.go +model_aws_code_commit.go +model_aws_code_commit_config.go +model_azure_repos.go +model_azure_repos_config.go +model_bitbucket.go +model_bitbucket_config.go +model_bitbucket_config_any_of.go +model_bitbucket_config_any_of_1.go model_configuration_variable.go +model_copy_operation.go model_custom_component_library.go model_custom_component_library_revision.go model_custom_component_library_revision_file.go model_environment.go model_folder.go +model_git_hub.go +model_git_hub_config.go +model_git_hub_config_any_of.go +model_git_hub_config_any_of_1.go +model_git_lab.go +model_git_lab_config.go +model_google.go +model_google___oidc.go +model_google___saml.go model_group.go +model_ip_allowlist.go +model_move_operation.go model_my_sql_options.go model_my_sql_options_database_options.go model_observability_configuration.go -model_organization.go +model_oidc.go +model_organization_settings.go model_postgres_options.go model_postgres_options_database_options.go model_postgres_options_database_options_any_of.go @@ -572,6 +762,8 @@ model_rest_api_options_authentication_options_any_of_4.go model_rest_api_options_authentication_options_any_of_4_oauth1_signature_method.go model_rest_api_options_authentication_options_any_of_5.go model_rest_api_options_authentication_options_any_of_6.go +model_role.go +model_saml.go model_snowflake_options.go model_snowflake_options_authentication_options.go model_snowflake_options_authentication_options_any_of.go @@ -579,15 +771,17 @@ model_snowflake_options_authentication_options_any_of_1.go model_snowflake_options_authentication_options_any_of_2.go model_snowflake_options_database_options.go model_source_control_configuration.go -model_source_control_configuration_any_of.go -model_source_control_configuration_any_of_config.go model_source_control_settings.go model_space.go -model_sso_config.go model_sso_configuration.go +model_test_operation.go model_usage.go +model_usage_analytics_organization.go model_user.go model_user_attributes.go model_user_invite.go +model_user_task.go +model_workflow.go +model_workflow_run_with_user_task.go response.go utils.go diff --git a/internal/sdk/api/README.md b/internal/sdk/api/README.md index 3064832..a1e6fdb 100644 --- a/internal/sdk/api/README.md +++ b/internal/sdk/api/README.md @@ -5,7 +5,7 @@ Go to Settings > API to get started. Once you generate an API token, use bearer ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 2.4.0 +- API version: 2.9.0 - Package version: 1.0.0 - Generator version: 7.6.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -81,12 +81,17 @@ Class | Method | HTTP request | Description *AccessRequestAPI* | [**AccessRequestsAccessRequestIdGet**](docs/AccessRequestAPI.md#accessrequestsaccessrequestidget) | **Get** /access_requests/{accessRequestId} | Get access request *AccessRequestAPI* | [**AccessRequestsAccessRequestIdPatch**](docs/AccessRequestAPI.md#accessrequestsaccessrequestidpatch) | **Patch** /access_requests/{accessRequestId} | Approve or deny an access request *AccessRequestAPI* | [**AccessRequestsGet**](docs/AccessRequestAPI.md#accessrequestsget) | **Get** /access_requests | Get organization access requests +*AccessTokensAPI* | [**AccessTokensAccessTokenIdGet**](docs/AccessTokensAPI.md#accesstokensaccesstokenidget) | **Get** /access_tokens/:accessTokenId | Get a single access token +*AccessTokensAPI* | [**AccessTokensGet**](docs/AccessTokensAPI.md#accesstokensget) | **Get** /access_tokens | List access tokens +*AccessTokensAPI* | [**AccessTokensPost**](docs/AccessTokensAPI.md#accesstokenspost) | **Post** /access_tokens | Create an access token +*AppThemesAPI* | [**AppThemesGet**](docs/AppThemesAPI.md#appthemesget) | **Get** /app_themes | List all app themes *AppThemesAPI* | [**AppThemesIdDelete**](docs/AppThemesAPI.md#appthemesiddelete) | **Delete** /app_themes/{id} | Delete app theme *AppThemesAPI* | [**AppThemesIdGet**](docs/AppThemesAPI.md#appthemesidget) | **Get** /app_themes/{id} | Get app theme *AppThemesAPI* | [**AppThemesPost**](docs/AppThemesAPI.md#appthemespost) | **Post** /app_themes | Create app theme *AppThemesAPI* | [**AppThemesPut**](docs/AppThemesAPI.md#appthemesput) | **Put** /app_themes | Update app theme *AppsAPI* | [**AppsAppIdDelete**](docs/AppsAPI.md#appsappiddelete) | **Delete** /apps/{appId} | Delete app *AppsAPI* | [**AppsAppIdGet**](docs/AppsAPI.md#appsappidget) | **Get** /apps/{appId} | Get app +*AppsAPI* | [**AppsCloneAppPost**](docs/AppsAPI.md#appscloneapppost) | **Post** /apps/cloneApp | Clone app *AppsAPI* | [**AppsGet**](docs/AppsAPI.md#appsget) | **Get** /apps | List apps *ConfigurationVariablesAPI* | [**ConfigurationVariablesGet**](docs/ConfigurationVariablesAPI.md#configurationvariablesget) | **Get** /configuration_variables | List configuration variables and their values *ConfigurationVariablesAPI* | [**ConfigurationVariablesIdDelete**](docs/ConfigurationVariablesAPI.md#configurationvariablesiddelete) | **Delete** /configuration_variables/{id} | Delete configuration variable @@ -99,8 +104,11 @@ Class | Method | HTTP request | Description *CustomComponentLibraryAPI* | [**CustomComponentLibrariesLibraryIdRevisionsPost**](docs/CustomComponentLibraryAPI.md#customcomponentlibrarieslibraryidrevisionspost) | **Post** /custom_component_libraries/{libraryId}/revisions | Create a new custom component library revision *CustomComponentLibraryAPI* | [**CustomComponentLibrariesLibraryIdRevisionsRevisionIdFilesGet**](docs/CustomComponentLibraryAPI.md#customcomponentlibrarieslibraryidrevisionsrevisionidfilesget) | **Get** /custom_component_libraries/{libraryId}/revisions/{revisionId}/files | Gets all files associated with a custom component library revision. *CustomComponentLibraryAPI* | [**CustomComponentLibrariesPost**](docs/CustomComponentLibraryAPI.md#customcomponentlibrariespost) | **Post** /custom_component_libraries | Create a new custom component library -*EnvironmentAPI* | [**EnvironmentsEnvironmentIdGet**](docs/EnvironmentAPI.md#environmentsenvironmentidget) | **Get** /environments/{environmentId} | Get an environment by id -*EnvironmentAPI* | [**EnvironmentsGet**](docs/EnvironmentAPI.md#environmentsget) | **Get** /environments | Get organization environments +*EnvironmentsAPI* | [**EnvironmentsEnvironmentIdDelete**](docs/EnvironmentsAPI.md#environmentsenvironmentiddelete) | **Delete** /environments/{environmentId} | Delete environment +*EnvironmentsAPI* | [**EnvironmentsEnvironmentIdGet**](docs/EnvironmentsAPI.md#environmentsenvironmentidget) | **Get** /environments/{environmentId} | Get an environment +*EnvironmentsAPI* | [**EnvironmentsEnvironmentIdPatch**](docs/EnvironmentsAPI.md#environmentsenvironmentidpatch) | **Patch** /environments/{environmentId} | Update an environment +*EnvironmentsAPI* | [**EnvironmentsGet**](docs/EnvironmentsAPI.md#environmentsget) | **Get** /environments | Get environments +*EnvironmentsAPI* | [**EnvironmentsPost**](docs/EnvironmentsAPI.md#environmentspost) | **Post** /environments | Create environment *FoldersAPI* | [**FoldersFolderIdDelete**](docs/FoldersAPI.md#foldersfolderiddelete) | **Delete** /folders/{folderId} | Delete folder *FoldersAPI* | [**FoldersFolderIdGet**](docs/FoldersAPI.md#foldersfolderidget) | **Get** /folders/{folderId} | Get a folder *FoldersAPI* | [**FoldersFolderIdPatch**](docs/FoldersAPI.md#foldersfolderidpatch) | **Patch** /folders/{folderId} | Update folder @@ -116,21 +124,40 @@ Class | Method | HTTP request | Description *GroupsAPI* | [**GroupsGroupIdUserInvitesPost**](docs/GroupsAPI.md#groupsgroupiduserinvitespost) | **Post** /groups/{groupId}/user_invites | Add user invites to group *GroupsAPI* | [**GroupsGroupIdUserInvitesUserInviteIdDelete**](docs/GroupsAPI.md#groupsgroupiduserinvitesuserinviteiddelete) | **Delete** /groups/{groupId}/user_invites/{userInviteId} | Remove user invite from group *GroupsAPI* | [**GroupsPost**](docs/GroupsAPI.md#groupspost) | **Post** /groups | Create group +*InfoAPI* | [**InfoIpAllowlistGet**](docs/InfoAPI.md#infoipallowlistget) | **Get** /info/ip_allowlist | Get IP allowlist by region *ObservabilityAPI* | [**ObservabilityConfigConfigIdDelete**](docs/ObservabilityAPI.md#observabilityconfigconfigiddelete) | **Delete** /observability/config/{configId} | Delete an observability provider configuration *ObservabilityAPI* | [**ObservabilityConfigConfigIdPut**](docs/ObservabilityAPI.md#observabilityconfigconfigidput) | **Put** /observability/config/{configId} | Update an observability provider configuration *ObservabilityAPI* | [**ObservabilityConfigGet**](docs/ObservabilityAPI.md#observabilityconfigget) | **Get** /observability/config | Get observability provider configurations *ObservabilityAPI* | [**ObservabilityConfigPost**](docs/ObservabilityAPI.md#observabilityconfigpost) | **Post** /observability/config | Create a new observability provider configuration *ObservabilityAPI* | [**ObservabilityProviderProviderTestPost**](docs/ObservabilityAPI.md#observabilityproviderprovidertestpost) | **Post** /observability/provider/{provider}/test | Send a test error event to the observability provider +*OrganizationAPI* | [**OrganizationAiSettingsGet**](docs/OrganizationAPI.md#organizationaisettingsget) | **Get** /organization/ai_settings | Get organization AI settings +*OrganizationAPI* | [**OrganizationAiSettingsPut**](docs/OrganizationAPI.md#organizationaisettingsput) | **Put** /organization/ai_settings | Update organization AI settings +*OrganizationAPI* | [**OrganizationAnalyticsIntegrationsGet**](docs/OrganizationAPI.md#organizationanalyticsintegrationsget) | **Get** /organization/analytics_integrations | Get organization third-party Analytics Integrations settings +*OrganizationAPI* | [**OrganizationGet**](docs/OrganizationAPI.md#organizationget) | **Get** /organization/ | Get organization +*OrganizationAPI* | [**OrganizationInvalidateSessionsPost**](docs/OrganizationAPI.md#organizationinvalidatesessionspost) | **Post** /organization/invalidate_sessions/ | Invalidates all sessions for your organization +*OrganizationAPI* | [**OrganizationPatch**](docs/OrganizationAPI.md#organizationpatch) | **Patch** /organization/ | Update advanced settings on organization +*PermissionsAPI* | [**PermissionsAccessListObjectTypeObjectIdGet**](docs/PermissionsAPI.md#permissionsaccesslistobjecttypeobjectidget) | **Get** /permissions/accessList/{objectType}/{objectId} | Get the access list of an app or folder *PermissionsAPI* | [**PermissionsGrantPost**](docs/PermissionsAPI.md#permissionsgrantpost) | **Post** /permissions/grant | Grant permissions *PermissionsAPI* | [**PermissionsListObjectsPost**](docs/PermissionsAPI.md#permissionslistobjectspost) | **Post** /permissions/listObjects | List objects a group can access *PermissionsAPI* | [**PermissionsRevokePost**](docs/PermissionsAPI.md#permissionsrevokepost) | **Post** /permissions/revoke | Revoke permissions +*PermissionsAPI* | [**RolePermissionsRoleGrantsGet**](docs/PermissionsAPI.md#rolepermissionsrolegrantsget) | **Get** /role_permissions/role_grants | Get role grants +*PermissionsAPI* | [**RolePermissionsRoleGrantsPost**](docs/PermissionsAPI.md#rolepermissionsrolegrantspost) | **Post** /role_permissions/role_grants | Create a role grant +*PermissionsAPI* | [**RolePermissionsRoleGrantsRoleGrantIdDelete**](docs/PermissionsAPI.md#rolepermissionsrolegrantsrolegrantiddelete) | **Delete** /role_permissions/role_grants/{roleGrantId} | Delete a role grant +*PermissionsAPI* | [**RolePermissionsRoleGrantsSubjectTypeSubjectIdGet**](docs/PermissionsAPI.md#rolepermissionsrolegrantssubjecttypesubjectidget) | **Get** /role_permissions/role_grants/{subjectType}/{subjectId} | Get role grants for a subject +*PermissionsAPI* | [**RolePermissionsRolesGet**](docs/PermissionsAPI.md#rolepermissionsrolesget) | **Get** /role_permissions/roles | List roles +*PermissionsAPI* | [**RolePermissionsRolesPost**](docs/PermissionsAPI.md#rolepermissionsrolespost) | **Post** /role_permissions/roles | Create a role +*PermissionsAPI* | [**RolePermissionsRolesRoleIdDelete**](docs/PermissionsAPI.md#rolepermissionsrolesroleiddelete) | **Delete** /role_permissions/roles/{roleId} | Delete a role +*PermissionsAPI* | [**RolePermissionsRolesRoleIdPatch**](docs/PermissionsAPI.md#rolepermissionsrolesroleidpatch) | **Patch** /role_permissions/roles/{roleId} | Update a role *ResourceConfigurationsAPI* | [**ResourceConfigurationsConfigurationIdDelete**](docs/ResourceConfigurationsAPI.md#resourceconfigurationsconfigurationiddelete) | **Delete** /resource_configurations/{configurationId} | Delete resource configuration *ResourceConfigurationsAPI* | [**ResourceConfigurationsConfigurationIdGet**](docs/ResourceConfigurationsAPI.md#resourceconfigurationsconfigurationidget) | **Get** /resource_configurations/{configurationId} | Get resource configuration by id +*ResourceConfigurationsAPI* | [**ResourceConfigurationsConfigurationIdPatch**](docs/ResourceConfigurationsAPI.md#resourceconfigurationsconfigurationidpatch) | **Patch** /resource_configurations/{configurationId} | Update a resource configuration *ResourceConfigurationsAPI* | [**ResourceConfigurationsGet**](docs/ResourceConfigurationsAPI.md#resourceconfigurationsget) | **Get** /resource_configurations | Get resource configurations +*ResourceConfigurationsAPI* | [**ResourceConfigurationsPost**](docs/ResourceConfigurationsAPI.md#resourceconfigurationspost) | **Post** /resource_configurations | Create resource configuration *ResourcesAPI* | [**ResourcesGet**](docs/ResourcesAPI.md#resourcesget) | **Get** /resources | Get resources *ResourcesAPI* | [**ResourcesPost**](docs/ResourcesAPI.md#resourcespost) | **Post** /resources | Create a resource *ResourcesAPI* | [**ResourcesResourceIdDelete**](docs/ResourcesAPI.md#resourcesresourceiddelete) | **Delete** /resources/{resourceId} | Delete resource *ResourcesAPI* | [**ResourcesResourceIdGet**](docs/ResourcesAPI.md#resourcesresourceidget) | **Get** /resources/{resourceId} | Get resource by id +*ResourcesAPI* | [**ResourcesResourceIdPatch**](docs/ResourcesAPI.md#resourcesresourceidpatch) | **Patch** /resources/{resourceId} | Update a resource *SSOAPI* | [**SsoConfigDelete**](docs/SSOAPI.md#ssoconfigdelete) | **Delete** /sso/config | Remove SSO configuration *SSOAPI* | [**SsoConfigGet**](docs/SSOAPI.md#ssoconfigget) | **Get** /sso/config | Get SSO configuration *SSOAPI* | [**SsoConfigPost**](docs/SSOAPI.md#ssoconfigpost) | **Post** /sso/config | Set SSO configuration @@ -139,12 +166,24 @@ Class | Method | HTTP request | Description *SourceControlAPI* | [**SourceControlConfigPost**](docs/SourceControlAPI.md#sourcecontrolconfigpost) | **Post** /source_control/config | Create source control configuration *SourceControlAPI* | [**SourceControlConfigPut**](docs/SourceControlAPI.md#sourcecontrolconfigput) | **Put** /source_control/config | Set source control configuration *SourceControlAPI* | [**SourceControlDeployPost**](docs/SourceControlAPI.md#sourcecontroldeploypost) | **Post** /source_control/deploy | Trigger deployment of latest changes -*SourceControlAPI* | [**SourceControlDeploymentIdGet**](docs/SourceControlAPI.md#sourcecontroldeploymentidget) | **Get** /source_control/deployment/{id} | Get deployment by id +*SourceControlAPI* | [**SourceControlDeploymentIdGet**](docs/SourceControlAPI.md#sourcecontroldeploymentidget) | **Get** /source_control/deployment/{id} | Get a deployment +*SourceControlAPI* | [**SourceControlManifestsGet**](docs/SourceControlAPI.md#sourcecontrolmanifestsget) | **Get** /source_control/manifests | Lists all release manifests +*SourceControlAPI* | [**SourceControlManifestsManifestNameAppsAppUuidDeletePost**](docs/SourceControlAPI.md#sourcecontrolmanifestsmanifestnameappsappuuiddeletepost) | **Post** /source_control/manifests/{manifestName}/apps/{appUuid}/delete | Delete the entry for an app from a release manifest +*SourceControlAPI* | [**SourceControlManifestsManifestNameAppsAppUuidPut**](docs/SourceControlAPI.md#sourcecontrolmanifestsmanifestnameappsappuuidput) | **Put** /source_control/manifests/{manifestName}/apps/{appUuid} | Set release manifest +*SourceControlAPI* | [**SourceControlManifestsManifestNameDeletePost**](docs/SourceControlAPI.md#sourcecontrolmanifestsmanifestnamedeletepost) | **Post** /source_control/manifests/{manifestName}/delete | Delete a release manifest +*SourceControlAPI* | [**SourceControlManifestsManifestNameElementUuidDeletePost**](docs/SourceControlAPI.md#sourcecontrolmanifestsmanifestnameelementuuiddeletepost) | **Post** /source_control/manifests/{manifestName}/{elementUuid}/delete | Delete the entry for an app from a release manifest +*SourceControlAPI* | [**SourceControlManifestsManifestNameElementUuidPut**](docs/SourceControlAPI.md#sourcecontrolmanifestsmanifestnameelementuuidput) | **Put** /source_control/manifests/{manifestName}/{elementUuid} | Set release manifest +*SourceControlAPI* | [**SourceControlManifestsManifestNameGet**](docs/SourceControlAPI.md#sourcecontrolmanifestsmanifestnameget) | **Get** /source_control/manifests/{manifestName} | Get a specific release manifest +*SourceControlAPI* | [**SourceControlManifestsManifestNamePut**](docs/SourceControlAPI.md#sourcecontrolmanifestsmanifestnameput) | **Put** /source_control/manifests/{manifestName} | Set release manifest +*SourceControlAPI* | [**SourceControlReleasesAppsAppUuidGet**](docs/SourceControlAPI.md#sourcecontrolreleasesappsappuuidget) | **Get** /source_control/releases/apps/{appUuid} | Lists all available releases for the given app. +*SourceControlAPI* | [**SourceControlReleasesAppsAppUuidPost**](docs/SourceControlAPI.md#sourcecontrolreleasesappsappuuidpost) | **Post** /source_control/releases/apps/{appUuid} | Create a release artifact +*SourceControlAPI* | [**SourceControlReleasesElementUuidGet**](docs/SourceControlAPI.md#sourcecontrolreleaseselementuuidget) | **Get** /source_control/releases/{elementUuid} | Lists all available releases for the given element. +*SourceControlAPI* | [**SourceControlReleasesElementUuidPost**](docs/SourceControlAPI.md#sourcecontrolreleaseselementuuidpost) | **Post** /source_control/releases/{elementUuid} | Create a release artifact *SourceControlAPI* | [**SourceControlSettingsGet**](docs/SourceControlAPI.md#sourcecontrolsettingsget) | **Get** /source_control/settings | Get source control settings *SourceControlAPI* | [**SourceControlSettingsPut**](docs/SourceControlAPI.md#sourcecontrolsettingsput) | **Put** /source_control/settings | Set source control settings *SourceControlAPI* | [**SourceControlTestConnectionGet**](docs/SourceControlAPI.md#sourcecontroltestconnectionget) | **Get** /source_control/test_connection | Tests source control connection *SourceControlAPI* | [**SourceControlTestDeployPost**](docs/SourceControlAPI.md#sourcecontroltestdeploypost) | **Post** /source_control/test_deploy | Test source control changes -*SpacesAPI* | [**SpacesCopyElementsPost**](docs/SpacesAPI.md#spacescopyelementspost) | **Post** /spaces/copyElements | Copies apps, queries, resources, and workflows from one space to another +*SpacesAPI* | [**SpacesCopyElementsPost**](docs/SpacesAPI.md#spacescopyelementspost) | **Post** /spaces/copyElements | Copy elements to another space *SpacesAPI* | [**SpacesGet**](docs/SpacesAPI.md#spacesget) | **Get** /spaces | List spaces *SpacesAPI* | [**SpacesPost**](docs/SpacesAPI.md#spacespost) | **Post** /spaces | Create a space *SpacesAPI* | [**SpacesSpaceIdDelete**](docs/SpacesAPI.md#spacesspaceiddelete) | **Delete** /spaces/{spaceId} | Delete a space @@ -156,48 +195,79 @@ Class | Method | HTTP request | Description *UsageAPI* | [**UsageOrganizationsGet**](docs/UsageAPI.md#usageorganizationsget) | **Get** /usage/organizations | List organizations *UsageAPI* | [**UsageUserDetailsGet**](docs/UsageAPI.md#usageuserdetailsget) | **Get** /usage/user_details | The user details for the selected user and organizations *UsageAPI* | [**UsageUserSummaryGet**](docs/UsageAPI.md#usageusersummaryget) | **Get** /usage/user_summary | The summaries of user usage for the selected organizations -*UserAttributesAPI* | [**UserAttributesGet**](docs/UserAttributesAPI.md#userattributesget) | **Get** /user_attributes | Get organization user attributes. +*UserAttributesAPI* | [**UserAttributesGet**](docs/UserAttributesAPI.md#userattributesget) | **Get** /user_attributes | Get organization user attributes +*UserAttributesAPI* | [**UserAttributesIdDelete**](docs/UserAttributesAPI.md#userattributesiddelete) | **Delete** /user_attributes/{id} | Delete an user attribute from the organization +*UserAttributesAPI* | [**UserAttributesIdPatch**](docs/UserAttributesAPI.md#userattributesidpatch) | **Patch** /user_attributes/{id} | Update organization user attribute +*UserAttributesAPI* | [**UserAttributesPost**](docs/UserAttributesAPI.md#userattributespost) | **Post** /user_attributes | Create a new user attribute for the organization *UserInviteAPI* | [**UserInvitesGet**](docs/UserInviteAPI.md#userinvitesget) | **Get** /user_invites | Get organization user invites *UserInviteAPI* | [**UserInvitesPost**](docs/UserInviteAPI.md#userinvitespost) | **Post** /user_invites | Create a new user invite *UserInviteAPI* | [**UserInvitesUserInviteIdDelete**](docs/UserInviteAPI.md#userinvitesuserinviteiddelete) | **Delete** /user_invites/{userInviteId} | Delete user invite *UserInviteAPI* | [**UserInvitesUserInviteIdGet**](docs/UserInviteAPI.md#userinvitesuserinviteidget) | **Get** /user_invites/{userInviteId} | Get user invite *UserInviteAPI* | [**UserInvitesUserInviteIdUserAttributesAttributeNameDelete**](docs/UserInviteAPI.md#userinvitesuserinviteiduserattributesattributenamedelete) | **Delete** /user_invites/{userInviteId}/user_attributes/{attributeName} | Delete a user attribute on a user invite *UserInviteAPI* | [**UserInvitesUserInviteIdUserAttributesPost**](docs/UserInviteAPI.md#userinvitesuserinviteiduserattributespost) | **Post** /user_invites/{userInviteId}/user_attributes | Add or update user attributes on a user invite +*UserTasksAPI* | [**UserTasksGet**](docs/UserTasksAPI.md#usertasksget) | **Get** /user_tasks | List User Tasks +*UserTasksAPI* | [**UserTasksTaskIdCancelPatch**](docs/UserTasksAPI.md#usertaskstaskidcancelpatch) | **Patch** /user_tasks/{taskId}/cancel | Cancels a user task. +*UserTasksAPI* | [**UserTasksTaskIdReassignPatch**](docs/UserTasksAPI.md#usertaskstaskidreassignpatch) | **Patch** /user_tasks/{taskId}/reassign | Reassign a user task to a group or a user. +*UserTasksAPI* | [**UserTasksTaskIdSubmitPatch**](docs/UserTasksAPI.md#usertaskstaskidsubmitpatch) | **Patch** /user_tasks/{taskId}/submit | Submits a user task. *UsersAPI* | [**UsersGet**](docs/UsersAPI.md#usersget) | **Get** /users | List users *UsersAPI* | [**UsersPost**](docs/UsersAPI.md#userspost) | **Post** /users | Create user +*UsersAPI* | [**UsersReset2faUserIdPut**](docs/UsersAPI.md#usersreset2fauseridput) | **Put** /users/reset2fa/{userId} | Resets a user's existing two factor authentication setting *UsersAPI* | [**UsersUserIdDelete**](docs/UsersAPI.md#usersuseriddelete) | **Delete** /users/{userId} | Delete a user -*UsersAPI* | [**UsersUserIdGet**](docs/UsersAPI.md#usersuseridget) | **Get** /users/{userId} | Get user +*UsersAPI* | [**UsersUserIdGet**](docs/UsersAPI.md#usersuseridget) | **Get** /users/{userId} | Get a user *UsersAPI* | [**UsersUserIdPatch**](docs/UsersAPI.md#usersuseridpatch) | **Patch** /users/{userId} | Update a user -*UsersAPI* | [**UsersUserIdUserAttributesAttributeNameDelete**](docs/UsersAPI.md#usersuseriduserattributesattributenamedelete) | **Delete** /users/{userId}/user_attributes/{attributeName} | Delete a user attribute. +*UsersAPI* | [**UsersUserIdUserAttributesAttributeNameDelete**](docs/UsersAPI.md#usersuseriduserattributesattributenamedelete) | **Delete** /users/{userId}/user_attributes/{attributeName} | Delete a user attribute *UsersAPI* | [**UsersUserIdUserAttributesPost**](docs/UsersAPI.md#usersuseriduserattributespost) | **Post** /users/{userId}/user_attributes | Add or update a user attribute +*WorkflowRunAPI* | [**WorkflowRunIdGet**](docs/WorkflowRunAPI.md#workflowrunidget) | **Get** /workflow_run/{id} | Get Workflow Run Details +*WorkflowsAPI* | [**WorkflowsGet**](docs/WorkflowsAPI.md#workflowsget) | **Get** /workflows | Get all workflows +*WorkflowsAPI* | [**WorkflowsWorkflowIdGet**](docs/WorkflowsAPI.md#workflowsworkflowidget) | **Get** /workflows/{workflowId} | Get a workflow ## Documentation For Models + - [AWSCodeCommit](docs/AWSCodeCommit.md) + - [AWSCodeCommitConfig](docs/AWSCodeCommitConfig.md) - [AccessRequest](docs/AccessRequest.md) - [AccessRequestsAccessRequestIdGet200Response](docs/AccessRequestsAccessRequestIdGet200Response.md) - [AccessRequestsAccessRequestIdPatch200Response](docs/AccessRequestsAccessRequestIdPatch200Response.md) - [AccessRequestsAccessRequestIdPatchRequest](docs/AccessRequestsAccessRequestIdPatchRequest.md) - [AccessRequestsGet200Response](docs/AccessRequestsGet200Response.md) - [AccessRequestsGet200ResponseDataInner](docs/AccessRequestsGet200ResponseDataInner.md) + - [AccessToken](docs/AccessToken.md) + - [AccessTokensAccessTokenIdGet200Response](docs/AccessTokensAccessTokenIdGet200Response.md) + - [AccessTokensAccessTokenIdGet200ResponseData](docs/AccessTokensAccessTokenIdGet200ResponseData.md) + - [AccessTokensGet200Response](docs/AccessTokensGet200Response.md) + - [AccessTokensGet200ResponseDataInner](docs/AccessTokensGet200ResponseDataInner.md) + - [AccessTokensPost200Response](docs/AccessTokensPost200Response.md) + - [AccessTokensPost200ResponseData](docs/AccessTokensPost200ResponseData.md) + - [AccessTokensPostRequest](docs/AccessTokensPostRequest.md) - [AddOperation](docs/AddOperation.md) + - [AnalyticsIntegrationsSettings](docs/AnalyticsIntegrationsSettings.md) - [App](docs/App.md) - [AppSummary](docs/AppSummary.md) - [AppTheme](docs/AppTheme.md) + - [AppThemesGet200Response](docs/AppThemesGet200Response.md) + - [AppThemesGet200ResponseDataInner](docs/AppThemesGet200ResponseDataInner.md) - [AppThemesIdGet200Response](docs/AppThemesIdGet200Response.md) - [AppThemesIdGet200ResponseData](docs/AppThemesIdGet200ResponseData.md) - [AppThemesPut200Response](docs/AppThemesPut200Response.md) - [AppThemesPut200ResponseData](docs/AppThemesPut200ResponseData.md) - - [AppThemesPutRequest](docs/AppThemesPutRequest.md) - [AppsAppIdGet200Response](docs/AppsAppIdGet200Response.md) - [AppsAppIdGet200ResponseData](docs/AppsAppIdGet200ResponseData.md) + - [AppsCloneAppPostRequest](docs/AppsCloneAppPostRequest.md) - [AppsGet200Response](docs/AppsGet200Response.md) + - [AzureRepos](docs/AzureRepos.md) + - [AzureReposConfig](docs/AzureReposConfig.md) + - [Bitbucket](docs/Bitbucket.md) + - [BitbucketConfig](docs/BitbucketConfig.md) + - [BitbucketConfigAnyOf](docs/BitbucketConfigAnyOf.md) + - [BitbucketConfigAnyOf1](docs/BitbucketConfigAnyOf1.md) - [ConfigurationVariable](docs/ConfigurationVariable.md) - [ConfigurationVariablesGet200Response](docs/ConfigurationVariablesGet200Response.md) - [ConfigurationVariablesGet200ResponseDataInner](docs/ConfigurationVariablesGet200ResponseDataInner.md) - [ConfigurationVariablesGet200ResponseDataInnerValuesInner](docs/ConfigurationVariablesGet200ResponseDataInnerValuesInner.md) - [ConfigurationVariablesPost200Response](docs/ConfigurationVariablesPost200Response.md) - [ConfigurationVariablesPostRequest](docs/ConfigurationVariablesPostRequest.md) + - [CopyOperation](docs/CopyOperation.md) - [CustomComponentLibrariesGet200Response](docs/CustomComponentLibrariesGet200Response.md) - [CustomComponentLibrariesLibraryIdGet200Response](docs/CustomComponentLibrariesLibraryIdGet200Response.md) - [CustomComponentLibrariesLibraryIdGet200ResponseData](docs/CustomComponentLibrariesLibraryIdGet200ResponseData.md) @@ -214,24 +284,35 @@ Class | Method | HTTP request | Description - [Environment](docs/Environment.md) - [EnvironmentsEnvironmentIdGet200Response](docs/EnvironmentsEnvironmentIdGet200Response.md) - [EnvironmentsEnvironmentIdGet200ResponseData](docs/EnvironmentsEnvironmentIdGet200ResponseData.md) + - [EnvironmentsEnvironmentIdPatch200Response](docs/EnvironmentsEnvironmentIdPatch200Response.md) + - [EnvironmentsEnvironmentIdPatch200ResponseData](docs/EnvironmentsEnvironmentIdPatch200ResponseData.md) + - [EnvironmentsEnvironmentIdPatchRequest](docs/EnvironmentsEnvironmentIdPatchRequest.md) - [EnvironmentsGet200Response](docs/EnvironmentsGet200Response.md) + - [EnvironmentsPost200Response](docs/EnvironmentsPost200Response.md) + - [EnvironmentsPost200ResponseData](docs/EnvironmentsPost200ResponseData.md) + - [EnvironmentsPostRequest](docs/EnvironmentsPostRequest.md) - [Folder](docs/Folder.md) - - [FoldersFolderIdDeleteRequest](docs/FoldersFolderIdDeleteRequest.md) - [FoldersFolderIdGet200Response](docs/FoldersFolderIdGet200Response.md) - [FoldersFolderIdGet200ResponseData](docs/FoldersFolderIdGet200ResponseData.md) - [FoldersFolderIdPatch200Response](docs/FoldersFolderIdPatch200Response.md) - [FoldersFolderIdPatch200ResponseData](docs/FoldersFolderIdPatch200ResponseData.md) - [FoldersFolderIdPatchRequest](docs/FoldersFolderIdPatchRequest.md) - [FoldersFolderIdPatchRequestOperationsInner](docs/FoldersFolderIdPatchRequestOperationsInner.md) - - [FoldersFolderIdPatchRequestOperationsInnerAnyOf](docs/FoldersFolderIdPatchRequestOperationsInnerAnyOf.md) - - [FoldersFolderIdPatchRequestOperationsInnerAnyOf1](docs/FoldersFolderIdPatchRequestOperationsInnerAnyOf1.md) - - [FoldersFolderIdPatchRequestOperationsInnerAnyOf2](docs/FoldersFolderIdPatchRequestOperationsInnerAnyOf2.md) - [FoldersGet200Response](docs/FoldersGet200Response.md) - [FoldersGet200ResponseDataInner](docs/FoldersGet200ResponseDataInner.md) - [FoldersPost200Response](docs/FoldersPost200Response.md) - [FoldersPost200ResponseData](docs/FoldersPost200ResponseData.md) - [FoldersPost409Response](docs/FoldersPost409Response.md) - [FoldersPostRequest](docs/FoldersPostRequest.md) + - [GitHub](docs/GitHub.md) + - [GitHubConfig](docs/GitHubConfig.md) + - [GitHubConfigAnyOf](docs/GitHubConfigAnyOf.md) + - [GitHubConfigAnyOf1](docs/GitHubConfigAnyOf1.md) + - [GitLab](docs/GitLab.md) + - [GitLabConfig](docs/GitLabConfig.md) + - [Google](docs/Google.md) + - [GoogleOIDC](docs/GoogleOIDC.md) + - [GoogleSAML](docs/GoogleSAML.md) - [Group](docs/Group.md) - [GroupsGet200Response](docs/GroupsGet200Response.md) - [GroupsGet200ResponseDataInner](docs/GroupsGet200ResponseDataInner.md) @@ -241,7 +322,6 @@ Class | Method | HTTP request | Description - [GroupsGroupIdGet200ResponseDataUserInvitesInner](docs/GroupsGroupIdGet200ResponseDataUserInvitesInner.md) - [GroupsGroupIdMembersPostRequest](docs/GroupsGroupIdMembersPostRequest.md) - [GroupsGroupIdPatchRequest](docs/GroupsGroupIdPatchRequest.md) - - [GroupsGroupIdPatchRequestOperationsInner](docs/GroupsGroupIdPatchRequestOperationsInner.md) - [GroupsGroupIdPut200Response](docs/GroupsGroupIdPut200Response.md) - [GroupsGroupIdPut200ResponseData](docs/GroupsGroupIdPut200ResponseData.md) - [GroupsGroupIdPutRequest](docs/GroupsGroupIdPutRequest.md) @@ -250,8 +330,14 @@ Class | Method | HTTP request | Description - [GroupsPost200Response](docs/GroupsPost200Response.md) - [GroupsPost200ResponseData](docs/GroupsPost200ResponseData.md) - [GroupsPostRequest](docs/GroupsPostRequest.md) + - [InfoIpAllowlistGet200Response](docs/InfoIpAllowlistGet200Response.md) + - [InfoIpAllowlistGet200ResponseData](docs/InfoIpAllowlistGet200ResponseData.md) + - [InfoIpAllowlistGet200ResponseDataIpAddresses](docs/InfoIpAllowlistGet200ResponseDataIpAddresses.md) + - [IpAllowlist](docs/IpAllowlist.md) + - [MoveOperation](docs/MoveOperation.md) - [MySQLOptions](docs/MySQLOptions.md) - [MySQLOptionsDatabaseOptions](docs/MySQLOptionsDatabaseOptions.md) + - [OIDC](docs/OIDC.md) - [ObservabilityConfigConfigIdPut200Response](docs/ObservabilityConfigConfigIdPut200Response.md) - [ObservabilityConfigConfigIdPut200ResponseData](docs/ObservabilityConfigConfigIdPut200ResponseData.md) - [ObservabilityConfigConfigIdPutRequest](docs/ObservabilityConfigConfigIdPutRequest.md) @@ -266,24 +352,40 @@ Class | Method | HTTP request | Description - [ObservabilityConfiguration](docs/ObservabilityConfiguration.md) - [ObservabilityProviderProviderTestPost200Response](docs/ObservabilityProviderProviderTestPost200Response.md) - [ObservabilityProviderProviderTestPost200ResponseData](docs/ObservabilityProviderProviderTestPost200ResponseData.md) - - [ObservabilityProviderProviderTestPost200ResponseDataAnyOf](docs/ObservabilityProviderProviderTestPost200ResponseDataAnyOf.md) - - [ObservabilityProviderProviderTestPost200ResponseDataAnyOf1](docs/ObservabilityProviderProviderTestPost200ResponseDataAnyOf1.md) + - [ObservabilityProviderProviderTestPost200ResponseDataOneOf](docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf.md) + - [ObservabilityProviderProviderTestPost200ResponseDataOneOf1](docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf1.md) - [ObservabilityProviderProviderTestPostProviderParameter](docs/ObservabilityProviderProviderTestPostProviderParameter.md) - - [Organization](docs/Organization.md) + - [OrganizationAiSettingsGet200Response](docs/OrganizationAiSettingsGet200Response.md) + - [OrganizationAiSettingsGet200ResponseData](docs/OrganizationAiSettingsGet200ResponseData.md) + - [OrganizationAiSettingsPut200Response](docs/OrganizationAiSettingsPut200Response.md) + - [OrganizationAnalyticsIntegrationsGet200Response](docs/OrganizationAnalyticsIntegrationsGet200Response.md) + - [OrganizationAnalyticsIntegrationsGet200ResponseDataInner](docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInner.md) + - [OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf](docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf.md) + - [OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1](docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1.md) + - [OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2](docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2.md) + - [OrganizationGet200Response](docs/OrganizationGet200Response.md) + - [OrganizationGet200ResponseData](docs/OrganizationGet200ResponseData.md) + - [OrganizationPatch200Response](docs/OrganizationPatch200Response.md) + - [OrganizationPatch200ResponseData](docs/OrganizationPatch200ResponseData.md) + - [OrganizationPatchRequest](docs/OrganizationPatchRequest.md) + - [OrganizationSettings](docs/OrganizationSettings.md) + - [PermissionsAccessListObjectTypeObjectIdGet200Response](docs/PermissionsAccessListObjectTypeObjectIdGet200Response.md) + - [PermissionsAccessListObjectTypeObjectIdGet200ResponseData](docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseData.md) + - [PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner](docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner.md) + - [PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources](docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources.md) + - [PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner](docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner.md) + - [PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited](docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited.md) + - [PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject](docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject.md) - [PermissionsGrantPostRequest](docs/PermissionsGrantPostRequest.md) - [PermissionsGrantPostRequestObject](docs/PermissionsGrantPostRequestObject.md) - - [PermissionsGrantPostRequestObjectOneOf](docs/PermissionsGrantPostRequestObjectOneOf.md) - [PermissionsListObjectsPost200Response](docs/PermissionsListObjectsPost200Response.md) - [PermissionsListObjectsPost200ResponseDataInner](docs/PermissionsListObjectsPost200ResponseDataInner.md) - - [PermissionsListObjectsPost200ResponseDataInnerOneOf](docs/PermissionsListObjectsPost200ResponseDataInnerOneOf.md) + - [PermissionsListObjectsPost200ResponseDataInnerAnyOf](docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf.md) + - [PermissionsListObjectsPost200ResponseDataInnerAnyOf1](docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf1.md) + - [PermissionsListObjectsPost200ResponseDataInnerAnyOf2](docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf2.md) + - [PermissionsListObjectsPost200ResponseDataInnerAnyOf3](docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf3.md) - [PermissionsListObjectsPostRequest](docs/PermissionsListObjectsPostRequest.md) - [PermissionsListObjectsPostRequestSubject](docs/PermissionsListObjectsPostRequestSubject.md) - - [PermissionsListObjectsPostRequestSubjectOneOf](docs/PermissionsListObjectsPostRequestSubjectOneOf.md) - - [PermissionsListObjectsPostRequestSubjectOneOf1](docs/PermissionsListObjectsPostRequestSubjectOneOf1.md) - - [PermissionsRevokePost200Response](docs/PermissionsRevokePost200Response.md) - - [PermissionsRevokePost200ResponseDataInner](docs/PermissionsRevokePost200ResponseDataInner.md) - - [PermissionsRevokePost200ResponseDataInnerAnyOf](docs/PermissionsRevokePost200ResponseDataInnerAnyOf.md) - - [PermissionsRevokePost200ResponseDataInnerAnyOf1](docs/PermissionsRevokePost200ResponseDataInnerAnyOf1.md) - [PermissionsRevokePostRequest](docs/PermissionsRevokePostRequest.md) - [PostgresOptions](docs/PostgresOptions.md) - [PostgresOptionsDatabaseOptions](docs/PostgresOptionsDatabaseOptions.md) @@ -299,17 +401,25 @@ Class | Method | HTTP request | Description - [Resource](docs/Resource.md) - [ResourceConfiguration](docs/ResourceConfiguration.md) - [ResourceConfigurationsConfigurationIdGet200Response](docs/ResourceConfigurationsConfigurationIdGet200Response.md) + - [ResourceConfigurationsConfigurationIdPatch200Response](docs/ResourceConfigurationsConfigurationIdPatch200Response.md) + - [ResourceConfigurationsConfigurationIdPatch200ResponseData](docs/ResourceConfigurationsConfigurationIdPatch200ResponseData.md) + - [ResourceConfigurationsConfigurationIdPatchRequest](docs/ResourceConfigurationsConfigurationIdPatchRequest.md) - [ResourceConfigurationsGet200Response](docs/ResourceConfigurationsGet200Response.md) - [ResourceConfigurationsGet200ResponseDataInner](docs/ResourceConfigurationsGet200ResponseDataInner.md) - [ResourceConfigurationsGet200ResponseDataInnerEnvironment](docs/ResourceConfigurationsGet200ResponseDataInnerEnvironment.md) + - [ResourceConfigurationsPost200Response](docs/ResourceConfigurationsPost200Response.md) + - [ResourceConfigurationsPost200ResponseData](docs/ResourceConfigurationsPost200ResponseData.md) + - [ResourceConfigurationsPostRequest](docs/ResourceConfigurationsPostRequest.md) - [ResourcesGet200Response](docs/ResourcesGet200Response.md) - [ResourcesGet200ResponseDataInner](docs/ResourcesGet200ResponseDataInner.md) - - [ResourcesGet200ResponseDataInnerId](docs/ResourcesGet200ResponseDataInnerId.md) - [ResourcesPost200Response](docs/ResourcesPost200Response.md) - [ResourcesPost200ResponseData](docs/ResourcesPost200ResponseData.md) - [ResourcesPostRequest](docs/ResourcesPostRequest.md) - [ResourcesPostRequestOptions](docs/ResourcesPostRequestOptions.md) - [ResourcesResourceIdGet200Response](docs/ResourcesResourceIdGet200Response.md) + - [ResourcesResourceIdPatch200Response](docs/ResourcesResourceIdPatch200Response.md) + - [ResourcesResourceIdPatch200ResponseData](docs/ResourcesResourceIdPatch200ResponseData.md) + - [ResourcesResourceIdPatchRequest](docs/ResourcesResourceIdPatchRequest.md) - [RestAPIOptions](docs/RestAPIOptions.md) - [RestAPIOptionsAuthenticationOptions](docs/RestAPIOptionsAuthenticationOptions.md) - [RestAPIOptionsAuthenticationOptionsAnyOf](docs/RestAPIOptionsAuthenticationOptionsAnyOf.md) @@ -320,7 +430,14 @@ Class | Method | HTTP request | Description - [RestAPIOptionsAuthenticationOptionsAnyOf4Oauth1SignatureMethod](docs/RestAPIOptionsAuthenticationOptionsAnyOf4Oauth1SignatureMethod.md) - [RestAPIOptionsAuthenticationOptionsAnyOf5](docs/RestAPIOptionsAuthenticationOptionsAnyOf5.md) - [RestAPIOptionsAuthenticationOptionsAnyOf6](docs/RestAPIOptionsAuthenticationOptionsAnyOf6.md) - - [SSOConfig](docs/SSOConfig.md) + - [Role](docs/Role.md) + - [RolePermissionsRoleGrantsPostRequest](docs/RolePermissionsRoleGrantsPostRequest.md) + - [RolePermissionsRolesGet200Response](docs/RolePermissionsRolesGet200Response.md) + - [RolePermissionsRolesGet200ResponseDataInner](docs/RolePermissionsRolesGet200ResponseDataInner.md) + - [RolePermissionsRolesPost201Response](docs/RolePermissionsRolesPost201Response.md) + - [RolePermissionsRolesPostRequest](docs/RolePermissionsRolesPostRequest.md) + - [RolePermissionsRolesRoleIdPatchRequest](docs/RolePermissionsRolesRoleIdPatchRequest.md) + - [SAML](docs/SAML.md) - [SnowflakeOptions](docs/SnowflakeOptions.md) - [SnowflakeOptionsAuthenticationOptions](docs/SnowflakeOptionsAuthenticationOptions.md) - [SnowflakeOptionsAuthenticationOptionsAnyOf](docs/SnowflakeOptionsAuthenticationOptionsAnyOf.md) @@ -329,18 +446,6 @@ Class | Method | HTTP request | Description - [SnowflakeOptionsDatabaseOptions](docs/SnowflakeOptionsDatabaseOptions.md) - [SourceControlConfigGet200Response](docs/SourceControlConfigGet200Response.md) - [SourceControlConfigGet200ResponseData](docs/SourceControlConfigGet200ResponseData.md) - - [SourceControlConfigGet200ResponseDataOneOf](docs/SourceControlConfigGet200ResponseDataOneOf.md) - - [SourceControlConfigGet200ResponseDataOneOf1](docs/SourceControlConfigGet200ResponseDataOneOf1.md) - - [SourceControlConfigGet200ResponseDataOneOf1Config](docs/SourceControlConfigGet200ResponseDataOneOf1Config.md) - - [SourceControlConfigGet200ResponseDataOneOf2](docs/SourceControlConfigGet200ResponseDataOneOf2.md) - - [SourceControlConfigGet200ResponseDataOneOf2Config](docs/SourceControlConfigGet200ResponseDataOneOf2Config.md) - - [SourceControlConfigGet200ResponseDataOneOf3](docs/SourceControlConfigGet200ResponseDataOneOf3.md) - - [SourceControlConfigGet200ResponseDataOneOf3Config](docs/SourceControlConfigGet200ResponseDataOneOf3Config.md) - - [SourceControlConfigGet200ResponseDataOneOf4](docs/SourceControlConfigGet200ResponseDataOneOf4.md) - - [SourceControlConfigGet200ResponseDataOneOf4Config](docs/SourceControlConfigGet200ResponseDataOneOf4Config.md) - - [SourceControlConfigGet200ResponseDataOneOfConfig](docs/SourceControlConfigGet200ResponseDataOneOfConfig.md) - - [SourceControlConfigGet200ResponseDataOneOfConfigOneOf](docs/SourceControlConfigGet200ResponseDataOneOfConfigOneOf.md) - - [SourceControlConfigGet200ResponseDataOneOfConfigOneOf1](docs/SourceControlConfigGet200ResponseDataOneOfConfigOneOf1.md) - [SourceControlConfigPost200Response](docs/SourceControlConfigPost200Response.md) - [SourceControlConfigPost200ResponseData](docs/SourceControlConfigPost200ResponseData.md) - [SourceControlConfigPut200Response](docs/SourceControlConfigPut200Response.md) @@ -348,10 +453,26 @@ Class | Method | HTTP request | Description - [SourceControlConfigPutRequest](docs/SourceControlConfigPutRequest.md) - [SourceControlConfigPutRequestConfig](docs/SourceControlConfigPutRequestConfig.md) - [SourceControlConfiguration](docs/SourceControlConfiguration.md) - - [SourceControlConfigurationAnyOf](docs/SourceControlConfigurationAnyOf.md) - - [SourceControlConfigurationAnyOfConfig](docs/SourceControlConfigurationAnyOfConfig.md) - [SourceControlDeployPost200Response](docs/SourceControlDeployPost200Response.md) - [SourceControlDeployPost200ResponseData](docs/SourceControlDeployPost200ResponseData.md) + - [SourceControlManifestsGet200Response](docs/SourceControlManifestsGet200Response.md) + - [SourceControlManifestsGet200ResponseData](docs/SourceControlManifestsGet200ResponseData.md) + - [SourceControlManifestsGet200ResponseDataManifestsInner](docs/SourceControlManifestsGet200ResponseDataManifestsInner.md) + - [SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner](docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md) + - [SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease](docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease.md) + - [SourceControlManifestsManifestNameAppsAppUuidPutRequest](docs/SourceControlManifestsManifestNameAppsAppUuidPutRequest.md) + - [SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease](docs/SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease.md) + - [SourceControlManifestsManifestNameDeletePostRequest](docs/SourceControlManifestsManifestNameDeletePostRequest.md) + - [SourceControlManifestsManifestNameGet200Response](docs/SourceControlManifestsManifestNameGet200Response.md) + - [SourceControlManifestsManifestNameGet200ResponseData](docs/SourceControlManifestsManifestNameGet200ResponseData.md) + - [SourceControlManifestsManifestNameGet200ResponseDataManifest](docs/SourceControlManifestsManifestNameGet200ResponseDataManifest.md) + - [SourceControlManifestsManifestNamePut200Response](docs/SourceControlManifestsManifestNamePut200Response.md) + - [SourceControlManifestsManifestNamePut200ResponseData](docs/SourceControlManifestsManifestNamePut200ResponseData.md) + - [SourceControlManifestsManifestNamePutRequest](docs/SourceControlManifestsManifestNamePutRequest.md) + - [SourceControlManifestsManifestNamePutRequestManifest](docs/SourceControlManifestsManifestNamePutRequestManifest.md) + - [SourceControlReleasesAppsAppUuidGet200Response](docs/SourceControlReleasesAppsAppUuidGet200Response.md) + - [SourceControlReleasesAppsAppUuidGet200ResponseDataInner](docs/SourceControlReleasesAppsAppUuidGet200ResponseDataInner.md) + - [SourceControlReleasesAppsAppUuidPostRequest](docs/SourceControlReleasesAppsAppUuidPostRequest.md) - [SourceControlSettings](docs/SourceControlSettings.md) - [SourceControlSettingsGet200Response](docs/SourceControlSettingsGet200Response.md) - [SourceControlSettingsGet200ResponseData](docs/SourceControlSettingsGet200ResponseData.md) @@ -391,13 +512,10 @@ Class | Method | HTTP request | Description - [SsoConfigPost200ResponseData](docs/SsoConfigPost200ResponseData.md) - [SsoConfigPostRequest](docs/SsoConfigPostRequest.md) - [SsoConfigPostRequestData](docs/SsoConfigPostRequestData.md) - - [SsoConfigPostRequestDataOneOf](docs/SsoConfigPostRequestDataOneOf.md) - - [SsoConfigPostRequestDataOneOf1](docs/SsoConfigPostRequestDataOneOf1.md) - - [SsoConfigPostRequestDataOneOf2](docs/SsoConfigPostRequestDataOneOf2.md) - - [SsoConfigPostRequestDataOneOf3](docs/SsoConfigPostRequestDataOneOf3.md) - - [SsoConfigPostRequestDataOneOf4](docs/SsoConfigPostRequestDataOneOf4.md) - [SsoConfiguration](docs/SsoConfiguration.md) + - [TestOperation](docs/TestOperation.md) - [Usage](docs/Usage.md) + - [UsageAnalyticsOrganization](docs/UsageAnalyticsOrganization.md) - [UsageAppDetailsGet200Response](docs/UsageAppDetailsGet200Response.md) - [UsageAppDetailsGet200ResponseData](docs/UsageAppDetailsGet200ResponseData.md) - [UsageAppDetailsGet200ResponseDataOverallSummaryInner](docs/UsageAppDetailsGet200ResponseDataOverallSummaryInner.md) @@ -421,6 +539,12 @@ Class | Method | HTTP request | Description - [UserAttributes](docs/UserAttributes.md) - [UserAttributesGet200Response](docs/UserAttributesGet200Response.md) - [UserAttributesGet200ResponseDataInner](docs/UserAttributesGet200ResponseDataInner.md) + - [UserAttributesIdPatch200Response](docs/UserAttributesIdPatch200Response.md) + - [UserAttributesIdPatch200ResponseData](docs/UserAttributesIdPatch200ResponseData.md) + - [UserAttributesIdPatchRequest](docs/UserAttributesIdPatchRequest.md) + - [UserAttributesPost200Response](docs/UserAttributesPost200Response.md) + - [UserAttributesPost200ResponseData](docs/UserAttributesPost200ResponseData.md) + - [UserAttributesPostRequest](docs/UserAttributesPostRequest.md) - [UserInvite](docs/UserInvite.md) - [UserInvitesGet200Response](docs/UserInvitesGet200Response.md) - [UserInvitesPost200Response](docs/UserInvitesPost200Response.md) @@ -432,6 +556,19 @@ Class | Method | HTTP request | Description - [UserInvitesUserInviteIdUserAttributesPost200Response](docs/UserInvitesUserInviteIdUserAttributesPost200Response.md) - [UserInvitesUserInviteIdUserAttributesPost200ResponseData](docs/UserInvitesUserInviteIdUserAttributesPost200ResponseData.md) - [UserInvitesUserInviteIdUserAttributesPostRequest](docs/UserInvitesUserInviteIdUserAttributesPostRequest.md) + - [UserTask](docs/UserTask.md) + - [UserTasksGet200Response](docs/UserTasksGet200Response.md) + - [UserTasksGet200ResponseDataInner](docs/UserTasksGet200ResponseDataInner.md) + - [UserTasksGet200ResponseDataInnerAssigneesInner](docs/UserTasksGet200ResponseDataInnerAssigneesInner.md) + - [UserTasksGetAssignedToUsersParameter](docs/UserTasksGetAssignedToUsersParameter.md) + - [UserTasksTaskIdCancelPatchRequest](docs/UserTasksTaskIdCancelPatchRequest.md) + - [UserTasksTaskIdReassignPatchRequest](docs/UserTasksTaskIdReassignPatchRequest.md) + - [UserTasksTaskIdReassignPatchRequestAssigneesInner](docs/UserTasksTaskIdReassignPatchRequestAssigneesInner.md) + - [UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf](docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf.md) + - [UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1](docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1.md) + - [UserTasksTaskIdSubmitPatch200Response](docs/UserTasksTaskIdSubmitPatch200Response.md) + - [UserTasksTaskIdSubmitPatch200ResponseData](docs/UserTasksTaskIdSubmitPatch200ResponseData.md) + - [UserTasksTaskIdSubmitPatchRequest](docs/UserTasksTaskIdSubmitPatchRequest.md) - [UsersGet200Response](docs/UsersGet200Response.md) - [UsersPost200Response](docs/UsersPost200Response.md) - [UsersPost200ResponseData](docs/UsersPost200ResponseData.md) @@ -440,14 +577,18 @@ Class | Method | HTTP request | Description - [UsersUserIdGet200ResponseData](docs/UsersUserIdGet200ResponseData.md) - [UsersUserIdPatchRequest](docs/UsersUserIdPatchRequest.md) - [UsersUserIdPatchRequestOperationsInner](docs/UsersUserIdPatchRequestOperationsInner.md) - - [UsersUserIdPatchRequestOperationsInnerAnyOf](docs/UsersUserIdPatchRequestOperationsInnerAnyOf.md) - - [UsersUserIdPatchRequestOperationsInnerAnyOf1](docs/UsersUserIdPatchRequestOperationsInnerAnyOf1.md) - - [UsersUserIdPatchRequestOperationsInnerAnyOf2](docs/UsersUserIdPatchRequestOperationsInnerAnyOf2.md) - [UsersUserIdUserAttributesAttributeNameDelete200Response](docs/UsersUserIdUserAttributesAttributeNameDelete200Response.md) - [UsersUserIdUserAttributesAttributeNameDelete200ResponseData](docs/UsersUserIdUserAttributesAttributeNameDelete200ResponseData.md) - [UsersUserIdUserAttributesPost200Response](docs/UsersUserIdUserAttributesPost200Response.md) - [UsersUserIdUserAttributesPost200ResponseData](docs/UsersUserIdUserAttributesPost200ResponseData.md) - [UsersUserIdUserAttributesPostRequest](docs/UsersUserIdUserAttributesPostRequest.md) + - [Workflow](docs/Workflow.md) + - [WorkflowRunIdGet200Response](docs/WorkflowRunIdGet200Response.md) + - [WorkflowRunWithUserTask](docs/WorkflowRunWithUserTask.md) + - [WorkflowsGet200Response](docs/WorkflowsGet200Response.md) + - [WorkflowsGet200ResponseDataInner](docs/WorkflowsGet200ResponseDataInner.md) + - [WorkflowsGet403Response](docs/WorkflowsGet403Response.md) + - [WorkflowsWorkflowIdGet200Response](docs/WorkflowsWorkflowIdGet200Response.md) ## Documentation For Authorization diff --git a/internal/sdk/api/api/openapi.yaml b/internal/sdk/api/api/openapi.yaml index 67c5be6..da1a67a 100644 --- a/internal/sdk/api/api/openapi.yaml +++ b/internal/sdk/api/api/openapi.yaml @@ -3,7 +3,7 @@ info: description: "Go to Settings > API to get started. Once you generate an API token,\ \ use bearer token authentication to make requests." title: Retool API - version: 2.4.0 + version: 2.9.0 externalDocs: description: Retool API Documentation url: https://docs.retool.com/reference/api-ref @@ -14,7 +14,8 @@ security: paths: /users/{userId}: delete: - description: Deletes a user. The API token must have the "Users > Write" scope. + description: Disables a user from the organization. The API token must have + the "Users > Write" scope. parameters: - explode: false in: path @@ -26,12 +27,13 @@ paths: style: simple responses: "204": - description: Successfully deleted user. + description: Successfully disabled user. summary: Delete a user tags: - Users get: - description: Returns the user. The API token must have the "Users > Read" scope. + description: Returns the specified user. The API token must have the "Users + > Read" scope. parameters: - explode: false in: path @@ -48,7 +50,7 @@ paths: schema: $ref: '#/components/schemas/_users__userId__get_200_response' description: The requested user. - summary: Get user + summary: Get a user tags: - Users patch: @@ -82,6 +84,34 @@ paths: get: description: Returns a list of users. The API token must have the "Users > Read" scope. + parameters: + - description: Email address of user + explode: true + in: query + name: email + required: false + schema: + description: Email address of user + type: string + style: form + - description: First name of user + explode: true + in: query + name: first_name + required: false + schema: + description: First name of user + type: string + style: form + - description: Last name of user + explode: true + in: query + name: last_name + required: false + schema: + description: Last name of user + type: string + style: form responses: "200": content: @@ -110,11 +140,31 @@ paths: summary: Create user tags: - Users + /users/reset2fa/{userId}: + put: + description: Available on version 3.124+. Disables any existing 2FA settings + for a user. The API token must have the "Users > Write" scope. + parameters: + - explode: false + in: path + name: userId + required: true + schema: + pattern: "user_([a-z0-9]+)" + type: string + style: simple + responses: + "204": + description: Successfully reset 2FA. + summary: Resets a user's existing two factor authentication setting + tags: + - Users /users/{userId}/user_attributes: post: description: "Available from API version 2.1.0+ and onprem version 3.20.1+.\ \ Adds or updates a user attribute, and returns the updated user metadata.\ - \ The API token must have the \"Users > Write\" scope." + \ The API token must have either the \"Users > Write\" or \"User Attributes\ + \ > Write\" scope." parameters: - explode: false in: path @@ -143,7 +193,8 @@ paths: delete: description: "Available from API version 2.1.0+ and onprem version 3.20.1+.\ \ Deletes a user attribute, and returns the updated user metadata. The API\ - \ token must have the \"Users > Write\" scope." + \ token must have either the \"Users > Write\" or \"User Attributes > Write\"\ + \ scope." parameters: - explode: false in: path @@ -153,7 +204,8 @@ paths: pattern: "user_([a-z0-9]+)" type: string style: simple - - explode: false + - description: The name of the user attribute to delete + explode: false in: path name: attributeName required: true @@ -168,7 +220,7 @@ paths: schema: $ref: '#/components/schemas/_users__userId__user_attributes__attributeName__delete_200_response' description: Returns the updated user metadata. - summary: Delete a user attribute. + summary: Delete a user attribute tags: - Users /groups/{groupId}: @@ -176,7 +228,8 @@ paths: description: Deletes a group with the given groupId. The API token must have the "Groups > Write" scope. parameters: - - explode: false + - description: The group's ID number + explode: false in: path name: groupId required: true @@ -195,7 +248,8 @@ paths: description: Get a group with a given groupId. The API token must have the "Groups > Read" scope. parameters: - - explode: false + - description: The group's ID number + explode: false in: path name: groupId required: true @@ -218,7 +272,8 @@ paths: description: Update a group in an organization using JSON Patch (RFC 6902). Returns the updated group. The API token must have the "Groups > Write" scope. parameters: - - explode: false + - description: The group's ID number + explode: false in: path name: groupId required: true @@ -246,7 +301,8 @@ paths: description: Update the entire group and returns the updated group. The API token must have the "Groups > Write" scope. parameters: - - explode: false + - description: The group's ID number + explode: false in: path name: groupId required: true @@ -308,7 +364,8 @@ paths: a user invite to specified group and returns the group. The API token must have the "Groups > Write" scope. parameters: - - explode: false + - description: The group's ID number + explode: false in: path name: groupId required: true @@ -334,11 +391,14 @@ paths: - Groups /groups/{groupId}/members: post: - description: Adds a user to specified group and returns the group. Can optionally - set or unset group admins by using the `is_group_admin` property. The API - token must have the "Groups > Write" scope. + description: "Adds specified user(s) to group and returns the group. Can optionally\ + \ set or unset group admins by using the `is_group_admin` property. If existing\ + \ members are passed in, group admin status will be updated. You cannot remove\ + \ members using this endpoint. The API token must have the \"Groups > Write\"\ + \ scope." parameters: - - explode: false + - description: The group's ID number + explode: false in: path name: groupId required: true @@ -367,7 +427,8 @@ paths: description: Removes the user from the group and returns the group. The API token must have the "Groups > Write" scope. parameters: - - explode: false + - description: The group's ID number + explode: false in: path name: groupId required: true @@ -400,7 +461,8 @@ paths: the user invite from the group. The API token must have the "Groups > Write" scope. parameters: - - explode: false + - description: The group's ID number + explode: false in: path name: groupId required: true @@ -409,7 +471,8 @@ paths: pattern: ^\d+$ type: string style: simple - - explode: false + - description: The user invite's ID number + explode: false in: path name: userInviteId required: true @@ -474,20 +537,28 @@ paths: description: Deletes a folder by ID. The API token must have the "Folders > Write" scope. parameters: - - explode: false + - description: The id of the folder + explode: false in: path name: folderId required: true schema: description: The id of the folder - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_folders__folderId__delete_request' + - description: Should the folder's contents also be deleted? (Only supported + for app folders.) + explode: true + in: query + name: recursive + required: false + schema: + description: Should the folder's contents also be deleted? (Only supported + for app folders.) + nullable: true + type: boolean + style: form responses: "204": description: Folder deleted @@ -504,13 +575,14 @@ paths: description: Returns the folder with the given ID. The API token must have the "Folders > Read" scope. parameters: - - explode: false + - description: The id of the folder + explode: false in: path name: folderId required: true schema: description: The id of the folder - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string style: simple responses: @@ -533,13 +605,14 @@ paths: description: Updates a folder by ID. The API token must have the "Folders > Write" scope. parameters: - - explode: false + - description: The id of the folder + explode: false in: path name: folderId required: true schema: description: The id of the folder - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string style: simple requestBody: @@ -612,7 +685,8 @@ paths: description: Available for orgs with Spaces enabled. Delete a space by ID. The API token must have the "Spaces > Write" scope. parameters: - - explode: false + - description: The id of the space to delete. + explode: false in: path name: spaceId required: true @@ -660,8 +734,8 @@ paths: tags: - Spaces put: - description: Available for orgs with Spaces enabled. Get space by ID. The API - token must have the "Spaces > Write" scope. + description: Available for orgs with Spaces enabled. Update space by ID. The + API token must have the "Spaces > Write" scope. parameters: - explode: false in: path @@ -699,8 +773,9 @@ paths: - Spaces /spaces/copyElements: post: - description: Available for orgs with Spaces enabled. Copy elements by ID. The - API token must have the "Spaces > Write" scope. + description: "Available for orgs with Spaces enabled. Copies apps, queries,\ + \ resources, and workflows from one space to another. The API token must have\ + \ the \"Spaces > Write\" scope." requestBody: content: application/json: @@ -719,7 +794,7 @@ paths: schema: $ref: '#/components/schemas/_folders_post_409_response' description: Error message. - summary: "Copies apps, queries, resources, and workflows from one space to another" + summary: Copy elements to another space tags: - Spaces /source_control/config: @@ -841,8 +916,8 @@ paths: - Source Control /source_control/test_deploy: post: - description: Attempts to do a dry deployment (no db changes) on the instance - with provided commit sha to see if those changes are valid. + description: Attempts a test deployment (no permanent changes) using the provided + commit SHA in order to determine whether the commit is valid. requestBody: content: application/json: @@ -875,9 +950,10 @@ paths: - Source Control /source_control/deployment/{id}: get: - description: Get the status of a deployment + description: Get the status of a deployment. parameters: - - explode: false + - description: The deployment ID + explode: false in: path name: id required: true @@ -899,7 +975,7 @@ paths: schema: $ref: '#/components/schemas/_folders_post_409_response' description: Deployment not found - summary: Get deployment by id + summary: Get a deployment tags: - Source Control /source_control/settings: @@ -947,39 +1023,42 @@ paths: summary: Set source control settings tags: - Source Control - /app_themes/{id}: - delete: - description: Deletes specified app theme for organization or space. The API - token must have the "App Themes > Write" scope. - parameters: - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple + /source_control/manifests: + get: + description: |- + Returns a list of all release manifests available in the source control repository. The API token must have the "Source control > Releases (Read)" scope. + + This feature is in beta. Reach out to support if you’d like to join the beta. responses: - "204": - description: Successful deletion. - "404": + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_source_control_manifests_get_200_response' + description: List of release manifests. + "400": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: The app theme was not found. - summary: Delete app theme + description: Error message. + summary: Lists all release manifests tags: - - App Themes + - Source Control + /source_control/manifests/{manifestName}: get: - description: Returns the app theme matching the ID for the organization or space. - The API token must have the "App Themes > Read" scope. + description: |- + Returns the release manifest with the specified name from the source control repository if it exists. The API token must have the "Source control > Releases (Read)" scope. + + This feature is in beta. Reach out to support if you’d like to join the beta. parameters: - - explode: false + - description: Identifier for the manifest of interest + explode: false in: path - name: id + name: manifestName required: true schema: + description: Identifier for the manifest of interest type: string style: simple responses: @@ -987,318 +1066,341 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/_app_themes__id__get_200_response' - description: App theme for the organization or space. - "404": + $ref: '#/components/schemas/_source_control_manifests__manifestName__get_200_response' + description: A release manifest + "400": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: App theme does not exist. - summary: Get app theme + description: Error message. + summary: Get a specific release manifest tags: - - App Themes - /app_themes: - post: - description: "Creates and returns a new app theme. If a theme with the same\ - \ name already exists, it returns 409 and does not modify the theme. The API\ - \ token must have the \"App Themes > Write\" scope." + - Source Control + put: + description: |- + Push a branch to the source control repository that creates or updates the named release manifest. If the manifest exists, it will be overwritten in the branch. The API token must have the "Source control > Releases (Write)" scope. + + This feature is in beta. Reach out to support if you’d like to join the beta. + parameters: + - description: Identifier for the manifest of interest + explode: false + in: path + name: manifestName + required: true + schema: + description: Identifier for the manifest of interest + type: string + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/_app_themes_put_request' + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_app_themes_put_200_response' - description: Creates an app theme and returns it. - "409": + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response' + description: Pushed a branch with the named release manifest. + "400": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Error when there is a naming conflict. - summary: Create app theme + description: Error message. + summary: Set release manifest tags: - - App Themes - put: - description: Creates or updates an app theme and returns it. The API token must - have the "App Themes > Write" scope. + - Source Control + /source_control/manifests/{manifestName}/delete: + post: + description: |- + Push a branch to the source control repository that deletes the named release manifest. The API token must have the "Source control > Releases (Write)" scope. + + This feature is in beta. Reach out to support if you’d like to join the beta. + parameters: + - description: Identifier for the manifest of interest + explode: false + in: path + name: manifestName + required: true + schema: + description: Identifier for the manifest of interest + type: string + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/_app_themes_put_request' + $ref: '#/components/schemas/_source_control_manifests__manifestName__delete_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_app_themes_put_200_response' - description: The updated app theme for the organization or space. - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/_app_themes_put_200_response' - description: The created app theme for the organization or space. - "409": + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response' + description: Pushed a branch with the named release manifest. + "400": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Naming conflict exists - summary: Update app theme + description: Error message. + summary: Delete a release manifest tags: - - App Themes - /apps/{appId}: - delete: - description: Deletes an app with the given appId. The API token must have the - "Apps > Write" scope. + - Source Control + /source_control/manifests/{manifestName}/apps/{appUuid}: + put: + deprecated: true + description: "NOTE: This endpoint is deprecated. Use the PUT /manifests/{manifestName}/{elementUuid}\ + \ endpoint instead. \n\nPush a branch to the source control repository that\ + \ updates the release version of the specified app in the named release manifest.\ + \ If the manifest does not already exist, it will be created in the branch.\ + \ The API token must have the \"Source control > Releases (Write)\" scope.\n\ + \nThis feature is in beta. Reach out to support if you’d like to join the\ + \ beta." parameters: - - explode: false + - description: "The uuid to specify an app of interest within the release manifest.\ + \ This should be the uuid found in the source control repository, which\ + \ may differ from the organization specific uuid." + explode: false in: path - name: appId + name: appUuid required: true schema: - description: The app ID. + description: "The uuid to specify an app of interest within the release\ + \ manifest. This should be the uuid found in the source control repository,\ + \ which may differ from the organization specific uuid." format: uuid type: string style: simple - responses: - "204": - description: App deleted - summary: Delete app - tags: - - Apps - get: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Returns - the App. The API token must have the "Apps > Read" scope. - parameters: - - explode: false + - description: Identifier for the manifest of interest + explode: false in: path - name: appId + name: manifestName required: true schema: - description: The app ID. - format: uuid + description: Identifier for the manifest of interest type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_source_control_manifests__manifestName__apps__appUuid__put_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_apps__appId__get_200_response' - description: The requested app. - summary: Get app - tags: - - Apps - /apps: - get: - description: 'Get all apps for an organization or space. The API token must - have the "Apps > Read" scope. ' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_apps_get_200_response' - description: List of apps - summary: List apps - tags: - - Apps - /sso/config: - delete: - description: Removes SSO configuration for organization or space. The API token - must have the "Spaces > Write" scope. Note that this will not remove the SSO - configuration if it is configured via env variables. - responses: - "204": - description: SSO configuration for the organization or space has been successfully - removed. - summary: Remove SSO configuration - tags: - - SSO - get: - description: Reads SSO configuration of organization or space. The API token - must have the "Spaces > Read" scope. Note that this will not return the SSO - configuration if it is configured via env variables. - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_sso_config_get_200_response' - description: SSO configuration for the organization or space. - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/_folders_post_409_response' - description: SSO is not configured for this organization or space. - "422": + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response' + description: Pushed a branch with the updated release version for the specified + app in the named release manifest. + "400": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: The organization has unsupported type of SSO configurations. - summary: Get SSO configuration + description: Error message. + summary: Set release manifest tags: - - SSO - post: - description: Sets SSO configuration for organization or space. The API token - must have the "Spaces > Write" scope. + - Source Control + /source_control/manifests/{manifestName}/{elementUuid}: + put: + description: |- + Push a branch to the source control repository that updates the release version of the specified element in the named release manifest. If the manifest does not already exist, it will be created in the branch. The API token must have the "Source control > Releases (Write)" scope. + + This feature is in beta. Reach out to support if you’d like to join the beta. + parameters: + - description: The uuid to specify an element of interest within the release + manifest. + explode: false + in: path + name: elementUuid + required: true + schema: + description: The uuid to specify an element of interest within the release + manifest. + format: uuid + type: string + style: simple + - description: Identifier for the manifest of interest + explode: false + in: path + name: manifestName + required: true + schema: + description: Identifier for the manifest of interest + type: string + style: simple + - description: The type of the element. + explode: true + in: query + name: elementType + required: true + schema: + description: The type of the element. + enum: + - PAGE + - WORKFLOW + type: string + style: form requestBody: content: application/json: schema: - $ref: '#/components/schemas/_sso_config_post_request' + $ref: '#/components/schemas/_source_control_manifests__manifestName__apps__appUuid__put_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_sso_config_post_200_response' - description: SSO configuration for the organization or space. + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response' + description: Pushed a branch with the updated release version for the specified + element in the named release manifest. "400": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Error - summary: Set SSO configuration + description: Error message. + summary: Set release manifest tags: - - SSO - /user_attributes: - get: - description: Gets the list of currently configured user attributes for the organization. - The API token must have the "Users > Read" scope. - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_user_attributes_get_200_response' - description: List of currently configured user attributes. - summary: Get organization user attributes. - tags: - - User Attributes - /permissions/listObjects: + - Source Control + /source_control/manifests/{manifestName}/apps/{appUuid}/delete: post: - description: "Returns the list of objects with corresponding access levels that\ - \ a subject (group) has access to. The API token must have the \"Permissions\ - \ > Read\" scope. Folders are supported from API version 2.0.0 + and onprem\ - \ version 3.18+, apps are supported from API version 2.4.0+ and onprem version\ - \ 3.26.0+, resources and resource_configurations are supported from onprem\ - \ edge version 3.37.0+ and 3.47-stable+" + deprecated: true + description: "NOTE: This endpoint is deprecated. Use the DELETE /manifests/{manifestName}/{elementUuid}\ + \ endpoint instead. \n\nPush a branch to the source control repository that\ + \ deletes the entry for the specified app from the named release manifest.\ + \ The API token must have the \"Source control > Releases (Write)\" scope.\n\ + \nThis feature is in beta. Reach out to support if you’d like to join the\ + \ beta." + parameters: + - description: "The uuid to specify an app of interest within the release manifest.\ + \ This should be the uuid found in the source control repository, which\ + \ may differ from the organization specific uuid." + explode: false + in: path + name: appUuid + required: true + schema: + description: "The uuid to specify an app of interest within the release\ + \ manifest. This should be the uuid found in the source control repository,\ + \ which may differ from the organization specific uuid." + format: uuid + type: string + style: simple + - description: Identifier for the manifest of interest + explode: false + in: path + name: manifestName + required: true + schema: + description: Identifier for the manifest of interest + type: string + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/_permissions_listObjects_post_request' + $ref: '#/components/schemas/_source_control_manifests__manifestName__delete_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_permissions_listObjects_post_200_response' - description: A list of folders with corresponding access levels. - summary: List objects a group can access - tags: - - Permissions - /permissions/grant: - post: - description: "Grant a group (subject) access to an object. Returns the updated\ - \ list of objects with corresponding access levels that the subject has access\ - \ to. The API token must have the \"Permissions > Write\" scope. Folders are\ - \ supported from API version 2.0.0 + and onprem version 3.18+, apps are supported\ - \ from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations\ - \ are supported from onprem edge version 3.37.0+ and 3.47-stable+. Only subject\ - \ type supported is groups. Also grants or updates access for all the objects\ - \ within the folder. " - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_permissions_grant_post_request' - responses: - "200": + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response' + description: Pushed a branch that removes the entry for the specified app + from the named release manifest. + "400": content: application/json: schema: - $ref: '#/components/schemas/_permissions_listObjects_post_200_response' - description: A list of folders with corresponding access levels - summary: Grant permissions + $ref: '#/components/schemas/_folders_post_409_response' + description: Error message. + summary: Delete the entry for an app from a release manifest tags: - - Permissions - /permissions/revoke: + - Source Control + /source_control/manifests/{manifestName}/{elementUuid}/delete: post: - description: "Revoke access to an object for a group. Returns the updated list\ - \ of objects with corresponding access levels that the subject has access\ - \ to. The API token must have the \"Permissions > Write\" scope. Folders\ - \ are supported from API version 2.0.0 + and onprem version 3.18+, apps are\ - \ supported from API version 2.4.0+ and onprem version 3.34.0+, resources\ - \ and resource_configurations are supported from onprem edge version 3.37.0+\ - \ and 3.47-stable+. Only subject type supported is groups. Also revokes access\ - \ to all the objects within the folder." + description: |- + Push a branch to the source control repository that deletes the entry for the specified element from the named release manifest. The API token must have the "Source control > Releases (Write)" scope. + + This feature is in beta. Reach out to support if you’d like to join the beta. + parameters: + - description: The uuid to specify an element of interest within the release + manifest. + explode: false + in: path + name: elementUuid + required: true + schema: + description: The uuid to specify an element of interest within the release + manifest. + format: uuid + type: string + style: simple + - description: Identifier for the manifest of interest + explode: false + in: path + name: manifestName + required: true + schema: + description: Identifier for the manifest of interest + type: string + style: simple + - description: The type of the element. + explode: true + in: query + name: elementType + required: true + schema: + description: The type of the element. + enum: + - PAGE + - WORKFLOW + type: string + style: form requestBody: content: application/json: schema: - $ref: '#/components/schemas/_permissions_revoke_post_request' + $ref: '#/components/schemas/_source_control_manifests__manifestName__delete_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_permissions_revoke_post_200_response' - description: A list of folders with corresponding access levels - summary: Revoke permissions - tags: - - Permissions - /access_requests: - get: - description: Available from API version 2.3.0+ and onprem version 3.24.0+. Gets - a list of access requests. The API token must have the "Users > Read" scope. - parameters: - - explode: true - in: query - name: status - required: false - schema: - description: The status of the access request - enum: - - PENDING - - APPROVED - - DENIED - type: string - style: form - responses: - "200": + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response' + description: Pushed a branch that removes the entry for the specified element + from the named release manifest. + "400": content: application/json: schema: - $ref: '#/components/schemas/_access_requests_get_200_response' - description: Returns all access requests. - summary: Get organization access requests + $ref: '#/components/schemas/_folders_post_409_response' + description: Error message. + summary: Delete the entry for an app from a release manifest tags: - - Access Request - /access_requests/{accessRequestId}: + - Source Control + /source_control/releases/apps/{appUuid}: get: - description: Available from API version 2.2.0+ and onprem version 3.24.0+. Returns - the access request. The API token must have the "Users > Read" scope. + deprecated: true + description: "NOTE: This endpoint is deprecated. Use the GET /releases/{elementUuid}\ + \ endpoint instead. \n\nReturns a list of the available releases for the app.\ + \ The API token must have the \"Source control > Releases (Read)\" scope.\n\ + \nThis feature is in beta. Reach out to support if you’d like to join the\ + \ beta." parameters: - - explode: false + - description: The uuid of the app. + explode: false in: path - name: accessRequestId + name: appUuid required: true schema: - description: The access request's ID number - pattern: ^\d+$ + description: The uuid of the app. type: string style: simple responses: @@ -1306,674 +1408,545 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/_access_requests__accessRequestId__get_200_response' - description: The requested access request. - summary: Get access request + $ref: '#/components/schemas/_source_control_releases_apps__appUuid__get_200_response' + description: List of source control releases. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Error message. + summary: Lists all available releases for the given app. tags: - - Access Request - patch: - description: Available from API version 2.3.0+ and onprem version 3.24.0+. Approve - or deny an access request in your organization. The API token must have the - "Users > Write" scope. + - Source Control + post: + deprecated: true + description: "NOTE: This endpoint is deprecated. Use the POST /releases/{elementUuid}\ + \ endpoint instead. \n\nPush a branch to the source control repository that\ + \ creates a new release artifact with the provided version for the app based\ + \ on the latest version. The API token must have the \"Source control > Releases\ + \ (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you’\ + d like to join the beta." parameters: - - explode: false + - description: The uuid of the app. + explode: false in: path - name: accessRequestId + name: appUuid required: true schema: - description: The ID of the access request + description: The uuid of the app. type: string style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/_access_requests__accessRequestId__patch_request' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_access_requests__accessRequestId__patch_200_response' - description: Returns an approved or denied access request - summary: Approve or deny an access request - tags: - - Access Request - /user_invites: - get: - description: Available from API version 2.3.0+ and onprem version 3.24.0+. Gets - a list of user invites + $ref: '#/components/schemas/_source_control_releases_apps__appUuid__post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_user_invites_get_200_response' - description: Returns all user invites. - summary: Get organization user invites - tags: - - User Invite - post: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Create - a new user invite - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_user_invites_post_request' - responses: - "200": + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response' + description: Pushed a branch with the new release artifact + "400": content: application/json: schema: - $ref: '#/components/schemas/_user_invites_post_200_response' - description: Returns the newly created user invite. - summary: Create a new user invite + $ref: '#/components/schemas/_folders_post_409_response' + description: Error message. + summary: Create a release artifact tags: - - User Invite - /user_invites/{userInviteId}: - delete: - description: Available from API version 2.4.0+ and onprem version 3.26.0+. Returns - the deleted user invite. The API token must have the "Users > Write" scope. + - Source Control + /source_control/releases/{elementUuid}: + get: + description: |- + Returns a list of the available releases for the element. The API token must have the "Source control > Releases (Read)" scope. + + This feature is in beta. Reach out to support if you’d like to join the beta. parameters: - - explode: false + - description: The uuid of the element. + explode: false in: path - name: userInviteId + name: elementUuid required: true schema: - description: The user invite's ID - pattern: ^\d+$ + description: The uuid of the element. type: string style: simple - responses: - "204": - content: {} - description: Successfully deleted user invite. - summary: Delete user invite - tags: - - User Invite - get: - description: Available from API version 2.4.0+ and onprem version 3.26.0+. Returns - the user invite. The API token must have the "Users > Read" scope. - parameters: - - explode: false - in: path - name: userInviteId + - description: The type of the element. + explode: true + in: query + name: elementType required: true schema: - description: The user invite's ID - pattern: ^\d+$ + description: The type of the element. + enum: + - PAGE + - WORKFLOW type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_user_invites__userInviteId__get_200_response' - description: The requested user invite. - summary: Get user invite + $ref: '#/components/schemas/_source_control_releases_apps__appUuid__get_200_response' + description: List of source control releases for the given element + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Error message. + summary: Lists all available releases for the given element. tags: - - User Invite - /user_invites/{userInviteId}/user_attributes: + - Source Control post: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Add - or update the user attributes of a user invite + description: |- + Push a branch to the source control repository that creates a new release artifact with the provided version for the element based on the latest version. The API token must have the "Source control > Releases (Write)" scope. + + This feature is in beta. Reach out to support if you’d like to join the beta. parameters: - - explode: false + - description: The uuid of the element. + explode: false in: path - name: userInviteId + name: elementUuid required: true schema: - description: The user invite's ID - pattern: ^\d+$ + description: The uuid of the element. type: string style: simple + - description: The type of the element. + explode: true + in: query + name: elementType + required: true + schema: + description: The type of the element. + enum: + - PAGE + - WORKFLOW + type: string + style: form requestBody: content: application/json: schema: - $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes_post_request' + $ref: '#/components/schemas/_source_control_releases_apps__appUuid__post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes_post_200_response' - description: Returns the updated user attributes. - summary: Add or update user attributes on a user invite + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response' + description: Pushed a branch with the new release artifact + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Error message. + summary: Create a release artifact tags: - - User Invite - /user_invites/{userInviteId}/user_attributes/{attributeName}: + - Source Control + /app_themes/{id}: delete: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Delete - a specified user attribute from an user invite + description: Deletes specified app theme for organization or space. The API + token must have the "App Themes > Write" scope. parameters: - explode: false in: path - name: userInviteId - required: true - schema: - description: The user invite's ID - pattern: ^\d+$ - type: string - style: simple - - explode: false - in: path - name: attributeName + name: id required: true schema: type: string style: simple responses: - "200": - content: - application/json: + "204": + description: Successful deletion. + "404": + content: + application/json: schema: - $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes__attributeName__delete_200_response' - description: Returns the updated user attributes. - summary: Delete a user attribute on a user invite + $ref: '#/components/schemas/_folders_post_409_response' + description: The app theme was not found. + summary: Delete app theme tags: - - User Invite - /resources: + - App Themes get: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Gets - a paginated list of resources. The API token must have the "Resources > Read" - scope. + description: Returns the app theme matching the ID for the organization or space. + The API token must have the "App Themes > Read" scope. parameters: - - explode: true - in: query - name: next_token - required: false - schema: - description: The token of the current page - type: string - style: form - - explode: true - in: query - name: resource_type - required: false + - explode: false + in: path + name: id + required: true schema: - description: The type of resource. - enum: - - airflow - - alloydb - - asana - - athena - - basecamp - - bigid - - bigquery - - cassandra - - circleci - - closeio - - cosmosdb - - couchdb - - databricks - - datadog - - datastore - - denodo - - dynamodb - - elasticsearch - - firebase - - front - - gcs - - github - - googleAnalytics - - googleMaps - - googleSearchConsole - - googlesheets - - graphql - - grpc - - hubspot - - jdbc - - jira - - lambda - - launchdarkly - - microsoftTeams - - mongodb - - mssql - - mysql - - notion - - onesignal - - openAI - - openapi - - oracledb - - postgresql - - presto - - redis - - redshift - - restapi - - rethinkdb - - rockset - - retoolEmail - - retoolAI - - retoolDb - - retoolStorage - - s3 - - salesforce - - saphana - - sendgrid - - shell - - slack - - slackopenapi - - smtp - - snowflake - - stripe - - twilio - - vertica type: string - style: form + style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_resources_get_200_response' - description: Returns a paginated list of resources. - summary: Get resources + $ref: '#/components/schemas/_app_themes__id__get_200_response' + description: App theme for the organization or space. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: App theme does not exist. + summary: Get app theme tags: - - Resources + - App Themes + /app_themes: + get: + description: Available on Retool v3.139+. Returns all app themes for the organization + or space. The API token must have the "App Themes > Read" scope. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_app_themes_get_200_response' + description: List of app themes for the organization or space. + summary: List all app themes + tags: + - App Themes post: - description: Available from onprem version 3.72.0+. Creates a resource. The - API token must have the "Resources > Write" scope. + description: "Creates and returns a new app theme. If a theme with the same\ + \ name already exists, it returns 409 and does not modify the theme. The API\ + \ token must have the \"App Themes > Write\" scope." requestBody: content: application/json: schema: - $ref: '#/components/schemas/_resources_post_request' + $ref: '#/components/schemas/_app_themes_get_200_response_data_inner' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_resources_post_200_response' - description: The created resource. - summary: Create a resource + $ref: '#/components/schemas/_app_themes_put_200_response' + description: Creates an app theme and returns it. + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Error when there is a naming conflict. + summary: Create app theme tags: - - Resources - /resources/{resourceId}: + - App Themes + put: + description: Creates or updates an app theme and returns it. The API token must + have the "App Themes > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_app_themes_get_200_response_data_inner' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_app_themes_put_200_response' + description: The updated app theme for the organization or space. + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/_app_themes_put_200_response' + description: The created app theme for the organization or space. + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Naming conflict exists + summary: Update app theme + tags: + - App Themes + /apps/{appId}: delete: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Deletes - a resource with the given id. The API token must have the "Resources > Write" - scope. + description: Deletes an app with the given appId. The API token must have the + "Apps > Write" scope. parameters: - - explode: false + - description: The app ID. + explode: false in: path - name: resourceId + name: appId required: true schema: - $ref: '#/components/schemas/_resources_get_200_response_data_inner_id' + description: The app ID. + format: uuid + type: string style: simple responses: "204": - description: Resource deleted - summary: Delete resource + description: App deleted + summary: Delete app tags: - - Resources + - Apps get: description: Available from API version 2.4.0+ and onprem version 3.28.0+. Returns - a specific resource. The API token must have the "Resources > Read" scope. + the App. The API token must have the "Apps > Read" scope. parameters: - - explode: false + - description: The app ID. + explode: false in: path - name: resourceId + name: appId required: true schema: - $ref: '#/components/schemas/_resources_get_200_response_data_inner_id' + description: The app ID. + format: uuid + type: string style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_resources__resourceId__get_200_response' - description: The requested resource. - summary: Get resource by id + $ref: '#/components/schemas/_apps__appId__get_200_response' + description: The requested app. + summary: Get app tags: - - Resources - /resource_configurations: + - Apps + /apps: get: - description: Available from API version 2.4.0+ and onprem version 3.34.0+. Gets - a paginated list of resource configurations. The API token must have the "Resources - > Read" scope. - parameters: - - explode: true - in: query - name: next_token - required: false - schema: - description: The token of the current page - type: string - style: form - - explode: true - in: query - name: resource_type - required: false - schema: - description: The type of resource. - enum: - - airflow - - alloydb - - asana - - athena - - basecamp - - bigid - - bigquery - - cassandra - - circleci - - closeio - - cosmosdb - - couchdb - - databricks - - datadog - - datastore - - denodo - - dynamodb - - elasticsearch - - firebase - - front - - gcs - - github - - googleAnalytics - - googleMaps - - googleSearchConsole - - googlesheets - - graphql - - grpc - - hubspot - - jdbc - - jira - - lambda - - launchdarkly - - microsoftTeams - - mongodb - - mssql - - mysql - - notion - - onesignal - - openAI - - openapi - - oracledb - - postgresql - - presto - - redis - - redshift - - restapi - - rethinkdb - - rockset - - retoolEmail - - retoolAI - - retoolDb - - retoolStorage - - s3 - - salesforce - - saphana - - sendgrid - - shell - - slack - - slackopenapi - - smtp - - snowflake - - stripe - - twilio - - vertica - type: string - style: form - - explode: true - in: query - name: resource_id - required: false - schema: - $ref: '#/components/schemas/_resources_get_200_response_data_inner_id' - style: form - - explode: true - in: query - name: environment_id - required: false - schema: - format: uuid - type: string - style: form + description: 'Get all apps for an organization or space. The API token must + have the "Apps > Read" scope. ' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_resource_configurations_get_200_response' - description: Returns a paginated list of resource configurations. - summary: Get resource configurations + $ref: '#/components/schemas/_apps_get_200_response' + description: List of apps + summary: List apps tags: - - Resource configurations - /resource_configurations/{configurationId}: + - Apps + /apps/cloneApp: + post: + description: Make a copy of an existing app into a chosen folder (defaults to + root if not provided). The API token must have the "Apps > Write" scope. Available + on Retool versions 3.105.0+. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_apps_cloneApp_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_apps__appId__get_200_response' + description: The newly cloned app. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: App to clone from could not be found. + summary: Clone app + tags: + - Apps + /sso/config: delete: - description: Available from API version 2.4.0+ and onprem version 3.34.0+. Deletes - a resource configuration with the given id. The API token must have the "Resources - > Write" scope. - parameters: - - explode: false - in: path - name: configurationId - required: true - schema: - description: The resource configuration id. - format: uuid - type: string - style: simple + description: Removes SSO configuration for organization or space. The API token + must have the "Spaces > Write" scope. Note that this will not remove the SSO + configuration if it is configured via env variables. responses: "204": - description: Resource configuration deleted - summary: Delete resource configuration + description: SSO configuration for the organization or space has been successfully + removed. + summary: Remove SSO configuration tags: - - Resource configurations + - SSO get: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Returns - a specific resource configuration. The API token must have the "Resources - > Read" scope. - parameters: - - explode: false - in: path - name: configurationId - required: true - schema: - description: The resource configuration id. - format: uuid - type: string - style: simple + description: Reads SSO configuration of organization or space. The API token + must have the "Spaces > Read" scope. Note that this will not return the SSO + configuration if it is configured via env variables. responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_resource_configurations__configurationId__get_200_response' - description: The requested resource configuration. - summary: Get resource configuration by id - tags: - - Resource configurations - /environments: - get: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Gets - a list of environments. The API token must have the "Environment > Read" scope. - responses: - "200": + $ref: '#/components/schemas/_sso_config_get_200_response' + description: SSO configuration for the organization or space. + "404": content: application/json: schema: - $ref: '#/components/schemas/_environments_get_200_response' - description: All environments in the org. - summary: Get organization environments - tags: - - Environment - /environments/{environmentId}: - get: - description: Available from API version 2.4.0+ and onprem version 3.28.0+. Returns - a single environment of the given uuid. The API token must have the "Environment - > Read" scope. - parameters: - - explode: false - in: path - name: environmentId - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": + $ref: '#/components/schemas/_folders_post_409_response' + description: SSO is not configured for this organization or space. + "422": content: application/json: schema: - $ref: '#/components/schemas/_environments__environmentId__get_200_response' - description: The requested environment. - summary: Get an environment by id + $ref: '#/components/schemas/_folders_post_409_response' + description: The organization has unsupported type of SSO configurations. + summary: Get SSO configuration tags: - - Environment - /custom_component_libraries/{libraryId}: - get: - description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. - Gets a single custom component library. The API token must have the "CustomComponent - > Read" scope. - parameters: - - explode: false - in: path - name: libraryId - required: true - schema: - format: uuid - type: string - style: simple + - SSO + post: + description: Sets SSO configuration for organization or space. The API token + must have the "Spaces > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_sso_config_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__get_200_response' - description: Returns a single custom component libraries. - "404": - description: Custom component library does not exist - summary: Get a single custom component libraries + $ref: '#/components/schemas/_sso_config_post_200_response' + description: SSO configuration for the organization or space. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Error + summary: Set SSO configuration tags: - - CustomComponentLibrary - /custom_component_libraries: + - SSO + /user_attributes: get: - description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. - Gets a paginated list of all custom component libraries. The API token must - have the "CustomComponent > Read" scope. - parameters: - - explode: true - in: query - name: next_token - required: false - schema: - description: The token of the current page - type: string - style: form + description: Gets the list of currently configured user attributes for the organization. + The API token must have either the "Users > Read" or "User Attributes > Read" + scope. responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_custom_component_libraries_get_200_response' - description: Returns a paginated list of custom component libraries. - summary: Get a list of all custom component libraries + $ref: '#/components/schemas/_user_attributes_get_200_response' + description: List of currently configured user attributes. + summary: Get organization user attributes tags: - - CustomComponentLibrary + - User Attributes post: - description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. - Creates a new custom component library The API token must have the "CustomComponent - > Write" scope. + description: Available on Retool version 3.128+. Creates a new user attribute + for the organization. The API token must have the "User Attributes > Write" + scope. requestBody: content: application/json: schema: - $ref: '#/components/schemas/_custom_component_libraries_post_request' + $ref: '#/components/schemas/_user_attributes_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_custom_component_libraries_post_200_response' - description: The newly created custom component library. + $ref: '#/components/schemas/_user_attributes_post_200_response' + description: The newly created organization user attribute. "409": - description: A library with the provided ID already exists - summary: Create a new custom component library + description: A user attribute with the provided name already exists + summary: Create a new user attribute for the organization tags: - - CustomComponentLibrary - /custom_component_libraries/{libraryId}/revisions: - get: - description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. - Gets a list of all the revisions of a custom component library. The API token - must have the "CustomComponent > Read" scope. + - User Attributes + /user_attributes/{id}: + delete: + description: Deletes the defined user attribute from the organization. Optionally + also deletes it on any users if specified by query parameter. The API token + must have the "User Attributes > Write" scope. parameters: - - explode: false + - description: The id of the user attribute + explode: false in: path - name: libraryId + name: id required: true schema: + description: The id of the user attribute format: uuid type: string style: simple + - description: Whether to update existing users with the deleted attribute + explode: true + in: query + name: update_existing_users + required: false + schema: + description: Whether to update existing users with the deleted attribute + enum: + - "true" + - "false" + type: string + style: form responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_get_200_response' - description: Returns a list of all revisions of a custom component library. - "404": - description: Custom component library does not exist - summary: Gets a list of all the revisions of a custom component library + "204": + description: User attribute deleted + summary: Delete an user attribute from the organization tags: - - CustomComponentLibrary - post: - description: "Available on Retool Cloud and self-hosted Retool version 3.41.0+.\ - \ Creates a new version of a custom component library, the underlying files\ - \ that describe the component. The API token must have the \"CustomComponent\ - \ > Write\" scope." + - User Attributes + patch: + description: Available on Retool version 3.131.0+. Update the user attribute + on an organization. The API token must have the "User Attributes > Write" + scope. parameters: - - explode: false + - description: The id of the user attribute + explode: false in: path - name: libraryId + name: id required: true schema: + description: The id of the user attribute + format: uuid type: string style: simple requestBody: content: - multipart/form-data: + application/json: schema: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_post_request' + $ref: '#/components/schemas/_user_attributes__id__patch_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_post_200_response' - description: The newly created custom component library revision. - "409": - description: A revision with the provided ID already exists - summary: Create a new custom component library revision + $ref: '#/components/schemas/_user_attributes__id__patch_200_response' + description: Returns an updated user attribute + summary: Update organization user attribute tags: - - CustomComponentLibrary - /custom_component_libraries/{libraryId}/revisions/{revisionId}/files: + - User Attributes + /permissions/accessList/{objectType}/{objectId}: get: - description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. - Gets all files associated with a custom component library revision. The API - token must have the "CustomComponent > Read" scope. + description: "Returns the list of users/groups and corresponding access levels\ + \ whom have access to a selected folder, app, resource, workflow, or agent.\ + \ The API token must have the \"Permissions > Read\" scope. Apps and folders\ + \ are supported from onprem edge version 3.96.0+ and 3.114-stable+. Resources,\ + \ workflows, and agents are supported from onprem edge version 3.236.0+." parameters: - - explode: false + - description: Object ID. Apps can be accessed by numeric id or UUID. Folders + can be accessed by numeric id. + explode: false in: path - name: libraryId + name: objectId required: true schema: - format: uuid + description: Object ID. Apps can be accessed by numeric id or UUID. Folders + can be accessed by numeric id. type: string style: simple - explode: false in: path - name: revisionId + name: objectType required: true schema: - format: uuid + enum: + - app + - folder + - resource + - workflow + - agent type: string style: simple responses: @@ -1981,226 +1954,219 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions__revisionId__files_get_200_response' - description: Returns a list of all files associated with a custom component - library revision. - summary: Gets all files associated with a custom component library revision. - tags: - - CustomComponentLibrary - /configuration_variables: - get: - description: Available for orgs with configuration variables enabled on Retool - Version 3.42+. The API token must have the "Configuration Variables > Read" - scope. - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_configuration_variables_get_200_response' - description: List of configuration variables and their values. - summary: List configuration variables and their values + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response' + description: "A list of users, user invites, and groups that have access\ + \ to the object" + summary: Get the access list of an app or folder tags: - - Configuration Variables + - Permissions + /permissions/listObjects: post: - description: Available for orgs with configuration variables enabled on Retool - Version 3.42+. The API token must have the "Configuration Variables > Write" - scope. + description: "Returns the list of objects with corresponding access levels that\ + \ a subject (group) has access to. The API token must have the \"Permissions\ + \ > Read\" scope. Folders are supported from API version 2.0.0 + and onprem\ + \ version 3.18+, apps are supported from API version 2.4.0+ and onprem version\ + \ 3.26.0+, resources and resource_configurations are supported from onprem\ + \ edge version 3.37.0+ and 3.47-stable+" requestBody: content: application/json: schema: - $ref: '#/components/schemas/_configuration_variables_post_request' + $ref: '#/components/schemas/_permissions_listObjects_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_configuration_variables_post_200_response' - description: Created configuration variable. - summary: Create a configuration variable - tags: - - Configuration Variables - /configuration_variables/{id}: - delete: - description: Deletes a configuration variable and its values. Available for - orgs with configuration variables enabled on Retool Version 3.42+. The API - token must have the "Configuration Variables > Write" scope. - parameters: - - explode: false - in: path - name: id - required: true - schema: - description: The ID of the configuration variable - format: uuid - type: string - style: simple - responses: - "204": - description: Group deleted - summary: Delete configuration variable + $ref: '#/components/schemas/_permissions_listObjects_post_200_response' + description: A list of folders with corresponding access levels. + summary: List objects a group can access tags: - - Configuration Variables - get: - description: Available for orgs with configuration variables enabled on Retool - Version 3.42+. The API token must have the "Configuration Variables > Read" - scope. - parameters: - - explode: false - in: path - name: id - required: true - schema: - description: The ID of the configuration variable - format: uuid - type: string - style: simple + - Permissions + /permissions/grant: + post: + description: "Grant a group or user (subject) access to an object. Returns the\ + \ updated list of objects with corresponding access levels that the subject\ + \ has access to. The API token must have the \"Permissions > Write\" scope.\ + \ Folders are supported from API version 2.0.0 + and onprem version 3.18+,\ + \ apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources\ + \ and resource_configurations are supported from onprem edge version 3.37.0+\ + \ and 3.47-stable+. User permissions for folders and apps are supported from\ + \ API version 2.7.0+ and Retool version 3.187.0+. Also grants or updates access\ + \ for all the objects directly under the folder. However it does not grant\ + \ or update access for subfolders and subsequent objects under them." + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_permissions_grant_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_configuration_variables_post_200_response' - description: A configuration variable and its values. - summary: Retreive a single configuration variable and its values + $ref: '#/components/schemas/_permissions_listObjects_post_200_response' + description: A list of folders with corresponding access levels + summary: Grant permissions tags: - - Configuration Variables - put: - description: Update a configuration variable and its values. Available for orgs - with configuration variables enabled on Retool Version 3.42+. The API token - must have the "Configuration Variables > Write" scope. - parameters: - - explode: false - in: path - name: id - required: true - schema: - description: The ID of the configuration variable - format: uuid - type: string - style: simple + - Permissions + /permissions/revoke: + post: + description: "Revoke access to an object for a group or user (subject). Returns\ + \ the updated list of objects with corresponding access levels that the subject\ + \ has access to. The API token must have the \"Permissions > Write\" scope.\ + \ Folders are supported from API version 2.0.0 + and onprem version 3.18+,\ + \ apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources\ + \ and resource_configurations are supported from onprem edge version 3.37.0+\ + \ and 3.47-stable+. User permissions for folders and apps are supported from\ + \ API version 2.7.0+ and Retool version 3.187.0+. Also revokes access to all\ + \ the objects directly under the folder. However it does not revoke access\ + \ for subfolders and subsequent objects under them." requestBody: content: application/json: schema: - $ref: '#/components/schemas/_configuration_variables_post_request' + $ref: '#/components/schemas/_permissions_revoke_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_configuration_variables_post_200_response' - description: Created configuration variable. - summary: Update a configuration variable + $ref: '#/components/schemas/_permissions_listObjects_post_200_response' + description: A list of folders with corresponding access levels + summary: Revoke permissions tags: - - Configuration Variables - /observability/config: + - Permissions + /role_permissions/roles: get: - description: Get observability configurations for the organization. The API - token must have the "Observability > Read" scope. + description: Available from API version 2.9.0+. Returns a list of roles. The + API token must have the "Permissions > Read" scope. responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_observability_config_get_200_response' - description: Observability provider configuration retrieved. - "403": + $ref: '#/components/schemas/_role_permissions_roles_get_200_response' + description: Paginated list of roles + "401": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Incorrect scope. - "404": + description: Authentication failure + "403": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Configuration not found. - summary: Get observability provider configurations + description: "Forbidden: API token is missing scope" + summary: List roles tags: - - Observability + - Permissions post: - description: Create observability configuration for the organization and returns - the created configuration. This will result in an error if configuration is - already set. The API token must have the "Observability > Write" scope. + description: Available from API version 2.9.0+. Creates a role. The API token + must have the "Permissions > Write" scope. requestBody: content: application/json: schema: - $ref: '#/components/schemas/_observability_config_post_request' + $ref: '#/components/schemas/_role_permissions_roles_post_request' responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/_observability_config_post_200_response' - description: Observability provider configuration created. + $ref: '#/components/schemas/_role_permissions_roles_post_201_response' + description: Role created successfully "400": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Bad request. + description: 'Missing required body parameter:' + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Authentication failure "403": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Incorrect scope. + description: "Forbidden: API token is missing scope" + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: An object with the given value already exists. "422": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Configuration already exists. - summary: Create a new observability provider configuration + description: Encountered ValidationError when processing your request. + summary: Create a role tags: - - Observability - /observability/config/{configId}: + - Permissions + /role_permissions/roles/{roleId}: delete: - description: Delete observability configuration for the organization. The API - token must have the "Observability > Write" scope. + description: Available from API version 2.9.0+. Deletes a role. The API token + must have the "Permissions > Write" scope. parameters: - - explode: false + - description: The id of the role + explode: false in: path - name: configId + name: roleId required: true schema: - description: The id of the observability configuration to delete. + description: The id of the role format: uuid type: string style: simple responses: "204": - description: Observability provider configuration deleted. + description: Role deleted successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Cannot delete default role. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Authentication failure "403": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Incorrect scope. - "422": + description: "Forbidden: API token is missing scope" + "404": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Configuration not found. - summary: Delete an observability provider configuration + description: "Role with id {roleId} not found." + summary: Delete a role tags: - - Observability - put: - description: Update observability configuration for the organization and returns - the updated configuration. This will result in an error if no existing configuration - found. The API token must have the "Observability > Write" scope. + - Permissions + patch: + description: Available from API version 2.9.0+. Updates a role. The API token + must have the "Permissions > Write" scope. parameters: - - explode: false + - description: The id of the role + explode: false in: path - name: configId + name: roleId required: true schema: - description: The id of the observability configuration to update. + description: The id of the role format: uuid type: string style: simple @@ -2208,163 +2174,191 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/_observability_config__configId__put_request' + $ref: '#/components/schemas/_role_permissions_roles__roleId__patch_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_observability_config__configId__put_200_response' - description: Observability provider configuration updated. + $ref: '#/components/schemas/_role_permissions_roles_post_201_response' + description: Role updated successfully "400": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Bad request. - "403": + description: 'Missing required body parameter:' + "401": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Incorrect scope. - "422": + description: Authentication failure + "403": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: No configuration exists. - summary: Update an observability provider configuration + description: "Forbidden: API token is missing scope" + summary: Update a role tags: - - Observability - /observability/provider/{provider}/test: - post: - description: Send a test error event to the observability provider. The API - token must have the "Observability > Read" scope. + - Permissions + /role_permissions/role_grants/{roleGrantId}: + delete: + description: Available from API version 2.9.0+. Deletes a role grant. The API + token must have the "Permissions > Write" scope. parameters: - - explode: false + - description: The id of the role grant + explode: false in: path - name: provider + name: roleGrantId required: true schema: - $ref: '#/components/schemas/_observability_provider__provider__test_post_provider_parameter' + description: The id of the role grant + format: uuid + type: string style: simple responses: - "200": + "204": + description: Role grant deleted successfully + "401": content: application/json: schema: - $ref: '#/components/schemas/_observability_provider__provider__test_post_200_response' - description: Test event sent. + $ref: '#/components/schemas/_folders_post_409_response' + description: Authentication failure "403": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Incorrect scope. - "422": + description: "Forbidden: API token is missing scope" + "404": content: application/json: schema: $ref: '#/components/schemas/_folders_post_409_response' - description: Provider is not configured correctly. - summary: Send a test error event to the observability provider + description: "Role grant with id {roleGrantId} not found." + summary: Delete a role grant tags: - - Observability - /usage/organizations: + - Permissions + /role_permissions/role_grants: get: - description: "Returns a list of organizations that the token has scope to access.\ - \ The API token must have the 'usage' scope. 'usage:organization' scope returns\ - \ just the organization, 'usage:spaces' returns all the spaces under the admin\ - \ organization, 'usage:license' returns all the organizations that use that\ - \ license key." + description: Available from API version 2.9.0+. Returns a list of role grants. + The API token must have the "Permissions > Read" scope. responses: "200": + description: List of role grants + "401": content: application/json: schema: - $ref: '#/components/schemas/_usage_organizations_get_200_response' - description: List of organizations - summary: List organizations + $ref: '#/components/schemas/_folders_post_409_response' + description: Authentication failure + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: "Forbidden: API token is missing scope" + summary: Get role grants tags: - - Usage - /usage: + - Permissions + post: + description: Available from API version 2.9.0+. Creates a role grant. The API + token must have the "Permissions > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_role_permissions_role_grants_post_request' + responses: + "201": + description: Role grant created successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: 'Missing required body parameter:' + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Authentication failure + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: "Forbidden: API token is missing scope" + summary: Create a role grant + tags: + - Permissions + /role_permissions/role_grants/{subjectType}/{subjectId}: get: - description: "The usage summary for the selected organizations. Contains information\ - \ about usage like page saves, page views, active users, and the growth in\ - \ those fields in the specified time range. The API token must have the 'usage'\ - \ scope. " + description: Available from API version 2.9.0+. Returns a list of role grants + for a subject. The API token must have the "Permissions > Read" scope. parameters: - - explode: true - in: query - name: org_ids - required: false - schema: - items: - type: string - type: array - style: form - - explode: true - in: query - name: start_date + - description: The type of the subject + explode: false + in: path + name: subjectType required: true schema: - description: The start date of the date range - example: 2024-01-15 + description: The type of the subject type: string - style: form - - explode: true - in: query - name: end_date - required: false + style: simple + - description: The id of the subject + explode: false + in: path + name: subjectId + required: true schema: - description: "The end date of the date range. If not specified, then minimum(start_date\ - \ + 30 days, today - 1) is used." - example: 2024-01-30 + description: The id of the subject type: string - style: form + style: simple responses: "200": + description: List of role grants + "401": content: application/json: schema: - $ref: '#/components/schemas/_usage_get_200_response' - description: The usage summary for the selected organizations - summary: The usage summary for the selected organizations + $ref: '#/components/schemas/_folders_post_409_response' + description: Authentication failure + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: "Forbidden: API token is missing scope" + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: "Subject with id {subjectId} not found." + summary: Get role grants for a subject tags: - - Usage - /usage/app_summary: + - Permissions + /access_requests: get: - description: "The app summaries for the selected organizations. Contains information\ - \ about the app like saves, views, unique editors and viewers in the specified\ - \ time range. The API token must have the 'usage' scope. " + description: Available from API version 2.3.0+ and onprem version 3.26.0+. Gets + a list of access requests. The API token must have the "Users > Read" scope. parameters: - - explode: true - in: query - name: org_ids - required: false - schema: - items: - type: string - type: array - style: form - - explode: true - in: query - name: start_date - required: true - schema: - description: The start date of the date range - example: 2024-01-15 - type: string - style: form - - explode: true + - description: The status of the access request + explode: true in: query - name: end_date + name: status required: false schema: - description: "The end date of the date range. If not specified, then minimum(start_date\ - \ + 30 days, today - 1) is used." - example: 2024-01-30 + description: The status of the access request + enum: + - PENDING + - APPROVED + - DENIED type: string style: form responses: @@ -2372,149 +2366,345 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/_usage_app_summary_get_200_response' - description: The app summaries for the selected organizations - summary: The app summaries for the selected organizations + $ref: '#/components/schemas/_access_requests_get_200_response' + description: Returns all access requests. + summary: Get organization access requests tags: - - Usage - /usage/app_details: + - Access Request + /access_requests/{accessRequestId}: get: - description: "The detailed app usage for the selected organizations. Contains\ - \ information about the app, including the breakdown of saves and views in\ - \ the specified time range. The API token must have the 'usage' scope." + description: Available from API version 2.2.0+ and onprem version 3.24.0+. Returns + the access request. The API token must have the "Users > Read" scope. parameters: - - explode: true - in: query - name: org_ids - required: false - schema: - description: The list of org ids to retrieve usage data for - items: - type: string - type: array - style: form - - explode: true - in: query - name: start_date - required: true - schema: - description: The start date of the date range - example: 2024-01-15 - type: string - style: form - - explode: true - in: query - name: end_date - required: false - schema: - description: "The end date of the date range. If not specified, then minimum(start_date\ - \ + 30 days, today - 1) is used." - example: 2024-01-30 - type: string - style: form - - explode: true - in: query - name: app_name + - description: The access request's ID number + explode: false + in: path + name: accessRequestId required: true schema: - description: The name of the app to retrieve usage data for + description: The access request's ID number + pattern: ^\d+$ type: string - style: form + style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_usage_app_details_get_200_response' - description: The app details for the selected app and organizations - summary: The app details for the selected app and organizations + $ref: '#/components/schemas/_access_requests__accessRequestId__get_200_response' + description: The requested access request. + summary: Get access request tags: - - Usage - /usage/user_summary: - get: - description: "The summaries of the user including email, last active time, the\ - \ number of apps viewed and edited, for the selected organizations in the\ - \ specified time range. The API token must have the 'usage' scope." + - Access Request + patch: + description: Available from API version 2.3.0+ and onprem version 3.24.0+. Approve + or deny an access request in your organization. The API token must have the + "Users > Write" scope. parameters: - - explode: true - in: query - name: org_ids - required: false - schema: - items: - type: string - type: array - style: form - - explode: true - in: query - name: start_date + - description: The ID of the access request + explode: false + in: path + name: accessRequestId required: true schema: - description: The start date of the date range - example: 2024-01-15 - type: string - style: form - - explode: true - in: query - name: end_date - required: false - schema: - description: "The end date of the date range. If not specified, then minimum(start_date\ - \ + 30 days, today - 1) is used." - example: 2024-01-30 + description: The ID of the access request type: string - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_access_requests__accessRequestId__patch_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_usage_user_summary_get_200_response' - description: The user usage summies for the selected organizations - summary: The summaries of user usage for the selected organizations + $ref: '#/components/schemas/_access_requests__accessRequestId__patch_200_response' + description: Returns an approved or denied access request + summary: Approve or deny an access request tags: - - Usage - /usage/user_details: + - Access Request + /access_tokens: get: - description: "Detailed usage by user for the selected organizations. Contains\ - \ information about the user, including the breakdown of saves and views for\ - \ apps in the specified time range. The API token must have the 'usage' scope." - parameters: - - explode: true - in: query - name: org_ids - required: false - schema: - description: The list of org ids to retrieve usage data for - items: - type: string - type: array - style: form - - explode: true - in: query - name: start_date - required: true - schema: - description: The start date of the date range - example: 2024-01-15 + description: List all access tokens created in the organization. The API token + must have the "Access Tokens > Read" scope. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_access_tokens_get_200_response' + description: List of access tokens. + summary: List access tokens + tags: + - Access Tokens + post: + description: Available on Retool v3.157+. Creates and returns an access token + with given scopes. The API token must have the "Access Tokens > Read" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_access_tokens_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_access_tokens_post_200_response' + description: Returns the created access token. + summary: Create an access token + tags: + - Access Tokens + /access_tokens/:accessTokenId: + get: + description: Available on Retool v3.164+. Fetch an access token by id. The API + token must have the "Access Tokens > Read" scope. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_access_tokens__accessTokenId_get_200_response' + description: The requested access token. + "404": + description: Requested access token could not be found. + summary: Get a single access token + tags: + - Access Tokens + /user_invites: + get: + description: Available from API version 2.3.0+ and onprem version 3.24.0+. Gets + a list of user invites + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_invites_get_200_response' + description: Returns all user invites. + summary: Get organization user invites + tags: + - User Invite + post: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Create + a new user invite. User invite link expires 7 days after generation. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_user_invites_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_invites_post_200_response' + description: Returns the newly created user invite. + summary: Create a new user invite + tags: + - User Invite + /user_invites/{userInviteId}: + delete: + description: Available from API version 2.4.0+ and onprem version 3.26.0+. Returns + the deleted user invite. The API token must have the "Users > Write" scope. + parameters: + - description: The user invite's ID + explode: false + in: path + name: userInviteId + required: true + schema: + description: The user invite's ID + pattern: ^\d+$ type: string - style: form - - explode: true + style: simple + responses: + "204": + content: {} + description: Successfully deleted user invite. + summary: Delete user invite + tags: + - User Invite + get: + description: Available from API version 2.4.0+ and onprem version 3.26.0+. Returns + the user invite. The API token must have the "Users > Read" scope. + parameters: + - description: The user invite's ID + explode: false + in: path + name: userInviteId + required: true + schema: + description: The user invite's ID + pattern: ^\d+$ + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_invites__userInviteId__get_200_response' + description: The requested user invite. + summary: Get user invite + tags: + - User Invite + /user_invites/{userInviteId}/user_attributes: + post: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Add + or update the user attributes of a user invite + parameters: + - description: The user invite's ID + explode: false + in: path + name: userInviteId + required: true + schema: + description: The user invite's ID + pattern: ^\d+$ + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes_post_200_response' + description: Returns the updated user attributes. + summary: Add or update user attributes on a user invite + tags: + - User Invite + /user_invites/{userInviteId}/user_attributes/{attributeName}: + delete: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Delete + a specified user attribute from an user invite + parameters: + - description: The user invite's ID + explode: false + in: path + name: userInviteId + required: true + schema: + description: The user invite's ID + pattern: ^\d+$ + type: string + style: simple + - explode: false + in: path + name: attributeName + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes__attributeName__delete_200_response' + description: Returns the updated user attributes. + summary: Delete a user attribute on a user invite + tags: + - User Invite + /resources: + get: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Gets + a paginated list of resources. The API token must have the "Resources > Read" + scope. + parameters: + - description: The token of the current page + explode: true in: query - name: end_date + name: next_token required: false schema: - description: "The end date of the date range. If not specified, then minimum(start_date\ - \ + 30 days, today - 1) is used." - example: 2024-01-30 + description: The token of the current page type: string style: form - - explode: true + - description: The type of resource. + explode: true in: query - name: email - required: true + name: resource_type + required: false schema: - description: The email of the user to retrieve usage data for + description: The type of resource. + enum: + - airflow + - alloydb + - asana + - athena + - basecamp + - bigid + - bigquery + - cassandra + - circleci + - closeio + - cosmosdb + - couchdb + - databricks + - databricksLakebase + - datadog + - datastore + - dbServer + - denodo + - dynamodb + - elasticsearch + - firebase + - front + - gcs + - github + - googleAnalytics + - googleCalendar + - googleDocs + - googleMaps + - googleSearchConsole + - googlesheets + - graphql + - grpc + - hubspot + - jdbc + - jira + - lambda + - launchdarkly + - microsoftTeams + - mongodb + - mssql + - mysql + - notion + - onesignal + - openAI + - openapi + - oracledb + - postgresql + - presto + - redis + - redshift + - restapi + - rethinkdb + - retoolEmail + - retoolAI + - retoolDb + - retoolStorage + - s3 + - salesforce + - saphana + - sendgrid + - shell + - slack + - slackopenapi + - smtp + - snowflake + - stripe + - twilio + - vertica + - aiProvider type: string style: form responses: @@ -2522,26 +2712,3125 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/_usage_user_details_get_200_response' - description: The user details for the selected user email and organizations - summary: The user details for the selected user and organizations + $ref: '#/components/schemas/_resources_get_200_response' + description: Returns a paginated list of resources. + summary: Get resources tags: - - Usage -components: - parameters: {} - schemas: - user: - additionalProperties: false - description: This object represents a user. - properties: - id: + - Resources + post: + description: Available from onprem version 3.72.0+. Creates a resource. The + API token must have the "Resources > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_resources_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_resources_post_200_response' + description: The created resource. + summary: Create a resource + tags: + - Resources + /resources/{resourceId}: + delete: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Deletes + a resource with the given id. The API token must have the "Resources > Write" + scope. + parameters: + - description: The uuid or name for the resource. + explode: false + in: path + name: resourceId + required: true + schema: + description: The uuid or name for the resource. + type: string + style: simple + - description: Whether to delete the underlying retool database when deleting + the resource. + explode: true + in: query + name: deleteUnderlyingDB + required: false + schema: + description: Whether to delete the underlying retool database when deleting + the resource. + type: boolean + style: form + responses: + "204": + description: Resource deleted + summary: Delete resource + tags: + - Resources + get: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Returns + a specific resource. The API token must have the "Resources > Read" scope. + parameters: + - description: The uuid or name for the resource. + explode: false + in: path + name: resourceId + required: true + schema: + description: The uuid or name for the resource. + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_resources__resourceId__get_200_response' + description: The requested resource. + summary: Get resource by id + tags: + - Resources + patch: + description: Updates and returns the updated resource. The API token must have + the "Resources > Write" scope. + parameters: + - description: The uuid or name for the resource. + explode: false + in: path + name: resourceId + required: true + schema: + description: The uuid or name for the resource. + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_resources__resourceId__patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_resources__resourceId__patch_200_response' + description: Returns the updated resource. + summary: Update a resource + tags: + - Resources + /resource_configurations: + get: + description: Available from API version 2.4.0+ and Self-hosted Retool 3.34.0+. + Gets a paginated list of resource configurations. The API token must have + the "Resources > Read" scope. + parameters: + - description: The token of the current page + explode: true + in: query + name: next_token + required: false + schema: + description: The token of the current page + type: string + style: form + - description: The type of resource. + explode: true + in: query + name: resource_type + required: false + schema: + description: The type of resource. + enum: + - airflow + - alloydb + - asana + - athena + - basecamp + - bigid + - bigquery + - cassandra + - circleci + - closeio + - cosmosdb + - couchdb + - databricks + - databricksLakebase + - datadog + - datastore + - dbServer + - denodo + - dynamodb + - elasticsearch + - firebase + - front + - gcs + - github + - googleAnalytics + - googleCalendar + - googleDocs + - googleMaps + - googleSearchConsole + - googlesheets + - graphql + - grpc + - hubspot + - jdbc + - jira + - lambda + - launchdarkly + - microsoftTeams + - mongodb + - mssql + - mysql + - notion + - onesignal + - openAI + - openapi + - oracledb + - postgresql + - presto + - redis + - redshift + - restapi + - rethinkdb + - retoolEmail + - retoolAI + - retoolDb + - retoolStorage + - s3 + - salesforce + - saphana + - sendgrid + - shell + - slack + - slackopenapi + - smtp + - snowflake + - stripe + - twilio + - vertica + - aiProvider + type: string + style: form + - description: The uuid or name for the resource. + explode: true + in: query + name: resource_id + required: false + schema: + description: The uuid or name for the resource. + type: string + style: form + - explode: true + in: query + name: environment_id + required: false + schema: + format: uuid + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_resource_configurations_get_200_response' + description: Returns a paginated list of resource configurations. + summary: Get resource configurations + tags: + - Resource Configurations + post: + description: Available from API version 2.4.0+ and onprem version 3.74 on-prem+. + Creates a new resource configuration. The API token must have the "Resources + > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_resource_configurations_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_resource_configurations_post_200_response' + description: The created resource configuration. + summary: Create resource configuration + tags: + - Resource Configurations + /resource_configurations/{configurationId}: + delete: + description: Available from API version 2.4.0+ and onprem version 3.34.0+. Deletes + a resource configuration with the given id. The API token must have the "Resources + > Write" scope. + parameters: + - description: The resource configuration id. + explode: false + in: path + name: configurationId + required: true + schema: + description: The resource configuration id. + format: uuid + type: string + style: simple + responses: + "204": + description: Resource configuration deleted + summary: Delete resource configuration + tags: + - Resource Configurations + get: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Returns + a specific resource configuration. The API token must have the "Resources + > Read" scope. + parameters: + - description: The resource configuration id. + explode: false + in: path + name: configurationId + required: true + schema: + description: The resource configuration id. + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_resource_configurations__configurationId__get_200_response' + description: The requested resource configuration. + summary: Get resource configuration by id + tags: + - Resource Configurations + patch: + description: Available from API version 2.4.0+ and onprem version 3.74 on-prem+. + Updates the resource configuration with the given resource configuration id. + The API token must have the "Resources > Write" scope. + parameters: + - description: The resource configuration id. + explode: false + in: path + name: configurationId + required: true + schema: + description: The resource configuration id. + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_resource_configurations__configurationId__patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_resource_configurations__configurationId__patch_200_response' + description: The updated resource configuration. + summary: Update a resource configuration + tags: + - Resource Configurations + /environments: + get: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Gets + a list of environments. The API token must have the "Environment > Read" scope. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_environments_get_200_response' + description: All environments in the org. + summary: Get environments + tags: + - Environments + post: + description: Available on Retool version 3.123.0+. Creates and returns an environment. + The API token must have the "Environments > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_environments_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_environments_post_200_response' + description: Returns the created environment. + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Environment with the same properties already exists. + summary: Create environment + tags: + - Environments + /environments/{environmentId}: + delete: + description: Available on Retool version 3.123.0+. Deletes an environment by + ID. The API token must have the "Environments > Write" scope. + parameters: + - explode: false + in: path + name: environmentId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: Environment deleted + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Environment not found + summary: Delete environment + tags: + - Environments + get: + description: Available from API version 2.4.0+ and onprem version 3.28.0+. Returns + a single environment of the given uuid. The API token must have the "Environment + > Read" scope. + parameters: + - explode: false + in: path + name: environmentId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_environments__environmentId__get_200_response' + description: The requested environment. + summary: Get an environment + tags: + - Environments + patch: + description: "Available on Retool version 3.123.0+. Update an environment name,\ + \ description, or color. The API token must have the \"Environments > Write\"\ + \ scope." + parameters: + - explode: false + in: path + name: environmentId + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_environments__environmentId__patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_environments__environmentId__patch_200_response' + description: Returns an updated environment + summary: Update an environment + tags: + - Environments + /custom_component_libraries/{libraryId}: + get: + description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. + Gets a single custom component library. The API token must have the "CustomComponent + > Read" scope. + parameters: + - explode: false + in: path + name: libraryId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__get_200_response' + description: Returns a single custom component libraries. + "404": + description: Custom component library does not exist + summary: Get a single custom component libraries + tags: + - Custom Component Library + /custom_component_libraries: + get: + description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. + Gets a paginated list of all custom component libraries. The API token must + have the "CustomComponent > Read" scope. + parameters: + - description: The token of the current page + explode: true + in: query + name: next_token + required: false + schema: + description: The token of the current page + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_custom_component_libraries_get_200_response' + description: Returns a paginated list of custom component libraries. + summary: Get a list of all custom component libraries + tags: + - Custom Component Library + post: + description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. + Creates a new custom component library The API token must have the "CustomComponent + > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_custom_component_libraries_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_custom_component_libraries_post_200_response' + description: The newly created custom component library. + "409": + description: A library with the provided ID already exists + summary: Create a new custom component library + tags: + - Custom Component Library + /custom_component_libraries/{libraryId}/revisions: + get: + description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. + Gets a list of all the revisions of a custom component library. The API token + must have the "CustomComponent > Read" scope. + parameters: + - explode: false + in: path + name: libraryId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_get_200_response' + description: Returns a list of all revisions of a custom component library. + "404": + description: Custom component library does not exist + summary: Gets a list of all the revisions of a custom component library + tags: + - Custom Component Library + post: + description: "Available on Retool Cloud and self-hosted Retool version 3.41.0+.\ + \ Creates a new version of a custom component library, the underlying files\ + \ that describe the component. The API token must have the \"CustomComponent\ + \ > Write\" scope." + parameters: + - explode: false + in: path + name: libraryId + required: true + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_post_200_response' + description: The newly created custom component library revision. + "409": + description: A revision with the provided ID already exists + summary: Create a new custom component library revision + tags: + - Custom Component Library + /custom_component_libraries/{libraryId}/revisions/{revisionId}/files: + get: + description: Available on Retool Cloud and self-hosted Retool version 3.41.0+. + Gets all files associated with a custom component library revision. The API + token must have the "CustomComponent > Read" scope. + parameters: + - explode: false + in: path + name: libraryId + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: revisionId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions__revisionId__files_get_200_response' + description: Returns a list of all files associated with a custom component + library revision. + summary: Gets all files associated with a custom component library revision. + tags: + - Custom Component Library + /configuration_variables: + get: + description: Available for orgs with configuration variables enabled on Retool + Version 3.42+. The API token must have the "Configuration Variables > Read" + scope. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_configuration_variables_get_200_response' + description: List of configuration variables and their values. + summary: List configuration variables and their values + tags: + - Configuration Variables + post: + description: Available for orgs with configuration variables enabled on Retool + Version 3.42+. The API token must have the "Configuration Variables > Write" + scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_configuration_variables_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_configuration_variables_post_200_response' + description: Created configuration variable. + summary: Create a configuration variable + tags: + - Configuration Variables + /configuration_variables/{id}: + delete: + description: Deletes a configuration variable and its values. Available for + orgs with configuration variables enabled on Retool Version 3.42+. The API + token must have the "Configuration Variables > Write" scope. + parameters: + - description: The ID of the configuration variable + explode: false + in: path + name: id + required: true + schema: + description: The ID of the configuration variable + format: uuid + type: string + style: simple + responses: + "204": + description: Group deleted + summary: Delete configuration variable + tags: + - Configuration Variables + get: + description: Available for orgs with configuration variables enabled on Retool + Version 3.42+. The API token must have the "Configuration Variables > Read" + scope. + parameters: + - description: The ID of the configuration variable + explode: false + in: path + name: id + required: true + schema: + description: The ID of the configuration variable + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_configuration_variables_post_200_response' + description: A configuration variable and its values. + summary: Retreive a single configuration variable and its values + tags: + - Configuration Variables + put: + description: Update a configuration variable and its values. Available for orgs + with configuration variables enabled on Retool Version 3.42+. The API token + must have the "Configuration Variables > Write" scope. + parameters: + - description: The ID of the configuration variable + explode: false + in: path + name: id + required: true + schema: + description: The ID of the configuration variable + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_configuration_variables_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_configuration_variables_post_200_response' + description: Created configuration variable. + summary: Update a configuration variable + tags: + - Configuration Variables + /observability/config: + get: + description: Get observability configurations for the organization. The API + token must have the "Observability > Read" scope. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_observability_config_get_200_response' + description: Observability provider configuration retrieved. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Incorrect scope. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Configuration not found. + summary: Get observability provider configurations + tags: + - Observability + post: + description: Create observability configuration for the organization and returns + the created configuration. This will result in an error if configuration is + already set. The API token must have the "Observability > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_observability_config_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_observability_config_post_200_response' + description: Observability provider configuration created. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Bad request. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Incorrect scope. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Configuration already exists. + summary: Create a new observability provider configuration + tags: + - Observability + /observability/config/{configId}: + delete: + description: Delete observability configuration for the organization. The API + token must have the "Observability > Write" scope. + parameters: + - description: The id of the observability configuration to delete. + explode: false + in: path + name: configId + required: true + schema: + description: The id of the observability configuration to delete. + format: uuid + type: string + style: simple + responses: + "204": + description: Observability provider configuration deleted. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Incorrect scope. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Configuration not found. + summary: Delete an observability provider configuration + tags: + - Observability + put: + description: Update observability configuration for the organization and returns + the updated configuration. This will result in an error if no existing configuration + found. The API token must have the "Observability > Write" scope. + parameters: + - description: The id of the observability configuration to update. + explode: false + in: path + name: configId + required: true + schema: + description: The id of the observability configuration to update. + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_observability_config__configId__put_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_observability_config__configId__put_200_response' + description: Observability provider configuration updated. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Bad request. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Incorrect scope. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: No configuration exists. + summary: Update an observability provider configuration + tags: + - Observability + /observability/provider/{provider}/test: + post: + description: Send a test error event to the observability provider. The API + token must have the "Observability > Read" scope. + parameters: + - description: "The observability provider name, either \"Sentry\" or \"Datadog\"" + explode: false + in: path + name: provider + required: true + schema: + $ref: '#/components/schemas/_observability_provider__provider__test_post_provider_parameter' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_observability_provider__provider__test_post_200_response' + description: Test event sent. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Incorrect scope. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Provider is not configured correctly. + summary: Send a test error event to the observability provider + tags: + - Observability + /usage/organizations: + get: + description: "Returns a list of organizations that the token has scope to access.\ + \ The API token must have the 'usage' scope. 'usage:organization' scope returns\ + \ just the organization, 'usage:spaces' returns all the spaces under the admin\ + \ organization, 'usage:license' returns all the organizations that use that\ + \ license key." + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_usage_organizations_get_200_response' + description: List of organizations + summary: List organizations + tags: + - Usage + /usage: + get: + description: "The usage summary for the selected organizations. Contains information\ + \ about usage like page saves, page views, active users, and the growth in\ + \ those fields in the specified time range. The API token must have the 'usage'\ + \ scope. " + parameters: + - description: A comma separated list of org ids to retrieve usage data for + explode: true + in: query + name: org_ids + required: false + schema: + description: A comma separated list of org ids to retrieve usage data for + example: "org_id1,org_id2" + type: string + style: form + - description: The start date of the date range + explode: true + in: query + name: start_date + required: true + schema: + description: The start date of the date range + example: 2024-01-15 + type: string + style: form + - description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + explode: true + in: query + name: end_date + required: false + schema: + description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + example: 2024-01-30 + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_usage_get_200_response' + description: The usage summary for the selected organizations + summary: The usage summary for the selected organizations + tags: + - Usage + /usage/app_summary: + get: + description: "The app summaries for the selected organizations. Contains information\ + \ about the app like saves, views, unique editors and viewers in the specified\ + \ time range. The API token must have the 'usage' scope. " + parameters: + - description: A comma separated list of org ids to retrieve usage data for + explode: true + in: query + name: org_ids + required: false + schema: + description: A comma separated list of org ids to retrieve usage data for + example: "org_id1,org_id2" + type: string + style: form + - description: The start date of the date range + explode: true + in: query + name: start_date + required: true + schema: + description: The start date of the date range + example: 2024-01-15 + type: string + style: form + - description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + explode: true + in: query + name: end_date + required: false + schema: + description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + example: 2024-01-30 + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_usage_app_summary_get_200_response' + description: The app summaries for the selected organizations + summary: The app summaries for the selected organizations + tags: + - Usage + /usage/app_details: + get: + description: "The detailed app usage for the selected organizations. Contains\ + \ information about the app, including the breakdown of saves and views in\ + \ the specified time range. The API token must have the 'usage' scope." + parameters: + - description: A comma separated list of org ids to retrieve usage data for + explode: true + in: query + name: org_ids + required: false + schema: + description: A comma separated list of org ids to retrieve usage data for + example: "org_id1,org_id2" + type: string + style: form + - description: The start date of the date range + explode: true + in: query + name: start_date + required: true + schema: + description: The start date of the date range + example: 2024-01-15 + type: string + style: form + - description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + explode: true + in: query + name: end_date + required: false + schema: + description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + example: 2024-01-30 + type: string + style: form + - description: The name of the app to retrieve usage data for + explode: true + in: query + name: app_name + required: true + schema: + description: The name of the app to retrieve usage data for + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_usage_app_details_get_200_response' + description: The app details for the selected app and organizations + summary: The app details for the selected app and organizations + tags: + - Usage + /usage/user_summary: + get: + description: "The summaries of the user including email, last active time, the\ + \ number of apps viewed and edited, for the selected organizations in the\ + \ specified time range. The API token must have the 'usage' scope." + parameters: + - description: A comma separated list of org ids to retrieve usage data for + explode: true + in: query + name: org_ids + required: false + schema: + description: A comma separated list of org ids to retrieve usage data for + example: "org_id1,org_id2" + type: string + style: form + - description: The start date of the date range + explode: true + in: query + name: start_date + required: true + schema: + description: The start date of the date range + example: 2024-01-15 + type: string + style: form + - description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + explode: true + in: query + name: end_date + required: false + schema: + description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + example: 2024-01-30 + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_usage_user_summary_get_200_response' + description: The user usage summies for the selected organizations + summary: The summaries of user usage for the selected organizations + tags: + - Usage + /usage/user_details: + get: + description: "Detailed usage by user for the selected organizations. Contains\ + \ information about the user, including the breakdown of saves and views for\ + \ apps in the specified time range. The API token must have the 'usage' scope." + parameters: + - description: A comma separated list of org ids to retrieve usage data for + explode: true + in: query + name: org_ids + required: false + schema: + description: A comma separated list of org ids to retrieve usage data for + example: "org_id1,org_id2" + type: string + style: form + - description: The start date of the date range + explode: true + in: query + name: start_date + required: true + schema: + description: The start date of the date range + example: 2024-01-15 + type: string + style: form + - description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + explode: true + in: query + name: end_date + required: false + schema: + description: "The end date of the date range. If not specified, then minimum(start_date\ + \ + 30 days, today - 1) is used." + example: 2024-01-30 + type: string + style: form + - description: The email of the user to retrieve usage data for + explode: true + in: query + name: email + required: true + schema: + description: The email of the user to retrieve usage data for + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_usage_user_details_get_200_response' + description: The user details for the selected user email and organizations + summary: The user details for the selected user and organizations + tags: + - Usage + /user_tasks: + get: + description: Requires the User Tasks feature which is currently in private beta. + Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e + to request access. Available on Retool version 3.114+. Returns a list of user + tasks for a particular user. The API token must have the "User Tasks > Read" + scope. + parameters: + - description: "Filter tasks by assignment. Provide one or more user ids. If\ + \ not provided, returns all accessible tasks." + explode: true + in: query + name: assigned_to_users + required: false + schema: + $ref: '#/components/schemas/_user_tasks_get_assigned_to_users_parameter' + style: form + - description: A comma-separated list of statuses. + explode: true + in: query + name: statuses + required: false + schema: + description: A comma-separated list of statuses. + enum: + - submitted + - pending + - cancelled + - expired + type: string + style: form + - description: A comma-separated list of workflow IDs. + explode: true + in: query + name: workflow_ids + required: false + schema: + description: A comma-separated list of workflow IDs. + type: string + style: form + - description: The maximum number of tasks to include in the response. + explode: true + in: query + name: limit + required: false + schema: + description: The maximum number of tasks to include in the response. + type: string + style: form + - description: The next token from the previous API response. This is used for + paginating through an arbitrary number of tasks. + explode: true + in: query + name: next_token + required: false + schema: + description: The next token from the previous API response. This is used + for paginating through an arbitrary number of tasks. + type: string + style: form + - description: The ID of the task following which the response will include + subsequent tasks. + explode: true + in: query + name: starting_after + required: false + schema: + description: The ID of the task following which the response will include + subsequent tasks. + type: string + style: form + - description: The ID of the task before which the response will include preceding + tasks. + explode: true + in: query + name: ending_before + required: false + schema: + description: The ID of the task before which the response will include preceding + tasks. + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_tasks_get_200_response' + description: List of user tasks. + summary: List User Tasks + tags: + - User Tasks + /user_tasks/{taskId}/submit: + patch: + description: Requires the User Tasks feature which is currently in private beta. + Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e + to request access. Available on Retool version 3.114+. Submits a user task + with a provided output payload. The API token must have the "User Tasks > + Write" scope. + parameters: + - description: The ID of the user task. + explode: false + in: path + name: taskId + required: true + schema: + description: The ID of the user task. + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_user_tasks__taskId__submit_patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_tasks__taskId__submit_patch_200_response' + description: User task submitted. + summary: Submits a user task. + tags: + - User Tasks + /user_tasks/{taskId}/cancel: + patch: + description: Requires the User Tasks feature which is currently in private beta. + Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e + to request access. Available on Retool version 3.114+. Cancel a user task + with a provided reason. The API token must have the "User Tasks > Write" scope. + parameters: + - description: The ID of the user task. + explode: false + in: path + name: taskId + required: true + schema: + description: The ID of the user task. + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_user_tasks__taskId__cancel_patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_tasks__taskId__submit_patch_200_response' + description: User task cancelled. + summary: Cancels a user task. + tags: + - User Tasks + /user_tasks/{taskId}/reassign: + patch: + description: Requires the User Tasks feature which is currently in private beta. + Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e + to request access. Available on Retool version 3.114+. Reassigns a user task + to a group or user based on the group or user id. The API token must have + the "User Tasks > Write" scope. + parameters: + - description: The ID of the user task. + explode: false + in: path + name: taskId + required: true + schema: + description: The ID of the user task. + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_user_tasks__taskId__reassign_patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_user_tasks__taskId__submit_patch_200_response' + description: User task reassigned + summary: Reassign a user task to a group or a user. + tags: + - User Tasks + /workflow_run/{id}: + get: + description: Requires the Workflow Runs API feature which is currently in private + beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e + to request access. Available on Retool version 3.122+. Returns data for a + workflow run. The API token must have the "Workflows > Read" scope. + parameters: + - description: The ID of the workflow run. + explode: false + in: path + name: id + required: true + schema: + description: The ID of the workflow run. + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_workflow_run__id__get_200_response' + description: Returns workflow run. + summary: Get Workflow Run Details + tags: + - Workflow Run + /organization/: + get: + description: Returns the organization's advanced settings. The API token must + have the "Organizations > Read" scope. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_organization__get_200_response' + description: The requested organization. + summary: Get organization + tags: + - Organization + patch: + description: Updates and returns the updated organization. The API token must + have the "Organizations > Write" scope. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_organization__patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_organization__patch_200_response' + description: Returns the updated organization. + summary: Update advanced settings on organization + tags: + - Organization + /organization/invalidate_sessions/: + post: + description: Invalidate all sessions for all users in your organization. + responses: + "204": + description: All sessions were successfully invalidated. + summary: Invalidates all sessions for your organization + tags: + - Organization + /organization/ai_settings: + get: + description: Returns the organization's AI settings. The API token must have + the "Organizations > Read" scope. Available on Retool versions 3.165.0+. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_organization_ai_settings_get_200_response' + description: The current state of AI settings for the organization. + summary: Get organization AI settings + tags: + - Organization + put: + description: Updates the AI settings on organization. The API token must have + the "Organizations > Write" scope. Available on Retool versions 3.165.0+. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_organization_ai_settings_get_200_response_data' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_organization_ai_settings_put_200_response' + description: The updated AI settings for the organization. + summary: Update organization AI settings + tags: + - Organization + /organization/analytics_integrations: + get: + description: "Returns the organization's analytics integrations settings. We\ + \ return a list of configuration objects, but there is at-most one configuration\ + \ per integration type. The API token must have the \"Organizations > Read\"\ + \ scope. Available on Retool versions 3.175.0+." + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_organization_analytics_integrations_get_200_response' + description: The current state of Analytics Integrations settings for the + organization. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Incorrect scope or non-admin user + summary: Get organization third-party Analytics Integrations settings + tags: + - Organization + /workflows: + get: + description: Get all workflows for an organization or space. The API token must + have the "Workflows > Read" scope. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_workflows_get_200_response' + description: List of workflows + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_workflows_get_403_response' + description: "Forbidden: API token is missing required scope" + summary: Get all workflows + tags: + - Workflows + /workflows/{workflowId}: + get: + description: Get a workflow by ID. The API token must have the "Workflows > + Read" scope. + parameters: + - description: The Workflow ID. + explode: false + in: path + name: workflowId + required: true + schema: + description: The Workflow ID. + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_workflows__workflowId__get_200_response' + description: The requested workflow + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/_workflows_get_403_response' + description: "Bad Request: Invalid UUID format" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/_workflows_get_403_response' + description: "Forbidden: API token is missing required scope" + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/_workflows_get_403_response' + description: "Not Found: Workflow does not exist" + summary: Get a workflow + tags: + - Workflows + /info/ip_allowlist: + get: + description: Returns a list of Retool Cloud IP addresses that require access + to connected data sources. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_info_ip_allowlist_get_200_response' + description: The IP allowlist organized by region. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/_folders_post_409_response' + description: Internal server error + summary: Get IP allowlist by region + tags: + - Info +components: + parameters: {} + schemas: + user: + additionalProperties: false + description: This object represents a user. + properties: + id: + description: The id of the user + pattern: "user_([a-z0-9]+)" + type: string + legacy_id: + description: The legacy id of the user + type: number + email: + description: The email of the user + format: email + type: string + active: + description: Whether the user is active or not + type: boolean + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time + type: string + last_active: + example: 2019-02-08T11:45:48.899Z + format: date-time + nullable: true + type: string + first_name: + description: The first name of the user + maxLength: 36 + minLength: 1 + nullable: true + type: string + last_name: + description: The last name of the user + maxLength: 36 + minLength: 1 + nullable: true + type: string + metadata: + additionalProperties: + nullable: true + default: {} + type: object + is_admin: + description: Whether the user is an admin or not + type: boolean + user_type: + description: The user type + enum: + - default + - mobile + - embed + type: string + two_factor_auth_enabled: + description: Whether two factor authentication is enabled for this user + type: boolean + required: + - active + - created_at + - email + - first_name + - id + - is_admin + - last_active + - last_name + - legacy_id + - metadata + - two_factor_auth_enabled + - user_type + type: object + group: + description: This object represents a permission group. A permission group is + a list of users by which to restrict access. You add users to one or more + groups and then configure the group's level of access. This applies the same + permissions to all group members. See https://docs.retool.com/org-users/concepts/permission-groups + or more information. + properties: + id: + description: The ID of the group. Currently this is the same legacy_id but + will change in the future. + nullable: true + type: number + legacy_id: + description: The legacy ID of the group. + nullable: true + type: number + name: + description: The name of the group. + type: string + members: + description: The members of the group. + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_members_inner' + type: array + universal_app_access: + description: The universal app access level for the group. This denotes + the access level that this group has for all apps. + enum: + - none + - use + - edit + - own + type: string + universal_resource_access: + description: The universal resource access level for the group. This denotes + the access level that this group has for all resources. + enum: + - none + - use + - edit + - own + type: string + universal_workflow_access: + description: The universal workflow access level for the group. This denotes + the access level that this group has for all workflows. + enum: + - none + - use + - edit + - own + type: string + universal_query_library_access: + description: Level of access that the group has to the Query Library. + enum: + - none + - use + - edit + type: string + user_invites: + description: A list of user invites that will be added to the group + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' + type: array + user_list_access: + description: Whether the group has access to the user list + type: boolean + audit_log_access: + description: Whether the group has access to the audit log + type: boolean + unpublished_release_access: + description: Whether the group has access to unpublished releases + type: boolean + usage_analytics_access: + description: Whether the group has access to usage analytics + type: boolean + theme_access: + description: Whether the group has access to edit themes + type: boolean + account_details_access: + description: Whether the group has access to account details + type: boolean + landing_page_app_id: + description: The app ID of the landing page + format: uuid + nullable: true + type: string + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string + required: + - account_details_access + - audit_log_access + - created_at + - id + - landing_page_app_id + - legacy_id + - members + - name + - theme_access + - universal_app_access + - universal_query_library_access + - universal_resource_access + - universal_workflow_access + - unpublished_release_access + - updated_at + - usage_analytics_access + - user_invites + - user_list_access + type: object + folder: + description: "This object represents app, resource and workflows folders." + properties: + id: + description: The id of the folder. Currently this is the same as legacy_id + but will be different in the future. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + legacy_id: + description: The legacy id of the folder. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + name: + description: The name of the folder + type: string + parent_folder_id: + description: The id of the parent folder + nullable: true + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + is_system_folder: + description: Whether the folder is a system folder + type: boolean + folder_type: + description: The type of the folder + enum: + - app + - workflow + - resource + - agent + type: string + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string + required: + - created_at + - folder_type + - id + - is_system_folder + - legacy_id + - name + - updated_at + type: object + space: + additionalProperties: false + description: This object represents a space. Spaces can be used to separate + your organization's data. + properties: + id: + description: The id of the space. + format: uuid + type: string + name: + minLength: 1 + type: string + domain: + minLength: 1 + type: string + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time + type: string + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time + type: string + required: + - created_at + - domain + - id + - name + - updated_at + type: object + source_control_configuration: + anyOf: + - $ref: '#/components/schemas/GitHub' + - $ref: '#/components/schemas/GitLab' + - $ref: '#/components/schemas/AWS_CodeCommit' + - $ref: '#/components/schemas/Bitbucket' + - $ref: '#/components/schemas/Azure_Repos' + description: "This object represents the Source Control provider configuration\ + \ for the organization or space. See [docs](https://docs.retool.com/source-control)\ + \ for more information." + source_control_settings: + properties: + auto_branch_naming_enabled: + description: "When enabled, Retool automatically suggests a branch name\ + \ on branch creation. Defaults to true." + type: boolean + custom_pull_request_template_enabled: + description: "When enabled, Retool will use the template specified to create\ + \ pull requests. Defaults to false." + type: boolean + custom_pull_request_template: + description: Pull requests created from Retool will use the template specified. + type: string + version_control_locked: + description: "When set to true, creates a read-only instance of Retool,\ + \ where app editing is disabled. Defaults to false." + type: boolean + force_uuid_mapping: + description: "When set to true, creates a uuid mapping for protected elements\ + \ to be used in the source control repo. Defaults to false." + type: boolean + auto_cleanup_branches_enabled: + description: "When set to true, Retool will automatically delete branches\ + \ after changes are merged if the remote branch no longer exists and there\ + \ are no uncommitted changes. Defaults to true." + type: boolean + required: + - auto_branch_naming_enabled + - auto_cleanup_branches_enabled + - custom_pull_request_template + - custom_pull_request_template_enabled + - force_uuid_mapping + - version_control_locked + type: object + app_theme: + description: This object represents an app theme. App themes allow you to customize + the look of your app. See https://docs.retool.com/apps/web/concepts/themes + for more information. + properties: + id: + type: number + legacy_id: + type: number + name: + description: The name of the app theme. + type: string + theme: + additionalProperties: + nullable: true + description: The theme object. + type: object + created_at: + description: Date and time when the app theme was created. + format: date-time + type: string + updated_at: + description: Date and time when the app theme was last updated. + format: date-time + type: string + required: + - created_at + - id + - legacy_id + - name + - theme + - updated_at + type: object + app: + description: This object represents an app. + properties: + id: + description: The app ID. + format: uuid + type: string + name: + description: The name of the App + type: string + description: + description: The description of the App + nullable: true + type: string + folder_id: + description: The id of the folder + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + protected: + description: Whether the App is protected + type: boolean + synced: + description: Whether the App is synced + type: boolean + shortlink: + description: The shortlink of the App + nullable: true + type: string + is_module: + description: Whether the App is a module + type: boolean + is_mobile_app: + description: Whether the App is a mobile app + type: boolean + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string + release_version: + description: The live release version of the app. 'latest' if releases are + disabled or the app has no live release yet + type: string + required: + - created_at + - description + - folder_id + - id + - is_mobile_app + - is_module + - name + - protected + - release_version + - shortlink + - synced + - updated_at + type: object + sso_configuration: + description: "This object represents the SSO configuration for an organization\ + \ or space. See [docs](https://docs.retool.com/sso) for more information." + oneOf: + - $ref: '#/components/schemas/Google' + - $ref: '#/components/schemas/OIDC' + - $ref: '#/components/schemas/Google___OIDC' + - $ref: '#/components/schemas/SAML' + - $ref: '#/components/schemas/Google___SAML' + user_attributes: + description: This object represents user attributes. + properties: + id: + description: The id of the user attribute + format: uuid + type: string + name: + description: The name of the user attribute + maxLength: 255 + minLength: 1 + pattern: "^[a-z0-9\\_]+$" + type: string + label: + description: The label of the user attribute + type: string + data_type: + description: "The data type of the user attribute. Valid types are `string`,\ + \ `number`, or `json`" + enum: + - string + - number + - json + type: string + default_value: + description: "The default value of the user attribute, assigned to all users\ + \ without the attribute set" + nullable: true + type: string + intercom_attribute_name: + description: The name of the Intercom user attribute that this attribute + should be mapped to + maxLength: 255 + minLength: 1 + nullable: true + pattern: "^[a-z0-9\\_]+$" + type: string + required: + - data_type + - default_value + - id + - intercom_attribute_name + - label + - name + type: object + role: + properties: + id: + description: The id of the role. + format: uuid + type: string + organization_id: + description: The id of the organization + type: string + name: + description: The name of the role + type: string + description: + description: The description of the role + type: string + is_default_role: + description: Whether the role is the default role + type: boolean + is_legacy_role: + description: Whether the role is a migrated legacy role + type: boolean + object_scopes: + description: The object scopes of the role + items: + type: string + type: array + organization_scopes: + description: The organization scopes of the role + items: + type: string + type: array + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string + required: + - created_at + - description + - id + - is_default_role + - is_legacy_role + - name + - object_scopes + - organization_id + - organization_scopes + - updated_at + type: object + access_request: + description: Access Request + properties: + id: + type: number + status: + enum: + - PENDING + - APPROVED + - DENIED + type: string + legacy_id: + type: number + requesting_email: + type: string + updated_by_id: + nullable: true + type: string + created_at: + format: date-time + type: string + updated_at: + format: date-time + type: string + required: + - created_at + - id + - legacy_id + - requesting_email + - status + - updated_at + - updated_by_id + type: object + accessToken: + additionalProperties: false + description: This object represents an API access token. + properties: + id: + description: The uuid of the access token. + format: uuid + type: string + label: + description: The name of the access token. + minLength: 1 + type: string + description: + description: The description of the access token. + nullable: true + type: string + last4: + description: Last 4 characters of the access token secret + type: string + owner_legacy_id: + description: The legacy id of the user that created the token + type: number + scopes: + items: + type: string + type: array + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time + type: string + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time + type: string + required: + - created_at + - description + - id + - label + - last4 + - owner_legacy_id + - scopes + - updated_at + type: object + user_invite: + description: User Invite + properties: + id: + type: number + legacy_id: + type: number + invited_by: + type: string + invited_email: + format: email + type: string + expires_at: + type: string + claimed_by: + nullable: true + type: string + claimed_at: + nullable: true + type: string + user_type: + enum: + - default + - mobile + - external + nullable: true + type: string + metadata: + additionalProperties: + nullable: true + default: {} + nullable: true + type: object + created_at: + type: string + invite_link: + description: User invite link expires 7 days after generation. + format: uri + type: string + required: + - claimed_at + - claimed_by + - created_at + - expires_at + - id + - invited_by + - invited_email + - legacy_id + - metadata + - user_type + type: object + resource: + additionalProperties: false + description: Resource + properties: + id: + description: The uuid or name for the resource. + type: string + type: + description: The type of resource. + enum: + - airflow + - alloydb + - asana + - athena + - basecamp + - bigid + - bigquery + - cassandra + - circleci + - closeio + - cosmosdb + - couchdb + - databricks + - databricksLakebase + - datadog + - datastore + - dbServer + - denodo + - dynamodb + - elasticsearch + - firebase + - front + - gcs + - github + - googleAnalytics + - googleCalendar + - googleDocs + - googleMaps + - googleSearchConsole + - googlesheets + - graphql + - grpc + - hubspot + - jdbc + - jira + - lambda + - launchdarkly + - microsoftTeams + - mongodb + - mssql + - mysql + - notion + - onesignal + - openAI + - openapi + - oracledb + - postgresql + - presto + - redis + - redshift + - restapi + - rethinkdb + - retoolEmail + - retoolAI + - retoolDb + - retoolStorage + - s3 + - salesforce + - saphana + - sendgrid + - shell + - slack + - slackopenapi + - smtp + - snowflake + - stripe + - twilio + - vertica + - aiProvider + type: string + display_name: + minLength: 1 + type: string + protected: + description: Whether the resource is protected in source control + type: boolean + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string + required: + - created_at + - display_name + - id + - protected + - type + - updated_at + type: object + resourceConfiguration: + additionalProperties: false + description: Resource Configuration + properties: + id: + description: The uuid for the resource configuration. + format: uuid + type: string + resource: + $ref: '#/components/schemas/_resources_get_200_response_data_inner' + environment: + $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' + options: + $ref: '#/components/schemas/_resources_post_request_options' + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string + required: + - created_at + - environment + - id + - options + - resource + - updated_at + type: object + environment: + description: Environment + properties: + id: + format: uuid + type: string + name: + type: string + description: + nullable: true + type: string + color: + example: '#FFFFFF' + pattern: "^#[A-Fa-f0-9]{6}$" + type: string + default: + type: boolean + created_at: + type: string + updated_at: + type: string + required: + - color + - created_at + - default + - description + - id + - name + - updated_at + type: object + customComponentLibrary: + description: Custom Component Library + properties: + id: + format: uuid + type: string + name: + description: "How the library will be referred to in Toolscript, and other\ + \ code based usages." + type: string + description: + nullable: true + type: string + label: + description: How the library will be referred to in the Retool UI. Should + be human readable. + type: string + created_at: + format: date-time + type: string + updated_at: + format: date-time + type: string + required: + - created_at + - description + - id + - label + - name + - updated_at + type: object + customComponentLibraryRevision: + description: Custom Component Library Revision + properties: + id: + format: uuid + type: string + version: + type: string + custom_component_library_id: + type: string + created_at: + format: date-time + type: string + updated_at: + format: date-time + type: string + required: + - created_at + - custom_component_library_id + - id + - updated_at + - version + type: object + customComponentLibraryRevisionFile: + description: Custom Component Library Revision + properties: + filepath: + type: string + file_contents: + type: string + created_at: + format: date-time + type: string + updated_at: + format: date-time + type: string + required: + - created_at + - file_contents + - filepath + - updated_at + type: object + configuration_variable: + properties: + id: + description: The ID of the configuration variable + format: uuid + type: string + name: + description: The name of the configuration variable + type: string + description: + description: The description of the configuration variable + type: string + secret: + description: Whether the configuration variable is a secret + type: boolean + values: + items: + $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner_values_inner' + type: array + required: + - id + - name + - secret + - values + type: object + observability_configuration: + additionalProperties: false + description: Shape of external Observability provider config + properties: + id: + description: The id of the configuration. + format: uuid + type: string + config: + $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' + enabled: + description: "When enabled, use this provider for apps observability monitoring." + type: boolean + required: + - config + - enabled + - id + type: object + usage_analytics_organization: + additionalProperties: false + description: An organization in the context of usage analytics + properties: + org_id: + description: The id of the organization + type: string + host: + description: The host of the organization + type: string + last_active: + example: 2019-02-08T11:45:48.899Z + format: date-time + type: string + required: + - host + - last_active + - org_id + type: object + usage: + additionalProperties: false + properties: + count_current_page_saves: + description: The number of page saves for all the organizations within the + date range + type: number + count_current_page_views: + description: The number of page views for all the organizations within the + date range + type: number + count_current_users: + description: The total number of unique users who have performed any tracked + activity in all the organizations within the date range + type: number + count_T30_users: + description: The number of unique users who have been active over the trailing + 30 days from the end date provided + type: number + percent_growth_page_saves: + description: The percentage growth in page saves compared to the previous + cycle of the same length as the provided date range + type: number + percent_growth_page_views: + description: The percentage growth in page views compared to the previous + cycle of the same length as the provided date range + type: number + percent_growth_users: + description: The percentage growth in unique users compared to the previous + cycle of the same length as the provided date range + type: number + percent_growth_T30_users: + description: The percentage growth in T30 users (trailing 30 days users) + compared to the previous cycle of the same length as the provided date + range + type: number + daily_T30_usage: + items: + $ref: '#/components/schemas/_usage_get_200_response_data_daily_T30_usage_inner' + type: array + required: + - count_T30_users + - count_current_page_saves + - count_current_page_views + - count_current_users + - daily_T30_usage + - percent_growth_T30_users + - percent_growth_page_saves + - percent_growth_page_views + - percent_growth_users + type: object + appSummary: + additionalProperties: false + properties: + app_name: + description: The name of the app + type: string + host: + description: The organization host + type: string + count_app_views: + description: The number of views of the app in the time range specified + type: number + count_app_saves: + description: The number of saves of the app in the time range specified + type: number + count_viewers: + description: The number of viewers of the app in the time range specified + type: number + count_editors: + description: The number of editors of the app in the time range specified + type: number + required: + - app_name + - count_app_saves + - count_app_views + - count_editors + - count_viewers + - host + type: object + userTask: + description: User-defined context for the task. + properties: + id: + description: The ID of the user task. + format: uuid + type: string + workflow_id: + description: The ID of the workflow this task belongs to. + format: uuid + type: string + workflow_name: + description: The name of the workflow. + type: string + workflow_run_id: + description: The ID of the workflow run. + format: uuid + type: string + task_name: + description: The name of the task. + type: string + status: + description: The current status of the task. + enum: + - submitted + - pending + - cancelled + - expired + type: string + context: + additionalProperties: + nullable: true + description: Additional context for the task. + type: object + created_at: + description: The creation date time of the task. + type: string + completed_at: + description: The completion date time of the task. + nullable: true + type: string + task_url: + description: URL links to apps associated with the task. + items: + type: string + type: array + assignees: + description: The groups or users assigned to this task. + items: + $ref: '#/components/schemas/_user_tasks_get_200_response_data_inner_assignees_inner' + type: array + workflow_release: + description: "The workflow release version, if any." + nullable: true + type: string + expires_at: + description: "The expiration date time of the task, if set." + nullable: true + type: string + output: + additionalProperties: + nullable: true + type: object + required: + - assignees + - completed_at + - context + - created_at + - expires_at + - id + - status + - task_name + - task_url + - workflow_id + - workflow_name + - workflow_release + - workflow_run_id + type: object + workflowRunWithUserTask: + description: A workflow run and related data. + properties: + status: + description: The status of the workflow run. + type: string + workflow_id: + description: The ID of the workflow. + format: uuid + type: string + id: + description: The ID of the workflow run. + format: uuid + type: string + trigger_type: + description: The type of trigger that started the workflow. + type: string + trigger_id: + description: The ID of the trigger. + format: uuid + type: string + created_at: + description: The creation date time of the workflow run. + type: string + user_tasks: + description: List of user tasks of the workfow run. + items: + $ref: '#/components/schemas/_user_tasks_get_200_response_data_inner' + type: array + required: + - created_at + - id + - status + - trigger_id + - trigger_type + - workflow_id + type: object + organization_settings: + additionalProperties: false + description: This object represents the advanced settings configured on an organization. + properties: + id: + description: The id of the organization. + type: string + request_access_enabled: + description: Whether users can request access to join the organization. + type: boolean + ai_support_bot_disabled: + description: Whether the AI support bot is disabled. + type: boolean + retool_forms_disabled: + description: Whether Retool forms are disabled. + type: boolean + release_management_enabled: + description: Whether versions and releases on apps are disabled. + type: boolean + cache_queries_per_user: + nullable: true + type: boolean + apply_preloaded_css_to_homepage: + description: Whether preloaded CSS is applied to the Retool homepage. + type: boolean + preloaded_css: + description: Custom CSS rules to apply across Retool. + nullable: true + type: string + preloaded_javascript: + description: Preloaded JavaScript that will apply to every Retool app. + nullable: true + type: string + javascript_links: + description: List of custom JavaScript libraries to load in every app. + items: + type: string + type: array + workflow_run_retention_period_mins: + description: "Number of minutes to store workflow run history data (up to\ + \ a max of 90 days on cloud, 1 year on-prem)" + type: number + app_owners_permissions_management: + description: Whether app owners can manage permissions for their apps directly. + type: boolean + two_factor_auth_required: + description: Whether two-factor authentication is required for all users + in the organization. + type: boolean + two_factor_auth_type: + description: "Required 2FA type, applies to the whole organization" + enum: + - fido2 + - otp + nullable: true + type: string + disable_new_login_ip_notification_email: + description: Whether notification emails for logins from new IPs are disabled. + type: boolean + required: + - ai_support_bot_disabled + - app_owners_permissions_management + - apply_preloaded_css_to_homepage + - cache_queries_per_user + - disable_new_login_ip_notification_email + - id + - javascript_links + - preloaded_css + - preloaded_javascript + - release_management_enabled + - request_access_enabled + - retool_forms_disabled + - two_factor_auth_required + - two_factor_auth_type + - workflow_run_retention_period_mins + type: object + analytics_integrations_settings: + oneOf: + - $ref: '#/components/schemas/_organization_analytics_integrations_get_200_response_data_inner_oneOf' + - $ref: '#/components/schemas/_organization_analytics_integrations_get_200_response_data_inner_oneOf_1' + - $ref: '#/components/schemas/_organization_analytics_integrations_get_200_response_data_inner_oneOf_2' + workflow: + description: This object represents a Workflow. + properties: + id: + description: The Workflow ID. + format: uuid + type: string + name: + description: The name of the Workflow + type: string + description: + description: The description of the Workflow + nullable: true + type: string + crontab: + description: The cron tab of the Workflow + nullable: true + type: string + timezone: + description: The timezone of the Workflow + nullable: true + type: string + is_enabled: + description: Whether the Workflow is enabled + type: boolean + folder_id: + description: The folder ID of the Workflow + type: string + protected: + description: Whether the Workflow is protected + type: boolean + created_by: + description: The user ID of the creator of the Workflow + nullable: true + type: number + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time + type: string + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time + type: string + required: + - created_at + - created_by + - crontab + - description + - folder_id + - id + - is_enabled + - name + - protected + - timezone + - updated_at + type: object + ip_allowlist: + additionalProperties: false + properties: + ipAddresses: + $ref: '#/components/schemas/_info_ip_allowlist_get_200_response_data_ipAddresses' + required: + - ipAddresses + type: object + _users__userId__get_200_response_data: + additionalProperties: false + description: This object represents a user. + example: + is_admin: true + two_factor_auth_enabled: true + metadata: + key: "" + user_type: default + legacy_id: 0.8008281904610115 + active: true + created_at: 2019-02-08T11:45:48.899Z + last_name: last_name + id: id + last_active: 2019-02-08T11:45:48.899Z + first_name: first_name + email: email + properties: + id: + description: The id of the user + pattern: "user_([a-z0-9]+)" + type: string + legacy_id: + description: The legacy id of the user + type: number + email: + description: The email of the user + format: email + type: string + active: + description: Whether the user is active or not + type: boolean + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time + type: string + last_active: + example: 2019-02-08T11:45:48.899Z + format: date-time + nullable: true + type: string + first_name: + description: The first name of the user + maxLength: 36 + minLength: 1 + nullable: true + type: string + last_name: + description: The last name of the user + maxLength: 36 + minLength: 1 + nullable: true + type: string + metadata: + additionalProperties: + nullable: true + default: {} + type: object + is_admin: + description: Whether the user is an admin or not + type: boolean + user_type: + description: The user type + enum: + - default + - mobile + - embed + type: string + two_factor_auth_enabled: + description: Whether two factor authentication is enabled for this user + type: boolean + required: + - active + - created_at + - email + - first_name + - id + - is_admin + - last_active + - last_name + - legacy_id + - metadata + - two_factor_auth_enabled + - user_type + type: object + _users__userId__get_200_response: + description: A single user + example: + data: + is_admin: true + two_factor_auth_enabled: true + metadata: + key: "" + user_type: default + legacy_id: 0.8008281904610115 + active: true + created_at: 2019-02-08T11:45:48.899Z + last_name: last_name + id: id + last_active: 2019-02-08T11:45:48.899Z + first_name: first_name + email: email + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_users__userId__get_200_response_data' + required: + - data + - success + type: object + Add_Operation: + properties: + op: + enum: + - add + type: string + path: + type: string + value: + description: A JSON value + nullable: true + required: + - op + - path + title: Add Operation + type: object + Remove_Operation: + properties: + op: + enum: + - remove + type: string + path: + type: string + required: + - op + - path + title: Remove Operation + type: object + Replace_Operation: + properties: + op: + enum: + - replace + type: string + path: + type: string + value: + description: A JSON value + nullable: true + required: + - op + - path + title: Replace Operation + type: object + _users__userId__patch_request_operations_inner: + anyOf: + - $ref: '#/components/schemas/Add_Operation' + - $ref: '#/components/schemas/Remove_Operation' + - $ref: '#/components/schemas/Replace_Operation' + _users__userId__patch_request: + additionalProperties: false + description: The body of a request to update a user. + properties: + operations: + description: "A list of operations to apply to the user. See the [JSON PATCH\ + \ specification](https://tools.ietf.org/html/rfc6902) for more details." + items: + $ref: '#/components/schemas/_users__userId__patch_request_operations_inner' + type: array + required: + - operations + type: object + _users_get_200_response: + description: A paginated list of users. + example: + data: + - is_admin: true + two_factor_auth_enabled: true + metadata: + key: "" + user_type: default + legacy_id: 0.8008281904610115 + active: true + created_at: 2019-02-08T11:45:48.899Z + last_name: last_name + id: id + last_active: 2019-02-08T11:45:48.899Z + first_name: first_name + email: email + - is_admin: true + two_factor_auth_enabled: true + metadata: + key: "" + user_type: default + legacy_id: 0.8008281904610115 + active: true + created_at: 2019-02-08T11:45:48.899Z + last_name: last_name + id: id + last_active: 2019-02-08T11:45:48.899Z + first_name: first_name + email: email + success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token + properties: + success: + description: API request succeeded + type: boolean + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_users__userId__get_200_response_data' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean + required: + - data + - has_more + - next_token + - success + - total_count + type: object + _users_post_request: + additionalProperties: false + description: Body of request to create a user + properties: + email: + description: The email of the user + format: email + type: string + first_name: + description: The first name of the user + minLength: 1 + type: string + last_name: + description: The last name of the user + minLength: 1 + type: string + active: + default: true + description: Whether the user is enabled or not + type: boolean + metadata: + additionalProperties: + nullable: true + default: {} + type: object + user_type: + description: The user type + enum: + - default + - mobile + - embed + type: string + required: + - email + - first_name + - last_name + type: object + _users_post_200_response_data: + additionalProperties: false + description: The created user + example: + is_admin: true + two_factor_auth_enabled: true + metadata: + key: "" + user_type: default + legacy_id: 0.8008281904610115 + active: true + created_at: 2019-02-08T11:45:48.899Z + last_name: last_name + id: id + last_active: 2019-02-08T11:45:48.899Z + first_name: first_name + email: email + properties: + id: description: The id of the user pattern: "user_([a-z0-9]+)" type: string legacy_id: description: The legacy id of the user - pattern: "user_([a-z0-9]+)" - type: string + type: number email: description: The email of the user format: email @@ -2575,23 +5864,274 @@ components: nullable: true default: {} type: object + is_admin: + description: Whether the user is an admin or not + type: boolean + user_type: + description: The user type + enum: + - default + - mobile + - embed + type: string + two_factor_auth_enabled: + description: Whether two factor authentication is enabled for this user + type: boolean required: - active - created_at - email - first_name - id + - is_admin - last_active - last_name - legacy_id - metadata + - two_factor_auth_enabled + - user_type type: object - group: - description: This object represents a permission group. A permission group is - a list of users by which to restrict access. You add users to one or more - groups and then configure the group's level of access. This applies the same - permissions to all group members. See https://docs.retool.com/org-users/concepts/permission-groups - or more information. + _users_post_200_response: + example: + data: + is_admin: true + two_factor_auth_enabled: true + metadata: + key: "" + user_type: default + legacy_id: 0.8008281904610115 + active: true + created_at: 2019-02-08T11:45:48.899Z + last_name: last_name + id: id + last_active: 2019-02-08T11:45:48.899Z + first_name: first_name + email: email + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_users_post_200_response_data' + required: + - data + - success + type: object + _users__userId__user_attributes_post_request: + additionalProperties: false + description: The body of a request to add a user attribute to a user or update + an existing user attribute. + properties: + name: + description: The name of the user attribute (must match an existing attribute + exactly) + type: string + value: + description: The value of the user attribute + nullable: true + type: string + required: + - name + - value + type: object + _users__userId__user_attributes_post_200_response_data: + example: + metadata: + key: "" + properties: + metadata: + additionalProperties: + nullable: true + default: {} + description: "The updated user metadata, containing the new attribute value" + type: object + required: + - metadata + type: object + _users__userId__user_attributes_post_200_response: + example: + data: + metadata: + key: "" + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_users__userId__user_attributes_post_200_response_data' + required: + - data + - success + type: object + _users__userId__user_attributes__attributeName__delete_200_response_data: + example: + metadata: + key: "" + properties: + metadata: + additionalProperties: + nullable: true + default: {} + description: "The updated user metadata, without the deleted attribute" + type: object + required: + - metadata + type: object + _users__userId__user_attributes__attributeName__delete_200_response: + example: + data: + metadata: + key: "" + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_users__userId__user_attributes__attributeName__delete_200_response_data' + required: + - data + - success + type: object + _groups__groupId__get_200_response_data_members_inner: + example: + is_group_admin: false + id: id + email: email + properties: + id: + pattern: "user_([a-z0-9]+)" + type: string + email: + description: The email of the user + format: email + type: string + is_group_admin: + default: false + description: Whether the user is a group admin + type: boolean + required: + - email + - id + - is_group_admin + type: object + _groups__groupId__get_200_response_data_user_invites_inner: + description: User Invite + example: + metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + properties: + id: + type: number + legacy_id: + type: number + invited_by: + type: string + invited_email: + format: email + type: string + expires_at: + type: string + claimed_by: + nullable: true + type: string + claimed_at: + nullable: true + type: string + user_type: + enum: + - default + - mobile + - external + nullable: true + type: string + metadata: + additionalProperties: + nullable: true + default: {} + nullable: true + type: object + created_at: + type: string + invite_link: + description: User invite link expires 7 days after generation. + format: uri + type: string + required: + - claimed_at + - claimed_by + - created_at + - expires_at + - id + - invited_by + - invited_email + - legacy_id + - metadata + - user_type + type: object + _groups__groupId__get_200_response_data: + description: The requested group + example: + audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true + created_at: 2019-02-08T11:45:48.899Z + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true properties: id: description: The ID of the group. Currently this is the same legacy_id but @@ -2661,6 +6201,9 @@ components: usage_analytics_access: description: Whether the group has access to usage analytics type: boolean + theme_access: + description: Whether the group has access to edit themes + type: boolean account_details_access: description: Whether the group has access to account details type: boolean @@ -2684,7 +6227,9 @@ components: - legacy_id - members - name + - theme_access - universal_app_access + - universal_query_library_access - universal_resource_access - universal_workflow_access - unpublished_release_access @@ -2693,393 +6238,153 @@ components: - user_invites - user_list_access type: object - folder: - description: "This object represents app, resource and workflows folders." - properties: - id: - description: The id of the folder. Currently this is the same as legacy_id - but will be different in the future. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - legacy_id: - description: The legacy id of the folder. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - name: - description: The name of the folder - type: string - parent_folder_id: - description: The id of the parent folder - nullable: true - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - is_system_folder: - description: Whether the folder is a system folder - type: boolean - folder_type: - description: The type of the folder - enum: - - app - - workflow - - resource - type: string - created_at: - example: 2019-02-08T11:45:48.899Z - type: string - updated_at: - example: 2019-02-24T18:28:18.790Z - type: string - required: - - created_at - - folder_type - - id - - is_system_folder - - legacy_id - - name - - updated_at - type: object - space: - additionalProperties: false - description: This object represents a space. Spaces can be used to separate - your organization's data. - properties: - id: - description: The id of the space. - format: uuid - type: string - name: - minLength: 1 - type: string - domain: - minLength: 1 - type: string - created_at: - example: 2019-02-08T11:45:48.899Z - format: date-time - type: string - updated_at: - example: 2019-02-24T18:28:18.79Z - format: date-time - type: string - required: - - created_at - - domain - - id - - name - - updated_at - type: object - source_control_configuration: - anyOf: - - $ref: '#/components/schemas/source_control_configuration_anyOf' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_1' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_2' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_3' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_4' - description: This object represents the Source Control provider configuration - for the organization or space. See https://docs.retool.com/source-control - for more information. - source_control_settings: - properties: - auto_branch_naming_enabled: - description: "When enabled, Retool automatically suggests a branch name\ - \ on branch creation. Defaults to true." - type: boolean - custom_pull_request_template_enabled: - description: "When enabled, Retool will use the template specified to create\ - \ pull requests. Defaults to false." - type: boolean - custom_pull_request_template: - description: Pull requests created from Retool will use the template specified. - type: string - version_control_locked: - description: "When set to true, creates a read-only instance of Retool,\ - \ where app editing is disabled. Defaults to false." - type: boolean - force_uuid_mapping: - description: "When set to true, creates a uuid mapping for protected elements\ - \ to be used in the source control repo. Defaults to false." - type: boolean - required: - - auto_branch_naming_enabled - - custom_pull_request_template - - custom_pull_request_template_enabled - - force_uuid_mapping - - version_control_locked - type: object - app_theme: - description: This object represents an app theme. App themes allow you to customize - the look of your app. See https://docs.retool.com/apps/web/concepts/themes - for more information. - properties: - id: - type: number - legacy_id: - type: number - name: - description: The name of the app theme. - type: string - theme: - additionalProperties: - nullable: true - description: The theme object. - type: object - required: - - id - - legacy_id - - name - - theme - type: object - app: - description: This object represents an app. - properties: - id: - description: The app ID. - format: uuid - type: string - name: - description: The name of the App - type: string - description: - description: The description of the App - nullable: true - type: string - folder_id: - description: The id of the folder - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - protected: - description: Whether the App is protected - type: boolean - synced: - description: Whether the App is synced - type: boolean - shortlink: - description: The shortlink of the App - nullable: true - type: string - is_module: - description: Whether the App is a module - type: boolean - is_mobile_app: - description: Whether the App is a mobile app - type: boolean - required: - - description - - folder_id - - id - - is_mobile_app - - is_module - - name - - protected - - shortlink - - synced - type: object - sso_configuration: - description: This object represents the SSO configuration for an organization - or space. See https://docs.retool.com/sso for more information. - oneOf: - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf' - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf_1' - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf_2' - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf_3' - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf_4' - user_attributes: - description: This object represents user attributes. + _groups__groupId__get_200_response: + example: + data: + audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true + created_at: 2019-02-08T11:45:48.899Z + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true + success: true properties: - id: - description: The id of the user attribute - format: uuid - type: string - name: - description: The name of the user attribute - maxLength: 255 - minLength: 1 - pattern: "^[a-z0-9\\_]+$" - type: string - label: - description: The label of the user attribute - type: string - data_type: - description: "The data type of the user attribute. One of types `string`,\ - \ `number`, or `json`" - enum: - - string - - number - - json - type: string - default_value: - description: "The default value of the user attribute, assigned to all users\ - \ without the attribute set" - nullable: true - type: string - intercom_attribute_name: - description: The name of the Intercom user attribute that this attribute - should be mapped to - maxLength: 255 - minLength: 1 - nullable: true - pattern: "^[a-z0-9\\_]+$" - type: string + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data' required: - - data_type - - default_value - - id - - intercom_attribute_name - - label - - name + - data + - success type: object - access_request: - description: Access Request + _groups__groupId__put_request_members_inner: properties: id: - type: number - status: - enum: - - PENDING - - APPROVED - - DENIED - type: string - legacy_id: - type: number - requesting_email: - type: string - updated_by_id: - nullable: true + pattern: "user_([a-z0-9]+)" type: string + is_group_admin: + default: false + description: Whether the user is a group admin + type: boolean required: - id - - legacy_id - - requesting_email - - status - - updated_by_id + - is_group_admin type: object - user_invite: - description: User Invite + _groups__groupId__put_request: properties: - id: - type: number - legacy_id: - type: number - invited_by: - type: string - invited_email: - format: email - type: string - expires_at: - type: string - claimed_by: - nullable: true - type: string - claimed_at: - nullable: true + name: + description: The name of the group. + minLength: 1 type: string - user_type: + members: + description: Users to add to the group. + items: + $ref: '#/components/schemas/_groups__groupId__put_request_members_inner' + type: array + universal_app_access: + description: The universal app access level for the group. This denotes + the access level that this group has for all apps. enum: - - default - - mobile - - external - nullable: true + - none + - use + - edit + - own type: string - metadata: - additionalProperties: - nullable: true - default: {} - nullable: true - type: object - created_at: + universal_resource_access: + description: The universal resource access level for the group. This denotes + the access level that this group has for all resources. + enum: + - none + - use + - edit + - own type: string - invite_link: - format: uri + universal_workflow_access: + description: The universal workflow access level for the group. This denotes + the access level that this group has for all workflows. + enum: + - none + - use + - edit + - own type: string - required: - - claimed_at - - claimed_by - - created_at - - expires_at - - id - - invited_by - - invited_email - - legacy_id - - metadata - - user_type - type: object - resource: - additionalProperties: false - description: Resource - properties: - id: - $ref: '#/components/schemas/_resources_get_200_response_data_inner_id' - type: - description: The type of resource. + universal_query_library_access: + description: Level of access that the group has to the Query Library. enum: - - airflow - - alloydb - - asana - - athena - - basecamp - - bigid - - bigquery - - cassandra - - circleci - - closeio - - cosmosdb - - couchdb - - databricks - - datadog - - datastore - - denodo - - dynamodb - - elasticsearch - - firebase - - front - - gcs - - github - - googleAnalytics - - googleMaps - - googleSearchConsole - - googlesheets - - graphql - - grpc - - hubspot - - jdbc - - jira - - lambda - - launchdarkly - - microsoftTeams - - mongodb - - mssql - - mysql - - notion - - onesignal - - openAI - - openapi - - oracledb - - postgresql - - presto - - redis - - redshift - - restapi - - rethinkdb - - rockset - - retoolEmail - - retoolAI - - retoolDb - - retoolStorage - - s3 - - salesforce - - saphana - - sendgrid - - shell - - slack - - slackopenapi - - smtp - - snowflake - - stripe - - twilio - - vertica + - none + - use + - edit type: string - display_name: - minLength: 1 + user_invites: + description: A list of user invites that will be added to the group + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' + type: array + user_list_access: + description: Whether the group has access to the user list + type: boolean + audit_log_access: + description: Whether the group has access to the audit log + type: boolean + unpublished_release_access: + description: Whether the group has access to unpublished releases + type: boolean + usage_analytics_access: + description: Whether the group has access to usage analytics + type: boolean + theme_access: + description: Whether the group has access to edit themes + type: boolean + account_details_access: + description: Whether the group has access to account details + type: boolean + landing_page_app_id: + description: The app ID of the landing page + format: uuid + nullable: true type: string created_at: example: 2019-02-08T11:45:48.899Z @@ -3087,27 +6392,138 @@ components: updated_at: example: 2019-02-24T18:28:18.790Z type: string - required: - - created_at - - display_name - - id - - type - - updated_at type: object - resourceConfiguration: - additionalProperties: false - description: Resource Configuration + _groups__groupId__put_200_response_data: + description: The updated group + example: + audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true + created_at: 2019-02-08T11:45:48.899Z + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true properties: id: - description: The uuid for the resource configuration. + description: The ID of the group. Currently this is the same legacy_id but + will change in the future. + nullable: true + type: number + legacy_id: + description: The legacy ID of the group. + nullable: true + type: number + name: + description: The name of the group. + type: string + members: + description: The members of the group. + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_members_inner' + type: array + universal_app_access: + description: The universal app access level for the group. This denotes + the access level that this group has for all apps. + enum: + - none + - use + - edit + - own + type: string + universal_resource_access: + description: The universal resource access level for the group. This denotes + the access level that this group has for all resources. + enum: + - none + - use + - edit + - own + type: string + universal_workflow_access: + description: The universal workflow access level for the group. This denotes + the access level that this group has for all workflows. + enum: + - none + - use + - edit + - own + type: string + universal_query_library_access: + description: Level of access that the group has to the Query Library. + enum: + - none + - use + - edit + type: string + user_invites: + description: A list of user invites that will be added to the group + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' + type: array + user_list_access: + description: Whether the group has access to the user list + type: boolean + audit_log_access: + description: Whether the group has access to the audit log + type: boolean + unpublished_release_access: + description: Whether the group has access to unpublished releases + type: boolean + usage_analytics_access: + description: Whether the group has access to usage analytics + type: boolean + theme_access: + description: Whether the group has access to edit themes + type: boolean + account_details_access: + description: Whether the group has access to account details + type: boolean + landing_page_app_id: + description: The app ID of the landing page format: uuid + nullable: true type: string - resource: - $ref: '#/components/schemas/_resources_get_200_response_data_inner' - environment: - $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' - options: - $ref: '#/components/schemas/_resources_post_request_options' created_at: example: 2019-02-08T11:45:48.899Z type: string @@ -3115,432 +6531,786 @@ components: example: 2019-02-24T18:28:18.790Z type: string required: + - account_details_access + - audit_log_access - created_at - - environment - id - - options - - resource + - landing_page_app_id + - legacy_id + - members + - name + - theme_access + - universal_app_access + - universal_query_library_access + - universal_resource_access + - universal_workflow_access + - unpublished_release_access - updated_at + - usage_analytics_access + - user_invites + - user_list_access type: object - environment: - description: Environment + _groups__groupId__put_200_response: + example: + data: + audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true + created_at: 2019-02-08T11:45:48.899Z + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_groups__groupId__put_200_response_data' + required: + - data + - success + type: object + _groups__groupId__patch_request: + additionalProperties: false + description: 'The body of a request to update a group. ' + properties: + operations: + description: "A list of operations to apply to the group. See the [JSON\ + \ PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." + items: + $ref: '#/components/schemas/_users__userId__patch_request_operations_inner' + type: array + required: + - operations + type: object + _groups_get_200_response_data_inner: + description: This object represents a permission group. A permission group is + a list of users by which to restrict access. You add users to one or more + groups and then configure the group's level of access. This applies the same + permissions to all group members. See https://docs.retool.com/org-users/concepts/permission-groups + or more information. + example: + audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true + created_at: 2019-02-08T11:45:48.899Z + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true properties: id: - format: uuid - type: string + description: The ID of the group. Currently this is the same legacy_id but + will change in the future. + nullable: true + type: number + legacy_id: + description: The legacy ID of the group. + nullable: true + type: number name: + description: The name of the group. type: string - description: - nullable: true + members: + description: The members of the group. + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_members_inner' + type: array + universal_app_access: + description: The universal app access level for the group. This denotes + the access level that this group has for all apps. + enum: + - none + - use + - edit + - own type: string - color: + universal_resource_access: + description: The universal resource access level for the group. This denotes + the access level that this group has for all resources. + enum: + - none + - use + - edit + - own type: string - default: - type: boolean - created_at: + universal_workflow_access: + description: The universal workflow access level for the group. This denotes + the access level that this group has for all workflows. + enum: + - none + - use + - edit + - own type: string - updated_at: + universal_query_library_access: + description: Level of access that the group has to the Query Library. + enum: + - none + - use + - edit type: string - required: - - color - - created_at - - default - - description - - id - - name - - updated_at - type: object - customComponentLibrary: - description: Custom Component Library - properties: - id: + user_invites: + description: A list of user invites that will be added to the group + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' + type: array + user_list_access: + description: Whether the group has access to the user list + type: boolean + audit_log_access: + description: Whether the group has access to the audit log + type: boolean + unpublished_release_access: + description: Whether the group has access to unpublished releases + type: boolean + usage_analytics_access: + description: Whether the group has access to usage analytics + type: boolean + theme_access: + description: Whether the group has access to edit themes + type: boolean + account_details_access: + description: Whether the group has access to account details + type: boolean + landing_page_app_id: + description: The app ID of the landing page format: uuid - type: string - name: - description: "How the library will be referred to in Toolscript, and other\ - \ code based usages." - type: string - description: nullable: true type: string - label: - description: How the library will be referred to in the Retool UI. Should - be human readable. - type: string created_at: - format: date-time + example: 2019-02-08T11:45:48.899Z type: string updated_at: - format: date-time + example: 2019-02-24T18:28:18.790Z type: string required: + - account_details_access + - audit_log_access - created_at - - description - id - - label + - landing_page_app_id + - legacy_id + - members - name + - theme_access + - universal_app_access + - universal_query_library_access + - universal_resource_access + - universal_workflow_access + - unpublished_release_access - updated_at + - usage_analytics_access + - user_invites + - user_list_access type: object - customComponentLibraryRevision: - description: Custom Component Library Revision + _groups_get_200_response: + description: A dictionary with a `data` property that contains an array of groups + example: + data: + - audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true + created_at: 2019-02-08T11:45:48.899Z + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true + - audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true + created_at: 2019-02-08T11:45:48.899Z + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true + success: true + total_count: 1.4658129805029452 + has_more: true + next_token: next_token properties: - id: - format: uuid - type: string - version: - type: string - custom_component_library_id: - type: string - created_at: - format: date-time - type: string - updated_at: - format: date-time + success: + description: API request succeeded + type: boolean + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_groups_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - - created_at - - custom_component_library_id - - id - - updated_at - - version + - data + - has_more + - next_token + - success + - total_count type: object - customComponentLibraryRevisionFile: - description: Custom Component Library Revision + _groups_post_request: properties: - filepath: - type: string - file_contents: - type: string - created_at: - format: date-time + name: + description: The name of the group. + minLength: 1 type: string - updated_at: - format: date-time + members: + description: Users to add to the group. + items: + $ref: '#/components/schemas/_groups__groupId__put_request_members_inner' + type: array + universal_app_access: + description: The universal app access level for the group. This denotes + the access level that this group has for all apps. + enum: + - none + - use + - edit + - own type: string - required: - - created_at - - file_contents - - filepath - - updated_at - type: object - configuration_variable: - properties: - id: - description: The ID of the configuration variable - format: uuid + universal_resource_access: + description: The universal resource access level for the group. This denotes + the access level that this group has for all resources. + enum: + - none + - use + - edit + - own type: string - name: - description: The name of the configuration variable + universal_workflow_access: + description: The universal workflow access level for the group. This denotes + the access level that this group has for all workflows. + enum: + - none + - use + - edit + - own type: string - description: - description: The description of the configuration variable + universal_query_library_access: + description: Level of access that the group has to the Query Library. + enum: + - none + - use + - edit type: string - secret: - description: Whether the configuration variable is a secret - type: boolean - values: + user_invites: + description: A list of user invites that will be added to the group items: - $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner_values_inner' + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' type: array - required: - - id - - name - - secret - - values - type: object - observability_configuration: - additionalProperties: false - description: Shape of external Observability provider config - properties: - id: - description: The id of the configuration. - format: uuid - type: string - config: - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' - enabled: - description: "When enabled, use this provider for apps observability monitoring." + user_list_access: + description: Whether the group has access to the user list type: boolean - required: - - config - - enabled - - id - type: object - organization: - additionalProperties: false - description: An organization in Retool - properties: - org_id: - description: The id of the organization - type: string - host: - description: The host of the organization + audit_log_access: + description: Whether the group has access to the audit log + type: boolean + unpublished_release_access: + description: Whether the group has access to unpublished releases + type: boolean + usage_analytics_access: + description: Whether the group has access to usage analytics + type: boolean + theme_access: + description: Whether the group has access to edit themes + type: boolean + account_details_access: + description: Whether the group has access to account details + type: boolean + landing_page_app_id: + description: The app ID of the landing page + format: uuid + nullable: true type: string - last_active: + created_at: example: 2019-02-08T11:45:48.899Z - format: date-time + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z type: string required: - - host - - last_active - - org_id + - name type: object - usage: - additionalProperties: false - properties: - count_current_page_saves: - description: The number of page saves for all the organizations within the - date range - type: number - count_current_page_views: - description: The number of page views for all the organizations within the - date range - type: number - count_current_users: - description: The total number of unique users who have performed any tracked - activity in all the organizations within the date range - type: number - count_T30_users: - description: The number of unique users who have been active over the trailing - 30 days from the end date provided - type: number - percent_growth_page_saves: - description: The percentage growth in page saves compared to the previous - cycle of the same length as the provided date range - type: number - percent_growth_page_views: - description: The percentage growth in page views compared to the previous - cycle of the same length as the provided date range - type: number - percent_growth_users: - description: The percentage growth in unique users compared to the previous - cycle of the same length as the provided date range + _groups_post_200_response_data: + description: The created group + example: + audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true + created_at: 2019-02-08T11:45:48.899Z + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true + properties: + id: + description: The ID of the group. Currently this is the same legacy_id but + will change in the future. + nullable: true type: number - percent_growth_T30_users: - description: The percentage growth in T30 users (trailing 30 days users) - compared to the previous cycle of the same length as the provided date - range + legacy_id: + description: The legacy ID of the group. + nullable: true type: number - daily_T30_usage: + name: + description: The name of the group. + type: string + members: + description: The members of the group. items: - $ref: '#/components/schemas/_usage_get_200_response_data_daily_T30_usage_inner' + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_members_inner' type: array - required: - - count_T30_users - - count_current_page_saves - - count_current_page_views - - count_current_users - - daily_T30_usage - - percent_growth_T30_users - - percent_growth_page_saves - - percent_growth_page_views - - percent_growth_users - type: object - appSummary: - additionalProperties: false - properties: - app_name: - description: The name of the app - type: string - host: - description: The organization host + universal_app_access: + description: The universal app access level for the group. This denotes + the access level that this group has for all apps. + enum: + - none + - use + - edit + - own type: string - count_app_views: - description: The number of views of the app in the time range specified - type: number - count_app_saves: - description: The number of saves of the app in the time range specified - type: number - count_viewers: - description: The number of viewers of the app in the time range specified - type: number - count_editors: - description: The number of editors of the app in the time range specified - type: number - required: - - app_name - - count_app_saves - - count_app_views - - count_editors - - count_viewers - - host - type: object - _users__userId__get_200_response_data: - additionalProperties: false - description: This object represents a user. - example: - metadata: - key: "" - legacy_id: legacy_id - active: true - created_at: 2019-02-08T11:45:48.899Z - last_name: last_name - id: id - last_active: 2019-02-08T11:45:48.899Z - first_name: first_name - email: email - properties: - id: - description: The id of the user - pattern: "user_([a-z0-9]+)" + universal_resource_access: + description: The universal resource access level for the group. This denotes + the access level that this group has for all resources. + enum: + - none + - use + - edit + - own type: string - legacy_id: - description: The legacy id of the user - pattern: "user_([a-z0-9]+)" + universal_workflow_access: + description: The universal workflow access level for the group. This denotes + the access level that this group has for all workflows. + enum: + - none + - use + - edit + - own type: string - email: - description: The email of the user - format: email + universal_query_library_access: + description: Level of access that the group has to the Query Library. + enum: + - none + - use + - edit type: string - active: - description: Whether the user is active or not + user_invites: + description: A list of user invites that will be added to the group + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' + type: array + user_list_access: + description: Whether the group has access to the user list type: boolean - created_at: - example: 2019-02-08T11:45:48.899Z - format: date-time - type: string - last_active: - example: 2019-02-08T11:45:48.899Z - format: date-time + audit_log_access: + description: Whether the group has access to the audit log + type: boolean + unpublished_release_access: + description: Whether the group has access to unpublished releases + type: boolean + usage_analytics_access: + description: Whether the group has access to usage analytics + type: boolean + theme_access: + description: Whether the group has access to edit themes + type: boolean + account_details_access: + description: Whether the group has access to account details + type: boolean + landing_page_app_id: + description: The app ID of the landing page + format: uuid nullable: true type: string - first_name: - description: The first name of the user - maxLength: 36 - minLength: 1 - nullable: true + created_at: + example: 2019-02-08T11:45:48.899Z type: string - last_name: - description: The last name of the user - maxLength: 36 - minLength: 1 - nullable: true + updated_at: + example: 2019-02-24T18:28:18.790Z type: string - metadata: - additionalProperties: - nullable: true - default: {} - type: object required: - - active + - account_details_access + - audit_log_access - created_at - - email - - first_name - id - - last_active - - last_name + - landing_page_app_id - legacy_id - - metadata + - members + - name + - theme_access + - universal_app_access + - universal_query_library_access + - universal_resource_access + - universal_workflow_access + - unpublished_release_access + - updated_at + - usage_analytics_access + - user_invites + - user_list_access type: object - _users__userId__get_200_response: - description: A single user + _groups_post_200_response: example: data: - metadata: - key: "" - legacy_id: legacy_id - active: true + audit_log_access: true + unpublished_release_access: true + landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_list_access: true + theme_access: true created_at: 2019-02-08T11:45:48.899Z - last_name: last_name - id: id - last_active: 2019-02-08T11:45:48.899Z - first_name: first_name - email: email + universal_query_library_access: none + usage_analytics_access: true + universal_app_access: none + updated_at: 2019-02-24T18:28:18.790Z + user_invites: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + members: + - is_group_admin: false + id: id + email: email + - is_group_admin: false + id: id + email: email + name: name + legacy_id: 6.027456183070403 + universal_resource_access: none + id: 0.8008281904610115 + universal_workflow_access: none + account_details_access: true success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_users__userId__get_200_response_data' + $ref: '#/components/schemas/_groups_post_200_response_data' + required: + - data + - success + type: object + _groups__groupId__user_invites_post_request: + description: User Invites to add to the group + properties: + userInviteIds: + items: + type: number + type: array required: - - data - - success + - userInviteIds type: object - _users__userId__patch_request_operations_inner_anyOf: + _groups__groupId__members_post_request: properties: - op: - enum: - - add - type: string - path: - type: string - value: - description: A JSON value - nullable: true + members: + description: Users to add to the group. + items: + $ref: '#/components/schemas/_groups__groupId__put_request_members_inner' + type: array required: - - op - - path + - members type: object - _users__userId__patch_request_operations_inner_anyOf_1: + _folders_get_200_response_data_inner: + description: Folders + example: + folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name + legacy_id: legacy_id + created_at: 2019-02-08T11:45:48.899Z + id: id + is_system_folder: true properties: - op: - enum: - - remove + id: + description: The id of the folder. Currently this is the same as legacy_id + but will be different in the future. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string - path: + legacy_id: + description: The legacy id of the folder. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string - required: - - op - - path - type: object - _users__userId__patch_request_operations_inner_anyOf_2: - properties: - op: + name: + description: The name of the folder + type: string + parent_folder_id: + description: The id of the parent folder + nullable: true + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + is_system_folder: + description: Whether the folder is a system folder + type: boolean + folder_type: + description: The type of the folder enum: - - replace + - app + - workflow + - resource + - agent type: string - path: + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z type: string - value: - description: A JSON value - nullable: true - required: - - op - - path - type: object - _users__userId__patch_request_operations_inner: - anyOf: - - $ref: '#/components/schemas/_users__userId__patch_request_operations_inner_anyOf' - - $ref: '#/components/schemas/_users__userId__patch_request_operations_inner_anyOf_1' - - $ref: '#/components/schemas/_users__userId__patch_request_operations_inner_anyOf_2' - _users__userId__patch_request: - additionalProperties: false - description: The body of a request to update a user. - properties: - operations: - description: "A list of operations to apply to the user. See the [JSON PATCH\ - \ specification](https://tools.ietf.org/html/rfc6902) for more details." - items: - $ref: '#/components/schemas/_users__userId__patch_request_operations_inner' - type: array required: - - operations + - created_at + - folder_type + - id + - is_system_folder + - legacy_id + - name + - updated_at type: object - _users_get_200_response: - description: A paginated list of users. + _folders_get_200_response: example: data: - - metadata: - key: "" + - folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name legacy_id: legacy_id - active: true created_at: 2019-02-08T11:45:48.899Z - last_name: last_name id: id - last_active: 2019-02-08T11:45:48.899Z - first_name: first_name - email: email - - metadata: - key: "" + is_system_folder: true + - folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name legacy_id: legacy_id - active: true created_at: 2019-02-08T11:45:48.899Z - last_name: last_name id: id - last_active: 2019-02-08T11:45:48.899Z - first_name: first_name - email: email + is_system_folder: true success: true total_count: 0.8008281904610115 has_more: true @@ -3552,7 +7322,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_users__userId__get_200_response_data' + $ref: '#/components/schemas/_folders_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -3571,1957 +7341,1997 @@ components: - success - total_count type: object - _users_post_request: - additionalProperties: false - description: Body of request to create a user + _folders_post_request: properties: - email: - description: The email of the user - format: email - type: string - first_name: - description: The first name of the user + name: + description: The name of the folder. minLength: 1 type: string - last_name: - description: The last name of the user - minLength: 1 + parent_folder_id: + description: The ID of the parent folder. + nullable: true + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string - active: - default: true - description: Whether the user is enabled or not + folder_type: + description: The type of the folder. + enum: + - app + - workflow + - resource + - agent + type: string + required: + - folder_type + - name + type: object + _folders_post_200_response_data: + description: The created folder. + example: + folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name + legacy_id: legacy_id + created_at: 2019-02-08T11:45:48.899Z + id: id + is_system_folder: true + properties: + id: + description: The id of the folder. Currently this is the same as legacy_id + but will be different in the future. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + legacy_id: + description: The legacy id of the folder. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + name: + description: The name of the folder + type: string + parent_folder_id: + description: The id of the parent folder + nullable: true + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + is_system_folder: + description: Whether the folder is a system folder type: boolean - metadata: - additionalProperties: - nullable: true - default: {} - type: object + folder_type: + description: The type of the folder + enum: + - app + - workflow + - resource + - agent + type: string + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string required: - - email - - first_name - - last_name + - created_at + - folder_type + - id + - is_system_folder + - legacy_id + - name + - updated_at type: object - _users_post_200_response_data: - additionalProperties: false - description: The created user + _folders_post_200_response: example: - metadata: - key: "" + data: + folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name + legacy_id: legacy_id + created_at: 2019-02-08T11:45:48.899Z + id: id + is_system_folder: true + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_folders_post_200_response_data' + required: + - data + - success + type: object + _folders_post_409_response: + description: API error response + example: + success: true + message: message + properties: + success: + description: API request failed + type: boolean + message: + description: Error message + type: string + required: + - message + - success + type: object + _folders__folderId__get_200_response_data: + description: The requested folder. + example: + folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name legacy_id: legacy_id - active: true created_at: 2019-02-08T11:45:48.899Z - last_name: last_name id: id - last_active: 2019-02-08T11:45:48.899Z - first_name: first_name - email: email + is_system_folder: true properties: id: - description: The id of the user - pattern: "user_([a-z0-9]+)" + description: The id of the folder. Currently this is the same as legacy_id + but will be different in the future. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string legacy_id: - description: The legacy id of the user - pattern: "user_([a-z0-9]+)" + description: The legacy id of the folder. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string - email: - description: The email of the user - format: email + name: + description: The name of the folder type: string - active: - description: Whether the user is active or not + parent_folder_id: + description: The id of the parent folder + nullable: true + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + is_system_folder: + description: Whether the folder is a system folder type: boolean - created_at: - example: 2019-02-08T11:45:48.899Z - format: date-time + folder_type: + description: The type of the folder + enum: + - app + - workflow + - resource + - agent type: string - last_active: + created_at: example: 2019-02-08T11:45:48.899Z - format: date-time - nullable: true - type: string - first_name: - description: The first name of the user - maxLength: 36 - minLength: 1 - nullable: true type: string - last_name: - description: The last name of the user - maxLength: 36 - minLength: 1 - nullable: true + updated_at: + example: 2019-02-24T18:28:18.790Z type: string - metadata: - additionalProperties: - nullable: true - default: {} - type: object required: - - active - created_at - - email - - first_name + - folder_type - id - - last_active - - last_name + - is_system_folder - legacy_id - - metadata + - name + - updated_at type: object - _users_post_200_response: + _folders__folderId__get_200_response: example: data: - metadata: - key: "" + folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name legacy_id: legacy_id - active: true created_at: 2019-02-08T11:45:48.899Z - last_name: last_name id: id - last_active: 2019-02-08T11:45:48.899Z - first_name: first_name - email: email + is_system_folder: true success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_users_post_200_response_data' + $ref: '#/components/schemas/_folders__folderId__get_200_response_data' required: - data - success type: object - _users__userId__user_attributes_post_request: - additionalProperties: false - description: The body of a request to add a user attribute to a user or update - an existing user attribute. + Move_Operation: properties: - name: - description: The name of the user attribute (must match an existing attribute - exactly) + op: + enum: + - move + type: string + path: + type: string + from: + type: string + required: + - from + - op + - path + title: Move Operation + type: object + Copy_Operation: + properties: + op: + enum: + - copy + type: string + path: + type: string + from: + type: string + required: + - from + - op + - path + title: Copy Operation + type: object + Test_Operation: + properties: + op: + enum: + - test + type: string + path: type: string value: - description: The value of the user attribute + description: A JSON value nullable: true - type: string required: - - name - - value + - op + - path + title: Test Operation type: object - _users__userId__user_attributes_post_200_response_data: + _folders__folderId__patch_request_operations_inner: + anyOf: + - $ref: '#/components/schemas/Add_Operation' + - $ref: '#/components/schemas/Remove_Operation' + - $ref: '#/components/schemas/Replace_Operation' + - $ref: '#/components/schemas/Move_Operation' + - $ref: '#/components/schemas/Copy_Operation' + - $ref: '#/components/schemas/Test_Operation' + _folders__folderId__patch_request: + additionalProperties: false + properties: + operations: + description: A list of operations to apply to the folder. See https://tools.ietf.org/html/rfc6902 + for details. + items: + $ref: '#/components/schemas/_folders__folderId__patch_request_operations_inner' + type: array + required: + - operations + type: object + _folders__folderId__patch_200_response_data: + description: The updated folder. example: - metadata: - key: "" + folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name + legacy_id: legacy_id + created_at: 2019-02-08T11:45:48.899Z + id: id + is_system_folder: true properties: - metadata: - additionalProperties: - nullable: true - default: {} - description: "The updated user metadata, containing the new attribute value" - type: object + id: + description: The id of the folder. Currently this is the same as legacy_id + but will be different in the future. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + legacy_id: + description: The legacy id of the folder. + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + name: + description: The name of the folder + type: string + parent_folder_id: + description: The id of the parent folder + nullable: true + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + is_system_folder: + description: Whether the folder is a system folder + type: boolean + folder_type: + description: The type of the folder + enum: + - app + - workflow + - resource + - agent + type: string + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string required: - - metadata + - created_at + - folder_type + - id + - is_system_folder + - legacy_id + - name + - updated_at type: object - _users__userId__user_attributes_post_200_response: + _folders__folderId__patch_200_response: example: data: - metadata: - key: "" + folder_type: app + updated_at: 2019-02-24T18:28:18.790Z + parent_folder_id: parent_folder_id + name: name + legacy_id: legacy_id + created_at: 2019-02-08T11:45:48.899Z + id: id + is_system_folder: true success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_users__userId__user_attributes_post_200_response_data' + $ref: '#/components/schemas/_folders__folderId__patch_200_response_data' required: - data - success type: object - _users__userId__user_attributes__attributeName__delete_200_response_data: + _spaces_get_200_response_data_inner: + additionalProperties: false + description: List of spaces example: - metadata: - key: "" + updated_at: 2019-02-24T18:28:18.79Z + domain: domain + name: name + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - metadata: - additionalProperties: - nullable: true - default: {} - description: "The updated user metadata, without the deleted attribute" - type: object + id: + description: The id of the space. + format: uuid + type: string + name: + minLength: 1 + type: string + domain: + minLength: 1 + type: string + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time + type: string + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time + type: string required: - - metadata + - created_at + - domain + - id + - name + - updated_at type: object - _users__userId__user_attributes__attributeName__delete_200_response: + _spaces_get_200_response: example: data: - metadata: - key: "" + - updated_at: 2019-02-24T18:28:18.79Z + domain: domain + name: name + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - updated_at: 2019-02-24T18:28:18.79Z + domain: domain + name: name + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_users__userId__user_attributes__attributeName__delete_200_response_data' + description: An array of requested items + items: + $ref: '#/components/schemas/_spaces_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - data + - has_more + - next_token - success + - total_count type: object - _groups__groupId__get_200_response_data_members_inner: - example: - is_group_admin: false - id: id - email: email + _spaces_post_request_options: properties: - id: - pattern: "user_([a-z0-9]+)" + copy_sso_settings: + description: Copy SSO settings from the admin space. + type: boolean + copy_branding_and_themes_settings: + description: Copy Branding and Themes settings from the admin space. + type: boolean + users_to_copy_as_admins: + description: List of emails of users from the admin space that need to be + added to the new space as admins. + items: + type: string + type: array + create_admin_user: + description: Create an admin user in the new space for the creator instead + of just sending out an invite. + type: boolean + type: object + _spaces_post_request: + additionalProperties: false + properties: + name: + minLength: 1 type: string - email: - description: The email of the user - format: email + domain: + description: "The domain of the space. On Retool Cloud, specify subdomain\ + \ of the space instead." + minLength: 1 type: string - is_group_admin: - default: false - description: Whether the user is a group admin - type: boolean + options: + $ref: '#/components/schemas/_spaces_post_request_options' required: - - email - - id - - is_group_admin + - domain + - name type: object - _groups__groupId__get_200_response_data_user_invites_inner: - description: User Invite + _spaces_post_200_response_data: + additionalProperties: false + description: The created space example: - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by + updated_at: 2019-02-24T18:28:18.79Z + domain: domain + name: name + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: id: - type: number - legacy_id: - type: number - invited_by: - type: string - invited_email: - format: email - type: string - expires_at: - type: string - claimed_by: - nullable: true + description: The id of the space. + format: uuid type: string - claimed_at: - nullable: true + name: + minLength: 1 type: string - user_type: - enum: - - default - - mobile - - external - nullable: true + domain: + minLength: 1 type: string - metadata: - additionalProperties: - nullable: true - default: {} - nullable: true - type: object created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time type: string - invite_link: - format: uri + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time type: string required: - - claimed_at - - claimed_by - created_at - - expires_at + - domain - id - - invited_by - - invited_email - - legacy_id - - metadata - - user_type + - name + - updated_at type: object - _groups__groupId__get_200_response_data: - description: The requested group + _spaces_post_200_response: example: - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email - name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true + data: + updated_at: 2019-02-24T18:28:18.79Z + domain: domain + name: name + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true properties: - id: - description: The ID of the group. Currently this is the same legacy_id but - will change in the future. - nullable: true - type: number - legacy_id: - description: The legacy ID of the group. - nullable: true - type: number - name: - description: The name of the group. - type: string - members: - description: The members of the group. - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_members_inner' - type: array - universal_app_access: - description: The universal app access level for the group. This denotes - the access level that this group has for all apps. - enum: - - none - - use - - edit - - own + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_spaces_post_200_response_data' + required: + - data + - success + type: object + _spaces__spaceId__get_200_response_data: + additionalProperties: false + description: The requested space + example: + updated_at: 2019-02-24T18:28:18.79Z + domain: domain + name: name + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + id: + description: The id of the space. + format: uuid type: string - universal_resource_access: - description: The universal resource access level for the group. This denotes - the access level that this group has for all resources. - enum: - - none - - use - - edit - - own + name: + minLength: 1 type: string - universal_workflow_access: - description: The universal workflow access level for the group. This denotes - the access level that this group has for all workflows. - enum: - - none - - use - - edit - - own + domain: + minLength: 1 type: string - universal_query_library_access: - description: Level of access that the group has to the Query Library. - enum: - - none - - use - - edit + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time type: string - user_invites: - description: A list of user invites that will be added to the group - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' - type: array - user_list_access: - description: Whether the group has access to the user list - type: boolean - audit_log_access: - description: Whether the group has access to the audit log - type: boolean - unpublished_release_access: - description: Whether the group has access to unpublished releases - type: boolean - usage_analytics_access: - description: Whether the group has access to usage analytics - type: boolean - account_details_access: - description: Whether the group has access to account details + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time + type: string + required: + - created_at + - domain + - id + - name + - updated_at + type: object + _spaces__spaceId__get_200_response: + example: + data: + updated_at: 2019-02-24T18:28:18.79Z + domain: domain + name: name + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true + properties: + success: + description: API request succeeded type: boolean - landing_page_app_id: - description: The app ID of the landing page + data: + $ref: '#/components/schemas/_spaces__spaceId__get_200_response_data' + required: + - data + - success + type: object + _spaces__spaceId__put_request: + properties: + name: + description: The name of the space. + minLength: 1 + type: string + domain: + description: "The domain of the space. On Retool Cloud, specify subdomain\ + \ of the space instead." + minLength: 1 + type: string + required: + - domain + - name + type: object + _spaces__spaceId__put_200_response_data: + additionalProperties: false + description: Updated space + example: + updated_at: 2019-02-24T18:28:18.79Z + domain: domain + name: name + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + id: + description: The id of the space. format: uuid - nullable: true + type: string + name: + minLength: 1 + type: string + domain: + minLength: 1 type: string created_at: example: 2019-02-08T11:45:48.899Z + format: date-time type: string updated_at: - example: 2019-02-24T18:28:18.790Z + example: 2019-02-24T18:28:18.79Z + format: date-time type: string required: - - account_details_access - - audit_log_access - created_at + - domain - id - - landing_page_app_id - - legacy_id - - members - name - - universal_app_access - - universal_query_library_access - - universal_resource_access - - universal_workflow_access - - unpublished_release_access - updated_at - - usage_analytics_access - - user_invites - - user_list_access type: object - _groups__groupId__get_200_response: + _spaces__spaceId__put_200_response: example: data: - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email + updated_at: 2019-02-24T18:28:18.79Z + domain: domain name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_spaces__spaceId__put_200_response_data' + required: + - data + - success + type: object + _spaces_copyElements_post_request_resource_ids_inner: + anyOf: + - format: uuid + type: string + - format: uuid + type: string + description: The uuid for the resource. + _spaces_copyElements_post_request: + additionalProperties: false + properties: + resource_ids: + description: List of resource configuration uuids to copy to the new space. + items: + $ref: '#/components/schemas/_spaces_copyElements_post_request_resource_ids_inner' + type: array + query_library_query_ids: + description: List of query library query uuids to copy to the new space. + items: + description: The Query Library Query ID. + format: uuid + type: string + type: array + app_ids: + description: List of app or module uuids to copy to the new space. + items: + description: The app ID. + format: uuid + type: string + type: array + workflow_ids: + description: List of workflow ids to copy to the new space. + items: + description: The Workflow ID. + format: uuid + type: string + type: array + destination_space_id: + description: The id of the space to copy the elements to. + type: string + required: + - app_ids + - destination_space_id + - query_library_query_ids + - resource_ids + - workflow_ids + type: object + _spaces_copyElements_post_201_response_data: + description: The copied elements + example: + workflow_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + query_library_query_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + app_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + resource_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + resource_ids: + description: The uuids of the copied resources. + items: + $ref: '#/components/schemas/_spaces_copyElements_post_request_resource_ids_inner' + type: array + query_library_query_ids: + description: The uuids of the copied query library queries. + items: + description: The Query Library Query ID. + format: uuid + type: string + type: array + app_ids: + description: The uuids of the copied app or modules. + items: + description: The app ID. + format: uuid + type: string + type: array + workflow_ids: + description: The uuids of the copied workflows. + items: + description: The Workflow ID. + format: uuid + type: string + type: array + required: + - app_ids + - query_library_query_ids + - resource_ids + - workflow_ids + type: object + _spaces_copyElements_post_201_response: + description: Elements copied successfully + example: + data: + workflow_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + query_library_query_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + app_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + resource_ids: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data' + $ref: '#/components/schemas/_spaces_copyElements_post_201_response_data' required: - data - success type: object - _groups__groupId__put_request_members_inner: + GitHub_config_anyOf: + additionalProperties: false + example: + installation_id: installation_id + private_key: private_key + type: App + app_id: app_id + enterprise_api_url: enterprise_api_url + url: url properties: - id: - pattern: "user_([a-z0-9]+)" + type: + enum: + - App type: string - is_group_admin: - default: false - description: Whether the user is a group admin - type: boolean - required: - - id - - is_group_admin - type: object - _groups__groupId__put_request: - properties: - name: - description: The name of the group. - minLength: 1 + app_id: + description: The GitHub App ID. type: string - members: - description: Users to add to the group. Pass in an empty list to create - a group with no members. - items: - $ref: '#/components/schemas/_groups__groupId__put_request_members_inner' - type: array - universal_app_access: - description: The universal app access level for the group. This denotes - the access level that this group has for all apps. - enum: - - none - - use - - edit - - own + installation_id: + description: The GitHub installation ID. This can be found at the end of + the installation URL. type: string - universal_resource_access: - description: The universal resource access level for the group. This denotes - the access level that this group has for all resources. - enum: - - none - - use - - edit - - own + private_key: + description: The base64-encoded private key. type: string - universal_workflow_access: - description: The universal workflow access level for the group. This denotes - the access level that this group has for all workflows. - enum: - - none - - use - - edit - - own + url: + description: The domain used to access your self-hosted GitHub instance. type: string - universal_query_library_access: - description: Level of access that the group has to the Query Library. + enterprise_api_url: + description: "The REST API route for your self-hosted GitHub instance. Defaults\ + \ to https://[hostname]/api/v3." + type: string + required: + - app_id + - installation_id + - private_key + - type + type: object + GitHub_config_anyOf_1: + additionalProperties: false + properties: + type: enum: - - none - - use - - edit + - Personal type: string - user_invites: - description: A list of user invites that will be added to the group - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' - type: array - user_list_access: - description: Whether the group has access to the user list - type: boolean - audit_log_access: - description: Whether the group has access to the audit log - type: boolean - unpublished_release_access: - description: Whether the group has access to unpublished releases - type: boolean - usage_analytics_access: - description: Whether the group has access to usage analytics - type: boolean - account_details_access: - description: Whether the group has access to account details - type: boolean - landing_page_app_id: - description: The app ID of the landing page - format: uuid - nullable: true + personal_access_token: + description: "The GitHub project access token to authenticate to the GitHub\ + \ API.\t" type: string - created_at: - example: 2019-02-08T11:45:48.899Z + url: + description: The domain used to access your self-hosted GitHub instance. type: string - updated_at: - example: 2019-02-24T18:28:18.790Z + enterprise_api_url: + description: "The REST API route for your self-hosted GitHub instance. Defaults\ + \ to https://[hostname]/api/v3." type: string + required: + - personal_access_token + - type type: object - _groups__groupId__put_200_response_data: - description: The updated group + GitHub_config: + anyOf: + - $ref: '#/components/schemas/GitHub_config_anyOf' + - $ref: '#/components/schemas/GitHub_config_anyOf_1' + GitHub: example: - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email - name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true + repo_version: repo_version + provider: GitHub + org: org + repo: repo + default_branch: default_branch + config: + installation_id: installation_id + private_key: private_key + type: App + app_id: app_id + enterprise_api_url: enterprise_api_url + url: url + properties: + config: + $ref: '#/components/schemas/GitHub_config' + provider: + enum: + - GitHub + type: string + org: + description: The user or organization to which the repository belongs to. + type: string + repo: + description: The name of the repository you created to use with Retool. + type: string + default_branch: + description: "The default branch, e.g., main." + type: string + repo_version: + description: Repositories using Toolscript are 2.0.0. Repositories using + legacy YAML are 1.0.0. + type: string + required: + - config + - default_branch + - org + - provider + - repo + title: GitHub + type: object + GitLab_config: + additionalProperties: false properties: - id: - description: The ID of the group. Currently this is the same legacy_id but - will change in the future. - nullable: true - type: number - legacy_id: - description: The legacy ID of the group. - nullable: true + project_id: + description: The numerical project ID for your GitLab project. Find this + ID listed below the project's name on the project's homepage. type: number - name: - description: The name of the group. + url: + description: "Your base GitLab URL. On GitLab Cloud, this is always https://gitlab.com.\ + \ On GitLab self-managed, this is the URL where your instance is hosted." type: string - members: - description: The members of the group. - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_members_inner' - type: array - universal_app_access: - description: The universal app access level for the group. This denotes - the access level that this group has for all apps. - enum: - - none - - use - - edit - - own + project_access_token: + description: The GitLab project access token to authenticate to the GitLab + API. type: string - universal_resource_access: - description: The universal resource access level for the group. This denotes - the access level that this group has for all resources. + required: + - project_access_token + - project_id + - url + type: object + GitLab: + properties: + config: + $ref: '#/components/schemas/GitLab_config' + provider: enum: - - none - - use - - edit - - own + - GitLab type: string - universal_workflow_access: - description: The universal workflow access level for the group. This denotes - the access level that this group has for all workflows. - enum: - - none - - use - - edit - - own + org: + description: The user or organization to which the repository belongs to. type: string - universal_query_library_access: - description: Level of access that the group has to the Query Library. - enum: - - none - - use - - edit + repo: + description: The name of the repository you created to use with Retool. type: string - user_invites: - description: A list of user invites that will be added to the group - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' - type: array - user_list_access: - description: Whether the group has access to the user list - type: boolean - audit_log_access: - description: Whether the group has access to the audit log - type: boolean - unpublished_release_access: - description: Whether the group has access to unpublished releases - type: boolean - usage_analytics_access: - description: Whether the group has access to usage analytics - type: boolean - account_details_access: - description: Whether the group has access to account details - type: boolean - landing_page_app_id: - description: The app ID of the landing page - format: uuid - nullable: true + default_branch: + description: "The default branch, e.g., main." type: string - created_at: - example: 2019-02-08T11:45:48.899Z + repo_version: + description: Repositories using Toolscript are 2.0.0. Repositories using + legacy YAML are 1.0.0. type: string - updated_at: - example: 2019-02-24T18:28:18.790Z + required: + - config + - default_branch + - org + - provider + - repo + title: GitLab + type: object + AWS_CodeCommit_config: + additionalProperties: false + properties: + url: + description: The domain used to access your self-hosted AWS CodeCommit instance. + type: string + region: + description: The region of the CodeCommit repository. + type: string + access_key_id: + description: The Access key ID from your AWSCodeCommitFullAccess policy. + type: string + secret_access_key: + description: The Secret Access Key from your AWSCodeCommitFullAccess policy + type: string + https_username: + description: The HTTPS username from your security credentials. + type: string + https_password: + description: The HTTPS password from your security credentials. type: string required: - - account_details_access - - audit_log_access - - created_at - - id - - landing_page_app_id - - legacy_id - - members - - name - - universal_app_access - - universal_query_library_access - - universal_resource_access - - universal_workflow_access - - unpublished_release_access - - updated_at - - usage_analytics_access - - user_invites - - user_list_access + - access_key_id + - https_password + - https_username + - region + - secret_access_key + - url type: object - _groups__groupId__put_200_response: - example: - data: - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email - name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true - success: true + AWS_CodeCommit: properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_groups__groupId__put_200_response_data' + config: + $ref: '#/components/schemas/AWS_CodeCommit_config' + provider: + enum: + - AWS CodeCommit + type: string + org: + description: The user or organization to which the repository belongs to. + type: string + repo: + description: The name of the repository you created to use with Retool. + type: string + default_branch: + description: "The default branch, e.g., main." + type: string + repo_version: + description: Repositories using Toolscript are 2.0.0. Repositories using + legacy YAML are 1.0.0. + type: string required: - - data - - success + - config + - default_branch + - org + - provider + - repo + title: AWS CodeCommit type: object - Add_Operation: + Bitbucket_config_anyOf: + additionalProperties: false properties: - op: + type: enum: - - add + - AppPassword + type: string + username: + description: Your Bitbucket username. + type: string + app_password: + description: Your Bitbucket app password. + type: string + url: + description: The domain used to access your self-hosted Bitbucket instance. + Defaults to https://bitbucket.org/. type: string - path: + enterprise_api_url: + description: "The REST API route for your self-hosted Bitbucket instance.\ + \ Defaults to https://api.bitbucket.org/2.0.\t" type: string - value: - description: A JSON value - nullable: true required: - - op - - path - title: Add Operation + - app_password + - username type: object - Remove_Operation: + Bitbucket_config_anyOf_1: + additionalProperties: false properties: - op: + type: enum: - - remove + - Token type: string - path: + token: + description: Your Bitbucket API token. + type: string + url: + description: The domain used to access your self-hosted Bitbucket instance. + Defaults to https://bitbucket.org/. + type: string + enterprise_api_url: + description: "The REST API route for your self-hosted Bitbucket instance.\ + \ Defaults to https://api.bitbucket.org/2.0.\t" type: string required: - - op - - path - title: Remove Operation + - token type: object - Replace_Operation: + Bitbucket_config: + anyOf: + - $ref: '#/components/schemas/Bitbucket_config_anyOf' + - $ref: '#/components/schemas/Bitbucket_config_anyOf_1' + Bitbucket: properties: - op: + config: + $ref: '#/components/schemas/Bitbucket_config' + provider: enum: - - replace + - Bitbucket type: string - path: + org: + description: The user or organization to which the repository belongs to. + type: string + repo: + description: The name of the repository you created to use with Retool. + type: string + default_branch: + description: "The default branch, e.g., main." + type: string + repo_version: + description: Repositories using Toolscript are 2.0.0. Repositories using + legacy YAML are 1.0.0. type: string - value: - description: A JSON value - nullable: true required: - - op - - path - title: Replace Operation + - config + - default_branch + - org + - provider + - repo + title: Bitbucket type: object - _groups__groupId__patch_request_operations_inner: - anyOf: - - $ref: '#/components/schemas/Add_Operation' - - $ref: '#/components/schemas/Remove_Operation' - - $ref: '#/components/schemas/Replace_Operation' - _groups__groupId__patch_request: + Azure_Repos_config: additionalProperties: false - description: 'The body of a request to update a group. ' properties: - operations: - description: "A list of operations to apply to the group. See the [JSON\ - \ PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." - items: - $ref: '#/components/schemas/_groups__groupId__patch_request_operations_inner' - type: array + url: + description: "Your base Azure URL. For Azure Cloud, this is always http://dev.azure.com.\ + \ For Azure self-managed, this is the URL where your instance is hosted." + type: string + project: + description: Your new or existing Azure DevOps project. + type: string + user: + description: The Azure Repos username. + type: string + personal_access_token: + description: The Azure project access tokens to authenticate to the Azure + API. + type: string + use_basic_auth: + description: Set this to true if you are using self-hosted Azure Repos. + type: boolean required: - - operations + - personal_access_token + - project + - url + - use_basic_auth + - user type: object - _groups_get_200_response_data_inner: - description: This object represents a permission group. A permission group is - a list of users by which to restrict access. You add users to one or more - groups and then configure the group's level of access. This applies the same - permissions to all group members. See https://docs.retool.com/org-users/concepts/permission-groups - or more information. - example: - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email - name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true + Azure_Repos: properties: - id: - description: The ID of the group. Currently this is the same legacy_id but - will change in the future. - nullable: true - type: number - legacy_id: - description: The legacy ID of the group. - nullable: true - type: number - name: - description: The name of the group. - type: string - members: - description: The members of the group. - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_members_inner' - type: array - universal_app_access: - description: The universal app access level for the group. This denotes - the access level that this group has for all apps. + config: + $ref: '#/components/schemas/Azure_Repos_config' + provider: enum: - - none - - use - - edit - - own + - Azure Repos type: string - universal_resource_access: - description: The universal resource access level for the group. This denotes - the access level that this group has for all resources. - enum: - - none - - use - - edit - - own + org: + description: The user or organization to which the repository belongs to. type: string - universal_workflow_access: - description: The universal workflow access level for the group. This denotes - the access level that this group has for all workflows. - enum: - - none - - use - - edit - - own + repo: + description: The name of the repository you created to use with Retool. type: string - universal_query_library_access: - description: Level of access that the group has to the Query Library. - enum: - - none - - use - - edit + default_branch: + description: "The default branch, e.g., main." type: string - user_invites: - description: A list of user invites that will be added to the group - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' - type: array - user_list_access: - description: Whether the group has access to the user list - type: boolean - audit_log_access: - description: Whether the group has access to the audit log + repo_version: + description: Repositories using Toolscript are 2.0.0. Repositories using + legacy YAML are 1.0.0. + type: string + required: + - config + - default_branch + - org + - provider + - repo + title: Azure Repos + type: object + _source_control_config_get_200_response_data: + anyOf: + - $ref: '#/components/schemas/GitHub' + - $ref: '#/components/schemas/GitLab' + - $ref: '#/components/schemas/AWS_CodeCommit' + - $ref: '#/components/schemas/Bitbucket' + - $ref: '#/components/schemas/Azure_Repos' + description: Source Control Provider Config + _source_control_config_get_200_response: + additionalProperties: false + example: + data: + repo_version: repo_version + provider: GitHub + org: org + repo: repo + default_branch: default_branch + config: + installation_id: installation_id + private_key: private_key + type: App + app_id: app_id + enterprise_api_url: enterprise_api_url + url: url + success: true + properties: + success: + description: API request succeeded type: boolean - unpublished_release_access: - description: Whether the group has access to unpublished releases + data: + $ref: '#/components/schemas/_source_control_config_get_200_response_data' + required: + - data + - success + type: object + _source_control_config_put_request_config: + anyOf: + - $ref: '#/components/schemas/GitHub' + - $ref: '#/components/schemas/GitLab' + - $ref: '#/components/schemas/AWS_CodeCommit' + - $ref: '#/components/schemas/Bitbucket' + - $ref: '#/components/schemas/Azure_Repos' + description: "This object represents the Source Control provider configuration\ + \ for the organization or space. See [docs](https://docs.retool.com/source-control)\ + \ for more information." + _source_control_config_put_request: + additionalProperties: false + description: Shape of Source Control provider config request + properties: + config: + $ref: '#/components/schemas/_source_control_config_put_request_config' + required: + - config + type: object + _source_control_config_put_200_response_data: + anyOf: + - $ref: '#/components/schemas/GitHub' + - $ref: '#/components/schemas/GitLab' + - $ref: '#/components/schemas/AWS_CodeCommit' + - $ref: '#/components/schemas/Bitbucket' + - $ref: '#/components/schemas/Azure_Repos' + description: Created or updated Source Control Provider Config + _source_control_config_put_200_response: + example: + data: + repo_version: repo_version + provider: GitHub + org: org + repo: repo + default_branch: default_branch + config: + installation_id: installation_id + private_key: private_key + type: App + app_id: app_id + enterprise_api_url: enterprise_api_url + url: url + success: true + properties: + success: + description: API request succeeded type: boolean - usage_analytics_access: - description: Whether the group has access to usage analytics + data: + $ref: '#/components/schemas/_source_control_config_put_200_response_data' + required: + - data + - success + type: object + _source_control_config_post_200_response_data: + anyOf: + - $ref: '#/components/schemas/GitHub' + - $ref: '#/components/schemas/GitLab' + - $ref: '#/components/schemas/AWS_CodeCommit' + - $ref: '#/components/schemas/Bitbucket' + - $ref: '#/components/schemas/Azure_Repos' + description: Created Source Control Provider Config + _source_control_config_post_200_response: + example: + data: + repo_version: repo_version + provider: GitHub + org: org + repo: repo + default_branch: default_branch + config: + installation_id: installation_id + private_key: private_key + type: App + app_id: app_id + enterprise_api_url: enterprise_api_url + url: url + success: true + properties: + success: + description: API request succeeded type: boolean - account_details_access: - description: Whether the group has access to account details + data: + $ref: '#/components/schemas/_source_control_config_post_200_response_data' + required: + - data + - success + type: object + _source_control_test_connection_get_200_response_data_anyOf: + example: + success: true + message: message + properties: + success: + description: Test connection failed type: boolean - landing_page_app_id: - description: The app ID of the landing page - format: uuid - nullable: true - type: string - created_at: - example: 2019-02-08T11:45:48.899Z - type: string - updated_at: - example: 2019-02-24T18:28:18.790Z + message: + description: Error message type: string required: - - account_details_access - - audit_log_access - - created_at - - id - - landing_page_app_id - - legacy_id - - members - - name - - universal_app_access - - universal_query_library_access - - universal_resource_access - - universal_workflow_access - - unpublished_release_access - - updated_at - - usage_analytics_access - - user_invites - - user_list_access + - message + - success type: object - _groups_get_200_response: - description: A dictionary with a `data` property that contains an array of groups + _source_control_test_connection_get_200_response_data_anyOf_1: + properties: + success: + description: Test connection succeeded + type: boolean + required: + - success + type: object + _source_control_test_connection_get_200_response_data: + anyOf: + - $ref: '#/components/schemas/_source_control_test_connection_get_200_response_data_anyOf' + - $ref: '#/components/schemas/_source_control_test_connection_get_200_response_data_anyOf_1' + description: Test connection response + _source_control_test_connection_get_200_response: example: data: - - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email - name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true - - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email - name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true + success: true + message: message success: true - total_count: 1.4658129805029452 - has_more: true - next_token: next_token properties: success: - description: API request succeeded + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_source_control_test_connection_get_200_response_data' + required: + - data + - success + type: object + _source_control_test_deploy_post_request_deploy_params: + properties: + commit_sha: + description: The full commit SHA to dry deploy + type: string + is_full_sync: + type: boolean + required: + - commit_sha + type: object + _source_control_test_deploy_post_request: + additionalProperties: false + description: Parameters for running a deployment + properties: + deploy_params: + $ref: '#/components/schemas/_source_control_test_deploy_post_request_deploy_params' + required: + - deploy_params + type: object + _source_control_test_deploy_post_200_response_data_anyOf: + example: + success: true + message: message + properties: + success: + description: Deployment failed type: boolean - data: - description: An array of requested items - items: - $ref: '#/components/schemas/_groups_get_200_response_data_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true + message: + description: Error message type: string - has_more: - description: Whether there are more items in the collection - type: boolean required: - - data - - has_more - - next_token + - message - success - - total_count type: object - _groups_post_request: + _source_control_test_deploy_post_200_response_data_anyOf_1: properties: - name: - description: The name of the group. - minLength: 1 - type: string - members: - description: Users to add to the group. Pass in an empty list to create - a group with no members. - items: - $ref: '#/components/schemas/_groups__groupId__put_request_members_inner' - type: array - universal_app_access: - description: The universal app access level for the group. This denotes - the access level that this group has for all apps. - enum: - - none - - use - - edit - - own - type: string - universal_resource_access: - description: The universal resource access level for the group. This denotes - the access level that this group has for all resources. - enum: - - none - - use - - edit - - own - type: string - universal_workflow_access: - description: The universal workflow access level for the group. This denotes - the access level that this group has for all workflows. - enum: - - none - - use - - edit - - own - type: string - universal_query_library_access: - description: Level of access that the group has to the Query Library. - enum: - - none - - use - - edit - type: string - user_invites: - description: A list of user invites that will be added to the group - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' - type: array - user_list_access: - description: Whether the group has access to the user list - type: boolean - audit_log_access: - description: Whether the group has access to the audit log - type: boolean - unpublished_release_access: - description: Whether the group has access to unpublished releases - type: boolean - usage_analytics_access: - description: Whether the group has access to usage analytics + success: + description: Deployment succeeded type: boolean - account_details_access: - description: Whether the group has access to account details + required: + - success + type: object + _source_control_test_deploy_post_200_response_data: + anyOf: + - $ref: '#/components/schemas/_source_control_test_deploy_post_200_response_data_anyOf' + - $ref: '#/components/schemas/_source_control_test_deploy_post_200_response_data_anyOf_1' + description: Source control test deploy response + _source_control_test_deploy_post_200_response: + example: + data: + success: true + message: message + success: true + properties: + success: + description: API request succeeded type: boolean - landing_page_app_id: - description: The app ID of the landing page - format: uuid - nullable: true - type: string - created_at: - example: 2019-02-08T11:45:48.899Z - type: string - updated_at: - example: 2019-02-24T18:28:18.790Z - type: string + data: + $ref: '#/components/schemas/_source_control_test_deploy_post_200_response_data' required: - - name + - data + - success type: object - _groups_post_200_response_data: - description: The created group + _source_control_deploy_post_200_response_data: + description: Source control deploy response example: - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email - name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: PENDING_START properties: id: - description: The ID of the group. Currently this is the same legacy_id but - will change in the future. - nullable: true - type: number - legacy_id: - description: The legacy ID of the group. - nullable: true - type: number - name: - description: The name of the group. - type: string - members: - description: The members of the group. - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_members_inner' - type: array - universal_app_access: - description: The universal app access level for the group. This denotes - the access level that this group has for all apps. - enum: - - none - - use - - edit - - own - type: string - universal_resource_access: - description: The universal resource access level for the group. This denotes - the access level that this group has for all resources. - enum: - - none - - use - - edit - - own - type: string - universal_workflow_access: - description: The universal workflow access level for the group. This denotes - the access level that this group has for all workflows. - enum: - - none - - use - - edit - - own + description: The deployment ID + format: uuid type: string - universal_query_library_access: - description: Level of access that the group has to the Query Library. + status: enum: - - none - - use - - edit + - PENDING_START + - RUNNING + - SUCCESS + - ERROR type: string - user_invites: - description: A list of user invites that will be added to the group - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' - type: array - user_list_access: - description: Whether the group has access to the user list + required: + - id + - status + type: object + _source_control_deploy_post_200_response: + example: + data: + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: PENDING_START + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_source_control_deploy_post_200_response_data' + required: + - data + - success + type: object + _source_control_settings_get_200_response_data: + description: Source Control Settings + example: + auto_cleanup_branches_enabled: true + custom_pull_request_template: custom_pull_request_template + version_control_locked: true + force_uuid_mapping: true + custom_pull_request_template_enabled: true + auto_branch_naming_enabled: true + properties: + auto_branch_naming_enabled: + description: "When enabled, Retool automatically suggests a branch name\ + \ on branch creation. Defaults to true." type: boolean - audit_log_access: - description: Whether the group has access to the audit log + custom_pull_request_template_enabled: + description: "When enabled, Retool will use the template specified to create\ + \ pull requests. Defaults to false." type: boolean - unpublished_release_access: - description: Whether the group has access to unpublished releases + custom_pull_request_template: + description: Pull requests created from Retool will use the template specified. + type: string + version_control_locked: + description: "When set to true, creates a read-only instance of Retool,\ + \ where app editing is disabled. Defaults to false." type: boolean - usage_analytics_access: - description: Whether the group has access to usage analytics + force_uuid_mapping: + description: "When set to true, creates a uuid mapping for protected elements\ + \ to be used in the source control repo. Defaults to false." type: boolean - account_details_access: - description: Whether the group has access to account details + auto_cleanup_branches_enabled: + description: "When set to true, Retool will automatically delete branches\ + \ after changes are merged if the remote branch no longer exists and there\ + \ are no uncommitted changes. Defaults to true." type: boolean - landing_page_app_id: - description: The app ID of the landing page - format: uuid - nullable: true - type: string - created_at: - example: 2019-02-08T11:45:48.899Z - type: string - updated_at: - example: 2019-02-24T18:28:18.790Z - type: string required: - - account_details_access - - audit_log_access - - created_at - - id - - landing_page_app_id - - legacy_id - - members - - name - - universal_app_access - - universal_query_library_access - - universal_resource_access - - universal_workflow_access - - unpublished_release_access - - updated_at - - usage_analytics_access - - user_invites - - user_list_access + - auto_branch_naming_enabled + - auto_cleanup_branches_enabled + - custom_pull_request_template + - custom_pull_request_template_enabled + - force_uuid_mapping + - version_control_locked type: object - _groups_post_200_response: + _source_control_settings_get_200_response: example: data: - audit_log_access: true - unpublished_release_access: true - landing_page_app_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - user_list_access: true - created_at: 2019-02-08T11:45:48.899Z - universal_query_library_access: none - usage_analytics_access: true - universal_app_access: none - updated_at: 2019-02-24T18:28:18.790Z - user_invites: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - members: - - is_group_admin: false - id: id - email: email - - is_group_admin: false - id: id - email: email - name: name - legacy_id: 6.027456183070403 - universal_resource_access: none - id: 0.8008281904610115 - universal_workflow_access: none - account_details_access: true + auto_cleanup_branches_enabled: true + custom_pull_request_template: custom_pull_request_template + version_control_locked: true + force_uuid_mapping: true + custom_pull_request_template_enabled: true + auto_branch_naming_enabled: true success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_groups_post_200_response_data' + $ref: '#/components/schemas/_source_control_settings_get_200_response_data' required: - data - success type: object - _groups__groupId__user_invites_post_request: - description: User Invites to add to the group + _source_control_settings_put_request_settings: + additionalProperties: false properties: - userInviteIds: - items: - type: number - type: array - required: - - userInviteIds + auto_branch_naming_enabled: + description: "When enabled, Retool automatically suggests a branch name\ + \ on branch creation. Defaults to true." + type: boolean + custom_pull_request_template_enabled: + description: "When enabled, Retool will use the template specified to create\ + \ pull requests. Defaults to false." + type: boolean + custom_pull_request_template: + description: Pull requests created from Retool will use the template specified. + type: string + version_control_locked: + description: "When set to true, creates a read-only instance of Retool,\ + \ where app editing is disabled. Defaults to false." + type: boolean + force_uuid_mapping: + description: "When set to true, creates a uuid mapping for protected elements\ + \ to be used in the source control repo. Defaults to false." + type: boolean + auto_cleanup_branches_enabled: + description: "When set to true, Retool will automatically delete branches\ + \ after changes are merged if the remote branch no longer exists and there\ + \ are no uncommitted changes. Defaults to true." + type: boolean type: object - _groups__groupId__members_post_request: + _source_control_settings_put_request: + additionalProperties: false + description: Shape of Source Control Settings properties: - members: - description: Users to add to the group. Pass in an empty list to create - a group with no members. - items: - $ref: '#/components/schemas/_groups__groupId__put_request_members_inner' - type: array + settings: + $ref: '#/components/schemas/_source_control_settings_put_request_settings' required: - - members + - settings type: object - _folders_get_200_response_data_inner: - description: Folders + _source_control_settings_put_200_response_data: + description: Result of creating Source Control Settings example: - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id - name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true + auto_cleanup_branches_enabled: true + custom_pull_request_template: custom_pull_request_template + version_control_locked: true + force_uuid_mapping: true + custom_pull_request_template_enabled: true + auto_branch_naming_enabled: true properties: - id: - description: The id of the folder. Currently this is the same as legacy_id - but will be different in the future. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - legacy_id: - description: The legacy id of the folder. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - name: - description: The name of the folder - type: string - parent_folder_id: - description: The id of the parent folder - nullable: true - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - is_system_folder: - description: Whether the folder is a system folder + auto_branch_naming_enabled: + description: "When enabled, Retool automatically suggests a branch name\ + \ on branch creation. Defaults to true." type: boolean - folder_type: - description: The type of the folder - enum: - - app - - workflow - - resource - type: string - created_at: - example: 2019-02-08T11:45:48.899Z - type: string - updated_at: - example: 2019-02-24T18:28:18.790Z + custom_pull_request_template_enabled: + description: "When enabled, Retool will use the template specified to create\ + \ pull requests. Defaults to false." + type: boolean + custom_pull_request_template: + description: Pull requests created from Retool will use the template specified. type: string + version_control_locked: + description: "When set to true, creates a read-only instance of Retool,\ + \ where app editing is disabled. Defaults to false." + type: boolean + force_uuid_mapping: + description: "When set to true, creates a uuid mapping for protected elements\ + \ to be used in the source control repo. Defaults to false." + type: boolean + auto_cleanup_branches_enabled: + description: "When set to true, Retool will automatically delete branches\ + \ after changes are merged if the remote branch no longer exists and there\ + \ are no uncommitted changes. Defaults to true." + type: boolean required: - - created_at - - folder_type - - id - - is_system_folder - - legacy_id - - name - - updated_at + - auto_branch_naming_enabled + - auto_cleanup_branches_enabled + - custom_pull_request_template + - custom_pull_request_template_enabled + - force_uuid_mapping + - version_control_locked type: object - _folders_get_200_response: + _source_control_settings_put_200_response: example: data: - - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id - name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true - - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id - name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true + auto_cleanup_branches_enabled: true + custom_pull_request_template: custom_pull_request_template + version_control_locked: true + force_uuid_mapping: true + custom_pull_request_template_enabled: true + auto_branch_naming_enabled: true success: true - total_count: 0.8008281904610115 - has_more: true - next_token: next_token properties: success: description: API request succeeded type: boolean data: - description: An array of requested items - items: - $ref: '#/components/schemas/_folders_get_200_response_data_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true - type: string - has_more: - description: Whether there are more items in the collection - type: boolean + $ref: '#/components/schemas/_source_control_settings_put_200_response_data' required: - data - - has_more - - next_token - success - - total_count type: object - _folders_post_request: + _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release: + anyOf: + - pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + type: string + - enum: + - latest + type: string + _source_control_manifests_get_200_response_data_manifests_inner_apps_inner: + example: + release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - name: - description: The name of the folder. - minLength: 1 - type: string - parent_folder_id: - description: The ID of the parent folder. - nullable: true - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - folder_type: - description: The type of the folder. - enum: - - app - - workflow - - resource + uuid: + format: uuid type: string + release: + $ref: '#/components/schemas/_source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release' required: - - folder_type - - name + - release + - uuid type: object - _folders_post_200_response_data: - description: The created folder. + _source_control_manifests_get_200_response_data_manifests_inner: example: - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true + workflows: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + apps: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - id: - description: The id of the folder. Currently this is the same as legacy_id - but will be different in the future. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - legacy_id: - description: The legacy id of the folder. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string name: - description: The name of the folder - type: string - parent_folder_id: - description: The id of the parent folder - nullable: true - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - is_system_folder: - description: Whether the folder is a system folder - type: boolean - folder_type: - description: The type of the folder - enum: - - app - - workflow - - resource - type: string - created_at: - example: 2019-02-08T11:45:48.899Z - type: string - updated_at: - example: 2019-02-24T18:28:18.790Z type: string + apps: + items: + $ref: '#/components/schemas/_source_control_manifests_get_200_response_data_manifests_inner_apps_inner' + type: array + workflows: + items: + $ref: '#/components/schemas/_source_control_manifests_get_200_response_data_manifests_inner_apps_inner' + type: array required: - - created_at - - folder_type - - id - - is_system_folder - - legacy_id - name - - updated_at type: object - _folders_post_200_response: + _source_control_manifests_get_200_response_data: example: - data: - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id - name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true + manifests: + - name: name + workflows: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + apps: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - name: name + workflows: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + apps: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + manifests: + description: Array of release manifests + items: + $ref: '#/components/schemas/_source_control_manifests_get_200_response_data_manifests_inner' + type: array + required: + - manifests + type: object + _source_control_manifests_get_200_response: + example: + data: + manifests: + - name: name + workflows: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + apps: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - name: name + workflows: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + apps: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_folders_post_200_response_data' + $ref: '#/components/schemas/_source_control_manifests_get_200_response_data' required: - data - success type: object - _folders_post_409_response: - description: API error response + _source_control_manifests__manifestName__get_200_response_data_manifest: + description: The specified release manifest + example: + name: name + workflows: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + apps: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + name: + type: string + apps: + items: + $ref: '#/components/schemas/_source_control_manifests_get_200_response_data_manifests_inner_apps_inner' + type: array + workflows: + items: + $ref: '#/components/schemas/_source_control_manifests_get_200_response_data_manifests_inner_apps_inner' + type: array + required: + - name + type: object + _source_control_manifests__manifestName__get_200_response_data: + example: + manifest: + name: name + workflows: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + apps: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + manifest: + $ref: '#/components/schemas/_source_control_manifests__manifestName__get_200_response_data_manifest' + required: + - manifest + type: object + _source_control_manifests__manifestName__get_200_response: example: + data: + manifest: + name: name + workflows: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + apps: + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - release: _source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release + uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 success: true - message: message properties: success: - description: API request failed + description: API request succeeded type: boolean - message: - description: Error message - type: string + data: + $ref: '#/components/schemas/_source_control_manifests__manifestName__get_200_response_data' required: - - message + - data - success type: object - _folders__folderId__get_200_response_data: - description: The requested folder. + _source_control_manifests__manifestName__put_request_manifest: + description: A list of source controlled elements and the corresponding version + to publish for that element example: - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id - name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true + apps: + - uuid: 2ab90f76-c234-428e-9896-40c3a9bdbb2b + release: latest + - uuid: 100186a5-d6cf-4476-8f84-7a71ab2fbef2 + release: 1.0.1 + - uuid: 200be837-2558-4f88-bb3b-07bea668c23e + release: 27.18.0 properties: - id: - description: The id of the folder. Currently this is the same as legacy_id - but will be different in the future. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - legacy_id: - description: The legacy id of the folder. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - name: - description: The name of the folder - type: string - parent_folder_id: - description: The id of the parent folder - nullable: true - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" + apps: + items: + $ref: '#/components/schemas/_source_control_manifests_get_200_response_data_manifests_inner_apps_inner' + type: array + type: object + _source_control_manifests__manifestName__put_request: + properties: + manifest: + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_request_manifest' + commit_message: + description: "Message to use for the commit that updates the specified manifest.\ + \ If a message is not provided, a default will be used." type: string - is_system_folder: - description: Whether the folder is a system folder - type: boolean - folder_type: - description: The type of the folder - enum: - - app - - workflow - - resource + type: object + _source_control_manifests__manifestName__put_200_response_data: + example: + commit_sha: commit_sha + branch_name: branch_name + url: url + properties: + commit_sha: + description: The SHA1 hash for the git commit that the created branch points + to type: string - created_at: - example: 2019-02-08T11:45:48.899Z + url: + description: A URL to create a pull/merge request to merge the created branch + into the default branch type: string - updated_at: - example: 2019-02-24T18:28:18.790Z + branch_name: + description: The name for the created branch type: string required: - - created_at - - folder_type - - id - - is_system_folder - - legacy_id - - name - - updated_at + - branch_name + - commit_sha + - url type: object - _folders__folderId__get_200_response: + _source_control_manifests__manifestName__put_200_response: example: data: - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id - name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true + commit_sha: commit_sha + branch_name: branch_name + url: url success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_folders__folderId__get_200_response_data' + $ref: '#/components/schemas/_source_control_manifests__manifestName__put_200_response_data' required: - data - success type: object - _folders__folderId__delete_request: + _source_control_manifests__manifestName__delete_post_request: properties: - recursive: - description: Should the folder's contents also be deleted? - type: boolean - type: object - _folders__folderId__patch_request_operations_inner_anyOf: - properties: - op: - enum: - - move - type: string - path: + commit_message: + description: "Message to use for the commit that updates the specified manifest.\ + \ If a message is not provided, a default will be used." type: string - from: - type: string - required: - - from - - op - - path type: object - _folders__folderId__patch_request_operations_inner_anyOf_1: + _source_control_manifests__manifestName__apps__appUuid__put_request_release: + anyOf: + - pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + type: string + - enum: + - latest + type: string + description: The release version to set for the specified app in the named release + manifest + example: 27.18.0 + _source_control_manifests__manifestName__apps__appUuid__put_request: properties: - op: - enum: - - copy - type: string - path: - type: string - from: + release: + $ref: '#/components/schemas/_source_control_manifests__manifestName__apps__appUuid__put_request_release' + commit_message: + description: "Message to use for the commit that updates the specified manifest.\ + \ If a message is not provided, a default will be used." type: string required: - - from - - op - - path + - release type: object - _folders__folderId__patch_request_operations_inner_anyOf_2: + _source_control_releases_apps__appUuid__get_200_response_data_inner: + example: + release_description: release_description + created_at: 2024-10-08T11:45:48.899Z + release_version: release_version properties: - op: - enum: - - test + release_version: + description: The version of the release. type: string - path: + release_description: + description: The description of the release. + type: string + created_at: + description: The timestamp when the release was created. + example: 2024-10-08T11:45:48.899Z type: string - value: - description: A JSON value - nullable: true required: - - op - - path + - created_at + - release_version type: object - _folders__folderId__patch_request_operations_inner: - anyOf: - - $ref: '#/components/schemas/_users__userId__patch_request_operations_inner_anyOf' - - $ref: '#/components/schemas/_users__userId__patch_request_operations_inner_anyOf_1' - - $ref: '#/components/schemas/_users__userId__patch_request_operations_inner_anyOf_2' - - $ref: '#/components/schemas/_folders__folderId__patch_request_operations_inner_anyOf' - - $ref: '#/components/schemas/_folders__folderId__patch_request_operations_inner_anyOf_1' - - $ref: '#/components/schemas/_folders__folderId__patch_request_operations_inner_anyOf_2' - _folders__folderId__patch_request: - additionalProperties: false + _source_control_releases_apps__appUuid__get_200_response: + example: + data: + - release_description: release_description + created_at: 2024-10-08T11:45:48.899Z + release_version: release_version + - release_description: release_description + created_at: 2024-10-08T11:45:48.899Z + release_version: release_version + success: true properties: - operations: - description: A list of operations to apply to the folder. See https://tools.ietf.org/html/rfc6902 - for details. + success: + description: API request succeeded + type: boolean + data: items: - $ref: '#/components/schemas/_folders__folderId__patch_request_operations_inner' + $ref: '#/components/schemas/_source_control_releases_apps__appUuid__get_200_response_data_inner' type: array required: - - operations + - data + - success type: object - _folders__folderId__patch_200_response_data: - description: The updated folder. + _source_control_releases_apps__appUuid__post_request: + properties: + release_version: + description: The version of the release. + example: 1.0.0 + pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + type: string + release_description: + description: The description of the release. + example: Updated theme for better consistency and dark mode support. + type: string + commit_message: + description: "Message to use for the commit that updates the specified manifest.\ + \ If a message is not provided, a default will be used." + type: string + required: + - release_version + type: object + _app_themes__id__get_200_response_data: + description: The app theme. example: - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id + updated_at: 2000-01-23T04:56:07.000+00:00 name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + theme: + key: "" + id: 0.8008281904610115 properties: id: - description: The id of the folder. Currently this is the same as legacy_id - but will be different in the future. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string + type: number legacy_id: - description: The legacy id of the folder. - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string + type: number name: - description: The name of the folder - type: string - parent_folder_id: - description: The id of the parent folder - nullable: true - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" - type: string - is_system_folder: - description: Whether the folder is a system folder - type: boolean - folder_type: - description: The type of the folder - enum: - - app - - workflow - - resource + description: The name of the app theme. type: string + theme: + additionalProperties: + nullable: true + description: The theme object. + type: object created_at: - example: 2019-02-08T11:45:48.899Z + description: Date and time when the app theme was created. + format: date-time type: string updated_at: - example: 2019-02-24T18:28:18.790Z + description: Date and time when the app theme was last updated. + format: date-time type: string required: - created_at - - folder_type - id - - is_system_folder - legacy_id - name + - theme - updated_at type: object - _folders__folderId__patch_200_response: + _app_themes__id__get_200_response: example: data: - folder_type: app - updated_at: 2019-02-24T18:28:18.790Z - parent_folder_id: parent_folder_id + updated_at: 2000-01-23T04:56:07.000+00:00 name: name - legacy_id: legacy_id - created_at: 2019-02-08T11:45:48.899Z - id: id - is_system_folder: true + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + theme: + key: "" + id: 0.8008281904610115 success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_folders__folderId__patch_200_response_data' + $ref: '#/components/schemas/_app_themes__id__get_200_response_data' required: - data - success type: object - _spaces_get_200_response_data_inner: - additionalProperties: false - description: List of spaces + _app_themes_get_200_response_data_inner: + description: This object represents an app theme. App themes allow you to customize + the look of your app. See https://docs.retool.com/apps/web/concepts/themes + for more information. example: - updated_at: 2019-02-24T18:28:18.79Z - domain: domain + updated_at: 2000-01-23T04:56:07.000+00:00 name: name - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + theme: + key: "" + id: 0.8008281904610115 properties: id: - description: The id of the space. - format: uuid - type: string + type: number + legacy_id: + type: number name: - minLength: 1 - type: string - domain: - minLength: 1 + description: The name of the app theme. type: string + theme: + additionalProperties: + nullable: true + description: The theme object. + type: object created_at: - example: 2019-02-08T11:45:48.899Z + description: Date and time when the app theme was created. format: date-time type: string updated_at: - example: 2019-02-24T18:28:18.79Z + description: Date and time when the app theme was last updated. format: date-time type: string required: - created_at - - domain - id + - legacy_id - name + - theme - updated_at type: object - _spaces_get_200_response: + _app_themes_get_200_response: + description: A list of all app themes in the organization example: data: - - updated_at: 2019-02-24T18:28:18.79Z - domain: domain + - updated_at: 2000-01-23T04:56:07.000+00:00 name: name - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - updated_at: 2019-02-24T18:28:18.79Z - domain: domain + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + theme: + key: "" + id: 0.8008281904610115 + - updated_at: 2000-01-23T04:56:07.000+00:00 name: name - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + theme: + key: "" + id: 0.8008281904610115 success: true - total_count: 0.8008281904610115 + total_count: 1.4658129805029452 has_more: true next_token: next_token properties: @@ -5531,7 +9341,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_spaces_get_200_response_data_inner' + $ref: '#/components/schemas/_app_themes_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -5550,1277 +9360,1807 @@ components: - success - total_count type: object - _spaces_post_request_options: - properties: - copy_sso_settings: - description: Copy SSO settings from the admin space. - type: boolean - copy_branding_and_themes_settings: - description: Copy Branding and Themes settings from the admin space. - type: boolean - users_to_copy_as_admins: - description: List of emails of users from the admin space that need to be - added to the new space as admins. - items: - type: string - type: array - create_admin_user: - description: Create an admin user in the new space for the creator instead - of just sending out an invite. - type: boolean - type: object - _spaces_post_request: - additionalProperties: false - properties: - name: - minLength: 1 - type: string - domain: - description: "The domain of the space. On Retool Cloud, specify subdomain\ - \ of the space instead." - minLength: 1 - type: string - options: - $ref: '#/components/schemas/_spaces_post_request_options' - required: - - domain - - name - type: object - _spaces_post_200_response_data: - additionalProperties: false - description: The created space - example: - updated_at: 2019-02-24T18:28:18.79Z - domain: domain - name: name - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - properties: - id: - description: The id of the space. - format: uuid - type: string - name: - minLength: 1 - type: string - domain: - minLength: 1 - type: string - created_at: - example: 2019-02-08T11:45:48.899Z - format: date-time - type: string - updated_at: - example: 2019-02-24T18:28:18.79Z - format: date-time - type: string - required: - - created_at - - domain - - id - - name - - updated_at - type: object - _spaces_post_200_response: - example: - data: - updated_at: 2019-02-24T18:28:18.79Z - domain: domain - name: name - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - success: true - properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_spaces_post_200_response_data' - required: - - data - - success - type: object - _spaces__spaceId__get_200_response_data: - additionalProperties: false - description: The requested space + _app_themes_put_200_response_data: + description: The updated app theme. example: - updated_at: 2019-02-24T18:28:18.79Z - domain: domain + updated_at: 2000-01-23T04:56:07.000+00:00 name: name - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + theme: + key: "" + id: 0.8008281904610115 properties: - id: - description: The id of the space. - format: uuid - type: string + id: + type: number + legacy_id: + type: number name: - minLength: 1 - type: string - domain: - minLength: 1 + description: The name of the app theme. type: string + theme: + additionalProperties: + nullable: true + description: The theme object. + type: object created_at: - example: 2019-02-08T11:45:48.899Z + description: Date and time when the app theme was created. format: date-time type: string updated_at: - example: 2019-02-24T18:28:18.79Z + description: Date and time when the app theme was last updated. format: date-time type: string required: - created_at - - domain - id + - legacy_id - name + - theme - updated_at type: object - _spaces__spaceId__get_200_response: + _app_themes_put_200_response: example: data: - updated_at: 2019-02-24T18:28:18.79Z - domain: domain + updated_at: 2000-01-23T04:56:07.000+00:00 name: name - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + theme: + key: "" + id: 0.8008281904610115 success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_spaces__spaceId__get_200_response_data' + $ref: '#/components/schemas/_app_themes_put_200_response_data' required: - data - success type: object - _spaces__spaceId__put_request: - properties: - name: - description: The name of the space. - minLength: 1 - type: string - domain: - description: "The domain of the space. On Retool Cloud, specify subdomain\ - \ of the space instead." - minLength: 1 - type: string - required: - - domain - - name - type: object - _spaces__spaceId__put_200_response_data: - additionalProperties: false - description: Updated space + _apps__appId__get_200_response_data: + description: This object represents an app. example: - updated_at: 2019-02-24T18:28:18.79Z - domain: domain + synced: true + protected: true + updated_at: 2019-02-24T18:28:18.790Z + is_module: true name: name + description: description created_at: 2019-02-08T11:45:48.899Z + is_mobile_app: true id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + folder_id: folder_id + release_version: release_version + shortlink: shortlink properties: id: - description: The id of the space. + description: The app ID. format: uuid type: string name: - minLength: 1 + description: The name of the App type: string - domain: - minLength: 1 + description: + description: The description of the App + nullable: true + type: string + folder_id: + description: The id of the folder + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + protected: + description: Whether the App is protected + type: boolean + synced: + description: Whether the App is synced + type: boolean + shortlink: + description: The shortlink of the App + nullable: true type: string + is_module: + description: Whether the App is a module + type: boolean + is_mobile_app: + description: Whether the App is a mobile app + type: boolean created_at: example: 2019-02-08T11:45:48.899Z - format: date-time type: string updated_at: - example: 2019-02-24T18:28:18.79Z - format: date-time + example: 2019-02-24T18:28:18.790Z + type: string + release_version: + description: The live release version of the app. 'latest' if releases are + disabled or the app has no live release yet type: string required: - created_at - - domain + - description + - folder_id - id + - is_mobile_app + - is_module - name + - protected + - release_version + - shortlink + - synced - updated_at type: object - _spaces__spaceId__put_200_response: + _apps__appId__get_200_response: + description: A single app example: data: - updated_at: 2019-02-24T18:28:18.79Z - domain: domain + synced: true + protected: true + updated_at: 2019-02-24T18:28:18.790Z + is_module: true name: name + description: description created_at: 2019-02-08T11:45:48.899Z + is_mobile_app: true id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + folder_id: folder_id + release_version: release_version + shortlink: shortlink success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_spaces__spaceId__put_200_response_data' + $ref: '#/components/schemas/_apps__appId__get_200_response_data' required: - data - success type: object - _spaces_copyElements_post_request_resource_ids_inner: - anyOf: - - format: uuid - type: string - - format: uuid - type: string - description: The uuid for the resource. - _spaces_copyElements_post_request: - additionalProperties: false - properties: - resource_ids: - description: List of resource uuids to copy to the new space. - items: - $ref: '#/components/schemas/_spaces_copyElements_post_request_resource_ids_inner' - type: array - query_library_query_ids: - description: List of query library query uuids to copy to the new space. - items: - description: The Query Library Query ID. - format: uuid - type: string - type: array - app_ids: - description: List of app or module uuids to copy to the new space. - items: - description: The app ID. - format: uuid - type: string - type: array - workflow_ids: - description: List of workflow ids to copy to the new space. - items: - description: The Workflow ID. - format: uuid - type: string - type: array - destination_space_id: - description: The id of the space to copy the elements to. - type: string - required: - - app_ids - - destination_space_id - - query_library_query_ids - - resource_ids - - workflow_ids - type: object - _spaces_copyElements_post_201_response_data: - description: The copied elements - example: - workflow_ids: - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - query_library_query_ids: - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - app_ids: - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - resource_ids: - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - properties: - resource_ids: - description: The uuids of the copied resources. - items: - $ref: '#/components/schemas/_spaces_copyElements_post_request_resource_ids_inner' - type: array - query_library_query_ids: - description: The uuids of the copied query library queries. - items: - description: The Query Library Query ID. - format: uuid - type: string - type: array - app_ids: - description: The uuids of the copied app or modules. - items: - description: The app ID. - format: uuid - type: string - type: array - workflow_ids: - description: The uuids of the copied workflows. - items: - description: The Workflow ID. - format: uuid - type: string - type: array - required: - - app_ids - - query_library_query_ids - - resource_ids - - workflow_ids - type: object - _spaces_copyElements_post_201_response: - description: Elements copied successfully + _apps_get_200_response: + description: A list of all apps in the organization example: data: - workflow_ids: - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - query_library_query_ids: - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - app_ids: - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - resource_ids: - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - synced: true + protected: true + updated_at: 2019-02-24T18:28:18.790Z + is_module: true + name: name + description: description + created_at: 2019-02-08T11:45:48.899Z + is_mobile_app: true + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + folder_id: folder_id + release_version: release_version + shortlink: shortlink + - synced: true + protected: true + updated_at: 2019-02-24T18:28:18.790Z + is_module: true + name: name + description: description + created_at: 2019-02-08T11:45:48.899Z + is_mobile_app: true + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + folder_id: folder_id + release_version: release_version + shortlink: shortlink success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token properties: success: description: API request succeeded type: boolean - data: - $ref: '#/components/schemas/_spaces_copyElements_post_201_response_data' + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_apps__appId__get_200_response_data' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - data + - has_more + - next_token - success + - total_count type: object - _source_control_config_get_200_response_data_oneOf_config_oneOf: + _apps_cloneApp_post_request: additionalProperties: false - example: - installation_id: installation_id - private_key: private_key - type: App - app_id: app_id - enterprise_api_url: enterprise_api_url - url: url properties: - type: - enum: - - App - type: string app_id: - description: The GitHub App ID. - type: string - installation_id: - description: The GitHub installation ID. This can be found at the end of - the installation URL. - type: string - private_key: - description: The base64-encoded private key. + description: The app ID. + format: uuid type: string - url: - description: The domain used to access your self-hosted GitHub instance. + new_app_name: + description: The name of the new app + minLength: 1 type: string - enterprise_api_url: - description: "The REST API route for your self-hosted GitHub instance. Defaults\ - \ to https://[hostname]/api/v3." + folder_id: + description: The id of the folder + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string required: - app_id - - installation_id - - private_key - - type + - new_app_name type: object - _source_control_config_get_200_response_data_oneOf_config_oneOf_1: + Google: additionalProperties: false + example: + google_client_secret: google_client_secret + disable_email_password_login: true + config_type: google + google_client_id: google_client_id properties: - type: + config_type: enum: - - Personal - type: string - personal_access_token: - description: "The GitHub project access token to authenticate to the GitHub\ - \ API.\t" + - google type: string - url: - description: The domain used to access your self-hosted GitHub instance. + google_client_id: type: string - enterprise_api_url: - description: "The REST API route for your self-hosted GitHub instance. Defaults\ - \ to https://[hostname]/api/v3." + google_client_secret: type: string + disable_email_password_login: + type: boolean required: - - personal_access_token - - type + - config_type + - disable_email_password_login + - google_client_id + - google_client_secret + title: Google type: object - _source_control_config_get_200_response_data_oneOf_config: - oneOf: - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_config_oneOf' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_config_oneOf_1' - _source_control_config_get_200_response_data_oneOf: - example: - repo_version: repo_version - provider: GitHub - org: org - repo: repo - default_branch: default_branch - config: - installation_id: installation_id - private_key: private_key - type: App - app_id: app_id - enterprise_api_url: enterprise_api_url - url: url + OIDC: + additionalProperties: false properties: - config: - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_config' - provider: + config_type: enum: - - GitHub + - oidc type: string - org: - description: The user or organization to which the repository belongs to. + oidc_client_id: + minLength: 1 type: string - repo: - description: The name of the repository you created to use with Retool. + oidc_client_secret: + minLength: 1 type: string - default_branch: - description: "The default branch, e.g., main." + oidc_scopes: + minLength: 1 type: string - repo_version: - description: Repositories using Toolscript are 2.0.0. Repositories using - legacy YAML are 1.0.0. + oidc_auth_url: + minLength: 1 + type: string + oidc_token_url: + minLength: 1 + type: string + oidc_userinfo_url: + minLength: 1 + type: string + oidc_audience: + type: string + jwt_email_key: + minLength: 1 + type: string + jwt_roles_key: + minLength: 1 + type: string + jwt_first_name_key: + minLength: 1 + type: string + jwt_last_name_key: + minLength: 1 + type: string + roles_mapping: + type: string + jit_enabled: + type: boolean + restricted_domain: type: string + trigger_login_automatically: + type: boolean + disable_email_password_login: + type: boolean required: - - config - - default_branch - - org - - provider - - repo + - config_type + - disable_email_password_login + - jit_enabled + - jwt_email_key + - jwt_first_name_key + - jwt_last_name_key + - oidc_auth_url + - oidc_client_id + - oidc_client_secret + - oidc_scopes + - oidc_token_url + - trigger_login_automatically + title: OIDC type: object - _source_control_config_get_200_response_data_oneOf_1_config: + Google___OIDC: additionalProperties: false properties: - project_id: - description: The numerical project ID for your GitLab project. Find this - ID listed below the project's name on the project's homepage. - type: number - url: - description: "Your base GitLab URL. On GitLab Cloud, this is always https://gitlab.com.\ - \ On GitLab self-managed, this is the URL where your instance is hosted." + config_type: + enum: + - google & oidc type: string - project_access_token: - description: The GitLab project access token to authenticate to the GitLab - API. + google_client_id: + type: string + google_client_secret: + type: string + disable_email_password_login: + type: boolean + oidc_client_id: + minLength: 1 + type: string + oidc_client_secret: + minLength: 1 + type: string + oidc_scopes: + minLength: 1 + type: string + oidc_auth_url: + minLength: 1 + type: string + oidc_token_url: + minLength: 1 type: string + oidc_userinfo_url: + minLength: 1 + type: string + oidc_audience: + type: string + jwt_email_key: + minLength: 1 + type: string + jwt_roles_key: + minLength: 1 + type: string + jwt_first_name_key: + minLength: 1 + type: string + jwt_last_name_key: + minLength: 1 + type: string + roles_mapping: + type: string + jit_enabled: + type: boolean + restricted_domain: + type: string + trigger_login_automatically: + type: boolean required: - - project_access_token - - project_id - - url + - config_type + - disable_email_password_login + - google_client_id + - google_client_secret + - jit_enabled + - jwt_email_key + - jwt_first_name_key + - jwt_last_name_key + - oidc_auth_url + - oidc_client_id + - oidc_client_secret + - oidc_scopes + - oidc_token_url + - trigger_login_automatically + title: Google & OIDC type: object - _source_control_config_get_200_response_data_oneOf_1: + SAML: + additionalProperties: false properties: - config: - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_1_config' - provider: + config_type: enum: - - GitLab + - saml + type: string + idp_metadata_xml: + minLength: 1 + type: string + saml_first_name_attribute: + minLength: 1 + type: string + saml_last_name_attribute: + minLength: 1 + type: string + saml_groups_attribute: + type: string + saml_sync_group_claims: + type: boolean + ldap_sync_group_claims: + type: boolean + ldap_role_mapping: type: string - org: - description: The user or organization to which the repository belongs to. + ldap_server_url: type: string - repo: - description: The name of the repository you created to use with Retool. + ldap_base_domain_components: type: string - default_branch: - description: "The default branch, e.g., main." + ldap_server_name: type: string - repo_version: - description: Repositories using Toolscript are 2.0.0. Repositories using - legacy YAML are 1.0.0. + ldap_server_key: + type: string + ldap_server_certificate: type: string + jit_enabled: + type: boolean + restricted_domain: + type: string + trigger_login_automatically: + type: boolean + disable_email_password_login: + type: boolean required: - - config - - default_branch - - org - - provider - - repo + - config_type + - disable_email_password_login + - idp_metadata_xml + - jit_enabled + - saml_first_name_attribute + - saml_last_name_attribute + - saml_sync_group_claims + - trigger_login_automatically + title: SAML type: object - _source_control_config_get_200_response_data_oneOf_2_config: + Google___SAML: additionalProperties: false properties: - url: - description: The domain used to access your self-hosted AWS CodeCommit instance. + config_type: + enum: + - google & saml type: string - region: - description: The region of the CodeCommit repository. + google_client_id: type: string - access_key_id: - description: The Access key ID from your AWSCodeCommitFullAccess policy. + google_client_secret: type: string - secret_access_key: - description: The Secret Access Key from your AWSCodeCommitFullAccess policy + disable_email_password_login: + type: boolean + idp_metadata_xml: + minLength: 1 type: string - https_username: - description: The HTTPS username from your security credentials. + saml_first_name_attribute: + minLength: 1 type: string - https_password: - description: The HTTPS password from your security credentials. + saml_last_name_attribute: + minLength: 1 type: string - required: - - access_key_id - - https_password - - https_username - - region - - secret_access_key - - url - type: object - _source_control_config_get_200_response_data_oneOf_2: - properties: - config: - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_2_config' - provider: - enum: - - AWS CodeCommit + saml_groups_attribute: type: string - org: - description: The user or organization to which the repository belongs to. + saml_sync_group_claims: + type: boolean + ldap_sync_group_claims: + type: boolean + ldap_role_mapping: type: string - repo: - description: The name of the repository you created to use with Retool. + ldap_server_url: type: string - default_branch: - description: "The default branch, e.g., main." + ldap_base_domain_components: type: string - repo_version: - description: Repositories using Toolscript are 2.0.0. Repositories using - legacy YAML are 1.0.0. + ldap_server_name: + type: string + ldap_server_key: + type: string + ldap_server_certificate: + type: string + jit_enabled: + type: boolean + restricted_domain: type: string + trigger_login_automatically: + type: boolean required: - - config - - default_branch - - org - - provider - - repo + - config_type + - disable_email_password_login + - google_client_id + - google_client_secret + - idp_metadata_xml + - jit_enabled + - saml_first_name_attribute + - saml_last_name_attribute + - saml_sync_group_claims + - trigger_login_automatically + title: Google & SAML + type: object + _sso_config_get_200_response_data: + description: SSO configuration + oneOf: + - $ref: '#/components/schemas/Google' + - $ref: '#/components/schemas/OIDC' + - $ref: '#/components/schemas/Google___OIDC' + - $ref: '#/components/schemas/SAML' + - $ref: '#/components/schemas/Google___SAML' + _sso_config_get_200_response: + example: + data: + google_client_secret: google_client_secret + disable_email_password_login: true + config_type: google + google_client_id: google_client_id + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_sso_config_get_200_response_data' + required: + - data + - success type: object - _source_control_config_get_200_response_data_oneOf_3_config: + _sso_config_post_request_data: + description: "This object represents the SSO configuration for an organization\ + \ or space. See [docs](https://docs.retool.com/sso) for more information." + oneOf: + - $ref: '#/components/schemas/Google' + - $ref: '#/components/schemas/OIDC' + - $ref: '#/components/schemas/Google___OIDC' + - $ref: '#/components/schemas/SAML' + - $ref: '#/components/schemas/Google___SAML' + _sso_config_post_request: additionalProperties: false + description: Shape of SSO config properties: - username: - description: Your Bitbucket username. + data: + $ref: '#/components/schemas/_sso_config_post_request_data' + required: + - data + type: object + _sso_config_post_200_response_data: + description: Result of setting SSO configuration + oneOf: + - $ref: '#/components/schemas/Google' + - $ref: '#/components/schemas/OIDC' + - $ref: '#/components/schemas/Google___OIDC' + - $ref: '#/components/schemas/SAML' + - $ref: '#/components/schemas/Google___SAML' + _sso_config_post_200_response: + example: + data: + google_client_secret: google_client_secret + disable_email_password_login: true + config_type: google + google_client_id: google_client_id + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_sso_config_post_200_response_data' + required: + - data + - success + type: object + _user_attributes_get_200_response_data_inner: + description: This object represents user attributes. + example: + name: name + data_type: string + default_value: default_value + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + intercom_attribute_name: intercom_attribute_name + properties: + id: + description: The id of the user attribute + format: uuid type: string - url: - description: The domain used to access your self-hosted Bitbucket instance. - Defaults to https://bitbucket.org/. + name: + description: The name of the user attribute + maxLength: 255 + minLength: 1 + pattern: "^[a-z0-9\\_]+$" type: string - enterprise_api_url: - description: "The REST API route for your self-hosted Bitbucket instance.\ - \ Defaults to https://api.bitbucket.org/2.0.\t" + label: + description: The label of the user attribute type: string - app_password: - description: Your Bitbucket app password. + data_type: + description: "The data type of the user attribute. Valid types are `string`,\ + \ `number`, or `json`" + enum: + - string + - number + - json + type: string + default_value: + description: "The default value of the user attribute, assigned to all users\ + \ without the attribute set" + nullable: true + type: string + intercom_attribute_name: + description: The name of the Intercom user attribute that this attribute + should be mapped to + maxLength: 255 + minLength: 1 + nullable: true + pattern: "^[a-z0-9\\_]+$" + type: string + required: + - data_type + - default_value + - id + - intercom_attribute_name + - label + - name + type: object + _user_attributes_get_200_response: + description: A list of user attributes. + example: + data: + - name: name + data_type: string + default_value: default_value + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + intercom_attribute_name: intercom_attribute_name + - name: name + data_type: string + default_value: default_value + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + intercom_attribute_name: intercom_attribute_name + success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token + properties: + success: + description: API request succeeded + type: boolean + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_user_attributes_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - - app_password - - username + - data + - has_more + - next_token + - success + - total_count type: object - _source_control_config_get_200_response_data_oneOf_3: + _user_attributes_post_request: properties: - config: - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_3_config' - provider: - enum: - - Bitbucket - type: string - org: - description: The user or organization to which the repository belongs to. + name: + description: The name of the user attribute. Must be alphanumeric and without + spaces. + maxLength: 255 + minLength: 1 + pattern: "^[a-z0-9\\_]+$" type: string - repo: - description: The name of the repository you created to use with Retool. + label: + description: A short description of the user attribute. + minLength: 2 type: string - default_branch: - description: "The default branch, e.g., main." + dataType: + description: "The data type of the attribute, can be one of string | json\ + \ | number." + enum: + - string + - json + - number type: string - repo_version: - description: Repositories using Toolscript are 2.0.0. Repositories using - legacy YAML are 1.0.0. + defaultValue: + description: A default value to apply to users that don't have an attribute + set. + nullable: true type: string required: - - config - - default_branch - - org - - provider - - repo + - dataType + - label + - name type: object - _source_control_config_get_200_response_data_oneOf_4_config: - additionalProperties: false + _user_attributes_post_200_response_data: + description: The created user attribute. + example: + name: name + data_type: string + default_value: default_value + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + intercom_attribute_name: intercom_attribute_name properties: - url: - description: "Your base Azure URL. For Azure Cloud, this is always http://dev.azure.com.\ - \ For Azure self-managed, this is the URL where your instance is hosted." - type: string - project: - description: Your new or existing Azure DevOps project. + id: + description: The id of the user attribute + format: uuid type: string - user: - description: The Azure Repos username. + name: + description: The name of the user attribute + maxLength: 255 + minLength: 1 + pattern: "^[a-z0-9\\_]+$" type: string - personal_access_token: - description: The Azure project access tokens to authenticate to the Azure - API. + label: + description: The label of the user attribute type: string - use_basic_auth: - description: Set this to true if you are using self-hosted Azure Repos. - type: boolean - required: - - personal_access_token - - project - - url - - use_basic_auth - - user - type: object - _source_control_config_get_200_response_data_oneOf_4: - properties: - config: - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_4_config' - provider: + data_type: + description: "The data type of the user attribute. Valid types are `string`,\ + \ `number`, or `json`" enum: - - Azure Repos - type: string - org: - description: The user or organization to which the repository belongs to. - type: string - repo: - description: The name of the repository you created to use with Retool. + - string + - number + - json type: string - default_branch: - description: "The default branch, e.g., main." + default_value: + description: "The default value of the user attribute, assigned to all users\ + \ without the attribute set" + nullable: true type: string - repo_version: - description: Repositories using Toolscript are 2.0.0. Repositories using - legacy YAML are 1.0.0. + intercom_attribute_name: + description: The name of the Intercom user attribute that this attribute + should be mapped to + maxLength: 255 + minLength: 1 + nullable: true + pattern: "^[a-z0-9\\_]+$" type: string required: - - config - - default_branch - - org - - provider - - repo + - data_type + - default_value + - id + - intercom_attribute_name + - label + - name type: object - _source_control_config_get_200_response_data: - description: Source Control Provider Config - oneOf: - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_1' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_2' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_3' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_4' - _source_control_config_get_200_response: - additionalProperties: false + _user_attributes_post_200_response: example: data: - repo_version: repo_version - provider: GitHub - org: org - repo: repo - default_branch: default_branch - config: - installation_id: installation_id - private_key: private_key - type: App - app_id: app_id - enterprise_api_url: enterprise_api_url - url: url + name: name + data_type: string + default_value: default_value + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + intercom_attribute_name: intercom_attribute_name success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_source_control_config_get_200_response_data' + $ref: '#/components/schemas/_user_attributes_post_200_response_data' required: - data - success type: object - _source_control_config_put_request_config: - description: This object represents the Source Control provider configuration - for the organization or space. See https://docs.retool.com/source-control - for more information. - oneOf: - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_1' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_2' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_3' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_4' - _source_control_config_put_request: + _user_attributes__id__patch_request: additionalProperties: false - description: Shape of Source Control provider config request + description: The body of a request to update an environment. properties: - config: - $ref: '#/components/schemas/_source_control_config_put_request_config' + operations: + description: "A list of operations to apply to the user attribute. See the\ + \ [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for\ + \ more details." + items: + $ref: '#/components/schemas/Replace_Operation' + type: array + update_existing: + description: Whether to update existing users with the deleted attribute + type: boolean required: - - config + - operations type: object - _source_control_config_put_200_response_data: - description: Created or updated Source Control Provider Config - oneOf: - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_1' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_2' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_3' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_4' - _source_control_config_put_200_response: + _user_attributes__id__patch_200_response_data: + description: The updated user attribute. example: - data: - repo_version: repo_version - provider: GitHub - org: org - repo: repo - default_branch: default_branch - config: - installation_id: installation_id - private_key: private_key - type: App - app_id: app_id - enterprise_api_url: enterprise_api_url - url: url - success: true + name: name + data_type: string + default_value: default_value + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + intercom_attribute_name: intercom_attribute_name properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_source_control_config_put_200_response_data' + id: + description: The id of the user attribute + format: uuid + type: string + name: + description: The name of the user attribute + maxLength: 255 + minLength: 1 + pattern: "^[a-z0-9\\_]+$" + type: string + label: + description: The label of the user attribute + type: string + data_type: + description: "The data type of the user attribute. Valid types are `string`,\ + \ `number`, or `json`" + enum: + - string + - number + - json + type: string + default_value: + description: "The default value of the user attribute, assigned to all users\ + \ without the attribute set" + nullable: true + type: string + intercom_attribute_name: + description: The name of the Intercom user attribute that this attribute + should be mapped to + maxLength: 255 + minLength: 1 + nullable: true + pattern: "^[a-z0-9\\_]+$" + type: string required: - - data - - success + - data_type + - default_value + - id + - intercom_attribute_name + - label + - name type: object - _source_control_config_post_200_response_data: - description: Created Source Control Provider Config - oneOf: - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_1' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_2' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_3' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_4' - _source_control_config_post_200_response: + _user_attributes__id__patch_200_response: example: data: - repo_version: repo_version - provider: GitHub - org: org - repo: repo - default_branch: default_branch - config: - installation_id: installation_id - private_key: private_key - type: App - app_id: app_id - enterprise_api_url: enterprise_api_url - url: url + name: name + data_type: string + default_value: default_value + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + intercom_attribute_name: intercom_attribute_name success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_source_control_config_post_200_response_data' + $ref: '#/components/schemas/_user_attributes__id__patch_200_response_data' required: - data - success type: object - _source_control_test_connection_get_200_response_data_anyOf: + _permissions_accessList__objectType___objectId__get_200_response_data_group_inner_subject: example: - success: true - message: message + id: id + type: group properties: - success: - description: Test connection failed - type: boolean - message: - description: Error message + id: + type: string + type: + enum: + - group + - user + - userInvite type: string required: - - message - - success - type: object - _source_control_test_connection_get_200_response_data_anyOf_1: - properties: - success: - description: Test connection succeeded - type: boolean - required: - - success + - id + - type type: object - _source_control_test_connection_get_200_response_data: - anyOf: - - $ref: '#/components/schemas/_source_control_test_connection_get_200_response_data_anyOf' - - $ref: '#/components/schemas/_source_control_test_connection_get_200_response_data_anyOf_1' - description: Test connection response - _source_control_test_connection_get_200_response: + _permissions_accessList__objectType___objectId__get_200_response_data_group_inner_sources_groups_inner: example: - data: - success: true - message: message - success: true + id: id + type: group properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_source_control_test_connection_get_200_response_data' + id: + type: string + type: + enum: + - group + type: string required: - - data - - success + - id + - type type: object - _source_control_test_deploy_post_request_deploy_params: + _permissions_accessList__objectType___objectId__get_200_response_data_group_inner_sources_inherited: + example: + id: id + type: app properties: - commit_sha: - description: The commit SHA to dry deploy + id: + type: string + type: + enum: + - app + - folder + - resource + - workflow + - agent type: string - is_full_sync: - type: boolean required: - - commit_sha + - id + - type type: object - _source_control_test_deploy_post_request: - additionalProperties: false - description: Parameters for running a deployment + _permissions_accessList__objectType___objectId__get_200_response_data_group_inner_sources: + example: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true properties: - deploy_params: - $ref: '#/components/schemas/_source_control_test_deploy_post_request_deploy_params' - required: - - deploy_params + direct: + type: boolean + universal: + type: boolean + groups: + items: + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response_data_group_inner_sources_groups_inner' + type: array + inherited: + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response_data_group_inner_sources_inherited' type: object - _source_control_test_deploy_post_200_response_data_anyOf: + _permissions_accessList__objectType___objectId__get_200_response_data_group_inner: example: - success: true - message: message + sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group properties: - success: - description: Deployment failed - type: boolean - message: - description: Error message + subject: + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response_data_group_inner_subject' + sources: + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response_data_group_inner_sources' + accessLevel: + enum: + - own + - edit + - use + - none type: string required: - - message - - success + - accessLevel + - subject type: object - _source_control_test_deploy_post_200_response_data_anyOf_1: + _permissions_accessList__objectType___objectId__get_200_response_data: + example: + userInvite: + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + user: + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + group: + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group properties: - success: - description: Deployment succeeded - type: boolean - required: - - success + group: + items: + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response_data_group_inner' + type: array + user: + items: + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response_data_group_inner' + type: array + userInvite: + items: + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response_data_group_inner' + type: array type: object - _source_control_test_deploy_post_200_response_data: - anyOf: - - $ref: '#/components/schemas/_source_control_test_deploy_post_200_response_data_anyOf' - - $ref: '#/components/schemas/_source_control_test_deploy_post_200_response_data_anyOf_1' - description: Source control test deploy response - _source_control_test_deploy_post_200_response: - example: - data: - success: true - message: message + _permissions_accessList__objectType___objectId__get_200_response: + example: + data: + userInvite: + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + user: + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + group: + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group + - sources: + inherited: + id: id + type: app + direct: true + groups: + - id: id + type: group + - id: id + type: group + universal: true + accessLevel: own + subject: + id: id + type: group success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_source_control_test_deploy_post_200_response_data' + $ref: '#/components/schemas/_permissions_accessList__objectType___objectId__get_200_response_data' required: - data - success type: object - _source_control_deploy_post_200_response_data: - description: Source control deploy response - example: - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - status: PENDING_START + Group: + additionalProperties: false properties: - id: - description: The deployment ID - format: uuid - type: string - status: + type: enum: - - PENDING_START - - RUNNING - - SUCCESS - - ERROR + - group type: string + id: + description: The ID number of the group + nullable: true + type: number required: - id - - status + - type + title: Group type: object - _source_control_deploy_post_200_response: - example: - data: - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - status: PENDING_START - success: true + User: + additionalProperties: false properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_source_control_deploy_post_200_response_data' + type: + enum: + - user + type: string + id: + pattern: "user_([a-z0-9]+)" + type: string required: - - data - - success + - id + - type + title: User type: object - _source_control_settings_get_200_response_data: - description: Source Control Settings - example: - custom_pull_request_template: custom_pull_request_template - version_control_locked: true - force_uuid_mapping: true - custom_pull_request_template_enabled: true - auto_branch_naming_enabled: true + _permissions_listObjects_post_request_subject: + oneOf: + - $ref: '#/components/schemas/Group' + - $ref: '#/components/schemas/User' + _permissions_listObjects_post_request: + additionalProperties: false properties: - auto_branch_naming_enabled: - description: "When enabled, Retool automatically suggests a branch name\ - \ on branch creation. Defaults to true." - type: boolean - custom_pull_request_template_enabled: - description: "When enabled, Retool will use the template specified to create\ - \ pull requests. Defaults to false." - type: boolean - custom_pull_request_template: - description: Pull requests created from Retool will use the template specified. + subject: + $ref: '#/components/schemas/_permissions_listObjects_post_request_subject' + object_type: + enum: + - folder + - app + - resource + - resource_configuration type: string - version_control_locked: - description: "When set to true, creates a read-only instance of Retool,\ - \ where app editing is disabled. Defaults to false." - type: boolean - force_uuid_mapping: - description: "When set to true, creates a uuid mapping for protected elements\ - \ to be used in the source control repo. Defaults to false." + include_inherited_access: type: boolean required: - - auto_branch_naming_enabled - - custom_pull_request_template - - custom_pull_request_template_enabled - - force_uuid_mapping - - version_control_locked + - object_type + - subject type: object - _source_control_settings_get_200_response: + _permissions_listObjects_post_200_response_data_inner_anyOf: example: - data: - custom_pull_request_template: custom_pull_request_template - version_control_locked: true - force_uuid_mapping: true - custom_pull_request_template_enabled: true - auto_branch_naming_enabled: true - success: true + access_level: own + id: id + type: folder properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_source_control_settings_get_200_response_data' + type: + enum: + - folder + type: string + id: + description: The id of the folder + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" + type: string + access_level: + description: The access level of the folder + enum: + - own + - edit + - use + type: string required: - - data - - success + - access_level + - id + - type type: object - _source_control_settings_put_request_settings: - additionalProperties: false + _permissions_listObjects_post_200_response_data_inner_anyOf_1: properties: - auto_branch_naming_enabled: - description: "When enabled, Retool automatically suggests a branch name\ - \ on branch creation. Defaults to true." - type: boolean - custom_pull_request_template_enabled: - description: "When enabled, Retool will use the template specified to create\ - \ pull requests. Defaults to false." - type: boolean - custom_pull_request_template: - description: Pull requests created from Retool will use the template specified. + type: + enum: + - app type: string - version_control_locked: - description: "When set to true, creates a read-only instance of Retool,\ - \ where app editing is disabled. Defaults to false." - type: boolean - force_uuid_mapping: - description: "When set to true, creates a uuid mapping for protected elements\ - \ to be used in the source control repo. Defaults to false." - type: boolean + id: + description: The app ID. + format: uuid + type: string + access_level: + description: The access level of the app + enum: + - own + - edit + - use + type: string + required: + - access_level + - id + - type type: object - _source_control_settings_put_request: - additionalProperties: false - description: Shape of Source Control Settings + _permissions_listObjects_post_200_response_data_inner_anyOf_2: properties: - settings: - $ref: '#/components/schemas/_source_control_settings_put_request_settings' + type: + enum: + - resource + type: string + id: + description: The uuid or name for the resource. + type: string + access_level: + description: The access level of the resource + enum: + - own + - edit + - use + type: string required: - - settings + - access_level + - id + - type type: object - _source_control_settings_put_200_response_data: - description: Result of creating Source Control Settings - example: - custom_pull_request_template: custom_pull_request_template - version_control_locked: true - force_uuid_mapping: true - custom_pull_request_template_enabled: true - auto_branch_naming_enabled: true + _permissions_listObjects_post_200_response_data_inner_anyOf_3: properties: - auto_branch_naming_enabled: - description: "When enabled, Retool automatically suggests a branch name\ - \ on branch creation. Defaults to true." - type: boolean - custom_pull_request_template_enabled: - description: "When enabled, Retool will use the template specified to create\ - \ pull requests. Defaults to false." - type: boolean - custom_pull_request_template: - description: Pull requests created from Retool will use the template specified. + type: + enum: + - resource_configuration + type: string + id: + description: The resource configuration id. + format: uuid + type: string + access_level: + description: 'The access level of the resource configuration. Note that + the access level in practice of this resource configuration could be different + dependent on what the access level of the resource with the same id as + the "name" of this resource_configuration. ' + enum: + - own + - edit + - use type: string - version_control_locked: - description: "When set to true, creates a read-only instance of Retool,\ - \ where app editing is disabled. Defaults to false." - type: boolean - force_uuid_mapping: - description: "When set to true, creates a uuid mapping for protected elements\ - \ to be used in the source control repo. Defaults to false." - type: boolean required: - - auto_branch_naming_enabled - - custom_pull_request_template - - custom_pull_request_template_enabled - - force_uuid_mapping - - version_control_locked + - access_level + - id + - type type: object - _source_control_settings_put_200_response: + _permissions_listObjects_post_200_response_data_inner: + anyOf: + - $ref: '#/components/schemas/_permissions_listObjects_post_200_response_data_inner_anyOf' + - $ref: '#/components/schemas/_permissions_listObjects_post_200_response_data_inner_anyOf_1' + - $ref: '#/components/schemas/_permissions_listObjects_post_200_response_data_inner_anyOf_2' + - $ref: '#/components/schemas/_permissions_listObjects_post_200_response_data_inner_anyOf_3' + discriminator: + propertyName: type + _permissions_listObjects_post_200_response: example: data: - custom_pull_request_template: custom_pull_request_template - version_control_locked: true - force_uuid_mapping: true - custom_pull_request_template_enabled: true - auto_branch_naming_enabled: true + - access_level: own + id: id + type: folder + - access_level: own + id: id + type: folder success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_source_control_settings_put_200_response_data' + description: An array of requested items + items: + $ref: '#/components/schemas/_permissions_listObjects_post_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - data + - has_more + - next_token - success + - total_count type: object - _app_themes__id__get_200_response_data: - description: The app theme. - example: - name: name - legacy_id: 6.027456183070403 - theme: - key: "" - id: 0.8008281904610115 + Folder: + additionalProperties: false properties: + type: + enum: + - folder + type: string id: - type: number - legacy_id: - type: number - name: - description: The name of the app theme. + description: The id of the folder + pattern: "^(app|workflow|resource|agent)_([0-9]\\d*)$" type: string - theme: - additionalProperties: - nullable: true - description: The theme object. - type: object required: - id - - legacy_id - - name - - theme + - type + title: Folder type: object - _app_themes__id__get_200_response: - example: - data: - name: name - legacy_id: 6.027456183070403 - theme: - key: "" - id: 0.8008281904610115 - success: true + App: + additionalProperties: false properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_app_themes__id__get_200_response_data' + type: + enum: + - app + type: string + id: + description: The app ID. + format: uuid + type: string required: - - data - - success + - id + - type + title: App type: object - _app_themes_put_request: - description: This object represents an app theme. App themes allow you to customize - the look of your app. See https://docs.retool.com/apps/web/concepts/themes - for more information. + Resource: + additionalProperties: false properties: + type: + enum: + - resource + type: string id: - type: number - legacy_id: - type: number - name: - description: The name of the app theme. + description: The uuid or name for the resource. type: string - theme: - additionalProperties: - nullable: true - description: The theme object. - type: object required: - - id - - legacy_id - - name - - theme + - id + - type + title: Resource + type: object + Resource_Configuration: + additionalProperties: false + properties: + type: + enum: + - resource_configuration + type: string + id: + description: The resource configuration id. + format: uuid + type: string + required: + - id + - type + title: Resource Configuration + type: object + _permissions_grant_post_request_object: + oneOf: + - $ref: '#/components/schemas/Folder' + - $ref: '#/components/schemas/App' + - $ref: '#/components/schemas/Resource' + - $ref: '#/components/schemas/Resource_Configuration' + _permissions_grant_post_request: + additionalProperties: false + properties: + subject: + $ref: '#/components/schemas/_permissions_listObjects_post_request_subject' + object: + $ref: '#/components/schemas/_permissions_grant_post_request_object' + access_level: + description: The access level that the group should have for the object + enum: + - own + - edit + - use + type: string + required: + - access_level + - object + - subject + type: object + _permissions_revoke_post_request: + additionalProperties: false + properties: + subject: + $ref: '#/components/schemas/_permissions_listObjects_post_request_subject' + object: + $ref: '#/components/schemas/_permissions_grant_post_request_object' + required: + - object + - subject type: object - _app_themes_put_200_response_data: - description: The updated app theme. + _role_permissions_roles_get_200_response_data_inner: + description: Roles example: + is_legacy_role: true + updated_at: 2019-02-24T18:28:18.790Z + is_default_role: true + organization_id: organization_id name: name - legacy_id: 6.027456183070403 - theme: - key: "" - id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + organization_scopes: + - organization_scopes + - organization_scopes + object_scopes: + - object_scopes + - object_scopes properties: id: - type: number - legacy_id: - type: number + description: The id of the role. + format: uuid + type: string + organization_id: + description: The id of the organization + type: string name: - description: The name of the app theme. + description: The name of the role + type: string + description: + description: The description of the role + type: string + is_default_role: + description: Whether the role is the default role + type: boolean + is_legacy_role: + description: Whether the role is a migrated legacy role + type: boolean + object_scopes: + description: The object scopes of the role + items: + type: string + type: array + organization_scopes: + description: The organization scopes of the role + items: + type: string + type: array + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z type: string - theme: - additionalProperties: - nullable: true - description: The theme object. - type: object required: + - created_at + - description - id - - legacy_id + - is_default_role + - is_legacy_role - name - - theme + - object_scopes + - organization_id + - organization_scopes + - updated_at type: object - _app_themes_put_200_response: + _role_permissions_roles_get_200_response: example: data: + - is_legacy_role: true + updated_at: 2019-02-24T18:28:18.790Z + is_default_role: true + organization_id: organization_id name: name - legacy_id: 6.027456183070403 - theme: - key: "" - id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + organization_scopes: + - organization_scopes + - organization_scopes + object_scopes: + - object_scopes + - object_scopes + - is_legacy_role: true + updated_at: 2019-02-24T18:28:18.790Z + is_default_role: true + organization_id: organization_id + name: name + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + organization_scopes: + - organization_scopes + - organization_scopes + object_scopes: + - object_scopes + - object_scopes success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_app_themes_put_200_response_data' + description: An array of requested items + items: + $ref: '#/components/schemas/_role_permissions_roles_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - data + - has_more + - next_token - success + - total_count type: object - _apps__appId__get_200_response_data: - description: This object represents an app. + _role_permissions_roles_post_request: + properties: + name: + description: The name of the role. + minLength: 1 + type: string + description: + description: The description of the role + type: string + object_scopes: + description: The object scopes of the role + items: + type: string + type: array + organization_scopes: + description: The organization scopes of the role + items: + type: string + type: array + required: + - name + - object_scopes + - organization_scopes + type: object + _role_permissions_roles_post_201_response: example: - synced: true - protected: true - is_module: true + is_legacy_role: true + updated_at: 2019-02-24T18:28:18.790Z + is_default_role: true + organization_id: organization_id name: name description: description - is_mobile_app: true + created_at: 2019-02-08T11:45:48.899Z id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - folder_id: folder_id - shortlink: shortlink + organization_scopes: + - organization_scopes + - organization_scopes + object_scopes: + - object_scopes + - object_scopes properties: id: - description: The app ID. + description: The id of the role. format: uuid type: string + organization_id: + description: The id of the organization + type: string name: - description: The name of the App + description: The name of the role type: string description: - description: The description of the App - nullable: true - type: string - folder_id: - description: The id of the folder - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" + description: The description of the role type: string - protected: - description: Whether the App is protected + is_default_role: + description: Whether the role is the default role type: boolean - synced: - description: Whether the App is synced + is_legacy_role: + description: Whether the role is a migrated legacy role type: boolean - shortlink: - description: The shortlink of the App - nullable: true + object_scopes: + description: The object scopes of the role + items: + type: string + type: array + organization_scopes: + description: The organization scopes of the role + items: + type: string + type: array + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z type: string - is_module: - description: Whether the App is a module - type: boolean - is_mobile_app: - description: Whether the App is a mobile app - type: boolean required: + - created_at - description - - folder_id - id - - is_mobile_app - - is_module + - is_default_role + - is_legacy_role - name - - protected - - shortlink - - synced + - object_scopes + - organization_id + - organization_scopes + - updated_at type: object - _apps__appId__get_200_response: - description: A single app - example: - data: - synced: true - protected: true - is_module: true - name: name - description: description - is_mobile_app: true - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - folder_id: folder_id - shortlink: shortlink - success: true + _role_permissions_roles__roleId__patch_request: properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_apps__appId__get_200_response_data' + name: + description: The name of the role. + minLength: 1 + type: string + description: + description: The description of the role + type: string + object_scopes: + description: The object scopes of the role + items: + type: string + type: array + organization_scopes: + description: The organization scopes of the role + items: + type: string + type: array + type: object + _role_permissions_role_grants_post_request: + properties: + role_id: + description: The id of the role + format: uuid + type: string + subject_type: + description: The type of the subject + type: string + subject_id: + description: The id of the subject + type: string + object_type: + description: The type of the object + type: string + object_id: + description: The id of the object + type: string required: - - data - - success + - role_id + - subject_id + - subject_type type: object - _apps_get_200_response: - description: A dictionary with a `data` property that contains an array of groups + _access_requests_get_200_response_data_inner: + description: Access Request example: - data: - - synced: true - protected: true - is_module: true - name: name - description: description - is_mobile_app: true - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - folder_id: folder_id - shortlink: shortlink - - synced: true - protected: true - is_module: true - name: name - description: description - is_mobile_app: true - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - folder_id: folder_id - shortlink: shortlink + updated_at: 2000-01-23T04:56:07.000+00:00 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + requesting_email: requesting_email + updated_by_id: updated_by_id + id: 0.8008281904610115 + status: PENDING + properties: + id: + type: number + status: + enum: + - PENDING + - APPROVED + - DENIED + type: string + legacy_id: + type: number + requesting_email: + type: string + updated_by_id: + nullable: true + type: string + created_at: + format: date-time + type: string + updated_at: + format: date-time + type: string + required: + - created_at + - id + - legacy_id + - requesting_email + - status + - updated_at + - updated_by_id + type: object + _access_requests_get_200_response: + description: A paginated list of access requests. + example: + data: + - updated_at: 2000-01-23T04:56:07.000+00:00 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + requesting_email: requesting_email + updated_by_id: updated_by_id + id: 0.8008281904610115 + status: PENDING + - updated_at: 2000-01-23T04:56:07.000+00:00 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + requesting_email: requesting_email + updated_by_id: updated_by_id + id: 0.8008281904610115 + status: PENDING success: true - total_count: 0.8008281904610115 + total_count: 1.4658129805029452 has_more: true next_token: next_token properties: @@ -6830,7 +11170,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_apps__appId__get_200_response_data' + $ref: '#/components/schemas/_access_requests_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -6849,572 +11189,752 @@ components: - success - total_count type: object - SSO_Config: - additionalProperties: false - example: - roles_mapping: roles_mapping - ldap_server_certificate: ldap_server_certificate - saml_last_name_attribute: saml_last_name_attribute - ldap_sync_group_claims: true - oidc_auth_url: oidc_auth_url - disable_email_password_login: true - ldap_server_url: ldap_server_url - trigger_login_automatically: true - oidc_userinfo_url: oidc_userinfo_url - jwt_email_key: jwt_email_key - saml_sync_group_claims: true - saml_groups_attribute: saml_groups_attribute - config_type: google & oidc - ldap_base_domain_components: ldap_base_domain_components - oidc_audience: oidc_audience - google_client_secret: google_client_secret - restricted_domain: restricted_domain - ldap_server_name: ldap_server_name - ldap_server_key: ldap_server_key - jit_enabled: true - oidc_scopes: oidc_scopes - oidc_client_id: oidc_client_id - jwt_roles_key: jwt_roles_key - jwt_last_name_key: jwt_last_name_key - google_client_id: google_client_id - jwt_first_name_key: jwt_first_name_key - oidc_client_secret: oidc_client_secret - oidc_token_url: oidc_token_url - ldap_role_mapping: ldap_role_mapping - idp_metadata_xml: idp_metadata_xml - saml_first_name_attribute: saml_first_name_attribute - properties: - config_type: - enum: - - google & oidc - - google - - saml - - google & saml - - oidc - type: string - google_client_id: - type: string - google_client_secret: - type: string - disable_email_password_login: - type: boolean - oidc_client_id: - minLength: 1 - type: string - oidc_client_secret: - minLength: 1 - type: string - oidc_scopes: - minLength: 1 - type: string - oidc_auth_url: - minLength: 1 - type: string - oidc_token_url: - minLength: 1 - type: string - oidc_userinfo_url: - minLength: 1 - type: string - oidc_audience: - type: string - jwt_email_key: - minLength: 1 - type: string - jwt_roles_key: - minLength: 1 - type: string - jwt_first_name_key: - minLength: 1 - type: string - jwt_last_name_key: - minLength: 1 - type: string - roles_mapping: - type: string - jit_enabled: - type: boolean - restricted_domain: - type: string - trigger_login_automatically: - type: boolean - idp_metadata_xml: - minLength: 1 - type: string - saml_first_name_attribute: - minLength: 1 - type: string - saml_last_name_attribute: - minLength: 1 - type: string - saml_groups_attribute: - type: string - saml_sync_group_claims: - type: boolean - ldap_sync_group_claims: - type: boolean - ldap_role_mapping: - type: string - ldap_server_url: - type: string - ldap_base_domain_components: - type: string - ldap_server_name: - type: string - ldap_server_key: - type: string - ldap_server_certificate: - type: string - required: - - config_type - - disable_email_password_login - title: SSO Config - type: object - _sso_config_get_200_response_data: - description: SSO configuration - oneOf: - - $ref: '#/components/schemas/SSO_Config' - _sso_config_get_200_response: + _access_requests__accessRequestId__get_200_response: + description: A single access request. example: data: - roles_mapping: roles_mapping - ldap_server_certificate: ldap_server_certificate - saml_last_name_attribute: saml_last_name_attribute - ldap_sync_group_claims: true - oidc_auth_url: oidc_auth_url - disable_email_password_login: true - ldap_server_url: ldap_server_url - trigger_login_automatically: true - oidc_userinfo_url: oidc_userinfo_url - jwt_email_key: jwt_email_key - saml_sync_group_claims: true - saml_groups_attribute: saml_groups_attribute - config_type: google & oidc - ldap_base_domain_components: ldap_base_domain_components - oidc_audience: oidc_audience - google_client_secret: google_client_secret - restricted_domain: restricted_domain - ldap_server_name: ldap_server_name - ldap_server_key: ldap_server_key - jit_enabled: true - oidc_scopes: oidc_scopes - oidc_client_id: oidc_client_id - jwt_roles_key: jwt_roles_key - jwt_last_name_key: jwt_last_name_key - google_client_id: google_client_id - jwt_first_name_key: jwt_first_name_key - oidc_client_secret: oidc_client_secret - oidc_token_url: oidc_token_url - ldap_role_mapping: ldap_role_mapping - idp_metadata_xml: idp_metadata_xml - saml_first_name_attribute: saml_first_name_attribute + updated_at: 2000-01-23T04:56:07.000+00:00 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + requesting_email: requesting_email + updated_by_id: updated_by_id + id: 0.8008281904610115 + status: PENDING success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_sso_config_get_200_response_data' + $ref: '#/components/schemas/_access_requests_get_200_response_data_inner' required: - data - success type: object - _sso_config_post_request_data_oneOf: + _access_requests__accessRequestId__patch_request: additionalProperties: false + description: The body of a request to update an access request's status. properties: - config_type: - enum: - - google - type: string - google_client_id: - type: string - google_client_secret: - type: string - disable_email_password_login: + operations: + description: "A list of operations to apply to the access request. See the\ + \ [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for\ + \ more details." + items: + $ref: '#/components/schemas/Replace_Operation' + type: array + required: + - operations + type: object + _access_requests__accessRequestId__patch_200_response: + description: An approved or denied access request object. + example: + data: + updated_at: 2000-01-23T04:56:07.000+00:00 + legacy_id: 6.027456183070403 + created_at: 2000-01-23T04:56:07.000+00:00 + requesting_email: requesting_email + updated_by_id: updated_by_id + id: 0.8008281904610115 + status: PENDING + success: true + properties: + success: + description: API request succeeded type: boolean + data: + $ref: '#/components/schemas/_access_requests_get_200_response_data_inner' required: - - config_type - - disable_email_password_login - - google_client_id - - google_client_secret + - data + - success type: object - _sso_config_post_request_data_oneOf_1: + _access_tokens_get_200_response_data_inner: additionalProperties: false + description: List of access tokens + example: + last4: last4 + updated_at: 2019-02-24T18:28:18.79Z + owner_legacy_id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + scopes: + - scopes + - scopes properties: - config_type: - enum: - - oidc - type: string - oidc_client_id: - minLength: 1 - type: string - oidc_client_secret: - minLength: 1 - type: string - oidc_scopes: - minLength: 1 - type: string - oidc_auth_url: - minLength: 1 - type: string - oidc_token_url: - minLength: 1 - type: string - oidc_userinfo_url: - minLength: 1 - type: string - oidc_audience: + id: + description: The uuid of the access token. + format: uuid type: string - jwt_email_key: + label: + description: The name of the access token. minLength: 1 type: string - jwt_roles_key: - minLength: 1 + description: + description: The description of the access token. + nullable: true type: string - jwt_first_name_key: - minLength: 1 + last4: + description: Last 4 characters of the access token secret type: string - jwt_last_name_key: - minLength: 1 + owner_legacy_id: + description: The legacy id of the user that created the token + type: number + scopes: + items: + type: string + type: array + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time type: string - roles_mapping: + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time type: string - jit_enabled: + required: + - created_at + - description + - id + - label + - last4 + - owner_legacy_id + - scopes + - updated_at + type: object + _access_tokens_get_200_response: + example: + data: + - last4: last4 + updated_at: 2019-02-24T18:28:18.79Z + owner_legacy_id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + scopes: + - scopes + - scopes + - last4: last4 + updated_at: 2019-02-24T18:28:18.79Z + owner_legacy_id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + scopes: + - scopes + - scopes + success: true + total_count: 6.027456183070403 + has_more: true + next_token: next_token + properties: + success: + description: API request succeeded type: boolean - restricted_domain: + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_access_tokens_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true type: string - trigger_login_automatically: - type: boolean - disable_email_password_login: + has_more: + description: Whether there are more items in the collection type: boolean required: - - config_type - - disable_email_password_login - - jit_enabled - - jwt_email_key - - jwt_first_name_key - - jwt_last_name_key - - oidc_auth_url - - oidc_client_id - - oidc_client_secret - - oidc_scopes - - oidc_token_url - - trigger_login_automatically + - data + - has_more + - next_token + - success + - total_count type: object - _sso_config_post_request_data_oneOf_2: - additionalProperties: false + _access_tokens_post_request: properties: - config_type: - enum: - - google & oidc - type: string - google_client_id: - type: string - google_client_secret: - type: string - disable_email_password_login: - type: boolean - oidc_client_id: - minLength: 1 - type: string - oidc_client_secret: - minLength: 1 - type: string - oidc_scopes: - minLength: 1 - type: string - oidc_auth_url: - minLength: 1 - type: string - oidc_token_url: - minLength: 1 + label: + description: The name of the access token. + minLength: 2 type: string - oidc_userinfo_url: - minLength: 1 + description: + description: "A short, user-facing description of the access token." + nullable: true type: string - oidc_audience: + scopes: + description: "Scopes to include in the access token. All valid scopes can\ + \ be found in the [documentation](https://docs.retool.com/reference/api/v2).\ + \ Any invalid scopes are ignored." + items: + type: string + type: array + required: + - label + - scopes + type: object + _access_tokens_post_200_response_data: + description: The created access token. + example: + access_token: access_token + last4: last4 + updated_at: 2019-02-24T18:28:18.79Z + owner_legacy_id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + scopes: + - scopes + - scopes + properties: + id: + description: The uuid of the access token. + format: uuid type: string - jwt_email_key: + label: + description: The name of the access token. minLength: 1 type: string - jwt_roles_key: - minLength: 1 + description: + description: The description of the access token. + nullable: true type: string - jwt_first_name_key: - minLength: 1 + last4: + description: Last 4 characters of the access token secret type: string - jwt_last_name_key: - minLength: 1 + owner_legacy_id: + description: The legacy id of the user that created the token + type: number + scopes: + items: + type: string + type: array + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time type: string - roles_mapping: + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time type: string - jit_enabled: - type: boolean - restricted_domain: + access_token: + description: Secret token for API access. Please note this as it will only + be visible once. type: string - trigger_login_automatically: + required: + - access_token + - created_at + - description + - id + - label + - last4 + - owner_legacy_id + - scopes + - updated_at + type: object + _access_tokens_post_200_response: + example: + data: + access_token: access_token + last4: last4 + updated_at: 2019-02-24T18:28:18.79Z + owner_legacy_id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + scopes: + - scopes + - scopes + success: true + properties: + success: + description: API request succeeded type: boolean + data: + $ref: '#/components/schemas/_access_tokens_post_200_response_data' required: - - config_type - - disable_email_password_login - - google_client_id - - google_client_secret - - jit_enabled - - jwt_email_key - - jwt_first_name_key - - jwt_last_name_key - - oidc_auth_url - - oidc_client_id - - oidc_client_secret - - oidc_scopes - - oidc_token_url - - trigger_login_automatically + - data + - success type: object - _sso_config_post_request_data_oneOf_3: + _access_tokens__accessTokenId_get_200_response_data: additionalProperties: false + description: The requested access token. + example: + last4: last4 + updated_at: 2019-02-24T18:28:18.79Z + owner_legacy_id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + scopes: + - scopes + - scopes properties: - config_type: - enum: - - saml - type: string - idp_metadata_xml: - minLength: 1 - type: string - saml_first_name_attribute: - minLength: 1 + id: + description: The uuid of the access token. + format: uuid type: string - saml_last_name_attribute: + label: + description: The name of the access token. minLength: 1 type: string - saml_groups_attribute: - type: string - saml_sync_group_claims: - type: boolean - ldap_sync_group_claims: - type: boolean - ldap_role_mapping: - type: string - ldap_server_url: - type: string - ldap_base_domain_components: + description: + description: The description of the access token. + nullable: true type: string - ldap_server_name: + last4: + description: Last 4 characters of the access token secret type: string - ldap_server_key: + owner_legacy_id: + description: The legacy id of the user that created the token + type: number + scopes: + items: + type: string + type: array + created_at: + example: 2019-02-08T11:45:48.899Z + format: date-time type: string - ldap_server_certificate: + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time type: string - jit_enabled: + required: + - created_at + - description + - id + - label + - last4 + - owner_legacy_id + - scopes + - updated_at + type: object + _access_tokens__accessTokenId_get_200_response: + example: + data: + last4: last4 + updated_at: 2019-02-24T18:28:18.79Z + owner_legacy_id: 0.8008281904610115 + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + scopes: + - scopes + - scopes + success: true + properties: + success: + description: API request succeeded type: boolean - restricted_domain: + data: + $ref: '#/components/schemas/_access_tokens__accessTokenId_get_200_response_data' + required: + - data + - success + type: object + _user_invites_get_200_response: + description: A list of user invites. + example: + data: + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + - metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token + properties: + success: + description: API request succeeded + type: boolean + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true type: string - trigger_login_automatically: - type: boolean - disable_email_password_login: + has_more: + description: Whether there are more items in the collection type: boolean required: - - config_type - - disable_email_password_login - - idp_metadata_xml - - jit_enabled - - saml_first_name_attribute - - saml_last_name_attribute - - saml_sync_group_claims - - trigger_login_automatically + - data + - has_more + - next_token + - success + - total_count type: object - _sso_config_post_request_data_oneOf_4: + _user_invites_post_request: additionalProperties: false + description: Body of request to create a user invite properties: - config_type: - enum: - - google & saml - type: string - google_client_id: - type: string - google_client_secret: - type: string - disable_email_password_login: - type: boolean - idp_metadata_xml: - minLength: 1 - type: string - saml_first_name_attribute: - minLength: 1 + email: + description: The email of the invitee + format: email type: string - saml_last_name_attribute: - minLength: 1 + defaultGroupIds: + description: Group IDs to invite the user to + items: + type: number + type: array + metadata: + additionalProperties: + nullable: true + type: object + required: + - email + type: object + _user_invites_post_200_response_data: + description: The created user invite with an invite link + example: + metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 6.027456183070403 + created_at: created_at + id: 0.8008281904610115 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + properties: + id: + type: number + legacy_id: + type: number + invited_by: type: string - saml_groups_attribute: + invited_email: + format: email type: string - saml_sync_group_claims: - type: boolean - ldap_sync_group_claims: - type: boolean - ldap_role_mapping: + expires_at: type: string - ldap_server_url: + claimed_by: + nullable: true type: string - ldap_base_domain_components: + claimed_at: + nullable: true type: string - ldap_server_name: + user_type: + enum: + - default + - mobile + - external + nullable: true type: string - ldap_server_key: + metadata: + additionalProperties: + nullable: true + default: {} + nullable: true + type: object + created_at: type: string - ldap_server_certificate: + invite_link: + description: User invite link expires 7 days after generation. + format: uri type: string - jit_enabled: + required: + - claimed_at + - claimed_by + - created_at + - expires_at + - id + - invited_by + - invited_email + - legacy_id + - metadata + - user_type + type: object + _user_invites_post_200_response: + example: + data: + metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 6.027456183070403 + created_at: created_at + id: 0.8008281904610115 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + success: true + properties: + success: + description: API request succeeded type: boolean - restricted_domain: - type: string - trigger_login_automatically: + data: + $ref: '#/components/schemas/_user_invites_post_200_response_data' + required: + - data + - success + type: object + _user_invites__userInviteId__get_200_response: + description: A single user invite. + example: + data: + metadata: + key: "" + expires_at: expires_at + claimed_at: claimed_at + user_type: default + legacy_id: 5.962133916683182 + created_at: created_at + id: 1.4658129805029452 + invited_by: invited_by + invited_email: invited_email + invite_link: https://openapi-generator.tech + claimed_by: claimed_by + success: true + properties: + success: + description: API request succeeded type: boolean + data: + $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' required: - - config_type - - disable_email_password_login - - google_client_id - - google_client_secret - - idp_metadata_xml - - jit_enabled - - saml_first_name_attribute - - saml_last_name_attribute - - saml_sync_group_claims - - trigger_login_automatically + - data + - success type: object - _sso_config_post_request_data: - description: This object represents the SSO configuration for an organization - or space. See https://docs.retool.com/sso for more information. - oneOf: - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf' - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf_1' - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf_2' - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf_3' - - $ref: '#/components/schemas/_sso_config_post_request_data_oneOf_4' - _sso_config_post_request: - additionalProperties: false - description: Shape of SSO config + _user_invites__userInviteId__user_attributes_post_request: + description: The body of a request to add a user attribute or update an existing + user attribute on a user invite. properties: + name: + description: The name of the user attribute (must match an existing attribute + exactly) + type: string + value: + description: The value of the user attribute + nullable: true + type: string + required: + - name + - value + type: object + _user_invites__userInviteId__user_attributes_post_200_response_data: + example: + metadata: + key: "" + properties: + metadata: + additionalProperties: + nullable: true + default: {} + description: "The updated user invite metadata, containing the new attribute\ + \ value" + type: object + required: + - metadata + type: object + _user_invites__userInviteId__user_attributes_post_200_response: + example: data: - $ref: '#/components/schemas/_sso_config_post_request_data' + metadata: + key: "" + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes_post_200_response_data' required: - data + - success type: object - _sso_config_post_200_response_data: - description: Result of setting SSO configuration - oneOf: - - $ref: '#/components/schemas/SSO_Config' - _sso_config_post_200_response: + _user_invites__userInviteId__user_attributes__attributeName__delete_200_response_data: + example: + metadata: + key: "" + properties: + metadata: + additionalProperties: + nullable: true + default: {} + description: The updated user metadata + type: object + required: + - metadata + type: object + _user_invites__userInviteId__user_attributes__attributeName__delete_200_response: example: data: - roles_mapping: roles_mapping - ldap_server_certificate: ldap_server_certificate - saml_last_name_attribute: saml_last_name_attribute - ldap_sync_group_claims: true - oidc_auth_url: oidc_auth_url - disable_email_password_login: true - ldap_server_url: ldap_server_url - trigger_login_automatically: true - oidc_userinfo_url: oidc_userinfo_url - jwt_email_key: jwt_email_key - saml_sync_group_claims: true - saml_groups_attribute: saml_groups_attribute - config_type: google & oidc - ldap_base_domain_components: ldap_base_domain_components - oidc_audience: oidc_audience - google_client_secret: google_client_secret - restricted_domain: restricted_domain - ldap_server_name: ldap_server_name - ldap_server_key: ldap_server_key - jit_enabled: true - oidc_scopes: oidc_scopes - oidc_client_id: oidc_client_id - jwt_roles_key: jwt_roles_key - jwt_last_name_key: jwt_last_name_key - google_client_id: google_client_id - jwt_first_name_key: jwt_first_name_key - oidc_client_secret: oidc_client_secret - oidc_token_url: oidc_token_url - ldap_role_mapping: ldap_role_mapping - idp_metadata_xml: idp_metadata_xml - saml_first_name_attribute: saml_first_name_attribute + metadata: + key: "" success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_sso_config_post_200_response_data' + $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes__attributeName__delete_200_response_data' required: - data - success type: object - _user_attributes_get_200_response_data_inner: - description: This object represents user attributes. + _resources_get_200_response_data_inner: + additionalProperties: false + description: Resource example: - name: name - data_type: string - default_value: default_value - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - label: label - intercom_attribute_name: intercom_attribute_name + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name properties: id: - description: The id of the user attribute - format: uuid - type: string - name: - description: The name of the user attribute - maxLength: 255 - minLength: 1 - pattern: "^[a-z0-9\\_]+$" - type: string - label: - description: The label of the user attribute + description: The uuid or name for the resource. type: string - data_type: - description: "The data type of the user attribute. One of types `string`,\ - \ `number`, or `json`" + type: + description: The type of resource. enum: - - string - - number - - json - type: string - default_value: - description: "The default value of the user attribute, assigned to all users\ - \ without the attribute set" - nullable: true + - airflow + - alloydb + - asana + - athena + - basecamp + - bigid + - bigquery + - cassandra + - circleci + - closeio + - cosmosdb + - couchdb + - databricks + - databricksLakebase + - datadog + - datastore + - dbServer + - denodo + - dynamodb + - elasticsearch + - firebase + - front + - gcs + - github + - googleAnalytics + - googleCalendar + - googleDocs + - googleMaps + - googleSearchConsole + - googlesheets + - graphql + - grpc + - hubspot + - jdbc + - jira + - lambda + - launchdarkly + - microsoftTeams + - mongodb + - mssql + - mysql + - notion + - onesignal + - openAI + - openapi + - oracledb + - postgresql + - presto + - redis + - redshift + - restapi + - rethinkdb + - retoolEmail + - retoolAI + - retoolDb + - retoolStorage + - s3 + - salesforce + - saphana + - sendgrid + - shell + - slack + - slackopenapi + - smtp + - snowflake + - stripe + - twilio + - vertica + - aiProvider type: string - intercom_attribute_name: - description: The name of the Intercom user attribute that this attribute - should be mapped to - maxLength: 255 + display_name: minLength: 1 - nullable: true - pattern: "^[a-z0-9\\_]+$" + type: string + protected: + description: Whether the resource is protected in source control + type: boolean + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z type: string required: - - data_type - - default_value + - created_at + - display_name - id - - intercom_attribute_name - - label - - name + - protected + - type + - updated_at type: object - _user_attributes_get_200_response: - description: A list of user attributes. + _resources_get_200_response: + description: A paginated list of resources. example: data: - - name: name - data_type: string - default_value: default_value - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - label: label - intercom_attribute_name: intercom_attribute_name - - name: name - data_type: string - default_value: default_value - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - label: label - intercom_attribute_name: intercom_attribute_name + - protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + - protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name success: true total_count: 0.8008281904610115 has_more: true @@ -7426,7 +11946,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_user_attributes_get_200_response_data_inner' + $ref: '#/components/schemas/_resources_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -7445,697 +11965,762 @@ components: - success - total_count type: object - _permissions_listObjects_post_request_subject_oneOf: + Postgres_Options_database_options_anyOf_ssl_settings: additionalProperties: false + example: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true properties: - type: - enum: - - group + enabled: + type: boolean + client_key: + nullable: true type: string - id: - description: The ID number of the group + client_cert: nullable: true - type: number - required: - - id - - type - type: object - _permissions_listObjects_post_request_subject_oneOf_1: - additionalProperties: false - properties: - type: - enum: - - user type: string - id: - pattern: "user_([a-z0-9]+)" + ca_cert: + nullable: true type: string - required: - - id - - type type: object - _permissions_listObjects_post_request_subject: - oneOf: - - $ref: '#/components/schemas/_permissions_listObjects_post_request_subject_oneOf' - - $ref: '#/components/schemas/_permissions_listObjects_post_request_subject_oneOf_1' - _permissions_listObjects_post_request: + Postgres_Options_database_options_anyOf_ssh_tunnel_options: additionalProperties: false + example: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username properties: - subject: - $ref: '#/components/schemas/_permissions_listObjects_post_request_subject' - object_type: - enum: - - folder - - app - - resource - - resource_configuration + enabled: + type: boolean + host: + type: string + port: + type: string + username: + type: string + password: + type: string + private_key_name: type: string required: - - object_type - - subject + - enabled + - host + - port type: object - _permissions_listObjects_post_200_response_data_inner_oneOf: + Postgres_Options_database_options_anyOf: + additionalProperties: false example: - access_level: own - id: id - type: folder - properties: - type: - enum: - - folder - - app - - resource - - resource_configuration + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + properties: + host: type: string - id: - description: The id of the object + port: type: string - access_level: - description: The access level of the object - enum: - - own - - edit - - use + name: + type: string + username: + type: string + password: type: string + ssl_settings: + $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_ssl_settings' + ssh_tunnel_options: + $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_ssh_tunnel_options' + disable_converting_queries_to_prepared_statements: + description: This allows you to use Javascript to dynamically generate SQL + but also turns off SQL injection protection. + type: boolean + show_write_gui_only: + description: This allows you to enable writing via only the restrictive + GUI query editor. + type: boolean required: - - access_level - - id - - type + - host + - port type: object - _permissions_listObjects_post_200_response_data_inner: - oneOf: - - $ref: '#/components/schemas/_permissions_listObjects_post_200_response_data_inner_oneOf' - _permissions_listObjects_post_200_response: - example: - data: - - access_level: own - id: id - type: folder - - access_level: own - id: id - type: folder - success: true - total_count: 0.8008281904610115 - has_more: true - next_token: next_token + Postgres_Options_database_options_anyOf_1: + additionalProperties: false properties: - success: - description: API request succeeded - type: boolean - data: - description: An array of requested items - items: - $ref: '#/components/schemas/_permissions_listObjects_post_200_response_data_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true + connection_string: type: string - has_more: - description: Whether there are more items in the collection + disable_converting_queries_to_prepared_statements: + description: This allows you to use Javascript to dynamically generate SQL + but also turns off SQL injection protection. + type: boolean + show_write_gui_only: + description: This allows you to enable writing via only the restrictive + GUI query editor. type: boolean + type: object + Postgres_Options_database_options: + anyOf: + - $ref: '#/components/schemas/Postgres_Options_database_options_anyOf' + - $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_1' + Postgres_Options: + additionalProperties: false + example: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + properties: + database_options: + $ref: '#/components/schemas/Postgres_Options_database_options' required: - - data - - has_more - - next_token - - success - - total_count + - database_options + title: Postgres Options type: object - _permissions_grant_post_request_object_oneOf: + MySQL_Options_database_options: + additionalProperties: false properties: - type: - enum: - - folder - - app - - resource - - resource_configuration + host: type: string - id: - description: The id of the object + port: + type: string + name: + type: string + username: + type: string + password: type: string + ssl_settings: + $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_ssl_settings' + ssh_tunnel_options: + $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_ssh_tunnel_options' + disable_converting_queries_to_prepared_statements: + description: This allows you to use Javascript to dynamically generate SQL + but also turns off SQL injection protection. + type: boolean + show_write_gui_only: + description: This allows you to enable writing via only the restrictive + GUI query editor. + type: boolean + use_dynamic_database_names: + description: Enable this to allow the Database Name to be overridden by + a dynamically generated value. This allows using Retool with a database + that has been sharded into several different databases. + type: boolean + use_dynamic_database_hosts: + description: Enable this to allow the Database Host to be overridden by + a dynamically generated value. This allows using Retool with several different + databases. + type: boolean + convert_mysql_dates_to_javascript: + default: true + description: This allows you to turn your MySQL date strings into Javascript + Date objects. + type: boolean required: - - id - - type + - host + - port type: object - _permissions_grant_post_request_object: - oneOf: - - $ref: '#/components/schemas/_permissions_grant_post_request_object_oneOf' - _permissions_grant_post_request: + MySQL_Options: additionalProperties: false properties: - subject: - $ref: '#/components/schemas/_permissions_listObjects_post_request_subject' - object: - $ref: '#/components/schemas/_permissions_grant_post_request_object' - access_level: - description: The access level that the group should have for the object - enum: - - own - - edit - - use - type: string + database_options: + $ref: '#/components/schemas/MySQL_Options_database_options' required: - - access_level - - object - - subject + - database_options + title: MySQL Options type: object - _permissions_revoke_post_request: + Redshift_Options_database_options_ssl_settings: additionalProperties: false properties: - subject: - $ref: '#/components/schemas/_permissions_listObjects_post_request_subject' - object: - $ref: '#/components/schemas/_permissions_grant_post_request_object' - required: - - object - - subject + enabled: + type: boolean type: object - _permissions_revoke_post_200_response_data_inner_anyOf: - example: - access_level: own - id: id - type: folder + Redshift_Options_database_options: + additionalProperties: false properties: - type: - enum: - - folder - type: string - id: - description: The id of the folder - pattern: "^(app|workflow|resource)_([0-9]\\d*)$" + host: type: string - access_level: - description: The access level of the folder - enum: - - own - - edit - - use + port: type: string - required: - - access_level - - id - - type - type: object - _permissions_revoke_post_200_response_data_inner_anyOf_1: - properties: - type: - enum: - - app + name: type: string - id: - description: The app ID. - format: uuid + username: type: string - access_level: - description: The access level of the app - enum: - - own - - edit - - use + password: type: string + ssl_settings: + $ref: '#/components/schemas/Redshift_Options_database_options_ssl_settings' + disable_converting_queries_to_prepared_statements: + description: This allows you to use Javascript to dynamically generate SQL + but also turns off SQL injection protection. + type: boolean + show_write_gui_only: + description: This allows you to enable writing via only the restrictive + GUI query editor. + type: boolean required: - - access_level - - id - - type + - host + - port + type: object + Redshift_Options: + additionalProperties: false + properties: + database_options: + $ref: '#/components/schemas/Redshift_Options_database_options' + required: + - database_options + title: Redshift Options type: object - _permissions_revoke_post_200_response_data_inner: - anyOf: - - $ref: '#/components/schemas/_permissions_revoke_post_200_response_data_inner_anyOf' - - $ref: '#/components/schemas/_permissions_revoke_post_200_response_data_inner_anyOf_1' - - $ref: '#/components/schemas/_permissions_listObjects_post_200_response_data_inner_oneOf' - _permissions_revoke_post_200_response: - example: - data: - - access_level: own - id: id - type: folder - - access_level: own - id: id - type: folder - success: true - total_count: 0.8008281904610115 - has_more: true - next_token: next_token + Snowflake_Options_database_options: + additionalProperties: false properties: - success: - description: API request succeeded - type: boolean - data: - description: An array of requested items - items: - $ref: '#/components/schemas/_permissions_revoke_post_200_response_data_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true + name: type: string - has_more: - description: Whether there are more items in the collection + schema: + type: string + warehouse: + type: string + disable_converting_queries_to_prepared_statements: + description: This allows you to use Javascript to dynamically generate SQL + but also turns off SQL injection protection. + type: boolean + show_write_gui_only: + description: This allows you to enable writing via only the restrictive + GUI query editor. type: boolean required: - - data - - has_more - - next_token - - success - - total_count + - name type: object - _access_requests_get_200_response_data_inner: - description: Access Request - example: - legacy_id: 6.027456183070403 - requesting_email: requesting_email - updated_by_id: updated_by_id - id: 0.8008281904610115 - status: PENDING + Snowflake_Options_authentication_options_anyOf: + additionalProperties: false properties: - id: - type: number - status: + authentication_type: enum: - - PENDING - - APPROVED - - DENIED + - snowflake type: string - legacy_id: - type: number - requesting_email: + username: type: string - updated_by_id: - nullable: true + password: type: string required: - - id - - legacy_id - - requesting_email - - status - - updated_by_id + - authentication_type + - password + - username type: object - _access_requests_get_200_response: - description: A paginated list of access requests. - example: - data: - - legacy_id: 6.027456183070403 - requesting_email: requesting_email - updated_by_id: updated_by_id - id: 0.8008281904610115 - status: PENDING - - legacy_id: 6.027456183070403 - requesting_email: requesting_email - updated_by_id: updated_by_id - id: 0.8008281904610115 - status: PENDING - success: true - total_count: 1.4658129805029452 - has_more: true - next_token: next_token + Snowflake_Options_authentication_options_anyOf_1: + additionalProperties: false properties: - success: - description: API request succeeded - type: boolean - data: - description: An array of requested items - items: - $ref: '#/components/schemas/_access_requests_get_200_response_data_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true + authentication_type: + enum: + - snowflake_jwt + type: string + username: + type: string + private_key: + type: string + private_key_passphrase: type: string - has_more: - description: Whether there are more items in the collection - type: boolean required: - - data - - has_more - - next_token - - success - - total_count + - authentication_type + - private_key + - username type: object - _access_requests__accessRequestId__get_200_response: - description: A single access request. - example: - data: - legacy_id: 6.027456183070403 - requesting_email: requesting_email - updated_by_id: updated_by_id - id: 0.8008281904610115 - status: PENDING - success: true + Snowflake_Options_authentication_options_anyOf_2: + additionalProperties: false properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_access_requests_get_200_response_data_inner' + authentication_type: + enum: + - oauth2 + type: string + oauth2_client_id: + type: string + oauth2_client_secret: + type: string + oauth2_callback_url: + type: string required: - - data - - success + - authentication_type + - oauth2_client_id + - oauth2_client_secret type: object - _access_requests__accessRequestId__patch_request: + Snowflake_Options_authentication_options: + anyOf: + - $ref: '#/components/schemas/Snowflake_Options_authentication_options_anyOf' + - $ref: '#/components/schemas/Snowflake_Options_authentication_options_anyOf_1' + - $ref: '#/components/schemas/Snowflake_Options_authentication_options_anyOf_2' + Snowflake_Options: additionalProperties: false - description: The body of a request to update an access request's status. properties: - operations: - description: "A list of operations to apply to the access request. See the\ - \ [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for\ - \ more details." - items: - $ref: '#/components/schemas/_users__userId__patch_request_operations_inner_anyOf_2' - type: array + account_identifier: + type: string + database_options: + $ref: '#/components/schemas/Snowflake_Options_database_options' + user_role: + type: string + authentication_options: + $ref: '#/components/schemas/Snowflake_Options_authentication_options' required: - - operations + - account_identifier + - authentication_options + - database_options + title: Snowflake Options type: object - _access_requests__accessRequestId__patch_200_response: - description: An approved or denied access request object. - example: - data: - legacy_id: 6.027456183070403 - requesting_email: requesting_email - updated_by_id: updated_by_id - id: 0.8008281904610115 - status: PENDING - success: true + Rest_API_Options_authentication_options_anyOf: + additionalProperties: false properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_access_requests_get_200_response_data_inner' - required: - - data - - success - type: object - _user_invites_get_200_response: - description: A list of user invites. - example: - data: - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - success: true - total_count: 0.8008281904610115 - has_more: true - next_token: next_token + authentication_type: + enum: + - auth0 + type: string + auth0_domain: + type: string + auth0_client_id: + type: string + auth0_client_secret: + type: string + auth0_custom_audience: + type: string + required: + - auth0_client_id + - auth0_client_secret + - auth0_custom_audience + - auth0_domain + - authentication_type + type: object + Rest_API_Options_authentication_options_anyOf_1: + additionalProperties: false properties: - success: - description: API request succeeded - type: boolean - data: - description: An array of requested items - items: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true + authentication_type: + enum: + - aws4 type: string - has_more: - description: Whether there are more items in the collection + amazon_aws_region: + type: string + amazon_service_name: + type: string + amazon_access_key_id: + type: string + amazon_secret_access_key: + type: string + auth_with_default_credential_provider_chain: + type: boolean + enable_awsv4_authentication_via_headers: type: boolean required: - - data - - has_more - - next_token - - success - - total_count + - amazon_access_key_id + - amazon_aws_region + - amazon_secret_access_key + - amazon_service_name + - authentication_type type: object - _user_invites_post_request: + Rest_API_Options_authentication_options_anyOf_2: additionalProperties: false - description: Body of request to create a user invite properties: - email: - description: The email of the invitee - format: email + authentication_type: + enum: + - basic + type: string + basic_username: + type: string + basic_password: type: string - defaultGroupIds: - description: Group IDs to invite the user to - items: - type: number - type: array - metadata: - additionalProperties: - nullable: true - type: object required: - - email + - authentication_type + - basic_username type: object - _user_invites_post_200_response_data: - description: The created user invite with an invite link - example: - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 6.027456183070403 - created_at: created_at - id: 0.8008281904610115 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by + Rest_API_Options_authentication_options_anyOf_3: + additionalProperties: false properties: - id: - type: number - legacy_id: - type: number - invited_by: + authentication_type: + enum: + - digest type: string - invited_email: - format: email + digest_username: type: string - expires_at: + digest_password: type: string - claimed_by: - nullable: true + required: + - authentication_type + - digest_password + - digest_username + type: object + Rest_API_Options_authentication_options_anyOf_4_oauth1_signature_method: + anyOf: + - enum: + - HMAC-SHA1 + type: string + - enum: + - HMAC-SHA256 + type: string + - enum: + - PLAINTEXT + type: string + Rest_API_Options_authentication_options_anyOf_4: + additionalProperties: false + properties: + authentication_type: + enum: + - oauth1 type: string - claimed_at: - nullable: true + oauth1_signature_method: + $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_4_oauth1_signature_method' + oauth1_consumer_key: type: string - user_type: - enum: - - default - - mobile - - external - nullable: true + oauth1_consumer_secret: type: string - metadata: - additionalProperties: - nullable: true - default: {} - nullable: true - type: object - created_at: + oauth1_token_key: type: string - invite_link: - format: uri + oauth1_token_secret: + type: string + oauth1_realm_parameter: type: string required: - - claimed_at - - claimed_by - - created_at - - expires_at - - id - - invited_by - - invited_email - - legacy_id - - metadata - - user_type + - authentication_type + - oauth1_consumer_key + - oauth1_consumer_secret + - oauth1_realm_parameter + - oauth1_signature_method + - oauth1_token_key + - oauth1_token_secret type: object - _user_invites_post_200_response: - example: - data: - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 6.027456183070403 - created_at: created_at - id: 0.8008281904610115 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - success: true + Rest_API_Options_authentication_options_anyOf_5: + additionalProperties: false properties: - success: - description: API request succeeded + authentication_type: + enum: + - oauth2 + type: string + oauth2_client_id: + type: string + oauth2_client_secret: + type: string + oauth2_callback_url: + type: string + oauth2_auth_url: + type: string + oauth2_access_token_url: + type: string + oauth2_scope: + type: string + oauth2_audience: + type: string + oauth2_share_user_credentials: type: boolean - data: - $ref: '#/components/schemas/_user_invites_post_200_response_data' + verify_session_url: + type: string + oauth2_access_token: + type: string + oauth2_refresh_token: + type: string + oauth2_id_token: + type: string + oauth2_access_token_lifespan_seconds: + nullable: true + type: number required: - - data - - success + - authentication_type + - oauth2_access_token_url + - oauth2_auth_url + - oauth2_client_id + - oauth2_client_secret type: object - _user_invites__userInviteId__get_200_response: - description: A single user invite. - example: - data: - metadata: - key: "" - expires_at: expires_at - claimed_at: claimed_at - user_type: default - legacy_id: 5.962133916683182 - created_at: created_at - id: 1.4658129805029452 - invited_by: invited_by - invited_email: invited_email - invite_link: https://openapi-generator.tech - claimed_by: claimed_by - success: true + Rest_API_Options_authentication_options_anyOf_6: + additionalProperties: false + properties: + authentication_type: + enum: + - none + type: string + required: + - authentication_type + type: object + Rest_API_Options_authentication_options: + anyOf: + - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf' + - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_1' + - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_2' + - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_3' + - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_4' + - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_5' + - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_6' + description: Note that custom auth is not yet supported. + Rest_API_Options: + additionalProperties: false properties: - success: - description: API request succeeded + base_url: + description: Use the absolute URL (e.g. https://example.com). + type: string + url_parameters: + items: + items: + type: string + type: array + type: array + headers: + items: + items: + type: string + type: array + type: array + extra_body_values: + description: Extra body values are not passed for GET or HEAD requests. + items: + items: + type: string + type: array + type: array + cookies_to_forward: + description: You can use the pattern COOKIE_your_cookie_name in the Headers + section in order to implement the double-cookie submit pattern. + items: + type: string + type: array + forward_all_cookies: + description: This is useful if you have dynamic cookie names. type: boolean - data: - $ref: '#/components/schemas/_groups__groupId__get_200_response_data_user_invites_inner' + authentication_options: + $ref: '#/components/schemas/Rest_API_Options_authentication_options' required: - - data - - success + - base_url + title: Rest API Options type: object - _user_invites__userInviteId__user_attributes_post_request: - description: The body of a request to add a user attribute or update an existing - user attribute on a user invite. + _resources_post_request_options: + anyOf: + - $ref: '#/components/schemas/Postgres_Options' + - $ref: '#/components/schemas/MySQL_Options' + - $ref: '#/components/schemas/Redshift_Options' + - $ref: '#/components/schemas/Snowflake_Options' + - $ref: '#/components/schemas/Rest_API_Options' + _resources_post_request: properties: - name: - description: The name of the user attribute (must match an existing attribute - exactly) + type: + description: The type of resource. + enum: + - dbServer + - mysql + - postgresql + - redshift + - restapi + - snowflake type: string - value: - description: The value of the user attribute - nullable: true + display_name: + minLength: 1 type: string + options: + $ref: '#/components/schemas/_resources_post_request_options' required: - - name - - value + - display_name + - options + - type type: object - _user_invites__userInviteId__user_attributes_post_200_response_data: + _resources_post_200_response_data: + additionalProperties: false + description: The created resource. example: - metadata: - key: "" + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name properties: - metadata: - additionalProperties: - nullable: true - default: {} - description: "The updated user invite metadata, containing the new attribute\ - \ value" - type: object + id: + description: The uuid or name for the resource. + type: string + type: + description: The type of resource. + enum: + - airflow + - alloydb + - asana + - athena + - basecamp + - bigid + - bigquery + - cassandra + - circleci + - closeio + - cosmosdb + - couchdb + - databricks + - databricksLakebase + - datadog + - datastore + - dbServer + - denodo + - dynamodb + - elasticsearch + - firebase + - front + - gcs + - github + - googleAnalytics + - googleCalendar + - googleDocs + - googleMaps + - googleSearchConsole + - googlesheets + - graphql + - grpc + - hubspot + - jdbc + - jira + - lambda + - launchdarkly + - microsoftTeams + - mongodb + - mssql + - mysql + - notion + - onesignal + - openAI + - openapi + - oracledb + - postgresql + - presto + - redis + - redshift + - restapi + - rethinkdb + - retoolEmail + - retoolAI + - retoolDb + - retoolStorage + - s3 + - salesforce + - saphana + - sendgrid + - shell + - slack + - slackopenapi + - smtp + - snowflake + - stripe + - twilio + - vertica + - aiProvider + type: string + display_name: + minLength: 1 + type: string + protected: + description: Whether the resource is protected in source control + type: boolean + created_at: + example: 2019-02-08T11:45:48.899Z + type: string + updated_at: + example: 2019-02-24T18:28:18.790Z + type: string required: - - metadata + - created_at + - display_name + - id + - protected + - type + - updated_at type: object - _user_invites__userInviteId__user_attributes_post_200_response: + _resources_post_200_response: example: data: - metadata: - key: "" + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes_post_200_response_data' + $ref: '#/components/schemas/_resources_post_200_response_data' required: - data - success type: object - _user_invites__userInviteId__user_attributes__attributeName__delete_200_response_data: - example: - metadata: - key: "" - properties: - metadata: - additionalProperties: - nullable: true - default: {} - description: The updated user metadata - type: object - required: - - metadata - type: object - _user_invites__userInviteId__user_attributes__attributeName__delete_200_response: + _resources__resourceId__get_200_response: + description: A single resource example: data: - metadata: - key: "" + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_user_invites__userInviteId__user_attributes__attributeName__delete_200_response_data' + $ref: '#/components/schemas/_resources_get_200_response_data_inner' required: - data - success type: object - _resources_get_200_response_data_inner_id: - anyOf: - - format: uuid - type: string - - format: uuid - type: string - - enum: - - retool_db - type: string - - enum: - - retool_email - type: string - - enum: - - retool_storage - type: string - - enum: - - retool_ai - type: string - description: The uuid for the resource. - _resources_get_200_response_data_inner: + _resources__resourceId__patch_request: + additionalProperties: false + description: The body of a request to update a resource. + properties: + operations: + description: "A list of operations to apply to the resource. See the [JSON\ + \ PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." + items: + $ref: '#/components/schemas/Replace_Operation' + type: array + required: + - operations + type: object + _resources__resourceId__patch_200_response_data: additionalProperties: false - description: Resource + description: The updated resource. example: + protected: true updated_at: 2019-02-24T18:28:18.790Z created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + id: id type: airflow display_name: display_name properties: id: - $ref: '#/components/schemas/_resources_get_200_response_data_inner_id' + description: The uuid or name for the resource. + type: string type: description: The type of resource. enum: @@ -8152,8 +12737,10 @@ components: - cosmosdb - couchdb - databricks + - databricksLakebase - datadog - datastore + - dbServer - denodo - dynamodb - elasticsearch @@ -8162,6 +12749,8 @@ components: - gcs - github - googleAnalytics + - googleCalendar + - googleDocs - googleMaps - googleSearchConsole - googlesheets @@ -8187,7 +12776,6 @@ components: - redshift - restapi - rethinkdb - - rockset - retoolEmail - retoolAI - retoolDb @@ -8204,965 +12792,1164 @@ components: - stripe - twilio - vertica + - aiProvider type: string display_name: minLength: 1 type: string + protected: + description: Whether the resource is protected in source control + type: boolean created_at: example: 2019-02-08T11:45:48.899Z type: string updated_at: example: 2019-02-24T18:28:18.790Z type: string - required: - - created_at - - display_name - - id - - type - - updated_at - type: object - _resources_get_200_response: - description: A paginated list of resources. - example: - data: - - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name - - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name - success: true - total_count: 0.8008281904610115 - has_more: true - next_token: next_token - properties: - success: - description: API request succeeded - type: boolean - data: - description: An array of requested items - items: - $ref: '#/components/schemas/_resources_get_200_response_data_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true - type: string - has_more: - description: Whether there are more items in the collection - type: boolean - required: - - data - - has_more - - next_token - - success - - total_count - type: object - Postgres_Options_database_options_anyOf_ssl_settings: - additionalProperties: false - example: - client_key: client_key - client_cert: client_cert - ca_cert: ca_cert - enabled: true - properties: - enabled: - type: boolean - client_key: - nullable: true - type: string - client_cert: - nullable: true - type: string - ca_cert: - nullable: true - type: string - type: object - Postgres_Options_database_options_anyOf_ssh_tunnel_options: - additionalProperties: false - example: - password: password - port: port - host: host - private_key_name: private_key_name - enabled: true - username: username - properties: - enabled: - type: boolean - host: - type: string - port: - type: string - username: - type: string - password: - type: string - private_key_name: - type: string - required: - - enabled - - host - - port - type: object - Postgres_Options_database_options_anyOf: - additionalProperties: false - example: - ssh_tunnel_options: - password: password - port: port - host: host - private_key_name: private_key_name - enabled: true - username: username - password: password - disable_converting_queries_to_prepared_statements: true - port: port - host: host - name: name - show_write_gui_only: true - ssl_settings: - client_key: client_key - client_cert: client_cert - ca_cert: ca_cert - enabled: true - username: username - properties: - host: - type: string - port: - type: string - name: - type: string - username: - type: string - password: - type: string - ssl_settings: - $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_ssl_settings' - ssh_tunnel_options: - $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_ssh_tunnel_options' - disable_converting_queries_to_prepared_statements: - description: This allows you to use Javascript to dynamically generate SQL - but also turns off SQL injection protection. - type: boolean - show_write_gui_only: - description: This allows you to enable writing via only the restrictive - GUI query editor. - type: boolean - required: - - host - - port - type: object - Postgres_Options_database_options_anyOf_1: - additionalProperties: false - properties: - connection_string: - type: string - disable_converting_queries_to_prepared_statements: - description: This allows you to use Javascript to dynamically generate SQL - but also turns off SQL injection protection. - type: boolean - show_write_gui_only: - description: This allows you to enable writing via only the restrictive - GUI query editor. - type: boolean - type: object - Postgres_Options_database_options: - anyOf: - - $ref: '#/components/schemas/Postgres_Options_database_options_anyOf' - - $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_1' - Postgres_Options: - additionalProperties: false - example: - database_options: - ssh_tunnel_options: - password: password - port: port - host: host - private_key_name: private_key_name - enabled: true - username: username - password: password - disable_converting_queries_to_prepared_statements: true - port: port - host: host - name: name - show_write_gui_only: true - ssl_settings: - client_key: client_key - client_cert: client_cert - ca_cert: ca_cert - enabled: true - username: username - properties: - database_options: - $ref: '#/components/schemas/Postgres_Options_database_options' - required: - - database_options - title: Postgres Options - type: object - MySQL_Options_database_options: - additionalProperties: false - properties: - host: - type: string - port: - type: string - name: - type: string - username: - type: string - password: - type: string - ssl_settings: - $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_ssl_settings' - ssh_tunnel_options: - $ref: '#/components/schemas/Postgres_Options_database_options_anyOf_ssh_tunnel_options' - disable_converting_queries_to_prepared_statements: - description: This allows you to use Javascript to dynamically generate SQL - but also turns off SQL injection protection. - type: boolean - show_write_gui_only: - description: This allows you to enable writing via only the restrictive - GUI query editor. - type: boolean - use_dynamic_database_names: - description: Enable this to allow the Database Name to be overridden by - a dynamically generated value. This allows using Retool with a database - that has been sharded into several different databases. - type: boolean - use_dynamic_database_hosts: - description: Enable this to allow the Database Host to be overridden by - a dynamically generated value. This allows using Retool with several different - databases. - type: boolean - convert_mysql_dates_to_javascript: - default: true - description: This allows you to turn your MySQL date strings into Javascript - Date objects. - type: boolean - required: - - host - - port - type: object - MySQL_Options: - additionalProperties: false - properties: - database_options: - $ref: '#/components/schemas/MySQL_Options_database_options' - required: - - database_options - title: MySQL Options + required: + - created_at + - display_name + - id + - protected + - type + - updated_at type: object - Redshift_Options_database_options_ssl_settings: - additionalProperties: false + _resources__resourceId__patch_200_response: + example: + data: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + success: true properties: - enabled: + success: + description: API request succeeded type: boolean + data: + $ref: '#/components/schemas/_resources__resourceId__patch_200_response_data' + required: + - data + - success type: object - Redshift_Options_database_options: - additionalProperties: false + _resource_configurations_get_200_response_data_inner_environment: + description: Environment + example: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - host: - type: string - port: + id: + format: uuid type: string name: type: string - username: + description: + nullable: true type: string - password: + color: + example: '#FFFFFF' + pattern: "^#[A-Fa-f0-9]{6}$" type: string - ssl_settings: - $ref: '#/components/schemas/Redshift_Options_database_options_ssl_settings' - disable_converting_queries_to_prepared_statements: - description: This allows you to use Javascript to dynamically generate SQL - but also turns off SQL injection protection. - type: boolean - show_write_gui_only: - description: This allows you to enable writing via only the restrictive - GUI query editor. + default: type: boolean + created_at: + type: string + updated_at: + type: string required: - - host - - port - type: object - Redshift_Options: - additionalProperties: false - properties: - database_options: - $ref: '#/components/schemas/Redshift_Options_database_options' - required: - - database_options - title: Redshift Options + - color + - created_at + - default + - description + - id + - name + - updated_at type: object - Snowflake_Options_database_options: + _resource_configurations_get_200_response_data_inner: additionalProperties: false + description: A list of resource configurations. + example: + environment: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2019-02-24T18:28:18.790Z + resource: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + options: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - name: + id: + description: The uuid for the resource configuration. + format: uuid type: string - schema: + resource: + $ref: '#/components/schemas/_resources_get_200_response_data_inner' + environment: + $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' + options: + $ref: '#/components/schemas/_resources_post_request_options' + created_at: + example: 2019-02-08T11:45:48.899Z type: string - warehouse: + updated_at: + example: 2019-02-24T18:28:18.790Z type: string - disable_converting_queries_to_prepared_statements: - description: This allows you to use Javascript to dynamically generate SQL - but also turns off SQL injection protection. + required: + - created_at + - environment + - id + - options + - resource + - updated_at + type: object + _resource_configurations_get_200_response: + example: + data: + - environment: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2019-02-24T18:28:18.790Z + resource: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + options: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - environment: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2019-02-24T18:28:18.790Z + resource: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + options: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token + properties: + success: + description: API request succeeded type: boolean - show_write_gui_only: - description: This allows you to enable writing via only the restrictive - GUI query editor. + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection type: boolean required: - - name + - data + - has_more + - next_token + - success + - total_count type: object - Snowflake_Options_authentication_options_anyOf: - additionalProperties: false + _resource_configurations_post_request: properties: - authentication_type: - enum: - - snowflake - type: string - username: + resource_id: + description: "A UUID that uniquely identifies a resource. This is also referenced\ + \ within the Retool app. For example, when you edit a resource, the ID\ + \ can be found in the url." type: string - password: + environment_id: + description: A UUID that uniquely identifies an environment. + format: uuid type: string + options: + $ref: '#/components/schemas/_resources_post_request_options' required: - - authentication_type - - password - - username + - environment_id + - options + - resource_id type: object - Snowflake_Options_authentication_options_anyOf_1: + _resource_configurations_post_200_response_data: additionalProperties: false + description: The created resource configuration. + example: + environment: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2019-02-24T18:28:18.790Z + resource: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + options: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - authentication_type: - enum: - - snowflake_jwt - type: string - username: + id: + description: The uuid for the resource configuration. + format: uuid type: string - private_key: + resource: + $ref: '#/components/schemas/_resources_get_200_response_data_inner' + environment: + $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' + options: + $ref: '#/components/schemas/_resources_post_request_options' + created_at: + example: 2019-02-08T11:45:48.899Z type: string - private_key_passphrase: + updated_at: + example: 2019-02-24T18:28:18.790Z type: string required: - - authentication_type - - private_key - - username + - created_at + - environment + - id + - options + - resource + - updated_at type: object - Snowflake_Options_authentication_options_anyOf_2: + _resource_configurations_post_200_response: + example: + data: + environment: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2019-02-24T18:28:18.790Z + resource: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + options: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_resource_configurations_post_200_response_data' + required: + - data + - success + type: object + _resource_configurations__configurationId__get_200_response: additionalProperties: false + description: Resource Configuration + example: + environment: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2019-02-24T18:28:18.790Z + resource: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + options: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - authentication_type: - enum: - - oauth2 - type: string - oauth2_client_id: + id: + description: The uuid for the resource configuration. + format: uuid type: string - oauth2_client_secret: + resource: + $ref: '#/components/schemas/_resources_get_200_response_data_inner' + environment: + $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' + options: + $ref: '#/components/schemas/_resources_post_request_options' + created_at: + example: 2019-02-08T11:45:48.899Z type: string - oauth2_callback_url: + updated_at: + example: 2019-02-24T18:28:18.790Z type: string required: - - authentication_type - - oauth2_client_id - - oauth2_client_secret + - created_at + - environment + - id + - options + - resource + - updated_at type: object - Snowflake_Options_authentication_options: - anyOf: - - $ref: '#/components/schemas/Snowflake_Options_authentication_options_anyOf' - - $ref: '#/components/schemas/Snowflake_Options_authentication_options_anyOf_1' - - $ref: '#/components/schemas/Snowflake_Options_authentication_options_anyOf_2' - Snowflake_Options: + _resource_configurations__configurationId__patch_request: additionalProperties: false + description: The body of a request to update a resource configuration. properties: - account_identifier: - type: string - database_options: - $ref: '#/components/schemas/Snowflake_Options_database_options' - user_role: - type: string - authentication_options: - $ref: '#/components/schemas/Snowflake_Options_authentication_options' + operations: + description: "A list of operations to apply to the resource configuration.\ + \ See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902)\ + \ for more details." + items: + $ref: '#/components/schemas/Replace_Operation' + type: array required: - - account_identifier - - authentication_options - - database_options - title: Snowflake Options + - operations type: object - Rest_API_Options_authentication_options_anyOf: + _resource_configurations__configurationId__patch_200_response_data: additionalProperties: false + description: The updated resource configuration. + example: + environment: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2019-02-24T18:28:18.790Z + resource: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + options: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - authentication_type: - enum: - - auth0 - type: string - auth0_domain: - type: string - auth0_client_id: + id: + description: The uuid for the resource configuration. + format: uuid type: string - auth0_client_secret: + resource: + $ref: '#/components/schemas/_resources_get_200_response_data_inner' + environment: + $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' + options: + $ref: '#/components/schemas/_resources_post_request_options' + created_at: + example: 2019-02-08T11:45:48.899Z type: string - auth0_custom_audience: + updated_at: + example: 2019-02-24T18:28:18.790Z type: string required: - - auth0_client_id - - auth0_client_secret - - auth0_custom_audience - - auth0_domain - - authentication_type + - created_at + - environment + - id + - options + - resource + - updated_at type: object - Rest_API_Options_authentication_options_anyOf_1: - additionalProperties: false + _resource_configurations__configurationId__patch_200_response: + example: + data: + environment: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2019-02-24T18:28:18.790Z + resource: + protected: true + updated_at: 2019-02-24T18:28:18.790Z + created_at: 2019-02-08T11:45:48.899Z + id: id + type: airflow + display_name: display_name + options: + database_options: + ssh_tunnel_options: + password: password + port: port + host: host + private_key_name: private_key_name + enabled: true + username: username + password: password + disable_converting_queries_to_prepared_statements: true + port: port + host: host + name: name + show_write_gui_only: true + ssl_settings: + client_key: client_key + client_cert: client_cert + ca_cert: ca_cert + enabled: true + username: username + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true properties: - authentication_type: - enum: - - aws4 - type: string - amazon_aws_region: - type: string - amazon_service_name: - type: string - amazon_access_key_id: - type: string - amazon_secret_access_key: - type: string - auth_with_default_credential_provider_chain: - type: boolean - enable_awsv4_authentication_via_headers: + success: + description: API request succeeded type: boolean + data: + $ref: '#/components/schemas/_resource_configurations__configurationId__patch_200_response_data' required: - - amazon_access_key_id - - amazon_aws_region - - amazon_secret_access_key - - amazon_service_name - - authentication_type + - data + - success type: object - Rest_API_Options_authentication_options_anyOf_2: - additionalProperties: false + _environments_get_200_response: + description: A list of environments. + example: + data: + - default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token properties: - authentication_type: - enum: - - basic - type: string - basic_username: - type: string - basic_password: + success: + description: API request succeeded + type: boolean + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - - authentication_type - - basic_username + - data + - has_more + - next_token + - success + - total_count type: object - Rest_API_Options_authentication_options_anyOf_3: - additionalProperties: false + _environments_post_request: properties: - authentication_type: - enum: - - digest + name: + description: The name of the environment. + minLength: 1 type: string - digest_username: + description: + description: A description for the environment. type: string - digest_password: + color: + description: The (hexadecimal) color of the environment. + example: '#FFFFFF' + pattern: "^#[A-Fa-f0-9]{6}$" type: string required: - - authentication_type - - digest_password - - digest_username + - color + - name type: object - Rest_API_Options_authentication_options_anyOf_4_oauth1_signature_method: - anyOf: - - enum: - - HMAC-SHA1 - type: string - - enum: - - HMAC-SHA256 - type: string - - enum: - - PLAINTEXT - type: string - Rest_API_Options_authentication_options_anyOf_4: - additionalProperties: false + _environments_post_200_response_data: + description: The created environment + example: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - authentication_type: - enum: - - oauth1 + id: + format: uuid type: string - oauth1_signature_method: - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_4_oauth1_signature_method' - oauth1_consumer_key: + name: type: string - oauth1_consumer_secret: + description: + nullable: true type: string - oauth1_token_key: + color: + example: '#FFFFFF' + pattern: "^#[A-Fa-f0-9]{6}$" type: string - oauth1_token_secret: + default: + type: boolean + created_at: type: string - oauth1_realm_parameter: + updated_at: type: string required: - - authentication_type - - oauth1_consumer_key - - oauth1_consumer_secret - - oauth1_realm_parameter - - oauth1_signature_method - - oauth1_token_key - - oauth1_token_secret + - color + - created_at + - default + - description + - id + - name + - updated_at type: object - Rest_API_Options_authentication_options_anyOf_5: - additionalProperties: false + _environments_post_200_response: + example: + data: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_environments_post_200_response_data' + required: + - data + - success + type: object + _environments__environmentId__get_200_response_data: + description: The requested environment + example: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - authentication_type: - enum: - - oauth2 - type: string - oauth2_client_id: - type: string - oauth2_client_secret: - type: string - oauth2_callback_url: - type: string - oauth2_auth_url: + id: + format: uuid type: string - oauth2_access_token_url: + name: type: string - oauth2_scope: + description: + nullable: true type: string - oauth2_audience: + color: + example: '#FFFFFF' + pattern: "^#[A-Fa-f0-9]{6}$" type: string - oauth2_share_user_credentials: + default: type: boolean - verify_session_url: - type: string - oauth2_access_token: - type: string - oauth2_refresh_token: + created_at: type: string - oauth2_id_token: + updated_at: type: string - oauth2_access_token_lifespan_seconds: - nullable: true - type: number required: - - authentication_type - - oauth2_access_token_url - - oauth2_auth_url - - oauth2_client_id - - oauth2_client_secret + - color + - created_at + - default + - description + - id + - name + - updated_at type: object - Rest_API_Options_authentication_options_anyOf_6: - additionalProperties: false + _environments__environmentId__get_200_response: + example: + data: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true properties: - authentication_type: - enum: - - none - type: string + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_environments__environmentId__get_200_response_data' required: - - authentication_type + - data + - success type: object - Rest_API_Options_authentication_options: - anyOf: - - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf' - - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_1' - - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_2' - - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_3' - - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_4' - - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_5' - - $ref: '#/components/schemas/Rest_API_Options_authentication_options_anyOf_6' - description: Note that custom auth is not yet supported. - Rest_API_Options: + _environments__environmentId__patch_request: additionalProperties: false + description: The body of a request to update an environment. properties: - base_url: - description: Use the absolute URL (e.g https://example.com). - type: string - url_parameters: - items: - items: - type: string - type: array - type: array - headers: - items: - items: - type: string - type: array - type: array - extra_body_values: - description: Extra body values are not passed for GET or HEAD requests. - items: - items: - type: string - type: array - type: array - cookies_to_forward: - description: You can use the pattern COOKIE_your_cookie_name in the Headers - section in order to implement the double-cookie submit pattern. + operations: + description: "A list of operations to apply to the environment. See the\ + \ [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for\ + \ more details." items: - type: string + $ref: '#/components/schemas/Replace_Operation' type: array - forward_all_cookies: - description: This is useful if you have dynamic cookie names. - type: boolean - authentication_options: - $ref: '#/components/schemas/Rest_API_Options_authentication_options' required: - - base_url - title: Rest API Options + - operations type: object - _resources_post_request_options: - anyOf: - - $ref: '#/components/schemas/Postgres_Options' - - $ref: '#/components/schemas/MySQL_Options' - - $ref: '#/components/schemas/Redshift_Options' - - $ref: '#/components/schemas/Snowflake_Options' - - $ref: '#/components/schemas/Rest_API_Options' - _resources_post_request: + _environments__environmentId__patch_200_response_data: + description: The updated environment. + example: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - type: - description: The type of resource. - enum: - - mysql - - postgresql - - redshift - - restapi - - snowflake + id: + format: uuid type: string - display_name: - minLength: 1 + name: + type: string + description: + nullable: true + type: string + color: + example: '#FFFFFF' + pattern: "^#[A-Fa-f0-9]{6}$" + type: string + default: + type: boolean + created_at: + type: string + updated_at: type: string - options: - $ref: '#/components/schemas/_resources_post_request_options' required: - - display_name - - options - - type + - color + - created_at + - default + - description + - id + - name + - updated_at type: object - _resources_post_200_response_data: - additionalProperties: false - description: The created resource. + _environments__environmentId__patch_200_response: example: - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name - properties: - id: - $ref: '#/components/schemas/_resources_get_200_response_data_inner_id' - type: - description: The type of resource. - enum: - - airflow - - alloydb - - asana - - athena - - basecamp - - bigid - - bigquery - - cassandra - - circleci - - closeio - - cosmosdb - - couchdb - - databricks - - datadog - - datastore - - denodo - - dynamodb - - elasticsearch - - firebase - - front - - gcs - - github - - googleAnalytics - - googleMaps - - googleSearchConsole - - googlesheets - - graphql - - grpc - - hubspot - - jdbc - - jira - - lambda - - launchdarkly - - microsoftTeams - - mongodb - - mssql - - mysql - - notion - - onesignal - - openAI - - openapi - - oracledb - - postgresql - - presto - - redis - - redshift - - restapi - - rethinkdb - - rockset - - retoolEmail - - retoolAI - - retoolDb - - retoolStorage - - s3 - - salesforce - - saphana - - sendgrid - - shell - - slack - - slackopenapi - - smtp - - snowflake - - stripe - - twilio - - vertica + data: + default: true + color: '#FFFFFF' + updated_at: updated_at + name: name + description: description + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_environments__environmentId__patch_200_response_data' + required: + - data + - success + type: object + _custom_component_libraries__libraryId__get_200_response_data: + description: Custom Component Library + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + description: description + created_at: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + properties: + id: + format: uuid type: string - display_name: - minLength: 1 + name: + description: "How the library will be referred to in Toolscript, and other\ + \ code based usages." + type: string + description: + nullable: true + type: string + label: + description: How the library will be referred to in the Retool UI. Should + be human readable. type: string created_at: - example: 2019-02-08T11:45:48.899Z + format: date-time type: string updated_at: - example: 2019-02-24T18:28:18.790Z + format: date-time type: string required: - created_at - - display_name + - description - id - - type + - label + - name - updated_at type: object - _resources_post_200_response: + _custom_component_libraries__libraryId__get_200_response: example: data: - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + description: description + created_at: 2000-01-23T04:56:07.000+00:00 id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name + label: label success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_resources_post_200_response_data' + $ref: '#/components/schemas/_custom_component_libraries__libraryId__get_200_response_data' required: - data - success type: object - _resources__resourceId__get_200_response: - description: A single resource + _custom_component_libraries_get_200_response: + description: A paginated list of custom component libraries. example: data: - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z + - updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + description: description + created_at: 2000-01-23T04:56:07.000+00:00 id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name + label: label + - updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + description: description + created_at: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_resources_get_200_response_data_inner' + description: An array of requested items + items: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__get_200_response_data' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - data + - has_more + - next_token - success + - total_count type: object - _resource_configurations_get_200_response_data_inner_environment: - description: Environment - example: - default: true - color: color - updated_at: updated_at - name: name - description: description - created_at: created_at - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + _custom_component_libraries_post_request: properties: id: + description: Specifies a specific id to use for the library. Used for syncronizing + libraries across Retool Instances. format: uuid type: string name: + description: "How the library will be referred to in Toolscript, and other\ + \ code based usages." type: string description: nullable: true type: string - color: + label: + description: How the library will be referred to in the Retool UI. Should + be human readable. type: string - default: + required: + - description + - label + - name + type: object + _custom_component_libraries_post_200_response: + description: The newly created Custom Component Library. + example: + data: + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + description: description + created_at: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + label: label + success: true + properties: + success: + description: API request succeeded type: boolean + data: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__get_200_response_data' + required: + - data + - success + type: object + _custom_component_libraries__libraryId__revisions_get_200_response_data_inner: + description: Custom Component Library Revision + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + custom_component_library_id: custom_component_library_id + created_at: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + version: version + properties: + id: + format: uuid + type: string + version: + type: string + custom_component_library_id: + type: string created_at: + format: date-time type: string updated_at: + format: date-time type: string required: - - color - created_at - - default - - description + - custom_component_library_id - id - - name - updated_at + - version type: object - _resource_configurations_get_200_response_data_inner: - additionalProperties: false - description: A list of resource configurations. + _custom_component_libraries__libraryId__revisions_get_200_response: + example: + data: + - updated_at: 2000-01-23T04:56:07.000+00:00 + custom_component_library_id: custom_component_library_id + created_at: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + version: version + - updated_at: 2000-01-23T04:56:07.000+00:00 + custom_component_library_id: custom_component_library_id + created_at: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + version: version + success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token + properties: + success: + description: API request succeeded + type: boolean + data: + description: An array of requested items + items: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean + required: + - data + - has_more + - next_token + - success + - total_count + type: object + _custom_component_libraries__libraryId__revisions_post_request: + properties: + id: + description: Specifies a specific id to use for the library. Used for syncronizing + libraries across Retool Instances. + format: uuid + type: string + version_bump: + enum: + - minor + - major + - dev + - specify_version + type: string + version: + description: A specific version tag to use. Also specify version_bump as + 'specify_version'. + type: string + files: + format: binary + type: string + required: + - files + - version_bump + type: object + _custom_component_libraries__libraryId__revisions_post_200_response: + description: The newly created Custom Component Library Revision. + example: + data: + updated_at: 2000-01-23T04:56:07.000+00:00 + custom_component_library_id: custom_component_library_id + created_at: 2000-01-23T04:56:07.000+00:00 + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + version: version + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_get_200_response_data_inner' + required: + - data + - success + type: object + _custom_component_libraries__libraryId__revisions__revisionId__files_get_200_response_data_inner: + description: Custom Component Library Revision example: - environment: - default: true - color: color - updated_at: updated_at - name: name - description: description - created_at: created_at - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - updated_at: 2019-02-24T18:28:18.790Z - resource: - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name - options: - database_options: - ssh_tunnel_options: - password: password - port: port - host: host - private_key_name: private_key_name - enabled: true - username: username - password: password - disable_converting_queries_to_prepared_statements: true - port: port - host: host - name: name - show_write_gui_only: true - ssl_settings: - client_key: client_key - client_cert: client_cert - ca_cert: ca_cert - enabled: true - username: username - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + filepath: filepath + updated_at: 2000-01-23T04:56:07.000+00:00 + file_contents: file_contents + created_at: 2000-01-23T04:56:07.000+00:00 properties: - id: - description: The uuid for the resource configuration. - format: uuid + filepath: + type: string + file_contents: type: string - resource: - $ref: '#/components/schemas/_resources_get_200_response_data_inner' - environment: - $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' - options: - $ref: '#/components/schemas/_resources_post_request_options' created_at: - example: 2019-02-08T11:45:48.899Z + format: date-time type: string updated_at: - example: 2019-02-24T18:28:18.790Z + format: date-time type: string required: - created_at - - environment - - id - - options - - resource + - file_contents + - filepath - updated_at type: object - _resource_configurations_get_200_response: + _custom_component_libraries__libraryId__revisions__revisionId__files_get_200_response: example: data: - - environment: - default: true - color: color - updated_at: updated_at - name: name - description: description - created_at: created_at - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - updated_at: 2019-02-24T18:28:18.790Z - resource: - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name - options: - database_options: - ssh_tunnel_options: - password: password - port: port - host: host - private_key_name: private_key_name - enabled: true - username: username - password: password - disable_converting_queries_to_prepared_statements: true - port: port - host: host - name: name - show_write_gui_only: true - ssl_settings: - client_key: client_key - client_cert: client_cert - ca_cert: ca_cert - enabled: true - username: username - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - environment: - default: true - color: color - updated_at: updated_at - name: name - description: description - created_at: created_at - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - updated_at: 2019-02-24T18:28:18.790Z - resource: - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name - options: - database_options: - ssh_tunnel_options: - password: password - port: port - host: host - private_key_name: private_key_name - enabled: true - username: username - password: password - disable_converting_queries_to_prepared_statements: true - port: port - host: host - name: name - show_write_gui_only: true - ssl_settings: - client_key: client_key - client_cert: client_cert - ca_cert: ca_cert - enabled: true - username: username - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - filepath: filepath + updated_at: 2000-01-23T04:56:07.000+00:00 + file_contents: file_contents + created_at: 2000-01-23T04:56:07.000+00:00 + - filepath: filepath + updated_at: 2000-01-23T04:56:07.000+00:00 + file_contents: file_contents + created_at: 2000-01-23T04:56:07.000+00:00 success: true total_count: 0.8008281904610115 has_more: true @@ -9174,7 +13961,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner' + $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions__revisionId__files_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -9193,91 +13980,77 @@ components: - success - total_count type: object - _resource_configurations__configurationId__get_200_response: - additionalProperties: false - description: Resource Configuration + _configuration_variables_get_200_response_data_inner_values_inner: example: - environment: - default: true - color: color - updated_at: updated_at - name: name - description: description - created_at: created_at - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - updated_at: 2019-02-24T18:28:18.790Z - resource: - updated_at: 2019-02-24T18:28:18.790Z - created_at: 2019-02-08T11:45:48.899Z - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: airflow - display_name: display_name - options: - database_options: - ssh_tunnel_options: - password: password - port: port - host: host - private_key_name: private_key_name - enabled: true - username: username - password: password - disable_converting_queries_to_prepared_statements: true - port: port - host: host - name: name - show_write_gui_only: true - ssl_settings: - client_key: client_key - client_cert: client_cert - ca_cert: ca_cert - enabled: true - username: username - created_at: 2019-02-08T11:45:48.899Z + environment_id: environment_id + value: value + properties: + environment_id: + description: The ID of the environment + type: string + value: + description: The value of the configuration variable + type: string + required: + - environment_id + - value + type: object + _configuration_variables_get_200_response_data_inner: + example: + values: + - environment_id: environment_id + value: value + - environment_id: environment_id + value: value + name: name + description: description id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + secret: true properties: id: - description: The uuid for the resource configuration. + description: The ID of the configuration variable format: uuid type: string - resource: - $ref: '#/components/schemas/_resources_get_200_response_data_inner' - environment: - $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' - options: - $ref: '#/components/schemas/_resources_post_request_options' - created_at: - example: 2019-02-08T11:45:48.899Z + name: + description: The name of the configuration variable type: string - updated_at: - example: 2019-02-24T18:28:18.790Z + description: + description: The description of the configuration variable type: string + secret: + description: Whether the configuration variable is a secret + type: boolean + values: + items: + $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner_values_inner' + type: array required: - - created_at - - environment - id - - options - - resource - - updated_at + - name + - secret + - values type: object - _environments_get_200_response: - description: A list of environments. + _configuration_variables_get_200_response: example: data: - - default: true - color: color - updated_at: updated_at + - values: + - environment_id: environment_id + value: value + - environment_id: environment_id + value: value name: name description: description - created_at: created_at id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - default: true - color: color - updated_at: updated_at + secret: true + - values: + - environment_id: environment_id + value: value + - environment_id: environment_id + value: value name: name description: description - created_at: created_at id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + secret: true success: true total_count: 0.8008281904610115 has_more: true @@ -9289,7 +14062,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_resource_configurations_get_200_response_data_inner_environment' + $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -9308,464 +14081,380 @@ components: - success - total_count type: object - _environments__environmentId__get_200_response_data: - description: The requested environment - example: - default: true - color: color - updated_at: updated_at - name: name - description: description - created_at: created_at - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + _configuration_variables_post_request: properties: - id: - format: uuid - type: string name: + description: The name of the configuration variable type: string description: - nullable: true - type: string - color: + description: The description of the configuration variable type: string - default: + secret: + description: Whether the configuration variable is a secret type: boolean - created_at: - type: string - updated_at: - type: string + values: + items: + $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner_values_inner' + type: array required: - - color - - created_at - - default - - description - - id - name - - updated_at + - secret + - values type: object - _environments__environmentId__get_200_response: + _configuration_variables_post_200_response: example: data: - default: true - color: color - updated_at: updated_at + values: + - environment_id: environment_id + value: value + - environment_id: environment_id + value: value name: name description: description - created_at: created_at id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + secret: true success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_environments__environmentId__get_200_response_data' + $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner' required: - data - success type: object - _custom_component_libraries__libraryId__get_200_response_data: - description: Custom Component Library + _observability_config_get_200_response_data_inner_config_oneOf: example: - updated_at: 2000-01-23T04:56:07.000+00:00 - name: name - description: description - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - label: label + ca_certs: + - ca_certs + - ca_certs + provider: Sentry + dsn: dsn properties: - id: - format: uuid - type: string - name: - description: "How the library will be referred to in Toolscript, and other\ - \ code based usages." + provider: + description: This is an enumerated field that can only take the value "Sentry". + It identifies the provider of the observability configuration. + enum: + - Sentry type: string - description: - nullable: true + dsn: + description: This is a string field that represents the Data Source Name + (DSN). It is the unique identifier that helps Sentry know where to send + errors and exceptions. type: string - label: - description: How the library will be referred to in the Retool UI. Should - be human readable. + ca_certs: + description: This is an optional array of Certificate Authority (CA) certificates. + These are passed as `caCerts` to Sentry's NodeClient + items: + type: string + type: array + required: + - dsn + - provider + type: object + _observability_config_get_200_response_data_inner_config_oneOf_1: + properties: + provider: + description: This is an enumerated field that can only take the value "Datadog". + It identifies the provider of the observability configuration. + enum: + - Datadog type: string - created_at: - format: date-time + api_key: + description: This is a string field that represents the API key for Datadog. + This key is used to authenticate with the Datadog API. type: string - updated_at: - format: date-time + site: + default: US1 + description: This is a enumerated field that represents the Datadog site + which the organization wants to send logs to. The default value is US1 + which corresponds to the default website datadoghq.com. + enum: + - US1 + - US3 + - US5 + - EU1 + - US1-FED + - AP1 type: string required: - - created_at - - description - - id - - label - - name - - updated_at + - api_key + - provider + - site type: object - _custom_component_libraries__libraryId__get_200_response: + _observability_config_get_200_response_data_inner_config: + description: "Provider-specific configuration. For Datadog, provide an API key.\ + \ For Sentry, provide a DSN." + oneOf: + - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config_oneOf' + - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config_oneOf_1' + _observability_config_get_200_response_data_inner: + additionalProperties: false + description: Shape of Get Observability Config Response example: - data: - updated_at: 2000-01-23T04:56:07.000+00:00 - name: name - description: description - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - label: label - success: true + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + config: + ca_certs: + - ca_certs + - ca_certs + provider: Sentry + dsn: dsn + enabled: true properties: - success: - description: API request succeeded + id: + description: The id of the configuration. + format: uuid + type: string + config: + $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' + enabled: + description: "When enabled, use this provider for apps observability monitoring." type: boolean - data: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__get_200_response_data' required: - - data - - success + - config + - enabled + - id type: object - _custom_component_libraries_get_200_response: - description: A paginated list of custom component libraries. + _observability_config_get_200_response: example: data: - - updated_at: 2000-01-23T04:56:07.000+00:00 - name: name - description: description - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - label: label - - updated_at: 2000-01-23T04:56:07.000+00:00 - name: name - description: description - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - label: label + - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + config: + ca_certs: + - ca_certs + - ca_certs + provider: Sentry + dsn: dsn + enabled: true + - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + config: + ca_certs: + - ca_certs + - ca_certs + provider: Sentry + dsn: dsn + enabled: true success: true - total_count: 0.8008281904610115 - has_more: true - next_token: next_token properties: success: description: API request succeeded type: boolean data: - description: An array of requested items items: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__get_200_response_data' + $ref: '#/components/schemas/_observability_config_get_200_response_data_inner' type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true - type: string - has_more: - description: Whether there are more items in the collection - type: boolean required: - data - - has_more - - next_token - success - - total_count type: object - _custom_component_libraries_post_request: + _observability_config_post_request: + additionalProperties: false + description: Shape of Post Observability Config Request + properties: + config: + $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' + enabled: + description: "When enabled, use this provider for apps observability monitoring." + type: boolean + required: + - config + - enabled + type: object + _observability_config_post_200_response_data: + additionalProperties: false + description: Shape of Post Observability Config Response + example: + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + config: + ca_certs: + - ca_certs + - ca_certs + provider: Sentry + dsn: dsn + enabled: true properties: id: - description: Specifies a specific id to use for the library. Used for syncronizing - libraries across Retool Instances. + description: The id of the configuration. format: uuid type: string - name: - description: "How the library will be referred to in Toolscript, and other\ - \ code based usages." - type: string - description: - nullable: true - type: string - label: - description: How the library will be referred to in the Retool UI. Should - be human readable. - type: string + config: + $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' + enabled: + description: "When enabled, use this provider for apps observability monitoring." + type: boolean required: - - description - - label - - name + - config + - enabled + - id type: object - _custom_component_libraries_post_200_response: - description: The newly created Custom Component Library. + _observability_config_post_200_response: example: data: - updated_at: 2000-01-23T04:56:07.000+00:00 - name: name - description: description - created_at: 2000-01-23T04:56:07.000+00:00 id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - label: label + config: + ca_certs: + - ca_certs + - ca_certs + provider: Sentry + dsn: dsn + enabled: true success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__get_200_response_data' + $ref: '#/components/schemas/_observability_config_post_200_response_data' required: - data - success type: object - _custom_component_libraries__libraryId__revisions_get_200_response_data_inner: - description: Custom Component Library Revision + _observability_config__configId__put_request: + additionalProperties: false + description: Shape of Put Observability Config Request + properties: + config: + $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' + enabled: + description: "When enabled, use this provider for apps observability monitoring." + type: boolean + type: object + _observability_config__configId__put_200_response_data: + additionalProperties: false + description: Shape of Put Observability Config Response example: - updated_at: 2000-01-23T04:56:07.000+00:00 - custom_component_library_id: custom_component_library_id - created_at: 2000-01-23T04:56:07.000+00:00 id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - version: version + config: + ca_certs: + - ca_certs + - ca_certs + provider: Sentry + dsn: dsn + enabled: true properties: id: + description: The id of the configuration. format: uuid type: string - version: - type: string - custom_component_library_id: - type: string - created_at: - format: date-time - type: string - updated_at: - format: date-time - type: string + config: + $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' + enabled: + description: "When enabled, use this provider for apps observability monitoring." + type: boolean required: - - created_at - - custom_component_library_id + - config + - enabled - id - - updated_at - - version type: object - _custom_component_libraries__libraryId__revisions_get_200_response: + _observability_config__configId__put_200_response: example: data: - - updated_at: 2000-01-23T04:56:07.000+00:00 - custom_component_library_id: custom_component_library_id - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - version: version - - updated_at: 2000-01-23T04:56:07.000+00:00 - custom_component_library_id: custom_component_library_id - created_at: 2000-01-23T04:56:07.000+00:00 id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - version: version + config: + ca_certs: + - ca_certs + - ca_certs + provider: Sentry + dsn: dsn + enabled: true success: true - total_count: 0.8008281904610115 - has_more: true - next_token: next_token properties: success: description: API request succeeded type: boolean data: - description: An array of requested items - items: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_get_200_response_data_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true - type: string - has_more: - description: Whether there are more items in the collection - type: boolean + $ref: '#/components/schemas/_observability_config__configId__put_200_response_data' required: - data - - has_more - - next_token - success - - total_count - type: object - _custom_component_libraries__libraryId__revisions_post_request: - properties: - id: - description: Specifies a specific id to use for the library. Used for syncronizing - libraries across Retool Instances. - format: uuid - type: string - version_bump: - enum: - - minor - - major - - dev - - specify_version - type: string - version: - description: A specific version tag to use. Also specify version_bump as - 'specify_version'. - type: string - files: - format: binary - type: string - required: - - files - - version_bump type: object - _custom_component_libraries__libraryId__revisions_post_200_response: - description: The newly created Custom Component Library Revision. + _observability_provider__provider__test_post_provider_parameter: + anyOf: + - enum: + - Sentry + type: string + - enum: + - Datadog + type: string + description: "The observability provider name, either \"Sentry\" or \"Datadog\"" + _observability_provider__provider__test_post_200_response_data_oneOf: example: - data: - updated_at: 2000-01-23T04:56:07.000+00:00 - custom_component_library_id: custom_component_library_id - created_at: 2000-01-23T04:56:07.000+00:00 - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - version: version success: true + message: message properties: success: - description: API request succeeded + description: Send test error failed type: boolean - data: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions_get_200_response_data_inner' + message: + description: Error message + type: string required: - - data + - message - success type: object - _custom_component_libraries__libraryId__revisions__revisionId__files_get_200_response_data_inner: - description: Custom Component Library Revision - example: - filepath: filepath - updated_at: 2000-01-23T04:56:07.000+00:00 - file_contents: file_contents - created_at: 2000-01-23T04:56:07.000+00:00 + _observability_provider__provider__test_post_200_response_data_oneOf_1: properties: - filepath: - type: string - file_contents: - type: string - created_at: - format: date-time - type: string - updated_at: - format: date-time - type: string + success: + description: Send test error succeeded + type: boolean required: - - created_at - - file_contents - - filepath - - updated_at + - success type: object - _custom_component_libraries__libraryId__revisions__revisionId__files_get_200_response: + _observability_provider__provider__test_post_200_response_data: + description: Send test error response + oneOf: + - $ref: '#/components/schemas/_observability_provider__provider__test_post_200_response_data_oneOf' + - $ref: '#/components/schemas/_observability_provider__provider__test_post_200_response_data_oneOf_1' + _observability_provider__provider__test_post_200_response: example: data: - - filepath: filepath - updated_at: 2000-01-23T04:56:07.000+00:00 - file_contents: file_contents - created_at: 2000-01-23T04:56:07.000+00:00 - - filepath: filepath - updated_at: 2000-01-23T04:56:07.000+00:00 - file_contents: file_contents - created_at: 2000-01-23T04:56:07.000+00:00 + success: true + message: message success: true - total_count: 0.8008281904610115 - has_more: true - next_token: next_token properties: success: description: API request succeeded type: boolean data: - description: An array of requested items - items: - $ref: '#/components/schemas/_custom_component_libraries__libraryId__revisions__revisionId__files_get_200_response_data_inner' - type: array - total_count: - description: Total number of items in the response - type: number - next_token: - description: A token to retrieve the next page of items in the collection - nullable: true - type: string - has_more: - description: Whether there are more items in the collection - type: boolean + $ref: '#/components/schemas/_observability_provider__provider__test_post_200_response_data' required: - data - - has_more - - next_token - success - - total_count - type: object - _configuration_variables_get_200_response_data_inner_values_inner: - example: - environment_id: environment_id - value: value - properties: - environment_id: - description: The ID of the environment - type: string - value: - description: The value of the configuration variable - type: string - required: - - environment_id - - value type: object - _configuration_variables_get_200_response_data_inner: + _usage_organizations_get_200_response_data_inner: + additionalProperties: false + description: An organization in the context of usage analytics example: - values: - - environment_id: environment_id - value: value - - environment_id: environment_id - value: value - name: name - description: description - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - secret: true + org_id: org_id + host: host + last_active: 2019-02-08T11:45:48.899Z properties: - id: - description: The ID of the configuration variable - format: uuid + org_id: + description: The id of the organization type: string - name: - description: The name of the configuration variable + host: + description: The host of the organization type: string - description: - description: The description of the configuration variable + last_active: + example: 2019-02-08T11:45:48.899Z + format: date-time type: string - secret: - description: Whether the configuration variable is a secret - type: boolean - values: - items: - $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner_values_inner' - type: array required: - - id - - name - - secret - - values + - host + - last_active + - org_id type: object - _configuration_variables_get_200_response: + _usage_organizations_get_200_response: + description: A list of organizations in this deployment. example: data: - - values: - - environment_id: environment_id - value: value - - environment_id: environment_id - value: value - name: name - description: description - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - secret: true - - values: - - environment_id: environment_id - value: value - - environment_id: environment_id - value: value - name: name - description: description - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - secret: true + - org_id: org_id + host: host + last_active: 2019-02-08T11:45:48.899Z + - org_id: org_id + host: host + last_active: 2019-02-08T11:45:48.899Z success: true total_count: 0.8008281904610115 has_more: true @@ -9777,7 +14466,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner' + $ref: '#/components/schemas/_usage_organizations_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -9796,338 +14485,509 @@ components: - success - total_count type: object - _configuration_variables_post_request: - properties: - name: - description: The name of the configuration variable - type: string - description: - description: The description of the configuration variable - type: string - secret: - description: Whether the configuration variable is a secret - type: boolean - values: - items: - $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner_values_inner' - type: array - required: - - name - - secret - - values - type: object - _configuration_variables_post_200_response: - example: - data: - values: - - environment_id: environment_id - value: value - - environment_id: environment_id - value: value - name: name - description: description - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - secret: true - success: true - properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_configuration_variables_get_200_response_data_inner' - required: - - data - - success - type: object - _observability_config_get_200_response_data_inner_config_oneOf: + _usage_get_200_response_data_daily_T30_usage_inner: example: - provider: Sentry - dsn: dsn - properties: - provider: - description: This is an enumerated field that can only take the value "Sentry". - It identifies the provider of the observability configuration. - enum: - - Sentry - type: string - dsn: - description: This is a string field that represents the Data Source Name - (DSN). It is the unique identifier that helps Sentry know where to send - errors and exceptions. - type: string - required: - - dsn - - provider - type: object - _observability_config_get_200_response_data_inner_config_oneOf_1: + mau: 2.027123023002322 + maa: 3.616076749251911 + day: day properties: - provider: - description: This is an enumerated field that can only take the value "Datadog". - It identifies the provider of the observability configuration. - enum: - - Datadog - type: string - api_key: - description: This is a string field that represents the API key for Datadog. - This key is used to authenticate with the Datadog API. + day: type: string + maa: + description: The number of distinct applications that were active on the + given day + type: number + mau: + description: The number of distinct users who were active on the given day + type: number required: - - api_key - - provider + - day + - maa + - mau type: object - _observability_config_get_200_response_data_inner_config: - description: "Provider-specific configuration. For Datadog, provide an API key.\ - \ For Sentry, provide a DSN." - oneOf: - - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config_oneOf' - - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config_oneOf_1' - _observability_config_get_200_response_data_inner: + _usage_get_200_response_data: additionalProperties: false - description: Shape of Get Observability Config Response example: - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - config: - provider: Sentry - dsn: dsn - enabled: true + percent_growth_page_saves: 5.637376656633329 + count_T30_users: 5.962133916683182 + percent_growth_users: 7.061401241503109 + percent_growth_T30_users: 9.301444243932576 + count_current_page_views: 6.027456183070403 + daily_T30_usage: + - mau: 2.027123023002322 + maa: 3.616076749251911 + day: day + - mau: 2.027123023002322 + maa: 3.616076749251911 + day: day + count_current_page_saves: 0.8008281904610115 + percent_growth_page_views: 2.3021358869347655 + count_current_users: 1.4658129805029452 properties: - id: - description: The id of the configuration. - format: uuid - type: string - config: - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' - enabled: - description: "When enabled, use this provider for apps observability monitoring." - type: boolean + count_current_page_saves: + description: The number of page saves for all the organizations within the + date range + type: number + count_current_page_views: + description: The number of page views for all the organizations within the + date range + type: number + count_current_users: + description: The total number of unique users who have performed any tracked + activity in all the organizations within the date range + type: number + count_T30_users: + description: The number of unique users who have been active over the trailing + 30 days from the end date provided + type: number + percent_growth_page_saves: + description: The percentage growth in page saves compared to the previous + cycle of the same length as the provided date range + type: number + percent_growth_page_views: + description: The percentage growth in page views compared to the previous + cycle of the same length as the provided date range + type: number + percent_growth_users: + description: The percentage growth in unique users compared to the previous + cycle of the same length as the provided date range + type: number + percent_growth_T30_users: + description: The percentage growth in T30 users (trailing 30 days users) + compared to the previous cycle of the same length as the provided date + range + type: number + daily_T30_usage: + items: + $ref: '#/components/schemas/_usage_get_200_response_data_daily_T30_usage_inner' + type: array required: - - config - - enabled - - id + - count_T30_users + - count_current_page_saves + - count_current_page_views + - count_current_users + - daily_T30_usage + - percent_growth_T30_users + - percent_growth_page_saves + - percent_growth_page_views + - percent_growth_users type: object - _observability_config_get_200_response: + _usage_get_200_response: + description: The usage information for the organizations example: data: - - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - config: - provider: Sentry - dsn: dsn - enabled: true - - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - config: - provider: Sentry - dsn: dsn - enabled: true + percent_growth_page_saves: 5.637376656633329 + count_T30_users: 5.962133916683182 + percent_growth_users: 7.061401241503109 + percent_growth_T30_users: 9.301444243932576 + count_current_page_views: 6.027456183070403 + daily_T30_usage: + - mau: 2.027123023002322 + maa: 3.616076749251911 + day: day + - mau: 2.027123023002322 + maa: 3.616076749251911 + day: day + count_current_page_saves: 0.8008281904610115 + percent_growth_page_views: 2.3021358869347655 + count_current_users: 1.4658129805029452 success: true properties: success: description: API request succeeded type: boolean data: - items: - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner' - type: array - required: - - data - - success - type: object - _observability_config_post_request: - additionalProperties: false - description: Shape of Post Observability Config Request - properties: - config: - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' - enabled: - description: "When enabled, use this provider for apps observability monitoring." - type: boolean + $ref: '#/components/schemas/_usage_get_200_response_data' required: - - config - - enabled + - data + - success type: object - _observability_config_post_200_response_data: + _usage_app_summary_get_200_response_data_inner: additionalProperties: false - description: Shape of Post Observability Config Response example: - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - config: - provider: Sentry - dsn: dsn - enabled: true + app_name: app_name + count_app_views: 0.8008281904610115 + count_editors: 5.962133916683182 + host: host + count_viewers: 1.4658129805029452 + count_app_saves: 6.027456183070403 properties: - id: - description: The id of the configuration. - format: uuid + app_name: + description: The name of the app type: string - config: - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' - enabled: - description: "When enabled, use this provider for apps observability monitoring." - type: boolean + host: + description: The organization host + type: string + count_app_views: + description: The number of views of the app in the time range specified + type: number + count_app_saves: + description: The number of saves of the app in the time range specified + type: number + count_viewers: + description: The number of viewers of the app in the time range specified + type: number + count_editors: + description: The number of editors of the app in the time range specified + type: number required: - - config - - enabled - - id + - app_name + - count_app_saves + - count_app_views + - count_editors + - count_viewers + - host type: object - _observability_config_post_200_response: + _usage_app_summary_get_200_response: + description: The app summaries for the organizations example: data: - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - config: - provider: Sentry - dsn: dsn - enabled: true + - app_name: app_name + count_app_views: 0.8008281904610115 + count_editors: 5.962133916683182 + host: host + count_viewers: 1.4658129805029452 + count_app_saves: 6.027456183070403 + - app_name: app_name + count_app_views: 0.8008281904610115 + count_editors: 5.962133916683182 + host: host + count_viewers: 1.4658129805029452 + count_app_saves: 6.027456183070403 success: true + total_count: 5.637376656633329 + has_more: true + next_token: next_token properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_observability_config_post_200_response_data' + description: An array of requested items + items: + $ref: '#/components/schemas/_usage_app_summary_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - data + - has_more + - next_token - success + - total_count type: object - _observability_config__configId__put_request: + _usage_app_details_get_200_response_data_overall_summary_inner: additionalProperties: false - description: Shape of Put Observability Config Request + example: + app_name: app_name + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 properties: - config: - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' - enabled: - description: "When enabled, use this provider for apps observability monitoring." - type: boolean + org_id: + type: string + app_name: + type: string + count_app_saves: + type: number + count_app_views: + type: number + host: + type: string + required: + - app_name + - count_app_saves + - count_app_views + - host + - org_id type: object - _observability_config__configId__put_200_response_data: - additionalProperties: false - description: Shape of Put Observability Config Response + _usage_app_details_get_200_response_data_weekly_summary_inner_weekly_data_inner: example: - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - config: - provider: Sentry - dsn: dsn - enabled: true + week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 properties: - id: - description: The id of the configuration. - format: uuid + week: type: string - config: - $ref: '#/components/schemas/_observability_config_get_200_response_data_inner_config' - enabled: - description: "When enabled, use this provider for apps observability monitoring." - type: boolean + count_app_saves: + type: number + count_app_views: + type: number required: - - config - - enabled - - id + - count_app_saves + - count_app_views + - week type: object - _observability_config__configId__put_200_response: + _usage_app_details_get_200_response_data_weekly_summary_inner: + additionalProperties: false example: - data: - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - config: - provider: Sentry - dsn: dsn - enabled: true - success: true + weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id properties: - success: - description: API request succeeded - type: boolean - data: - $ref: '#/components/schemas/_observability_config__configId__put_200_response_data' + org_id: + type: string + weekly_data: + items: + $ref: '#/components/schemas/_usage_app_details_get_200_response_data_weekly_summary_inner_weekly_data_inner' + type: array required: - - data - - success + - org_id + - weekly_data type: object - _observability_provider__provider__test_post_provider_parameter: - anyOf: - - enum: - - Sentry - type: string - - enum: - - Datadog - type: string - description: "The observability provider name, either \"Sentry\" or \"Datadog\"" - _observability_provider__provider__test_post_200_response_data_anyOf: + _usage_app_details_get_200_response_data_viewer_summary_inner: + additionalProperties: false example: - success: true - message: message + user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email properties: - success: - description: Send test error failed - type: boolean - message: - description: Error message + email: + type: string + count: + type: number + user_id: + type: string + org_id: + type: string + host: type: string required: - - message - - success + - count + - email + - host + - org_id + - user_id type: object - _observability_provider__provider__test_post_200_response_data_anyOf_1: + _usage_app_details_get_200_response_data: + additionalProperties: false + example: + editor_summary: + - user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email + - user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email + overall_summary: + - app_name: app_name + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 + - app_name: app_name + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 + weekly_summary: + - weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id + - weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id + viewer_summary: + - user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email + - user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email properties: - success: - description: Send test error succeeded - type: boolean + overall_summary: + items: + $ref: '#/components/schemas/_usage_app_details_get_200_response_data_overall_summary_inner' + type: array + weekly_summary: + items: + $ref: '#/components/schemas/_usage_app_details_get_200_response_data_weekly_summary_inner' + type: array + viewer_summary: + items: + $ref: '#/components/schemas/_usage_app_details_get_200_response_data_viewer_summary_inner' + type: array + editor_summary: + items: + $ref: '#/components/schemas/_usage_app_details_get_200_response_data_viewer_summary_inner' + type: array required: - - success + - editor_summary + - overall_summary + - viewer_summary + - weekly_summary type: object - _observability_provider__provider__test_post_200_response_data: - anyOf: - - $ref: '#/components/schemas/_observability_provider__provider__test_post_200_response_data_anyOf' - - $ref: '#/components/schemas/_observability_provider__provider__test_post_200_response_data_anyOf_1' - description: Send test error response - _observability_provider__provider__test_post_200_response: + _usage_app_details_get_200_response: + description: "The details about the app usage, such as edits and views, for\ + \ the organizations" example: data: - success: true - message: message + editor_summary: + - user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email + - user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email + overall_summary: + - app_name: app_name + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 + - app_name: app_name + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 + weekly_summary: + - weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id + - weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id + viewer_summary: + - user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email + - user_id: user_id + org_id: org_id + count: 5.637376656633329 + host: host + email: email success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_observability_provider__provider__test_post_200_response_data' + $ref: '#/components/schemas/_usage_app_details_get_200_response_data' required: - data - success type: object - _usage_organizations_get_200_response_data_inner: + _usage_user_summary_get_200_response_data_inner: additionalProperties: false - description: An organization in Retool example: + user_id: user_id + count_app_views: 0.8008281904610115 + count_unique_apps: 1.4658129805029452 org_id: org_id host: host last_active: 2019-02-08T11:45:48.899Z + email: email + count_app_saves: 6.027456183070403 properties: org_id: - description: The id of the organization + description: The id of the organization to which this user belongs + type: string + user_id: + description: The id of the user + type: string + email: + description: The email of the user type: string host: - description: The host of the organization + description: The host of the organization to which this user belongs type: string + count_app_views: + description: The number of times the user viewed an app in the time range + specified + type: number + count_app_saves: + description: The number of times the user edited an app in the time range + specified + type: number + count_unique_apps: + description: The number of unique apps edited in the time range specified + type: number last_active: example: 2019-02-08T11:45:48.899Z format: date-time type: string required: + - count_app_saves + - count_app_views + - count_unique_apps + - email - host - last_active - org_id + - user_id type: object - _usage_organizations_get_200_response: - description: A list of organizations in this deployment. + _usage_user_summary_get_200_response: + description: The user summaries for the organizations example: data: - - org_id: org_id + - user_id: user_id + count_app_views: 0.8008281904610115 + count_unique_apps: 1.4658129805029452 + org_id: org_id host: host last_active: 2019-02-08T11:45:48.899Z - - org_id: org_id + email: email + count_app_saves: 6.027456183070403 + - user_id: user_id + count_app_views: 0.8008281904610115 + count_unique_apps: 1.4658129805029452 + org_id: org_id host: host last_active: 2019-02-08T11:45:48.899Z + email: email + count_app_saves: 6.027456183070403 success: true - total_count: 0.8008281904610115 + total_count: 5.962133916683182 has_more: true next_token: next_token properties: @@ -10137,7 +14997,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_usage_organizations_get_200_response_data_inner' + $ref: '#/components/schemas/_usage_user_summary_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -10156,177 +15016,369 @@ components: - success - total_count type: object - _usage_get_200_response_data_daily_T30_usage_inner: + _usage_user_details_get_200_response_data_overall_summary_inner: + additionalProperties: false example: - mau: 2.027123023002322 - maa: 3.616076749251911 - day: day + user_id: user_id + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 properties: - day: + org_id: type: string - maa: - description: The number of distinct applications that were active on the - given day + user_id: + type: string + host: + type: string + count_app_saves: type: number - mau: - description: The number of distinct users who were active on the given day + count_app_views: type: number required: - - day - - maa - - mau + - count_app_saves + - count_app_views + - host + - org_id + - user_id type: object - _usage_get_200_response_data: + _usage_user_details_get_200_response_data_viewer_summary_inner: additionalProperties: false example: - percent_growth_page_saves: 5.637376656633329 - count_T30_users: 5.962133916683182 - percent_growth_users: 7.061401241503109 - percent_growth_T30_users: 9.301444243932576 - count_current_page_views: 6.027456183070403 - daily_T30_usage: - - mau: 2.027123023002322 - maa: 3.616076749251911 - day: day - - mau: 2.027123023002322 - maa: 3.616076749251911 - day: day - count_current_page_saves: 0.8008281904610115 - percent_growth_page_views: 2.3021358869347655 - count_current_users: 1.4658129805029452 + app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 properties: - count_current_page_saves: - description: The number of page saves for all the organizations within the - date range - type: number - count_current_page_views: - description: The number of page views for all the organizations within the - date range - type: number - count_current_users: - description: The total number of unique users who have performed any tracked - activity in all the organizations within the date range - type: number - count_T30_users: - description: The number of unique users who have been active over the trailing - 30 days from the end date provided - type: number - percent_growth_page_saves: - description: The percentage growth in page saves compared to the previous - cycle of the same length as the provided date range - type: number - percent_growth_page_views: - description: The percentage growth in page views compared to the previous - cycle of the same length as the provided date range - type: number - percent_growth_users: - description: The percentage growth in unique users compared to the previous - cycle of the same length as the provided date range - type: number - percent_growth_T30_users: - description: The percentage growth in T30 users (trailing 30 days users) - compared to the previous cycle of the same length as the provided date - range + app_name: + type: string + org_id: + type: string + host: + type: string + count: type: number - daily_T30_usage: + required: + - app_name + - count + - host + - org_id + type: object + _usage_user_details_get_200_response_data: + example: + editor_summary: + - app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 + - app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 + overall_summary: + - user_id: user_id + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 + - user_id: user_id + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 + weekly_summary: + - weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id + - weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id + viewer_summary: + - app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 + - app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 + properties: + overall_summary: items: - $ref: '#/components/schemas/_usage_get_200_response_data_daily_T30_usage_inner' + $ref: '#/components/schemas/_usage_user_details_get_200_response_data_overall_summary_inner' + type: array + weekly_summary: + items: + $ref: '#/components/schemas/_usage_app_details_get_200_response_data_weekly_summary_inner' + type: array + viewer_summary: + items: + $ref: '#/components/schemas/_usage_user_details_get_200_response_data_viewer_summary_inner' + type: array + editor_summary: + items: + $ref: '#/components/schemas/_usage_user_details_get_200_response_data_viewer_summary_inner' type: array required: - - count_T30_users - - count_current_page_saves - - count_current_page_views - - count_current_users - - daily_T30_usage - - percent_growth_T30_users - - percent_growth_page_saves - - percent_growth_page_views - - percent_growth_users + - editor_summary + - overall_summary + - viewer_summary + - weekly_summary type: object - _usage_get_200_response: - description: The usage information for the organizations + _usage_user_details_get_200_response: + description: "The details about the users usage, such as edits and views on\ + \ apps, for the organizations" example: data: - percent_growth_page_saves: 5.637376656633329 - count_T30_users: 5.962133916683182 - percent_growth_users: 7.061401241503109 - percent_growth_T30_users: 9.301444243932576 - count_current_page_views: 6.027456183070403 - daily_T30_usage: - - mau: 2.027123023002322 - maa: 3.616076749251911 - day: day - - mau: 2.027123023002322 - maa: 3.616076749251911 - day: day - count_current_page_saves: 0.8008281904610115 - percent_growth_page_views: 2.3021358869347655 - count_current_users: 1.4658129805029452 + editor_summary: + - app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 + - app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 + overall_summary: + - user_id: user_id + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 + - user_id: user_id + count_app_views: 6.027456183070403 + org_id: org_id + host: host + count_app_saves: 0.8008281904610115 + weekly_summary: + - weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id + - weekly_data: + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + - week: week + count_app_views: 5.962133916683182 + count_app_saves: 1.4658129805029452 + org_id: org_id + viewer_summary: + - app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 + - app_name: app_name + org_id: org_id + host: host + count: 1.4658129805029452 success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_usage_get_200_response_data' + $ref: '#/components/schemas/_usage_user_details_get_200_response_data' required: - data - success type: object - _usage_app_summary_get_200_response_data_inner: - additionalProperties: false + _user_tasks_get_assigned_to_users_parameter: + anyOf: + - items: + type: string + type: array + - type: string + description: "Filter tasks by assignment. Provide one or more user ids. If not\ + \ provided, returns all accessible tasks." + _user_tasks_get_200_response_data_inner_assignees_inner: example: - app_name: app_name - count_app_views: 0.8008281904610115 - count_editors: 5.962133916683182 - host: host - count_viewers: 1.4658129805029452 - count_app_saves: 6.027456183070403 + name: name + id: 0.8008281904610115 + type: type properties: - app_name: - description: The name of the app - type: string - host: - description: The organization host + type: type: string - count_app_views: - description: The number of views of the app in the time range specified - type: number - count_app_saves: - description: The number of saves of the app in the time range specified - type: number - count_viewers: - description: The number of viewers of the app in the time range specified - type: number - count_editors: - description: The number of editors of the app in the time range specified + id: type: number + name: + type: string required: - - app_name - - count_app_saves - - count_app_views - - count_editors - - count_viewers - - host + - id + - name + - type type: object - _usage_app_summary_get_200_response: - description: The app summaries for the organizations + _user_tasks_get_200_response_data_inner: + description: User-defined context for the task. example: - data: - - app_name: app_name - count_app_views: 0.8008281904610115 - count_editors: 5.962133916683182 - host: host - count_viewers: 1.4658129805029452 - count_app_saves: 6.027456183070403 - - app_name: app_name - count_app_views: 0.8008281904610115 - count_editors: 5.962133916683182 - host: host - count_viewers: 1.4658129805029452 - count_app_saves: 6.027456183070403 + task_name: task_name + workflow_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_name: workflow_name + task_url: + - task_url + - task_url + created_at: created_at + assignees: + - name: name + id: 0.8008281904610115 + type: type + - name: name + id: 0.8008281904610115 + type: type + output: + key: "" + completed_at: completed_at + workflow_release: workflow_release + expires_at: expires_at + context: + key: "" + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_run_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: submitted + properties: + id: + description: The ID of the user task. + format: uuid + type: string + workflow_id: + description: The ID of the workflow this task belongs to. + format: uuid + type: string + workflow_name: + description: The name of the workflow. + type: string + workflow_run_id: + description: The ID of the workflow run. + format: uuid + type: string + task_name: + description: The name of the task. + type: string + status: + description: The current status of the task. + enum: + - submitted + - pending + - cancelled + - expired + type: string + context: + additionalProperties: + nullable: true + description: Additional context for the task. + type: object + created_at: + description: The creation date time of the task. + type: string + completed_at: + description: The completion date time of the task. + nullable: true + type: string + task_url: + description: URL links to apps associated with the task. + items: + type: string + type: array + assignees: + description: The groups or users assigned to this task. + items: + $ref: '#/components/schemas/_user_tasks_get_200_response_data_inner_assignees_inner' + type: array + workflow_release: + description: "The workflow release version, if any." + nullable: true + type: string + expires_at: + description: "The expiration date time of the task, if set." + nullable: true + type: string + output: + additionalProperties: + nullable: true + type: object + required: + - assignees + - completed_at + - context + - created_at + - expires_at + - id + - status + - task_name + - task_url + - workflow_id + - workflow_name + - workflow_release + - workflow_run_id + type: object + _user_tasks_get_200_response: + description: A paginated list of user tasks. + example: + data: + - task_name: task_name + workflow_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_name: workflow_name + task_url: + - task_url + - task_url + created_at: created_at + assignees: + - name: name + id: 0.8008281904610115 + type: type + - name: name + id: 0.8008281904610115 + type: type + output: + key: "" + completed_at: completed_at + workflow_release: workflow_release + expires_at: expires_at + context: + key: "" + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_run_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: submitted + - task_name: task_name + workflow_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_name: workflow_name + task_url: + - task_url + - task_url + created_at: created_at + assignees: + - name: name + id: 0.8008281904610115 + type: type + - name: name + id: 0.8008281904610115 + type: type + output: + key: "" + completed_at: completed_at + workflow_release: workflow_release + expires_at: expires_at + context: + key: "" + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_run_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: submitted success: true - total_count: 5.637376656633329 + total_count: 6.027456183070403 has_more: true next_token: next_token properties: @@ -10336,7 +15388,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_usage_app_summary_get_200_response_data_inner' + $ref: '#/components/schemas/_user_tasks_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -10355,310 +15407,772 @@ components: - success - total_count type: object - _usage_app_details_get_200_response_data_overall_summary_inner: - additionalProperties: false + _user_tasks__taskId__submit_patch_request: + properties: + email: + description: Email of user completing the task. + format: email + type: string + output: + additionalProperties: + nullable: true + description: Assignee-defined output required for a task to be submitted. + type: object + required: + - email + - output + type: object + _user_tasks__taskId__submit_patch_200_response_data: example: - app_name: app_name - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 + user_task: + task_name: task_name + workflow_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_name: workflow_name + task_url: + - task_url + - task_url + created_at: created_at + assignees: + - name: name + id: 0.8008281904610115 + type: type + - name: name + id: 0.8008281904610115 + type: type + output: + key: "" + completed_at: completed_at + workflow_release: workflow_release + expires_at: expires_at + context: + key: "" + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_run_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: submitted properties: - org_id: + user_task: + $ref: '#/components/schemas/_user_tasks_get_200_response_data_inner' + required: + - user_task + type: object + _user_tasks__taskId__submit_patch_200_response: + example: + data: + user_task: + task_name: task_name + workflow_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_name: workflow_name + task_url: + - task_url + - task_url + created_at: created_at + assignees: + - name: name + id: 0.8008281904610115 + type: type + - name: name + id: 0.8008281904610115 + type: type + output: + key: "" + completed_at: completed_at + workflow_release: workflow_release + expires_at: expires_at + context: + key: "" + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_run_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: submitted + success: true + properties: + success: + type: boolean + data: + $ref: '#/components/schemas/_user_tasks__taskId__submit_patch_200_response_data' + required: + - data + - success + type: object + _user_tasks__taskId__cancel_patch_request: + properties: + email: + description: Email of user cancelling the task. + format: email type: string - app_name: + output: + additionalProperties: + nullable: true + description: Assignee-defined output required for a task to be cancelled. + type: object + required: + - email + type: object + _user_tasks__taskId__reassign_patch_request_assignees_inner_anyOf: + properties: + type: + enum: + - group type: string - count_app_saves: - type: number - count_app_views: + id: type: number - host: + required: + - id + - type + type: object + _user_tasks__taskId__reassign_patch_request_assignees_inner_anyOf_1: + properties: + type: + enum: + - user + type: string + id: type: string required: - - app_name - - count_app_saves - - count_app_views - - host - - org_id + - id + - type type: object - _usage_app_details_get_200_response_data_weekly_summary_inner_weekly_data_inner: - example: - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 + _user_tasks__taskId__reassign_patch_request_assignees_inner: + anyOf: + - $ref: '#/components/schemas/_user_tasks__taskId__reassign_patch_request_assignees_inner_anyOf' + - $ref: '#/components/schemas/_user_tasks__taskId__reassign_patch_request_assignees_inner_anyOf_1' + _user_tasks__taskId__reassign_patch_request: properties: - week: + email: + description: Email of user reassigning the task. + format: email type: string - count_app_saves: - type: number - count_app_views: + assignees: + description: An array of assignees the user task should be reassigned to. + Can include both groups and users. + example: + - type: group + id: 1 + - type: user + id: user_4e5fb6e0b3cd4e39b518f09a3480e6ca + items: + $ref: '#/components/schemas/_user_tasks__taskId__reassign_patch_request_assignees_inner' + type: array + required: + - assignees + - email + type: object + _workflow_run__id__get_200_response: + description: A workflow run and related data. + example: + workflow_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + user_tasks: + - task_name: task_name + workflow_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_name: workflow_name + task_url: + - task_url + - task_url + created_at: created_at + assignees: + - name: name + id: 0.8008281904610115 + type: type + - name: name + id: 0.8008281904610115 + type: type + output: + key: "" + completed_at: completed_at + workflow_release: workflow_release + expires_at: expires_at + context: + key: "" + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_run_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: submitted + - task_name: task_name + workflow_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_name: workflow_name + task_url: + - task_url + - task_url + created_at: created_at + assignees: + - name: name + id: 0.8008281904610115 + type: type + - name: name + id: 0.8008281904610115 + type: type + output: + key: "" + completed_at: completed_at + workflow_release: workflow_release + expires_at: expires_at + context: + key: "" + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + workflow_run_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: submitted + trigger_type: trigger_type + trigger_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_at: created_at + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: status + properties: + status: + description: The status of the workflow run. + type: string + workflow_id: + description: The ID of the workflow. + format: uuid + type: string + id: + description: The ID of the workflow run. + format: uuid + type: string + trigger_type: + description: The type of trigger that started the workflow. + type: string + trigger_id: + description: The ID of the trigger. + format: uuid + type: string + created_at: + description: The creation date time of the workflow run. + type: string + user_tasks: + description: List of user tasks of the workfow run. + items: + $ref: '#/components/schemas/_user_tasks_get_200_response_data_inner' + type: array + required: + - created_at + - id + - status + - trigger_id + - trigger_type + - workflow_id + type: object + _organization__get_200_response_data: + additionalProperties: false + description: This object represents the advanced settings configured on an organization. + example: + cache_queries_per_user: true + workflow_run_retention_period_mins: 0.8008281904610115 + app_owners_permissions_management: true + javascript_links: + - javascript_links + - javascript_links + request_access_enabled: true + preloaded_javascript: preloaded_javascript + disable_new_login_ip_notification_email: true + two_factor_auth_required: true + ai_support_bot_disabled: true + preloaded_css: preloaded_css + release_management_enabled: true + apply_preloaded_css_to_homepage: true + id: id + retool_forms_disabled: true + two_factor_auth_type: fido2 + properties: + id: + description: The id of the organization. + type: string + request_access_enabled: + description: Whether users can request access to join the organization. + type: boolean + ai_support_bot_disabled: + description: Whether the AI support bot is disabled. + type: boolean + retool_forms_disabled: + description: Whether Retool forms are disabled. + type: boolean + release_management_enabled: + description: Whether versions and releases on apps are disabled. + type: boolean + cache_queries_per_user: + nullable: true + type: boolean + apply_preloaded_css_to_homepage: + description: Whether preloaded CSS is applied to the Retool homepage. + type: boolean + preloaded_css: + description: Custom CSS rules to apply across Retool. + nullable: true + type: string + preloaded_javascript: + description: Preloaded JavaScript that will apply to every Retool app. + nullable: true + type: string + javascript_links: + description: List of custom JavaScript libraries to load in every app. + items: + type: string + type: array + workflow_run_retention_period_mins: + description: "Number of minutes to store workflow run history data (up to\ + \ a max of 90 days on cloud, 1 year on-prem)" type: number + app_owners_permissions_management: + description: Whether app owners can manage permissions for their apps directly. + type: boolean + two_factor_auth_required: + description: Whether two-factor authentication is required for all users + in the organization. + type: boolean + two_factor_auth_type: + description: "Required 2FA type, applies to the whole organization" + enum: + - fido2 + - otp + nullable: true + type: string + disable_new_login_ip_notification_email: + description: Whether notification emails for logins from new IPs are disabled. + type: boolean required: - - count_app_saves - - count_app_views - - week + - ai_support_bot_disabled + - app_owners_permissions_management + - apply_preloaded_css_to_homepage + - cache_queries_per_user + - disable_new_login_ip_notification_email + - id + - javascript_links + - preloaded_css + - preloaded_javascript + - release_management_enabled + - request_access_enabled + - retool_forms_disabled + - two_factor_auth_required + - two_factor_auth_type + - workflow_run_retention_period_mins + type: object + _organization__get_200_response: + description: The current organization's advanced settings + example: + data: + cache_queries_per_user: true + workflow_run_retention_period_mins: 0.8008281904610115 + app_owners_permissions_management: true + javascript_links: + - javascript_links + - javascript_links + request_access_enabled: true + preloaded_javascript: preloaded_javascript + disable_new_login_ip_notification_email: true + two_factor_auth_required: true + ai_support_bot_disabled: true + preloaded_css: preloaded_css + release_management_enabled: true + apply_preloaded_css_to_homepage: true + id: id + retool_forms_disabled: true + two_factor_auth_type: fido2 + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_organization__get_200_response_data' + required: + - data + - success type: object - _usage_app_details_get_200_response_data_weekly_summary_inner: + _organization__patch_request: additionalProperties: false - example: - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id + description: The body of a request to update an organization. properties: - org_id: + operations: + description: "A list of operations to apply to update the organization.\ + \ See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902)\ + \ for more details." + items: + $ref: '#/components/schemas/Replace_Operation' + type: array + required: + - operations + type: object + _organization__patch_200_response_data: + additionalProperties: false + description: The updated organization settings + example: + cache_queries_per_user: true + workflow_run_retention_period_mins: 0.8008281904610115 + app_owners_permissions_management: true + javascript_links: + - javascript_links + - javascript_links + request_access_enabled: true + preloaded_javascript: preloaded_javascript + disable_new_login_ip_notification_email: true + two_factor_auth_required: true + ai_support_bot_disabled: true + preloaded_css: preloaded_css + release_management_enabled: true + apply_preloaded_css_to_homepage: true + id: id + retool_forms_disabled: true + two_factor_auth_type: fido2 + properties: + id: + description: The id of the organization. type: string - weekly_data: + request_access_enabled: + description: Whether users can request access to join the organization. + type: boolean + ai_support_bot_disabled: + description: Whether the AI support bot is disabled. + type: boolean + retool_forms_disabled: + description: Whether Retool forms are disabled. + type: boolean + release_management_enabled: + description: Whether versions and releases on apps are disabled. + type: boolean + cache_queries_per_user: + nullable: true + type: boolean + apply_preloaded_css_to_homepage: + description: Whether preloaded CSS is applied to the Retool homepage. + type: boolean + preloaded_css: + description: Custom CSS rules to apply across Retool. + nullable: true + type: string + preloaded_javascript: + description: Preloaded JavaScript that will apply to every Retool app. + nullable: true + type: string + javascript_links: + description: List of custom JavaScript libraries to load in every app. items: - $ref: '#/components/schemas/_usage_app_details_get_200_response_data_weekly_summary_inner_weekly_data_inner' + type: string type: array + workflow_run_retention_period_mins: + description: "Number of minutes to store workflow run history data (up to\ + \ a max of 90 days on cloud, 1 year on-prem)" + type: number + app_owners_permissions_management: + description: Whether app owners can manage permissions for their apps directly. + type: boolean + two_factor_auth_required: + description: Whether two-factor authentication is required for all users + in the organization. + type: boolean + two_factor_auth_type: + description: "Required 2FA type, applies to the whole organization" + enum: + - fido2 + - otp + nullable: true + type: string + disable_new_login_ip_notification_email: + description: Whether notification emails for logins from new IPs are disabled. + type: boolean + required: + - ai_support_bot_disabled + - app_owners_permissions_management + - apply_preloaded_css_to_homepage + - cache_queries_per_user + - disable_new_login_ip_notification_email + - id + - javascript_links + - preloaded_css + - preloaded_javascript + - release_management_enabled + - request_access_enabled + - retool_forms_disabled + - two_factor_auth_required + - two_factor_auth_type + - workflow_run_retention_period_mins + type: object + _organization__patch_200_response: + example: + data: + cache_queries_per_user: true + workflow_run_retention_period_mins: 0.8008281904610115 + app_owners_permissions_management: true + javascript_links: + - javascript_links + - javascript_links + request_access_enabled: true + preloaded_javascript: preloaded_javascript + disable_new_login_ip_notification_email: true + two_factor_auth_required: true + ai_support_bot_disabled: true + preloaded_css: preloaded_css + release_management_enabled: true + apply_preloaded_css_to_homepage: true + id: id + retool_forms_disabled: true + two_factor_auth_type: fido2 + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_organization__patch_200_response_data' + required: + - data + - success + type: object + _organization_ai_settings_get_200_response_data: + additionalProperties: false + example: + retoolAIActions: true + retoolVector: true + retoolAskAI: true + retoolAI: true + properties: + retoolAI: + description: Global switch for all Retool AI features. This switch takes + precedence over individual feature switches. + type: boolean + retoolAIActions: + description: Whether Retool AI Actions are enabled. + type: boolean + retoolVector: + description: Whether Retool Vector is enabled. + type: boolean + retoolAskAI: + description: Whether Retool Ask AI is enabled. + type: boolean + required: + - retoolAI + - retoolAIActions + - retoolAskAI + - retoolVector + type: object + _organization_ai_settings_get_200_response: + description: The current organization AI settings + example: + data: + retoolAIActions: true + retoolVector: true + retoolAskAI: true + retoolAI: true + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_organization_ai_settings_get_200_response_data' + required: + - data + - success + type: object + _organization_ai_settings_put_200_response: + description: The updated organization AI settings + example: + data: + retoolAIActions: true + retoolVector: true + retoolAskAI: true + retoolAI: true + success: true + properties: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_organization_ai_settings_get_200_response_data' required: - - org_id - - weekly_data + - data + - success type: object - _usage_app_details_get_200_response_data_viewer_summary_inner: - additionalProperties: false + _organization_analytics_integrations_get_200_response_data_inner_oneOf: example: - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email + type: google + measurement_id: measurement_id + enabled: true properties: - email: + type: + enum: + - google type: string - count: - type: number - user_id: + measurement_id: type: string - org_id: + enabled: + type: boolean + required: + - enabled + - measurement_id + - type + type: object + _organization_analytics_integrations_get_200_response_data_inner_oneOf_1: + properties: + type: + enum: + - segment type: string host: + enum: + - US + - EU + type: string + api_key: type: string + enabled: + type: boolean required: - - count - - email + - api_key + - enabled - host - - org_id - - user_id + - type type: object - _usage_app_details_get_200_response_data: - additionalProperties: false - example: - editor_summary: - - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email - - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email - overall_summary: - - app_name: app_name - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 - - app_name: app_name - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 - weekly_summary: - - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id - - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id - viewer_summary: - - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email - - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email + _organization_analytics_integrations_get_200_response_data_inner_oneOf_2: properties: - overall_summary: - items: - $ref: '#/components/schemas/_usage_app_details_get_200_response_data_overall_summary_inner' - type: array - weekly_summary: - items: - $ref: '#/components/schemas/_usage_app_details_get_200_response_data_weekly_summary_inner' - type: array - viewer_summary: - items: - $ref: '#/components/schemas/_usage_app_details_get_200_response_data_viewer_summary_inner' - type: array - editor_summary: - items: - $ref: '#/components/schemas/_usage_app_details_get_200_response_data_viewer_summary_inner' - type: array + type: + enum: + - stdout + type: string + enabled: + type: boolean required: - - editor_summary - - overall_summary - - viewer_summary - - weekly_summary + - enabled + - type type: object - _usage_app_details_get_200_response: - description: "The details about the app usage, such as edits and views, for\ - \ the organizations" + _organization_analytics_integrations_get_200_response_data_inner: + oneOf: + - $ref: '#/components/schemas/_organization_analytics_integrations_get_200_response_data_inner_oneOf' + - $ref: '#/components/schemas/_organization_analytics_integrations_get_200_response_data_inner_oneOf_1' + - $ref: '#/components/schemas/_organization_analytics_integrations_get_200_response_data_inner_oneOf_2' + _organization_analytics_integrations_get_200_response: + description: A list of configured integrations for third-party analytics. There + is at-most one of each type. example: data: - editor_summary: - - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email - - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email - overall_summary: - - app_name: app_name - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 - - app_name: app_name - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 - weekly_summary: - - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id - - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id - viewer_summary: - - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email - - user_id: user_id - org_id: org_id - count: 5.637376656633329 - host: host - email: email + - type: google + measurement_id: measurement_id + enabled: true + - type: google + measurement_id: measurement_id + enabled: true success: true + total_count: 0.8008281904610115 + has_more: true + next_token: next_token properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_usage_app_details_get_200_response_data' + description: An array of requested items + items: + $ref: '#/components/schemas/_organization_analytics_integrations_get_200_response_data_inner' + type: array + total_count: + description: Total number of items in the response + type: number + next_token: + description: A token to retrieve the next page of items in the collection + nullable: true + type: string + has_more: + description: Whether there are more items in the collection + type: boolean required: - data + - has_more + - next_token - success + - total_count type: object - _usage_user_summary_get_200_response_data_inner: - additionalProperties: false + _workflows_get_200_response_data_inner: + description: This object represents a Workflow. example: - user_id: user_id - count_app_views: 0.8008281904610115 - count_unique_apps: 1.4658129805029452 - org_id: org_id - host: host - last_active: 2019-02-08T11:45:48.899Z - email: email - count_app_saves: 6.027456183070403 + is_enabled: true + protected: true + updated_at: 2019-02-24T18:28:18.79Z + crontab: crontab + timezone: timezone + name: name + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + folder_id: folder_id + created_by: 0.8008281904610115 properties: - org_id: - description: The id of the organization to which this user belongs + id: + description: The Workflow ID. + format: uuid type: string - user_id: - description: The id of the user + name: + description: The name of the Workflow type: string - email: - description: The email of the user + description: + description: The description of the Workflow + nullable: true type: string - host: - description: The host of the organization to which this user belongs + crontab: + description: The cron tab of the Workflow + nullable: true type: string - count_app_views: - description: The number of times the user viewed an app in the time range - specified - type: number - count_app_saves: - description: The number of times the user edited an app in the time range - specified - type: number - count_unique_apps: - description: The number of unique apps edited in the time range specified + timezone: + description: The timezone of the Workflow + nullable: true + type: string + is_enabled: + description: Whether the Workflow is enabled + type: boolean + folder_id: + description: The folder ID of the Workflow + type: string + protected: + description: Whether the Workflow is protected + type: boolean + created_by: + description: The user ID of the creator of the Workflow + nullable: true type: number - last_active: + created_at: example: 2019-02-08T11:45:48.899Z format: date-time type: string + updated_at: + example: 2019-02-24T18:28:18.79Z + format: date-time + type: string required: - - count_app_saves - - count_app_views - - count_unique_apps - - email - - host - - last_active - - org_id - - user_id + - created_at + - created_by + - crontab + - description + - folder_id + - id + - is_enabled + - name + - protected + - timezone + - updated_at type: object - _usage_user_summary_get_200_response: - description: The user summaries for the organizations + _workflows_get_200_response: + description: A list of all workflows in the organization example: data: - - user_id: user_id - count_app_views: 0.8008281904610115 - count_unique_apps: 1.4658129805029452 - org_id: org_id - host: host - last_active: 2019-02-08T11:45:48.899Z - email: email - count_app_saves: 6.027456183070403 - - user_id: user_id - count_app_views: 0.8008281904610115 - count_unique_apps: 1.4658129805029452 - org_id: org_id - host: host - last_active: 2019-02-08T11:45:48.899Z - email: email - count_app_saves: 6.027456183070403 + - is_enabled: true + protected: true + updated_at: 2019-02-24T18:28:18.79Z + crontab: crontab + timezone: timezone + name: name + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + folder_id: folder_id + created_by: 0.8008281904610115 + - is_enabled: true + protected: true + updated_at: 2019-02-24T18:28:18.79Z + crontab: crontab + timezone: timezone + name: name + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + folder_id: folder_id + created_by: 0.8008281904610115 success: true - total_count: 5.962133916683182 + total_count: 6.027456183070403 has_more: true next_token: next_token properties: @@ -10668,7 +16182,7 @@ components: data: description: An array of requested items items: - $ref: '#/components/schemas/_usage_user_summary_get_200_response_data_inner' + $ref: '#/components/schemas/_workflows_get_200_response_data_inner' type: array total_count: description: Total number of items in the response @@ -10687,219 +16201,94 @@ components: - success - total_count type: object - _usage_user_details_get_200_response_data_overall_summary_inner: - additionalProperties: false + _workflows_get_403_response: example: - user_id: user_id - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 + success: true + message: message properties: - org_id: - type: string - user_id: - type: string - host: + success: + type: boolean + message: type: string - count_app_saves: - type: number - count_app_views: - type: number required: - - count_app_saves - - count_app_views - - host - - org_id - - user_id + - message + - success type: object - _usage_user_details_get_200_response_data_viewer_summary_inner: - additionalProperties: false + _workflows__workflowId__get_200_response: + description: A single workflow example: - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 + data: + is_enabled: true + protected: true + updated_at: 2019-02-24T18:28:18.79Z + crontab: crontab + timezone: timezone + name: name + description: description + created_at: 2019-02-08T11:45:48.899Z + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + folder_id: folder_id + created_by: 0.8008281904610115 + success: true properties: - app_name: + success: + description: API request succeeded + type: boolean + data: + $ref: '#/components/schemas/_workflows_get_200_response_data_inner' + required: + - data + - success + type: object + _info_ip_allowlist_get_200_response_data_ipAddresses: + example: + ap-southeast-1: ap-southeast-1 + eu-central-1: eu-central-1 + us-west-2: us-west-2 + properties: + us-west-2: type: string - org_id: + eu-central-1: type: string - host: + ap-southeast-1: type: string - count: - type: number required: - - app_name - - count - - host - - org_id + - ap-southeast-1 + - eu-central-1 + - us-west-2 type: object - _usage_user_details_get_200_response_data: + _info_ip_allowlist_get_200_response_data: + additionalProperties: false example: - editor_summary: - - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 - - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 - overall_summary: - - user_id: user_id - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 - - user_id: user_id - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 - weekly_summary: - - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id - - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id - viewer_summary: - - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 - - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 + ipAddresses: + ap-southeast-1: ap-southeast-1 + eu-central-1: eu-central-1 + us-west-2: us-west-2 properties: - overall_summary: - items: - $ref: '#/components/schemas/_usage_user_details_get_200_response_data_overall_summary_inner' - type: array - weekly_summary: - items: - $ref: '#/components/schemas/_usage_app_details_get_200_response_data_weekly_summary_inner' - type: array - viewer_summary: - items: - $ref: '#/components/schemas/_usage_user_details_get_200_response_data_viewer_summary_inner' - type: array - editor_summary: - items: - $ref: '#/components/schemas/_usage_user_details_get_200_response_data_viewer_summary_inner' - type: array + ipAddresses: + $ref: '#/components/schemas/_info_ip_allowlist_get_200_response_data_ipAddresses' required: - - editor_summary - - overall_summary - - viewer_summary - - weekly_summary + - ipAddresses type: object - _usage_user_details_get_200_response: - description: "The details about the users usage, such as edits and views on\ - \ apps, for the organizations" + _info_ip_allowlist_get_200_response: + description: Response schema for retrieving the Retool IP allowlist by region. example: data: - editor_summary: - - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 - - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 - overall_summary: - - user_id: user_id - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 - - user_id: user_id - count_app_views: 6.027456183070403 - org_id: org_id - host: host - count_app_saves: 0.8008281904610115 - weekly_summary: - - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id - - weekly_data: - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - - week: week - count_app_views: 5.962133916683182 - count_app_saves: 1.4658129805029452 - org_id: org_id - viewer_summary: - - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 - - app_name: app_name - org_id: org_id - host: host - count: 1.4658129805029452 + ipAddresses: + ap-southeast-1: ap-southeast-1 + eu-central-1: eu-central-1 + us-west-2: us-west-2 success: true properties: success: description: API request succeeded type: boolean data: - $ref: '#/components/schemas/_usage_user_details_get_200_response_data' + $ref: '#/components/schemas/_info_ip_allowlist_get_200_response_data' required: - data - success type: object - source_control_configuration_anyOf_config: - anyOf: - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_config_oneOf' - - $ref: '#/components/schemas/_source_control_config_get_200_response_data_oneOf_config_oneOf_1' - source_control_configuration_anyOf: - properties: - config: - $ref: '#/components/schemas/source_control_configuration_anyOf_config' - provider: - enum: - - GitHub - type: string - org: - description: The user or organization to which the repository belongs to. - type: string - repo: - description: The name of the repository you created to use with Retool. - type: string - default_branch: - description: "The default branch, e.g., main." - type: string - repo_version: - description: Repositories using Toolscript are 2.0.0. Repositories using - legacy YAML are 1.0.0. - type: string - required: - - config - - default_branch - - org - - provider - - repo - type: object securitySchemes: BearerAuth: scheme: bearer diff --git a/internal/sdk/api/api_access_request.go b/internal/sdk/api/api_access_request.go index eeba6cf..1b88c99 100644 --- a/internal/sdk/api/api_access_request.go +++ b/internal/sdk/api/api_access_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -39,7 +39,7 @@ AccessRequestsAccessRequestIdGet Get access request Available from API version 2.2.0+ and onprem version 3.24.0+. Returns the access request. The API token must have the "Users > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param accessRequestId + @param accessRequestId The access request's ID number @return ApiAccessRequestsAccessRequestIdGetRequest */ func (a *AccessRequestAPIService) AccessRequestsAccessRequestIdGet(ctx context.Context, accessRequestId string) ApiAccessRequestsAccessRequestIdGetRequest { @@ -148,7 +148,7 @@ AccessRequestsAccessRequestIdPatch Approve or deny an access request Available from API version 2.3.0+ and onprem version 3.24.0+. Approve or deny an access request in your organization. The API token must have the "Users > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param accessRequestId + @param accessRequestId The ID of the access request @return ApiAccessRequestsAccessRequestIdPatchRequest */ func (a *AccessRequestAPIService) AccessRequestsAccessRequestIdPatch(ctx context.Context, accessRequestId string) ApiAccessRequestsAccessRequestIdPatchRequest { @@ -243,6 +243,7 @@ type ApiAccessRequestsGetRequest struct { status *string } +// The status of the access request func (r ApiAccessRequestsGetRequest) Status(status string) ApiAccessRequestsGetRequest { r.status = &status return r @@ -255,7 +256,7 @@ func (r ApiAccessRequestsGetRequest) Execute() (*AccessRequestsGet200Response, * /* AccessRequestsGet Get organization access requests -Available from API version 2.3.0+ and onprem version 3.24.0+. Gets a list of access requests. The API token must have the "Users > Read" scope. +Available from API version 2.3.0+ and onprem version 3.26.0+. Gets a list of access requests. The API token must have the "Users > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAccessRequestsGetRequest diff --git a/internal/sdk/api/api_access_tokens.go b/internal/sdk/api/api_access_tokens.go new file mode 100644 index 0000000..1f72318 --- /dev/null +++ b/internal/sdk/api/api_access_tokens.go @@ -0,0 +1,328 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// AccessTokensAPIService AccessTokensAPI service +type AccessTokensAPIService service + +type ApiAccessTokensAccessTokenIdGetRequest struct { + ctx context.Context + ApiService *AccessTokensAPIService +} + +func (r ApiAccessTokensAccessTokenIdGetRequest) Execute() (*AccessTokensAccessTokenIdGet200Response, *http.Response, error) { + return r.ApiService.AccessTokensAccessTokenIdGetExecute(r) +} + +/* +AccessTokensAccessTokenIdGet Get a single access token + +Available on Retool v3.164+. Fetch an access token by id. The API token must have the "Access Tokens > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAccessTokensAccessTokenIdGetRequest +*/ +func (a *AccessTokensAPIService) AccessTokensAccessTokenIdGet(ctx context.Context) ApiAccessTokensAccessTokenIdGetRequest { + return ApiAccessTokensAccessTokenIdGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AccessTokensAccessTokenIdGet200Response +func (a *AccessTokensAPIService) AccessTokensAccessTokenIdGetExecute(r ApiAccessTokensAccessTokenIdGetRequest) (*AccessTokensAccessTokenIdGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AccessTokensAccessTokenIdGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessTokensAPIService.AccessTokensAccessTokenIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/access_tokens/:accessTokenId" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAccessTokensGetRequest struct { + ctx context.Context + ApiService *AccessTokensAPIService +} + +func (r ApiAccessTokensGetRequest) Execute() (*AccessTokensGet200Response, *http.Response, error) { + return r.ApiService.AccessTokensGetExecute(r) +} + +/* +AccessTokensGet List access tokens + +List all access tokens created in the organization. The API token must have the "Access Tokens > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAccessTokensGetRequest +*/ +func (a *AccessTokensAPIService) AccessTokensGet(ctx context.Context) ApiAccessTokensGetRequest { + return ApiAccessTokensGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AccessTokensGet200Response +func (a *AccessTokensAPIService) AccessTokensGetExecute(r ApiAccessTokensGetRequest) (*AccessTokensGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AccessTokensGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessTokensAPIService.AccessTokensGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/access_tokens" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAccessTokensPostRequest struct { + ctx context.Context + ApiService *AccessTokensAPIService + accessTokensPostRequest *AccessTokensPostRequest +} + +func (r ApiAccessTokensPostRequest) AccessTokensPostRequest(accessTokensPostRequest AccessTokensPostRequest) ApiAccessTokensPostRequest { + r.accessTokensPostRequest = &accessTokensPostRequest + return r +} + +func (r ApiAccessTokensPostRequest) Execute() (*AccessTokensPost200Response, *http.Response, error) { + return r.ApiService.AccessTokensPostExecute(r) +} + +/* +AccessTokensPost Create an access token + +Available on Retool v3.157+. Creates and returns an access token with given scopes. The API token must have the "Access Tokens > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAccessTokensPostRequest +*/ +func (a *AccessTokensAPIService) AccessTokensPost(ctx context.Context) ApiAccessTokensPostRequest { + return ApiAccessTokensPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AccessTokensPost200Response +func (a *AccessTokensAPIService) AccessTokensPostExecute(r ApiAccessTokensPostRequest) (*AccessTokensPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AccessTokensPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessTokensAPIService.AccessTokensPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/access_tokens" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.accessTokensPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_app_themes.go b/internal/sdk/api/api_app_themes.go index f0dbeb8..a5759f4 100644 --- a/internal/sdk/api/api_app_themes.go +++ b/internal/sdk/api/api_app_themes.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,105 @@ import ( // AppThemesAPIService AppThemesAPI service type AppThemesAPIService service +type ApiAppThemesGetRequest struct { + ctx context.Context + ApiService *AppThemesAPIService +} + +func (r ApiAppThemesGetRequest) Execute() (*AppThemesGet200Response, *http.Response, error) { + return r.ApiService.AppThemesGetExecute(r) +} + +/* +AppThemesGet List all app themes + +Available on Retool v3.139+. Returns all app themes for the organization or space. The API token must have the "App Themes > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAppThemesGetRequest +*/ +func (a *AppThemesAPIService) AppThemesGet(ctx context.Context) ApiAppThemesGetRequest { + return ApiAppThemesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AppThemesGet200Response +func (a *AppThemesAPIService) AppThemesGetExecute(r ApiAppThemesGetRequest) (*AppThemesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppThemesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppThemesAPIService.AppThemesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/app_themes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiAppThemesIdDeleteRequest struct { ctx context.Context ApiService *AppThemesAPIService @@ -241,11 +340,11 @@ func (a *AppThemesAPIService) AppThemesIdGetExecute(r ApiAppThemesIdGetRequest) type ApiAppThemesPostRequest struct { ctx context.Context ApiService *AppThemesAPIService - appThemesPutRequest *AppThemesPutRequest + appThemesGet200ResponseDataInner *AppThemesGet200ResponseDataInner } -func (r ApiAppThemesPostRequest) AppThemesPutRequest(appThemesPutRequest AppThemesPutRequest) ApiAppThemesPostRequest { - r.appThemesPutRequest = &appThemesPutRequest +func (r ApiAppThemesPostRequest) AppThemesGet200ResponseDataInner(appThemesGet200ResponseDataInner AppThemesGet200ResponseDataInner) ApiAppThemesPostRequest { + r.appThemesGet200ResponseDataInner = &appThemesGet200ResponseDataInner return r } @@ -307,7 +406,7 @@ func (a *AppThemesAPIService) AppThemesPostExecute(r ApiAppThemesPostRequest) (* localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.appThemesPutRequest + localVarPostBody = r.appThemesGet200ResponseDataInner req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -358,11 +457,11 @@ func (a *AppThemesAPIService) AppThemesPostExecute(r ApiAppThemesPostRequest) (* type ApiAppThemesPutRequest struct { ctx context.Context ApiService *AppThemesAPIService - appThemesPutRequest *AppThemesPutRequest + appThemesGet200ResponseDataInner *AppThemesGet200ResponseDataInner } -func (r ApiAppThemesPutRequest) AppThemesPutRequest(appThemesPutRequest AppThemesPutRequest) ApiAppThemesPutRequest { - r.appThemesPutRequest = &appThemesPutRequest +func (r ApiAppThemesPutRequest) AppThemesGet200ResponseDataInner(appThemesGet200ResponseDataInner AppThemesGet200ResponseDataInner) ApiAppThemesPutRequest { + r.appThemesGet200ResponseDataInner = &appThemesGet200ResponseDataInner return r } @@ -424,7 +523,7 @@ func (a *AppThemesAPIService) AppThemesPutExecute(r ApiAppThemesPutRequest) (*Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.appThemesPutRequest + localVarPostBody = r.appThemesGet200ResponseDataInner req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/internal/sdk/api/api_apps.go b/internal/sdk/api/api_apps.go index cebfb7c..7a4c123 100644 --- a/internal/sdk/api/api_apps.go +++ b/internal/sdk/api/api_apps.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -39,7 +39,7 @@ AppsAppIdDelete Delete app Deletes an app with the given appId. The API token must have the "Apps > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param appId + @param appId The app ID. @return ApiAppsAppIdDeleteRequest */ func (a *AppsAPIService) AppsAppIdDelete(ctx context.Context, appId string) ApiAppsAppIdDeleteRequest { @@ -131,7 +131,7 @@ AppsAppIdGet Get app Available from API version 2.4.0+ and onprem version 3.28.0+. Returns the App. The API token must have the "Apps > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param appId + @param appId The app ID. @return ApiAppsAppIdGetRequest */ func (a *AppsAPIService) AppsAppIdGet(ctx context.Context, appId string) ApiAppsAppIdGetRequest { @@ -218,6 +218,123 @@ func (a *AppsAPIService) AppsAppIdGetExecute(r ApiAppsAppIdGetRequest) (*AppsApp return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppsCloneAppPostRequest struct { + ctx context.Context + ApiService *AppsAPIService + appsCloneAppPostRequest *AppsCloneAppPostRequest +} + +func (r ApiAppsCloneAppPostRequest) AppsCloneAppPostRequest(appsCloneAppPostRequest AppsCloneAppPostRequest) ApiAppsCloneAppPostRequest { + r.appsCloneAppPostRequest = &appsCloneAppPostRequest + return r +} + +func (r ApiAppsCloneAppPostRequest) Execute() (*AppsAppIdGet200Response, *http.Response, error) { + return r.ApiService.AppsCloneAppPostExecute(r) +} + +/* +AppsCloneAppPost Clone app + +Make a copy of an existing app into a chosen folder (defaults to root if not provided). The API token must have the "Apps > Write" scope. Available on Retool versions 3.105.0+. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAppsCloneAppPostRequest +*/ +func (a *AppsAPIService) AppsCloneAppPost(ctx context.Context) ApiAppsCloneAppPostRequest { + return ApiAppsCloneAppPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AppsAppIdGet200Response +func (a *AppsAPIService) AppsCloneAppPostExecute(r ApiAppsCloneAppPostRequest) (*AppsAppIdGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppsAppIdGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppsAPIService.AppsCloneAppPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/cloneApp" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.appsCloneAppPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiAppsGetRequest struct { ctx context.Context ApiService *AppsAPIService diff --git a/internal/sdk/api/api_configuration_variables.go b/internal/sdk/api/api_configuration_variables.go index 31cc98b..f2a9bb4 100644 --- a/internal/sdk/api/api_configuration_variables.go +++ b/internal/sdk/api/api_configuration_variables.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -138,7 +138,7 @@ ConfigurationVariablesIdDelete Delete configuration variable Deletes a configuration variable and its values. Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the "Configuration Variables > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id + @param id The ID of the configuration variable @return ApiConfigurationVariablesIdDeleteRequest */ func (a *ConfigurationVariablesAPIService) ConfigurationVariablesIdDelete(ctx context.Context, id string) ApiConfigurationVariablesIdDeleteRequest { @@ -230,7 +230,7 @@ ConfigurationVariablesIdGet Retreive a single configuration variable and its val Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the "Configuration Variables > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id + @param id The ID of the configuration variable @return ApiConfigurationVariablesIdGetRequest */ func (a *ConfigurationVariablesAPIService) ConfigurationVariablesIdGet(ctx context.Context, id string) ApiConfigurationVariablesIdGetRequest { @@ -339,7 +339,7 @@ ConfigurationVariablesIdPut Update a configuration variable Update a configuration variable and its values. Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the "Configuration Variables > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id + @param id The ID of the configuration variable @return ApiConfigurationVariablesIdPutRequest */ func (a *ConfigurationVariablesAPIService) ConfigurationVariablesIdPut(ctx context.Context, id string) ApiConfigurationVariablesIdPutRequest { diff --git a/internal/sdk/api/api_custom_component_library.go b/internal/sdk/api/api_custom_component_library.go index a81ee85..1a2fb7a 100644 --- a/internal/sdk/api/api_custom_component_library.go +++ b/internal/sdk/api/api_custom_component_library.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,7 @@ type ApiCustomComponentLibrariesGetRequest struct { nextToken *string } +// The token of the current page func (r ApiCustomComponentLibrariesGetRequest) NextToken(nextToken string) ApiCustomComponentLibrariesGetRequest { r.nextToken = &nextToken return r diff --git a/internal/sdk/api/api_environments.go b/internal/sdk/api/api_environments.go new file mode 100644 index 0000000..605ee0f --- /dev/null +++ b/internal/sdk/api/api_environments.go @@ -0,0 +1,556 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// EnvironmentsAPIService EnvironmentsAPI service +type EnvironmentsAPIService service + +type ApiEnvironmentsEnvironmentIdDeleteRequest struct { + ctx context.Context + ApiService *EnvironmentsAPIService + environmentId string +} + +func (r ApiEnvironmentsEnvironmentIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.EnvironmentsEnvironmentIdDeleteExecute(r) +} + +/* +EnvironmentsEnvironmentIdDelete Delete environment + +Available on Retool version 3.123.0+. Deletes an environment by ID. The API token must have the "Environments > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentId + @return ApiEnvironmentsEnvironmentIdDeleteRequest +*/ +func (a *EnvironmentsAPIService) EnvironmentsEnvironmentIdDelete(ctx context.Context, environmentId string) ApiEnvironmentsEnvironmentIdDeleteRequest { + return ApiEnvironmentsEnvironmentIdDeleteRequest{ + ApiService: a, + ctx: ctx, + environmentId: environmentId, + } +} + +// Execute executes the request +func (a *EnvironmentsAPIService) EnvironmentsEnvironmentIdDeleteExecute(r ApiEnvironmentsEnvironmentIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.EnvironmentsEnvironmentIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentId}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentId"+"}", url.PathEscape(parameterValueToString(r.environmentId, "environmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiEnvironmentsEnvironmentIdGetRequest struct { + ctx context.Context + ApiService *EnvironmentsAPIService + environmentId string +} + +func (r ApiEnvironmentsEnvironmentIdGetRequest) Execute() (*EnvironmentsEnvironmentIdGet200Response, *http.Response, error) { + return r.ApiService.EnvironmentsEnvironmentIdGetExecute(r) +} + +/* +EnvironmentsEnvironmentIdGet Get an environment + +Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a single environment of the given uuid. The API token must have the "Environment > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentId + @return ApiEnvironmentsEnvironmentIdGetRequest +*/ +func (a *EnvironmentsAPIService) EnvironmentsEnvironmentIdGet(ctx context.Context, environmentId string) ApiEnvironmentsEnvironmentIdGetRequest { + return ApiEnvironmentsEnvironmentIdGetRequest{ + ApiService: a, + ctx: ctx, + environmentId: environmentId, + } +} + +// Execute executes the request +// @return EnvironmentsEnvironmentIdGet200Response +func (a *EnvironmentsAPIService) EnvironmentsEnvironmentIdGetExecute(r ApiEnvironmentsEnvironmentIdGetRequest) (*EnvironmentsEnvironmentIdGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentsEnvironmentIdGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.EnvironmentsEnvironmentIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentId}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentId"+"}", url.PathEscape(parameterValueToString(r.environmentId, "environmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiEnvironmentsEnvironmentIdPatchRequest struct { + ctx context.Context + ApiService *EnvironmentsAPIService + environmentId string + environmentsEnvironmentIdPatchRequest *EnvironmentsEnvironmentIdPatchRequest +} + +func (r ApiEnvironmentsEnvironmentIdPatchRequest) EnvironmentsEnvironmentIdPatchRequest(environmentsEnvironmentIdPatchRequest EnvironmentsEnvironmentIdPatchRequest) ApiEnvironmentsEnvironmentIdPatchRequest { + r.environmentsEnvironmentIdPatchRequest = &environmentsEnvironmentIdPatchRequest + return r +} + +func (r ApiEnvironmentsEnvironmentIdPatchRequest) Execute() (*EnvironmentsEnvironmentIdPatch200Response, *http.Response, error) { + return r.ApiService.EnvironmentsEnvironmentIdPatchExecute(r) +} + +/* +EnvironmentsEnvironmentIdPatch Update an environment + +Available on Retool version 3.123.0+. Update an environment name, description, or color. The API token must have the "Environments > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param environmentId + @return ApiEnvironmentsEnvironmentIdPatchRequest +*/ +func (a *EnvironmentsAPIService) EnvironmentsEnvironmentIdPatch(ctx context.Context, environmentId string) ApiEnvironmentsEnvironmentIdPatchRequest { + return ApiEnvironmentsEnvironmentIdPatchRequest{ + ApiService: a, + ctx: ctx, + environmentId: environmentId, + } +} + +// Execute executes the request +// @return EnvironmentsEnvironmentIdPatch200Response +func (a *EnvironmentsAPIService) EnvironmentsEnvironmentIdPatchExecute(r ApiEnvironmentsEnvironmentIdPatchRequest) (*EnvironmentsEnvironmentIdPatch200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentsEnvironmentIdPatch200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.EnvironmentsEnvironmentIdPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments/{environmentId}" + localVarPath = strings.Replace(localVarPath, "{"+"environmentId"+"}", url.PathEscape(parameterValueToString(r.environmentId, "environmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.environmentsEnvironmentIdPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiEnvironmentsGetRequest struct { + ctx context.Context + ApiService *EnvironmentsAPIService +} + +func (r ApiEnvironmentsGetRequest) Execute() (*EnvironmentsGet200Response, *http.Response, error) { + return r.ApiService.EnvironmentsGetExecute(r) +} + +/* +EnvironmentsGet Get environments + +Available from API version 2.4.0+ and onprem version 3.28.0+. Gets a list of environments. The API token must have the "Environment > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiEnvironmentsGetRequest +*/ +func (a *EnvironmentsAPIService) EnvironmentsGet(ctx context.Context) ApiEnvironmentsGetRequest { + return ApiEnvironmentsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return EnvironmentsGet200Response +func (a *EnvironmentsAPIService) EnvironmentsGetExecute(r ApiEnvironmentsGetRequest) (*EnvironmentsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.EnvironmentsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiEnvironmentsPostRequest struct { + ctx context.Context + ApiService *EnvironmentsAPIService + environmentsPostRequest *EnvironmentsPostRequest +} + +func (r ApiEnvironmentsPostRequest) EnvironmentsPostRequest(environmentsPostRequest EnvironmentsPostRequest) ApiEnvironmentsPostRequest { + r.environmentsPostRequest = &environmentsPostRequest + return r +} + +func (r ApiEnvironmentsPostRequest) Execute() (*EnvironmentsPost200Response, *http.Response, error) { + return r.ApiService.EnvironmentsPostExecute(r) +} + +/* +EnvironmentsPost Create environment + +Available on Retool version 3.123.0+. Creates and returns an environment. The API token must have the "Environments > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiEnvironmentsPostRequest +*/ +func (a *EnvironmentsAPIService) EnvironmentsPost(ctx context.Context) ApiEnvironmentsPostRequest { + return ApiEnvironmentsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return EnvironmentsPost200Response +func (a *EnvironmentsAPIService) EnvironmentsPostExecute(r ApiEnvironmentsPostRequest) (*EnvironmentsPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentsPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentsAPIService.EnvironmentsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.environmentsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 409 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_folders.go b/internal/sdk/api/api_folders.go index 148db6a..e964491 100644 --- a/internal/sdk/api/api_folders.go +++ b/internal/sdk/api/api_folders.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,11 +27,12 @@ type ApiFoldersFolderIdDeleteRequest struct { ctx context.Context ApiService *FoldersAPIService folderId string - foldersFolderIdDeleteRequest *FoldersFolderIdDeleteRequest + recursive *bool } -func (r ApiFoldersFolderIdDeleteRequest) FoldersFolderIdDeleteRequest(foldersFolderIdDeleteRequest FoldersFolderIdDeleteRequest) ApiFoldersFolderIdDeleteRequest { - r.foldersFolderIdDeleteRequest = &foldersFolderIdDeleteRequest +// Should the folder's contents also be deleted? (Only supported for app folders.) +func (r ApiFoldersFolderIdDeleteRequest) Recursive(recursive bool) ApiFoldersFolderIdDeleteRequest { + r.recursive = &recursive return r } @@ -45,7 +46,7 @@ FoldersFolderIdDelete Delete folder Deletes a folder by ID. The API token must have the "Folders > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param folderId + @param folderId The id of the folder @return ApiFoldersFolderIdDeleteRequest */ func (a *FoldersAPIService) FoldersFolderIdDelete(ctx context.Context, folderId string) ApiFoldersFolderIdDeleteRequest { @@ -76,8 +77,11 @@ func (a *FoldersAPIService) FoldersFolderIdDeleteExecute(r ApiFoldersFolderIdDel localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.recursive != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "recursive", r.recursive, "") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -93,8 +97,6 @@ func (a *FoldersAPIService) FoldersFolderIdDeleteExecute(r ApiFoldersFolderIdDel if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.foldersFolderIdDeleteRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -149,7 +151,7 @@ FoldersFolderIdGet Get a folder Returns the folder with the given ID. The API token must have the "Folders > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param folderId + @param folderId The id of the folder @return ApiFoldersFolderIdGetRequest */ func (a *FoldersAPIService) FoldersFolderIdGet(ctx context.Context, folderId string) ApiFoldersFolderIdGetRequest { @@ -268,7 +270,7 @@ FoldersFolderIdPatch Update folder Updates a folder by ID. The API token must have the "Folders > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param folderId + @param folderId The id of the folder @return ApiFoldersFolderIdPatchRequest */ func (a *FoldersAPIService) FoldersFolderIdPatch(ctx context.Context, folderId string) ApiFoldersFolderIdPatchRequest { diff --git a/internal/sdk/api/api_groups.go b/internal/sdk/api/api_groups.go index 2ea97c6..dc1e79a 100644 --- a/internal/sdk/api/api_groups.go +++ b/internal/sdk/api/api_groups.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -138,7 +138,7 @@ GroupsGroupIdDelete Delete group Deletes a group with the given groupId. The API token must have the "Groups > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId + @param groupId The group's ID number @return ApiGroupsGroupIdDeleteRequest */ func (a *GroupsAPIService) GroupsGroupIdDelete(ctx context.Context, groupId string) ApiGroupsGroupIdDeleteRequest { @@ -230,7 +230,7 @@ GroupsGroupIdGet Get group Get a group with a given groupId. The API token must have the "Groups > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId + @param groupId The group's ID number @return ApiGroupsGroupIdGetRequest */ func (a *GroupsAPIService) GroupsGroupIdGet(ctx context.Context, groupId string) ApiGroupsGroupIdGetRequest { @@ -336,10 +336,10 @@ func (r ApiGroupsGroupIdMembersPostRequest) Execute() (*GroupsGroupIdPut200Respo /* GroupsGroupIdMembersPost Add users to group -Adds a user to specified group and returns the group. Can optionally set or unset group admins by using the `is_group_admin` property. The API token must have the "Groups > Write" scope. +Adds specified user(s) to group and returns the group. Can optionally set or unset group admins by using the `is_group_admin` property. If existing members are passed in, group admin status will be updated. You cannot remove members using this endpoint. The API token must have the "Groups > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId + @param groupId The group's ID number @return ApiGroupsGroupIdMembersPostRequest */ func (a *GroupsAPIService) GroupsGroupIdMembersPost(ctx context.Context, groupId string) ApiGroupsGroupIdMembersPostRequest { @@ -445,7 +445,7 @@ GroupsGroupIdMembersUserSidDelete Remove user from group Removes the user from the group and returns the group. The API token must have the "Groups > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId + @param groupId The group's ID number @param userSid @return ApiGroupsGroupIdMembersUserSidDeleteRequest */ @@ -557,7 +557,7 @@ GroupsGroupIdPatch Update group Update a group in an organization using JSON Patch (RFC 6902). Returns the updated group. The API token must have the "Groups > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId + @param groupId The group's ID number @return ApiGroupsGroupIdPatchRequest */ func (a *GroupsAPIService) GroupsGroupIdPatch(ctx context.Context, groupId string) ApiGroupsGroupIdPatchRequest { @@ -668,7 +668,7 @@ GroupsGroupIdPut Update group Update the entire group and returns the updated group. The API token must have the "Groups > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId + @param groupId The group's ID number @return ApiGroupsGroupIdPutRequest */ func (a *GroupsAPIService) GroupsGroupIdPut(ctx context.Context, groupId string) ApiGroupsGroupIdPutRequest { @@ -779,7 +779,7 @@ GroupsGroupIdUserInvitesPost Add user invites to group Available from API version 2.4.0+ and onprem version 3.28.0+. Adds a user invite to specified group and returns the group. The API token must have the "Groups > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId + @param groupId The group's ID number @return ApiGroupsGroupIdUserInvitesPostRequest */ func (a *GroupsAPIService) GroupsGroupIdUserInvitesPost(ctx context.Context, groupId string) ApiGroupsGroupIdUserInvitesPostRequest { @@ -885,8 +885,8 @@ GroupsGroupIdUserInvitesUserInviteIdDelete Remove user invite from group Available from API version 2.4.0+ and onprem version 3.28.0+. Removes the user invite from the group. The API token must have the "Groups > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId - @param userInviteId + @param groupId The group's ID number + @param userInviteId The user invite's ID number @return ApiGroupsGroupIdUserInvitesUserInviteIdDeleteRequest */ func (a *GroupsAPIService) GroupsGroupIdUserInvitesUserInviteIdDelete(ctx context.Context, groupId string, userInviteId string) ApiGroupsGroupIdUserInvitesUserInviteIdDeleteRequest { diff --git a/internal/sdk/api/api_info.go b/internal/sdk/api/api_info.go new file mode 100644 index 0000000..394a725 --- /dev/null +++ b/internal/sdk/api/api_info.go @@ -0,0 +1,132 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// InfoAPIService InfoAPI service +type InfoAPIService service + +type ApiInfoIpAllowlistGetRequest struct { + ctx context.Context + ApiService *InfoAPIService +} + +func (r ApiInfoIpAllowlistGetRequest) Execute() (*InfoIpAllowlistGet200Response, *http.Response, error) { + return r.ApiService.InfoIpAllowlistGetExecute(r) +} + +/* +InfoIpAllowlistGet Get IP allowlist by region + +Returns a list of Retool Cloud IP addresses that require access to connected data sources. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInfoIpAllowlistGetRequest +*/ +func (a *InfoAPIService) InfoIpAllowlistGet(ctx context.Context) ApiInfoIpAllowlistGetRequest { + return ApiInfoIpAllowlistGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InfoIpAllowlistGet200Response +func (a *InfoAPIService) InfoIpAllowlistGetExecute(r ApiInfoIpAllowlistGetRequest) (*InfoIpAllowlistGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InfoIpAllowlistGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InfoAPIService.InfoIpAllowlistGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/info/ip_allowlist" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_observability.go b/internal/sdk/api/api_observability.go index 37c5b00..3a625da 100644 --- a/internal/sdk/api/api_observability.go +++ b/internal/sdk/api/api_observability.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -39,7 +39,7 @@ ObservabilityConfigConfigIdDelete Delete an observability provider configuration Delete observability configuration for the organization. The API token must have the "Observability > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configId + @param configId The id of the observability configuration to delete. @return ApiObservabilityConfigConfigIdDeleteRequest */ func (a *ObservabilityAPIService) ObservabilityConfigConfigIdDelete(ctx context.Context, configId string) ApiObservabilityConfigConfigIdDeleteRequest { @@ -158,7 +158,7 @@ ObservabilityConfigConfigIdPut Update an observability provider configuration Update observability configuration for the organization and returns the updated configuration. This will result in an error if no existing configuration found. The API token must have the "Observability > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configId + @param configId The id of the observability configuration to update. @return ApiObservabilityConfigConfigIdPutRequest */ func (a *ObservabilityAPIService) ObservabilityConfigConfigIdPut(ctx context.Context, configId string) ApiObservabilityConfigConfigIdPutRequest { @@ -554,7 +554,7 @@ ObservabilityProviderProviderTestPost Send a test error event to the observabili Send a test error event to the observability provider. The API token must have the "Observability > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param provider + @param provider The observability provider name, either \"Sentry\" or \"Datadog\" @return ApiObservabilityProviderProviderTestPostRequest */ func (a *ObservabilityAPIService) ObservabilityProviderProviderTestPost(ctx context.Context, provider ObservabilityProviderProviderTestPostProviderParameter) ApiObservabilityProviderProviderTestPostRequest { diff --git a/internal/sdk/api/api_organization.go b/internal/sdk/api/api_organization.go new file mode 100644 index 0000000..d158a56 --- /dev/null +++ b/internal/sdk/api/api_organization.go @@ -0,0 +1,632 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// OrganizationAPIService OrganizationAPI service +type OrganizationAPIService service + +type ApiOrganizationAiSettingsGetRequest struct { + ctx context.Context + ApiService *OrganizationAPIService +} + +func (r ApiOrganizationAiSettingsGetRequest) Execute() (*OrganizationAiSettingsGet200Response, *http.Response, error) { + return r.ApiService.OrganizationAiSettingsGetExecute(r) +} + +/* +OrganizationAiSettingsGet Get organization AI settings + +Returns the organization's AI settings. The API token must have the "Organizations > Read" scope. Available on Retool versions 3.165.0+. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOrganizationAiSettingsGetRequest +*/ +func (a *OrganizationAPIService) OrganizationAiSettingsGet(ctx context.Context) ApiOrganizationAiSettingsGetRequest { + return ApiOrganizationAiSettingsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return OrganizationAiSettingsGet200Response +func (a *OrganizationAPIService) OrganizationAiSettingsGetExecute(r ApiOrganizationAiSettingsGetRequest) (*OrganizationAiSettingsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationAiSettingsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.OrganizationAiSettingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organization/ai_settings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOrganizationAiSettingsPutRequest struct { + ctx context.Context + ApiService *OrganizationAPIService + organizationAiSettingsGet200ResponseData *OrganizationAiSettingsGet200ResponseData +} + +func (r ApiOrganizationAiSettingsPutRequest) OrganizationAiSettingsGet200ResponseData(organizationAiSettingsGet200ResponseData OrganizationAiSettingsGet200ResponseData) ApiOrganizationAiSettingsPutRequest { + r.organizationAiSettingsGet200ResponseData = &organizationAiSettingsGet200ResponseData + return r +} + +func (r ApiOrganizationAiSettingsPutRequest) Execute() (*OrganizationAiSettingsPut200Response, *http.Response, error) { + return r.ApiService.OrganizationAiSettingsPutExecute(r) +} + +/* +OrganizationAiSettingsPut Update organization AI settings + +Updates the AI settings on organization. The API token must have the "Organizations > Write" scope. Available on Retool versions 3.165.0+. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOrganizationAiSettingsPutRequest +*/ +func (a *OrganizationAPIService) OrganizationAiSettingsPut(ctx context.Context) ApiOrganizationAiSettingsPutRequest { + return ApiOrganizationAiSettingsPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return OrganizationAiSettingsPut200Response +func (a *OrganizationAPIService) OrganizationAiSettingsPutExecute(r ApiOrganizationAiSettingsPutRequest) (*OrganizationAiSettingsPut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationAiSettingsPut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.OrganizationAiSettingsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organization/ai_settings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.organizationAiSettingsGet200ResponseData + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOrganizationAnalyticsIntegrationsGetRequest struct { + ctx context.Context + ApiService *OrganizationAPIService +} + +func (r ApiOrganizationAnalyticsIntegrationsGetRequest) Execute() (*OrganizationAnalyticsIntegrationsGet200Response, *http.Response, error) { + return r.ApiService.OrganizationAnalyticsIntegrationsGetExecute(r) +} + +/* +OrganizationAnalyticsIntegrationsGet Get organization third-party Analytics Integrations settings + +Returns the organization's analytics integrations settings. We return a list of configuration objects, but there is at-most one configuration per integration type. The API token must have the "Organizations > Read" scope. Available on Retool versions 3.175.0+. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOrganizationAnalyticsIntegrationsGetRequest +*/ +func (a *OrganizationAPIService) OrganizationAnalyticsIntegrationsGet(ctx context.Context) ApiOrganizationAnalyticsIntegrationsGetRequest { + return ApiOrganizationAnalyticsIntegrationsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return OrganizationAnalyticsIntegrationsGet200Response +func (a *OrganizationAPIService) OrganizationAnalyticsIntegrationsGetExecute(r ApiOrganizationAnalyticsIntegrationsGetRequest) (*OrganizationAnalyticsIntegrationsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationAnalyticsIntegrationsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.OrganizationAnalyticsIntegrationsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organization/analytics_integrations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOrganizationGetRequest struct { + ctx context.Context + ApiService *OrganizationAPIService +} + +func (r ApiOrganizationGetRequest) Execute() (*OrganizationGet200Response, *http.Response, error) { + return r.ApiService.OrganizationGetExecute(r) +} + +/* +OrganizationGet Get organization + +Returns the organization's advanced settings. The API token must have the "Organizations > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOrganizationGetRequest +*/ +func (a *OrganizationAPIService) OrganizationGet(ctx context.Context) ApiOrganizationGetRequest { + return ApiOrganizationGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return OrganizationGet200Response +func (a *OrganizationAPIService) OrganizationGetExecute(r ApiOrganizationGetRequest) (*OrganizationGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.OrganizationGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organization/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiOrganizationInvalidateSessionsPostRequest struct { + ctx context.Context + ApiService *OrganizationAPIService +} + +func (r ApiOrganizationInvalidateSessionsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.OrganizationInvalidateSessionsPostExecute(r) +} + +/* +OrganizationInvalidateSessionsPost Invalidates all sessions for your organization + +Invalidate all sessions for all users in your organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOrganizationInvalidateSessionsPostRequest +*/ +func (a *OrganizationAPIService) OrganizationInvalidateSessionsPost(ctx context.Context) ApiOrganizationInvalidateSessionsPostRequest { + return ApiOrganizationInvalidateSessionsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *OrganizationAPIService) OrganizationInvalidateSessionsPostExecute(r ApiOrganizationInvalidateSessionsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.OrganizationInvalidateSessionsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organization/invalidate_sessions/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiOrganizationPatchRequest struct { + ctx context.Context + ApiService *OrganizationAPIService + organizationPatchRequest *OrganizationPatchRequest +} + +func (r ApiOrganizationPatchRequest) OrganizationPatchRequest(organizationPatchRequest OrganizationPatchRequest) ApiOrganizationPatchRequest { + r.organizationPatchRequest = &organizationPatchRequest + return r +} + +func (r ApiOrganizationPatchRequest) Execute() (*OrganizationPatch200Response, *http.Response, error) { + return r.ApiService.OrganizationPatchExecute(r) +} + +/* +OrganizationPatch Update advanced settings on organization + +Updates and returns the updated organization. The API token must have the "Organizations > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOrganizationPatchRequest +*/ +func (a *OrganizationAPIService) OrganizationPatch(ctx context.Context) ApiOrganizationPatchRequest { + return ApiOrganizationPatchRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return OrganizationPatch200Response +func (a *OrganizationAPIService) OrganizationPatchExecute(r ApiOrganizationPatchRequest) (*OrganizationPatch200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationPatch200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationAPIService.OrganizationPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organization/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.organizationPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_permissions.go b/internal/sdk/api/api_permissions.go index 33fd6ad..75cf8b2 100644 --- a/internal/sdk/api/api_permissions.go +++ b/internal/sdk/api/api_permissions.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,12 +16,120 @@ import ( "io" "net/http" "net/url" + "strings" ) // PermissionsAPIService PermissionsAPI service type PermissionsAPIService service +type ApiPermissionsAccessListObjectTypeObjectIdGetRequest struct { + ctx context.Context + ApiService *PermissionsAPIService + objectId string + objectType string +} + +func (r ApiPermissionsAccessListObjectTypeObjectIdGetRequest) Execute() (*PermissionsAccessListObjectTypeObjectIdGet200Response, *http.Response, error) { + return r.ApiService.PermissionsAccessListObjectTypeObjectIdGetExecute(r) +} + +/* +PermissionsAccessListObjectTypeObjectIdGet Get the access list of an app or folder + +Returns the list of users/groups and corresponding access levels whom have access to a selected folder, app, resource, workflow, or agent. The API token must have the "Permissions > Read" scope. Apps and folders are supported from onprem edge version 3.96.0+ and 3.114-stable+. Resources, workflows, and agents are supported from onprem edge version 3.236.0+. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param objectId Object ID. Apps can be accessed by numeric id or UUID. Folders can be accessed by numeric id. + @param objectType + @return ApiPermissionsAccessListObjectTypeObjectIdGetRequest +*/ +func (a *PermissionsAPIService) PermissionsAccessListObjectTypeObjectIdGet(ctx context.Context, objectId string, objectType string) ApiPermissionsAccessListObjectTypeObjectIdGetRequest { + return ApiPermissionsAccessListObjectTypeObjectIdGetRequest{ + ApiService: a, + ctx: ctx, + objectId: objectId, + objectType: objectType, + } +} + +// Execute executes the request +// @return PermissionsAccessListObjectTypeObjectIdGet200Response +func (a *PermissionsAPIService) PermissionsAccessListObjectTypeObjectIdGetExecute(r ApiPermissionsAccessListObjectTypeObjectIdGetRequest) (*PermissionsAccessListObjectTypeObjectIdGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PermissionsAccessListObjectTypeObjectIdGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.PermissionsAccessListObjectTypeObjectIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/permissions/accessList/{objectType}/{objectId}" + localVarPath = strings.Replace(localVarPath, "{"+"objectId"+"}", url.PathEscape(parameterValueToString(r.objectId, "objectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"objectType"+"}", url.PathEscape(parameterValueToString(r.objectType, "objectType")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiPermissionsGrantPostRequest struct { ctx context.Context ApiService *PermissionsAPIService @@ -40,7 +148,7 @@ func (r ApiPermissionsGrantPostRequest) Execute() (*PermissionsListObjectsPost20 /* PermissionsGrantPost Grant permissions -Grant a group (subject) access to an object. Returns the updated list of objects with corresponding access levels that the subject has access to. The API token must have the "Permissions > Write" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+. Only subject type supported is groups. Also grants or updates access for all the objects within the folder. +Grant a group or user (subject) access to an object. Returns the updated list of objects with corresponding access levels that the subject has access to. The API token must have the "Permissions > Write" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+. User permissions for folders and apps are supported from API version 2.7.0+ and Retool version 3.187.0+. Also grants or updates access for all the objects directly under the folder. However it does not grant or update access for subfolders and subsequent objects under them. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiPermissionsGrantPostRequest @@ -247,14 +355,14 @@ func (r ApiPermissionsRevokePostRequest) PermissionsRevokePostRequest(permission return r } -func (r ApiPermissionsRevokePostRequest) Execute() (*PermissionsRevokePost200Response, *http.Response, error) { +func (r ApiPermissionsRevokePostRequest) Execute() (*PermissionsListObjectsPost200Response, *http.Response, error) { return r.ApiService.PermissionsRevokePostExecute(r) } /* PermissionsRevokePost Revoke permissions -Revoke access to an object for a group. Returns the updated list of objects with corresponding access levels that the subject has access to. The API token must have the "Permissions > Write" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+. Only subject type supported is groups. Also revokes access to all the objects within the folder. +Revoke access to an object for a group or user (subject). Returns the updated list of objects with corresponding access levels that the subject has access to. The API token must have the "Permissions > Write" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+. User permissions for folders and apps are supported from API version 2.7.0+ and Retool version 3.187.0+. Also revokes access to all the objects directly under the folder. However it does not revoke access for subfolders and subsequent objects under them. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiPermissionsRevokePostRequest @@ -267,13 +375,13 @@ func (a *PermissionsAPIService) PermissionsRevokePost(ctx context.Context) ApiPe } // Execute executes the request -// @return PermissionsRevokePost200Response -func (a *PermissionsAPIService) PermissionsRevokePostExecute(r ApiPermissionsRevokePostRequest) (*PermissionsRevokePost200Response, *http.Response, error) { +// @return PermissionsListObjectsPost200Response +func (a *PermissionsAPIService) PermissionsRevokePostExecute(r ApiPermissionsRevokePostRequest) (*PermissionsListObjectsPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PermissionsRevokePost200Response + localVarReturnValue *PermissionsListObjectsPost200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.PermissionsRevokePost") @@ -342,3 +450,1051 @@ func (a *PermissionsAPIService) PermissionsRevokePostExecute(r ApiPermissionsRev return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiRolePermissionsRoleGrantsGetRequest struct { + ctx context.Context + ApiService *PermissionsAPIService +} + +func (r ApiRolePermissionsRoleGrantsGetRequest) Execute() (*http.Response, error) { + return r.ApiService.RolePermissionsRoleGrantsGetExecute(r) +} + +/* +RolePermissionsRoleGrantsGet Get role grants + +Available from API version 2.9.0+. Returns a list of role grants. The API token must have the "Permissions > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRolePermissionsRoleGrantsGetRequest +*/ +func (a *PermissionsAPIService) RolePermissionsRoleGrantsGet(ctx context.Context) ApiRolePermissionsRoleGrantsGetRequest { + return ApiRolePermissionsRoleGrantsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *PermissionsAPIService) RolePermissionsRoleGrantsGetExecute(r ApiRolePermissionsRoleGrantsGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.RolePermissionsRoleGrantsGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/role_permissions/role_grants" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRolePermissionsRoleGrantsPostRequest struct { + ctx context.Context + ApiService *PermissionsAPIService + rolePermissionsRoleGrantsPostRequest *RolePermissionsRoleGrantsPostRequest +} + +func (r ApiRolePermissionsRoleGrantsPostRequest) RolePermissionsRoleGrantsPostRequest(rolePermissionsRoleGrantsPostRequest RolePermissionsRoleGrantsPostRequest) ApiRolePermissionsRoleGrantsPostRequest { + r.rolePermissionsRoleGrantsPostRequest = &rolePermissionsRoleGrantsPostRequest + return r +} + +func (r ApiRolePermissionsRoleGrantsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.RolePermissionsRoleGrantsPostExecute(r) +} + +/* +RolePermissionsRoleGrantsPost Create a role grant + +Available from API version 2.9.0+. Creates a role grant. The API token must have the "Permissions > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRolePermissionsRoleGrantsPostRequest +*/ +func (a *PermissionsAPIService) RolePermissionsRoleGrantsPost(ctx context.Context) ApiRolePermissionsRoleGrantsPostRequest { + return ApiRolePermissionsRoleGrantsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *PermissionsAPIService) RolePermissionsRoleGrantsPostExecute(r ApiRolePermissionsRoleGrantsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.RolePermissionsRoleGrantsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/role_permissions/role_grants" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rolePermissionsRoleGrantsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRolePermissionsRoleGrantsRoleGrantIdDeleteRequest struct { + ctx context.Context + ApiService *PermissionsAPIService + roleGrantId string +} + +func (r ApiRolePermissionsRoleGrantsRoleGrantIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.RolePermissionsRoleGrantsRoleGrantIdDeleteExecute(r) +} + +/* +RolePermissionsRoleGrantsRoleGrantIdDelete Delete a role grant + +Available from API version 2.9.0+. Deletes a role grant. The API token must have the "Permissions > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleGrantId The id of the role grant + @return ApiRolePermissionsRoleGrantsRoleGrantIdDeleteRequest +*/ +func (a *PermissionsAPIService) RolePermissionsRoleGrantsRoleGrantIdDelete(ctx context.Context, roleGrantId string) ApiRolePermissionsRoleGrantsRoleGrantIdDeleteRequest { + return ApiRolePermissionsRoleGrantsRoleGrantIdDeleteRequest{ + ApiService: a, + ctx: ctx, + roleGrantId: roleGrantId, + } +} + +// Execute executes the request +func (a *PermissionsAPIService) RolePermissionsRoleGrantsRoleGrantIdDeleteExecute(r ApiRolePermissionsRoleGrantsRoleGrantIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.RolePermissionsRoleGrantsRoleGrantIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/role_permissions/role_grants/{roleGrantId}" + localVarPath = strings.Replace(localVarPath, "{"+"roleGrantId"+"}", url.PathEscape(parameterValueToString(r.roleGrantId, "roleGrantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRolePermissionsRoleGrantsSubjectTypeSubjectIdGetRequest struct { + ctx context.Context + ApiService *PermissionsAPIService + subjectType string + subjectId string +} + +func (r ApiRolePermissionsRoleGrantsSubjectTypeSubjectIdGetRequest) Execute() (*http.Response, error) { + return r.ApiService.RolePermissionsRoleGrantsSubjectTypeSubjectIdGetExecute(r) +} + +/* +RolePermissionsRoleGrantsSubjectTypeSubjectIdGet Get role grants for a subject + +Available from API version 2.9.0+. Returns a list of role grants for a subject. The API token must have the "Permissions > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param subjectType The type of the subject + @param subjectId The id of the subject + @return ApiRolePermissionsRoleGrantsSubjectTypeSubjectIdGetRequest +*/ +func (a *PermissionsAPIService) RolePermissionsRoleGrantsSubjectTypeSubjectIdGet(ctx context.Context, subjectType string, subjectId string) ApiRolePermissionsRoleGrantsSubjectTypeSubjectIdGetRequest { + return ApiRolePermissionsRoleGrantsSubjectTypeSubjectIdGetRequest{ + ApiService: a, + ctx: ctx, + subjectType: subjectType, + subjectId: subjectId, + } +} + +// Execute executes the request +func (a *PermissionsAPIService) RolePermissionsRoleGrantsSubjectTypeSubjectIdGetExecute(r ApiRolePermissionsRoleGrantsSubjectTypeSubjectIdGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.RolePermissionsRoleGrantsSubjectTypeSubjectIdGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/role_permissions/role_grants/{subjectType}/{subjectId}" + localVarPath = strings.Replace(localVarPath, "{"+"subjectType"+"}", url.PathEscape(parameterValueToString(r.subjectType, "subjectType")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subjectId"+"}", url.PathEscape(parameterValueToString(r.subjectId, "subjectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRolePermissionsRolesGetRequest struct { + ctx context.Context + ApiService *PermissionsAPIService +} + +func (r ApiRolePermissionsRolesGetRequest) Execute() (*RolePermissionsRolesGet200Response, *http.Response, error) { + return r.ApiService.RolePermissionsRolesGetExecute(r) +} + +/* +RolePermissionsRolesGet List roles + +Available from API version 2.9.0+. Returns a list of roles. The API token must have the "Permissions > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRolePermissionsRolesGetRequest +*/ +func (a *PermissionsAPIService) RolePermissionsRolesGet(ctx context.Context) ApiRolePermissionsRolesGetRequest { + return ApiRolePermissionsRolesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RolePermissionsRolesGet200Response +func (a *PermissionsAPIService) RolePermissionsRolesGetExecute(r ApiRolePermissionsRolesGetRequest) (*RolePermissionsRolesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RolePermissionsRolesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.RolePermissionsRolesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/role_permissions/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRolePermissionsRolesPostRequest struct { + ctx context.Context + ApiService *PermissionsAPIService + rolePermissionsRolesPostRequest *RolePermissionsRolesPostRequest +} + +func (r ApiRolePermissionsRolesPostRequest) RolePermissionsRolesPostRequest(rolePermissionsRolesPostRequest RolePermissionsRolesPostRequest) ApiRolePermissionsRolesPostRequest { + r.rolePermissionsRolesPostRequest = &rolePermissionsRolesPostRequest + return r +} + +func (r ApiRolePermissionsRolesPostRequest) Execute() (*RolePermissionsRolesPost201Response, *http.Response, error) { + return r.ApiService.RolePermissionsRolesPostExecute(r) +} + +/* +RolePermissionsRolesPost Create a role + +Available from API version 2.9.0+. Creates a role. The API token must have the "Permissions > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRolePermissionsRolesPostRequest +*/ +func (a *PermissionsAPIService) RolePermissionsRolesPost(ctx context.Context) ApiRolePermissionsRolesPostRequest { + return ApiRolePermissionsRolesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RolePermissionsRolesPost201Response +func (a *PermissionsAPIService) RolePermissionsRolesPostExecute(r ApiRolePermissionsRolesPostRequest) (*RolePermissionsRolesPost201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RolePermissionsRolesPost201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.RolePermissionsRolesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/role_permissions/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rolePermissionsRolesPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRolePermissionsRolesRoleIdDeleteRequest struct { + ctx context.Context + ApiService *PermissionsAPIService + roleId string +} + +func (r ApiRolePermissionsRolesRoleIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.RolePermissionsRolesRoleIdDeleteExecute(r) +} + +/* +RolePermissionsRolesRoleIdDelete Delete a role + +Available from API version 2.9.0+. Deletes a role. The API token must have the "Permissions > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId The id of the role + @return ApiRolePermissionsRolesRoleIdDeleteRequest +*/ +func (a *PermissionsAPIService) RolePermissionsRolesRoleIdDelete(ctx context.Context, roleId string) ApiRolePermissionsRolesRoleIdDeleteRequest { + return ApiRolePermissionsRolesRoleIdDeleteRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + } +} + +// Execute executes the request +func (a *PermissionsAPIService) RolePermissionsRolesRoleIdDeleteExecute(r ApiRolePermissionsRolesRoleIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.RolePermissionsRolesRoleIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/role_permissions/roles/{roleId}" + localVarPath = strings.Replace(localVarPath, "{"+"roleId"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRolePermissionsRolesRoleIdPatchRequest struct { + ctx context.Context + ApiService *PermissionsAPIService + roleId string + rolePermissionsRolesRoleIdPatchRequest *RolePermissionsRolesRoleIdPatchRequest +} + +func (r ApiRolePermissionsRolesRoleIdPatchRequest) RolePermissionsRolesRoleIdPatchRequest(rolePermissionsRolesRoleIdPatchRequest RolePermissionsRolesRoleIdPatchRequest) ApiRolePermissionsRolesRoleIdPatchRequest { + r.rolePermissionsRolesRoleIdPatchRequest = &rolePermissionsRolesRoleIdPatchRequest + return r +} + +func (r ApiRolePermissionsRolesRoleIdPatchRequest) Execute() (*RolePermissionsRolesPost201Response, *http.Response, error) { + return r.ApiService.RolePermissionsRolesRoleIdPatchExecute(r) +} + +/* +RolePermissionsRolesRoleIdPatch Update a role + +Available from API version 2.9.0+. Updates a role. The API token must have the "Permissions > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId The id of the role + @return ApiRolePermissionsRolesRoleIdPatchRequest +*/ +func (a *PermissionsAPIService) RolePermissionsRolesRoleIdPatch(ctx context.Context, roleId string) ApiRolePermissionsRolesRoleIdPatchRequest { + return ApiRolePermissionsRolesRoleIdPatchRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + } +} + +// Execute executes the request +// @return RolePermissionsRolesPost201Response +func (a *PermissionsAPIService) RolePermissionsRolesRoleIdPatchExecute(r ApiRolePermissionsRolesRoleIdPatchRequest) (*RolePermissionsRolesPost201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RolePermissionsRolesPost201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionsAPIService.RolePermissionsRolesRoleIdPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/role_permissions/roles/{roleId}" + localVarPath = strings.Replace(localVarPath, "{"+"roleId"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rolePermissionsRolesRoleIdPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_resource_configurations.go b/internal/sdk/api/api_resource_configurations.go index 077023d..9a25fe0 100644 --- a/internal/sdk/api/api_resource_configurations.go +++ b/internal/sdk/api/api_resource_configurations.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -39,7 +39,7 @@ ResourceConfigurationsConfigurationIdDelete Delete resource configuration Available from API version 2.4.0+ and onprem version 3.34.0+. Deletes a resource configuration with the given id. The API token must have the "Resources > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configurationId + @param configurationId The resource configuration id. @return ApiResourceConfigurationsConfigurationIdDeleteRequest */ func (a *ResourceConfigurationsAPIService) ResourceConfigurationsConfigurationIdDelete(ctx context.Context, configurationId string) ApiResourceConfigurationsConfigurationIdDeleteRequest { @@ -131,7 +131,7 @@ ResourceConfigurationsConfigurationIdGet Get resource configuration by id Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a specific resource configuration. The API token must have the "Resources > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param configurationId + @param configurationId The resource configuration id. @return ApiResourceConfigurationsConfigurationIdGetRequest */ func (a *ResourceConfigurationsAPIService) ResourceConfigurationsConfigurationIdGet(ctx context.Context, configurationId string) ApiResourceConfigurationsConfigurationIdGetRequest { @@ -218,26 +218,140 @@ func (a *ResourceConfigurationsAPIService) ResourceConfigurationsConfigurationId return localVarReturnValue, localVarHTTPResponse, nil } +type ApiResourceConfigurationsConfigurationIdPatchRequest struct { + ctx context.Context + ApiService *ResourceConfigurationsAPIService + configurationId string + resourceConfigurationsConfigurationIdPatchRequest *ResourceConfigurationsConfigurationIdPatchRequest +} + +func (r ApiResourceConfigurationsConfigurationIdPatchRequest) ResourceConfigurationsConfigurationIdPatchRequest(resourceConfigurationsConfigurationIdPatchRequest ResourceConfigurationsConfigurationIdPatchRequest) ApiResourceConfigurationsConfigurationIdPatchRequest { + r.resourceConfigurationsConfigurationIdPatchRequest = &resourceConfigurationsConfigurationIdPatchRequest + return r +} + +func (r ApiResourceConfigurationsConfigurationIdPatchRequest) Execute() (*ResourceConfigurationsConfigurationIdPatch200Response, *http.Response, error) { + return r.ApiService.ResourceConfigurationsConfigurationIdPatchExecute(r) +} + +/* +ResourceConfigurationsConfigurationIdPatch Update a resource configuration + +Available from API version 2.4.0+ and onprem version 3.74 on-prem+. Updates the resource configuration with the given resource configuration id. The API token must have the "Resources > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configurationId The resource configuration id. + @return ApiResourceConfigurationsConfigurationIdPatchRequest +*/ +func (a *ResourceConfigurationsAPIService) ResourceConfigurationsConfigurationIdPatch(ctx context.Context, configurationId string) ApiResourceConfigurationsConfigurationIdPatchRequest { + return ApiResourceConfigurationsConfigurationIdPatchRequest{ + ApiService: a, + ctx: ctx, + configurationId: configurationId, + } +} + +// Execute executes the request +// @return ResourceConfigurationsConfigurationIdPatch200Response +func (a *ResourceConfigurationsAPIService) ResourceConfigurationsConfigurationIdPatchExecute(r ApiResourceConfigurationsConfigurationIdPatchRequest) (*ResourceConfigurationsConfigurationIdPatch200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceConfigurationsConfigurationIdPatch200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceConfigurationsAPIService.ResourceConfigurationsConfigurationIdPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resource_configurations/{configurationId}" + localVarPath = strings.Replace(localVarPath, "{"+"configurationId"+"}", url.PathEscape(parameterValueToString(r.configurationId, "configurationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceConfigurationsConfigurationIdPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiResourceConfigurationsGetRequest struct { ctx context.Context ApiService *ResourceConfigurationsAPIService nextToken *string resourceType *string - resourceId *ResourcesGet200ResponseDataInnerId + resourceId *string environmentId *string } +// The token of the current page func (r ApiResourceConfigurationsGetRequest) NextToken(nextToken string) ApiResourceConfigurationsGetRequest { r.nextToken = &nextToken return r } +// The type of resource. func (r ApiResourceConfigurationsGetRequest) ResourceType(resourceType string) ApiResourceConfigurationsGetRequest { r.resourceType = &resourceType return r } -func (r ApiResourceConfigurationsGetRequest) ResourceId(resourceId ResourcesGet200ResponseDataInnerId) ApiResourceConfigurationsGetRequest { +// The uuid or name for the resource. +func (r ApiResourceConfigurationsGetRequest) ResourceId(resourceId string) ApiResourceConfigurationsGetRequest { r.resourceId = &resourceId return r } @@ -254,7 +368,7 @@ func (r ApiResourceConfigurationsGetRequest) Execute() (*ResourceConfigurationsG /* ResourceConfigurationsGet Get resource configurations -Available from API version 2.4.0+ and onprem version 3.34.0+. Gets a paginated list of resource configurations. The API token must have the "Resources > Read" scope. +Available from API version 2.4.0+ and Self-hosted Retool 3.34.0+. Gets a paginated list of resource configurations. The API token must have the "Resources > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiResourceConfigurationsGetRequest @@ -352,3 +466,110 @@ func (a *ResourceConfigurationsAPIService) ResourceConfigurationsGetExecute(r Ap return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiResourceConfigurationsPostRequest struct { + ctx context.Context + ApiService *ResourceConfigurationsAPIService + resourceConfigurationsPostRequest *ResourceConfigurationsPostRequest +} + +func (r ApiResourceConfigurationsPostRequest) ResourceConfigurationsPostRequest(resourceConfigurationsPostRequest ResourceConfigurationsPostRequest) ApiResourceConfigurationsPostRequest { + r.resourceConfigurationsPostRequest = &resourceConfigurationsPostRequest + return r +} + +func (r ApiResourceConfigurationsPostRequest) Execute() (*ResourceConfigurationsPost200Response, *http.Response, error) { + return r.ApiService.ResourceConfigurationsPostExecute(r) +} + +/* +ResourceConfigurationsPost Create resource configuration + +Available from API version 2.4.0+ and onprem version 3.74 on-prem+. Creates a new resource configuration. The API token must have the "Resources > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiResourceConfigurationsPostRequest +*/ +func (a *ResourceConfigurationsAPIService) ResourceConfigurationsPost(ctx context.Context) ApiResourceConfigurationsPostRequest { + return ApiResourceConfigurationsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ResourceConfigurationsPost200Response +func (a *ResourceConfigurationsAPIService) ResourceConfigurationsPostExecute(r ApiResourceConfigurationsPostRequest) (*ResourceConfigurationsPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceConfigurationsPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceConfigurationsAPIService.ResourceConfigurationsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resource_configurations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceConfigurationsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_resources.go b/internal/sdk/api/api_resources.go index e91278f..769c22b 100644 --- a/internal/sdk/api/api_resources.go +++ b/internal/sdk/api/api_resources.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,11 +30,13 @@ type ApiResourcesGetRequest struct { resourceType *string } +// The token of the current page func (r ApiResourcesGetRequest) NextToken(nextToken string) ApiResourcesGetRequest { r.nextToken = &nextToken return r } +// The type of resource. func (r ApiResourcesGetRequest) ResourceType(resourceType string) ApiResourcesGetRequest { r.resourceType = &resourceType return r @@ -250,7 +252,14 @@ func (a *ResourcesAPIService) ResourcesPostExecute(r ApiResourcesPostRequest) (* type ApiResourcesResourceIdDeleteRequest struct { ctx context.Context ApiService *ResourcesAPIService - resourceId ResourcesGet200ResponseDataInnerId + resourceId string + deleteUnderlyingDB *bool +} + +// Whether to delete the underlying retool database when deleting the resource. +func (r ApiResourcesResourceIdDeleteRequest) DeleteUnderlyingDB(deleteUnderlyingDB bool) ApiResourcesResourceIdDeleteRequest { + r.deleteUnderlyingDB = &deleteUnderlyingDB + return r } func (r ApiResourcesResourceIdDeleteRequest) Execute() (*http.Response, error) { @@ -263,10 +272,10 @@ ResourcesResourceIdDelete Delete resource Available from API version 2.4.0+ and onprem version 3.28.0+. Deletes a resource with the given id. The API token must have the "Resources > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param resourceId + @param resourceId The uuid or name for the resource. @return ApiResourcesResourceIdDeleteRequest */ -func (a *ResourcesAPIService) ResourcesResourceIdDelete(ctx context.Context, resourceId ResourcesGet200ResponseDataInnerId) ApiResourcesResourceIdDeleteRequest { +func (a *ResourcesAPIService) ResourcesResourceIdDelete(ctx context.Context, resourceId string) ApiResourcesResourceIdDeleteRequest { return ApiResourcesResourceIdDeleteRequest{ ApiService: a, ctx: ctx, @@ -294,6 +303,9 @@ func (a *ResourcesAPIService) ResourcesResourceIdDeleteExecute(r ApiResourcesRes localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.deleteUnderlyingDB != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deleteUnderlyingDB", r.deleteUnderlyingDB, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -342,7 +354,7 @@ func (a *ResourcesAPIService) ResourcesResourceIdDeleteExecute(r ApiResourcesRes type ApiResourcesResourceIdGetRequest struct { ctx context.Context ApiService *ResourcesAPIService - resourceId ResourcesGet200ResponseDataInnerId + resourceId string } func (r ApiResourcesResourceIdGetRequest) Execute() (*ResourcesResourceIdGet200Response, *http.Response, error) { @@ -355,10 +367,10 @@ ResourcesResourceIdGet Get resource by id Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a specific resource. The API token must have the "Resources > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param resourceId + @param resourceId The uuid or name for the resource. @return ApiResourcesResourceIdGetRequest */ -func (a *ResourcesAPIService) ResourcesResourceIdGet(ctx context.Context, resourceId ResourcesGet200ResponseDataInnerId) ApiResourcesResourceIdGetRequest { +func (a *ResourcesAPIService) ResourcesResourceIdGet(ctx context.Context, resourceId string) ApiResourcesResourceIdGetRequest { return ApiResourcesResourceIdGetRequest{ ApiService: a, ctx: ctx, @@ -441,3 +453,114 @@ func (a *ResourcesAPIService) ResourcesResourceIdGetExecute(r ApiResourcesResour return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiResourcesResourceIdPatchRequest struct { + ctx context.Context + ApiService *ResourcesAPIService + resourceId string + resourcesResourceIdPatchRequest *ResourcesResourceIdPatchRequest +} + +func (r ApiResourcesResourceIdPatchRequest) ResourcesResourceIdPatchRequest(resourcesResourceIdPatchRequest ResourcesResourceIdPatchRequest) ApiResourcesResourceIdPatchRequest { + r.resourcesResourceIdPatchRequest = &resourcesResourceIdPatchRequest + return r +} + +func (r ApiResourcesResourceIdPatchRequest) Execute() (*ResourcesResourceIdPatch200Response, *http.Response, error) { + return r.ApiService.ResourcesResourceIdPatchExecute(r) +} + +/* +ResourcesResourceIdPatch Update a resource + +Updates and returns the updated resource. The API token must have the "Resources > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param resourceId The uuid or name for the resource. + @return ApiResourcesResourceIdPatchRequest +*/ +func (a *ResourcesAPIService) ResourcesResourceIdPatch(ctx context.Context, resourceId string) ApiResourcesResourceIdPatchRequest { + return ApiResourcesResourceIdPatchRequest{ + ApiService: a, + ctx: ctx, + resourceId: resourceId, + } +} + +// Execute executes the request +// @return ResourcesResourceIdPatch200Response +func (a *ResourcesAPIService) ResourcesResourceIdPatchExecute(r ApiResourcesResourceIdPatchRequest) (*ResourcesResourceIdPatch200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourcesResourceIdPatch200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourcesAPIService.ResourcesResourceIdPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/{resourceId}" + localVarPath = strings.Replace(localVarPath, "{"+"resourceId"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourcesResourceIdPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_source_control.go b/internal/sdk/api/api_source_control.go index 90d278e..afb5915 100644 --- a/internal/sdk/api/api_source_control.go +++ b/internal/sdk/api/api_source_control.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -575,12 +575,12 @@ func (r ApiSourceControlDeploymentIdGetRequest) Execute() (*SourceControlDeployP } /* -SourceControlDeploymentIdGet Get deployment by id +SourceControlDeploymentIdGet Get a deployment -Get the status of a deployment +Get the status of a deployment. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id + @param id The deployment ID @return ApiSourceControlDeploymentIdGetRequest */ func (a *SourceControlAPIService) SourceControlDeploymentIdGet(ctx context.Context, id string) ApiSourceControlDeploymentIdGetRequest { @@ -677,6 +677,1526 @@ func (a *SourceControlAPIService) SourceControlDeploymentIdGetExecute(r ApiSourc return localVarReturnValue, localVarHTTPResponse, nil } +type ApiSourceControlManifestsGetRequest struct { + ctx context.Context + ApiService *SourceControlAPIService +} + +func (r ApiSourceControlManifestsGetRequest) Execute() (*SourceControlManifestsGet200Response, *http.Response, error) { + return r.ApiService.SourceControlManifestsGetExecute(r) +} + +/* +SourceControlManifestsGet Lists all release manifests + +Returns a list of all release manifests available in the source control repository. The API token must have the "Source control > Releases (Read)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSourceControlManifestsGetRequest +*/ +func (a *SourceControlAPIService) SourceControlManifestsGet(ctx context.Context) ApiSourceControlManifestsGetRequest { + return ApiSourceControlManifestsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SourceControlManifestsGet200Response +func (a *SourceControlAPIService) SourceControlManifestsGetExecute(r ApiSourceControlManifestsGetRequest) (*SourceControlManifestsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlManifestsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/manifests" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + appUuid string + manifestName string + sourceControlManifestsManifestNameDeletePostRequest *SourceControlManifestsManifestNameDeletePostRequest +} + +func (r ApiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest) SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest SourceControlManifestsManifestNameDeletePostRequest) ApiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest { + r.sourceControlManifestsManifestNameDeletePostRequest = &sourceControlManifestsManifestNameDeletePostRequest + return r +} + +func (r ApiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest) Execute() (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + return r.ApiService.SourceControlManifestsManifestNameAppsAppUuidDeletePostExecute(r) +} + +/* +SourceControlManifestsManifestNameAppsAppUuidDeletePost Delete the entry for an app from a release manifest + +NOTE: This endpoint is deprecated. Use the DELETE /manifests/{manifestName}/{elementUuid} endpoint instead. + +Push a branch to the source control repository that deletes the entry for the specified app from the named release manifest. The API token must have the "Source control > Releases (Write)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appUuid The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid. + @param manifestName Identifier for the manifest of interest + @return ApiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest + +Deprecated +*/ +func (a *SourceControlAPIService) SourceControlManifestsManifestNameAppsAppUuidDeletePost(ctx context.Context, appUuid string, manifestName string) ApiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest { + return ApiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest{ + ApiService: a, + ctx: ctx, + appUuid: appUuid, + manifestName: manifestName, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNamePut200Response +// Deprecated +func (a *SourceControlAPIService) SourceControlManifestsManifestNameAppsAppUuidDeletePostExecute(r ApiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest) (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNamePut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlManifestsManifestNameAppsAppUuidDeletePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/manifests/{manifestName}/apps/{appUuid}/delete" + localVarPath = strings.Replace(localVarPath, "{"+"appUuid"+"}", url.PathEscape(parameterValueToString(r.appUuid, "appUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"manifestName"+"}", url.PathEscape(parameterValueToString(r.manifestName, "manifestName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sourceControlManifestsManifestNameDeletePostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlManifestsManifestNameAppsAppUuidPutRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + appUuid string + manifestName string + sourceControlManifestsManifestNameAppsAppUuidPutRequest *SourceControlManifestsManifestNameAppsAppUuidPutRequest +} + +func (r ApiSourceControlManifestsManifestNameAppsAppUuidPutRequest) SourceControlManifestsManifestNameAppsAppUuidPutRequest(sourceControlManifestsManifestNameAppsAppUuidPutRequest SourceControlManifestsManifestNameAppsAppUuidPutRequest) ApiSourceControlManifestsManifestNameAppsAppUuidPutRequest { + r.sourceControlManifestsManifestNameAppsAppUuidPutRequest = &sourceControlManifestsManifestNameAppsAppUuidPutRequest + return r +} + +func (r ApiSourceControlManifestsManifestNameAppsAppUuidPutRequest) Execute() (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + return r.ApiService.SourceControlManifestsManifestNameAppsAppUuidPutExecute(r) +} + +/* +SourceControlManifestsManifestNameAppsAppUuidPut Set release manifest + +NOTE: This endpoint is deprecated. Use the PUT /manifests/{manifestName}/{elementUuid} endpoint instead. + +Push a branch to the source control repository that updates the release version of the specified app in the named release manifest. If the manifest does not already exist, it will be created in the branch. The API token must have the "Source control > Releases (Write)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appUuid The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid. + @param manifestName Identifier for the manifest of interest + @return ApiSourceControlManifestsManifestNameAppsAppUuidPutRequest + +Deprecated +*/ +func (a *SourceControlAPIService) SourceControlManifestsManifestNameAppsAppUuidPut(ctx context.Context, appUuid string, manifestName string) ApiSourceControlManifestsManifestNameAppsAppUuidPutRequest { + return ApiSourceControlManifestsManifestNameAppsAppUuidPutRequest{ + ApiService: a, + ctx: ctx, + appUuid: appUuid, + manifestName: manifestName, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNamePut200Response +// Deprecated +func (a *SourceControlAPIService) SourceControlManifestsManifestNameAppsAppUuidPutExecute(r ApiSourceControlManifestsManifestNameAppsAppUuidPutRequest) (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNamePut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlManifestsManifestNameAppsAppUuidPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/manifests/{manifestName}/apps/{appUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"appUuid"+"}", url.PathEscape(parameterValueToString(r.appUuid, "appUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"manifestName"+"}", url.PathEscape(parameterValueToString(r.manifestName, "manifestName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sourceControlManifestsManifestNameAppsAppUuidPutRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlManifestsManifestNameDeletePostRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + manifestName string + sourceControlManifestsManifestNameDeletePostRequest *SourceControlManifestsManifestNameDeletePostRequest +} + +func (r ApiSourceControlManifestsManifestNameDeletePostRequest) SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest SourceControlManifestsManifestNameDeletePostRequest) ApiSourceControlManifestsManifestNameDeletePostRequest { + r.sourceControlManifestsManifestNameDeletePostRequest = &sourceControlManifestsManifestNameDeletePostRequest + return r +} + +func (r ApiSourceControlManifestsManifestNameDeletePostRequest) Execute() (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + return r.ApiService.SourceControlManifestsManifestNameDeletePostExecute(r) +} + +/* +SourceControlManifestsManifestNameDeletePost Delete a release manifest + +Push a branch to the source control repository that deletes the named release manifest. The API token must have the "Source control > Releases (Write)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manifestName Identifier for the manifest of interest + @return ApiSourceControlManifestsManifestNameDeletePostRequest +*/ +func (a *SourceControlAPIService) SourceControlManifestsManifestNameDeletePost(ctx context.Context, manifestName string) ApiSourceControlManifestsManifestNameDeletePostRequest { + return ApiSourceControlManifestsManifestNameDeletePostRequest{ + ApiService: a, + ctx: ctx, + manifestName: manifestName, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNamePut200Response +func (a *SourceControlAPIService) SourceControlManifestsManifestNameDeletePostExecute(r ApiSourceControlManifestsManifestNameDeletePostRequest) (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNamePut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlManifestsManifestNameDeletePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/manifests/{manifestName}/delete" + localVarPath = strings.Replace(localVarPath, "{"+"manifestName"+"}", url.PathEscape(parameterValueToString(r.manifestName, "manifestName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sourceControlManifestsManifestNameDeletePostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + elementUuid string + manifestName string + elementType *string + sourceControlManifestsManifestNameDeletePostRequest *SourceControlManifestsManifestNameDeletePostRequest +} + +// The type of the element. +func (r ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest) ElementType(elementType string) ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest { + r.elementType = &elementType + return r +} + +func (r ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest) SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest SourceControlManifestsManifestNameDeletePostRequest) ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest { + r.sourceControlManifestsManifestNameDeletePostRequest = &sourceControlManifestsManifestNameDeletePostRequest + return r +} + +func (r ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest) Execute() (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + return r.ApiService.SourceControlManifestsManifestNameElementUuidDeletePostExecute(r) +} + +/* +SourceControlManifestsManifestNameElementUuidDeletePost Delete the entry for an app from a release manifest + +Push a branch to the source control repository that deletes the entry for the specified element from the named release manifest. The API token must have the "Source control > Releases (Write)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param elementUuid The uuid to specify an element of interest within the release manifest. + @param manifestName Identifier for the manifest of interest + @return ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest +*/ +func (a *SourceControlAPIService) SourceControlManifestsManifestNameElementUuidDeletePost(ctx context.Context, elementUuid string, manifestName string) ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest { + return ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest{ + ApiService: a, + ctx: ctx, + elementUuid: elementUuid, + manifestName: manifestName, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNamePut200Response +func (a *SourceControlAPIService) SourceControlManifestsManifestNameElementUuidDeletePostExecute(r ApiSourceControlManifestsManifestNameElementUuidDeletePostRequest) (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNamePut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlManifestsManifestNameElementUuidDeletePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/manifests/{manifestName}/{elementUuid}/delete" + localVarPath = strings.Replace(localVarPath, "{"+"elementUuid"+"}", url.PathEscape(parameterValueToString(r.elementUuid, "elementUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"manifestName"+"}", url.PathEscape(parameterValueToString(r.manifestName, "manifestName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.elementType == nil { + return localVarReturnValue, nil, reportError("elementType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "elementType", r.elementType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sourceControlManifestsManifestNameDeletePostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlManifestsManifestNameElementUuidPutRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + elementUuid string + manifestName string + elementType *string + sourceControlManifestsManifestNameAppsAppUuidPutRequest *SourceControlManifestsManifestNameAppsAppUuidPutRequest +} + +// The type of the element. +func (r ApiSourceControlManifestsManifestNameElementUuidPutRequest) ElementType(elementType string) ApiSourceControlManifestsManifestNameElementUuidPutRequest { + r.elementType = &elementType + return r +} + +func (r ApiSourceControlManifestsManifestNameElementUuidPutRequest) SourceControlManifestsManifestNameAppsAppUuidPutRequest(sourceControlManifestsManifestNameAppsAppUuidPutRequest SourceControlManifestsManifestNameAppsAppUuidPutRequest) ApiSourceControlManifestsManifestNameElementUuidPutRequest { + r.sourceControlManifestsManifestNameAppsAppUuidPutRequest = &sourceControlManifestsManifestNameAppsAppUuidPutRequest + return r +} + +func (r ApiSourceControlManifestsManifestNameElementUuidPutRequest) Execute() (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + return r.ApiService.SourceControlManifestsManifestNameElementUuidPutExecute(r) +} + +/* +SourceControlManifestsManifestNameElementUuidPut Set release manifest + +Push a branch to the source control repository that updates the release version of the specified element in the named release manifest. If the manifest does not already exist, it will be created in the branch. The API token must have the "Source control > Releases (Write)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param elementUuid The uuid to specify an element of interest within the release manifest. + @param manifestName Identifier for the manifest of interest + @return ApiSourceControlManifestsManifestNameElementUuidPutRequest +*/ +func (a *SourceControlAPIService) SourceControlManifestsManifestNameElementUuidPut(ctx context.Context, elementUuid string, manifestName string) ApiSourceControlManifestsManifestNameElementUuidPutRequest { + return ApiSourceControlManifestsManifestNameElementUuidPutRequest{ + ApiService: a, + ctx: ctx, + elementUuid: elementUuid, + manifestName: manifestName, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNamePut200Response +func (a *SourceControlAPIService) SourceControlManifestsManifestNameElementUuidPutExecute(r ApiSourceControlManifestsManifestNameElementUuidPutRequest) (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNamePut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlManifestsManifestNameElementUuidPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/manifests/{manifestName}/{elementUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"elementUuid"+"}", url.PathEscape(parameterValueToString(r.elementUuid, "elementUuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"manifestName"+"}", url.PathEscape(parameterValueToString(r.manifestName, "manifestName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.elementType == nil { + return localVarReturnValue, nil, reportError("elementType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "elementType", r.elementType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sourceControlManifestsManifestNameAppsAppUuidPutRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlManifestsManifestNameGetRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + manifestName string +} + +func (r ApiSourceControlManifestsManifestNameGetRequest) Execute() (*SourceControlManifestsManifestNameGet200Response, *http.Response, error) { + return r.ApiService.SourceControlManifestsManifestNameGetExecute(r) +} + +/* +SourceControlManifestsManifestNameGet Get a specific release manifest + +Returns the release manifest with the specified name from the source control repository if it exists. The API token must have the "Source control > Releases (Read)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manifestName Identifier for the manifest of interest + @return ApiSourceControlManifestsManifestNameGetRequest +*/ +func (a *SourceControlAPIService) SourceControlManifestsManifestNameGet(ctx context.Context, manifestName string) ApiSourceControlManifestsManifestNameGetRequest { + return ApiSourceControlManifestsManifestNameGetRequest{ + ApiService: a, + ctx: ctx, + manifestName: manifestName, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNameGet200Response +func (a *SourceControlAPIService) SourceControlManifestsManifestNameGetExecute(r ApiSourceControlManifestsManifestNameGetRequest) (*SourceControlManifestsManifestNameGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNameGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlManifestsManifestNameGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/manifests/{manifestName}" + localVarPath = strings.Replace(localVarPath, "{"+"manifestName"+"}", url.PathEscape(parameterValueToString(r.manifestName, "manifestName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlManifestsManifestNamePutRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + manifestName string + sourceControlManifestsManifestNamePutRequest *SourceControlManifestsManifestNamePutRequest +} + +func (r ApiSourceControlManifestsManifestNamePutRequest) SourceControlManifestsManifestNamePutRequest(sourceControlManifestsManifestNamePutRequest SourceControlManifestsManifestNamePutRequest) ApiSourceControlManifestsManifestNamePutRequest { + r.sourceControlManifestsManifestNamePutRequest = &sourceControlManifestsManifestNamePutRequest + return r +} + +func (r ApiSourceControlManifestsManifestNamePutRequest) Execute() (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + return r.ApiService.SourceControlManifestsManifestNamePutExecute(r) +} + +/* +SourceControlManifestsManifestNamePut Set release manifest + +Push a branch to the source control repository that creates or updates the named release manifest. If the manifest exists, it will be overwritten in the branch. The API token must have the "Source control > Releases (Write)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manifestName Identifier for the manifest of interest + @return ApiSourceControlManifestsManifestNamePutRequest +*/ +func (a *SourceControlAPIService) SourceControlManifestsManifestNamePut(ctx context.Context, manifestName string) ApiSourceControlManifestsManifestNamePutRequest { + return ApiSourceControlManifestsManifestNamePutRequest{ + ApiService: a, + ctx: ctx, + manifestName: manifestName, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNamePut200Response +func (a *SourceControlAPIService) SourceControlManifestsManifestNamePutExecute(r ApiSourceControlManifestsManifestNamePutRequest) (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNamePut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlManifestsManifestNamePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/manifests/{manifestName}" + localVarPath = strings.Replace(localVarPath, "{"+"manifestName"+"}", url.PathEscape(parameterValueToString(r.manifestName, "manifestName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sourceControlManifestsManifestNamePutRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlReleasesAppsAppUuidGetRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + appUuid string +} + +func (r ApiSourceControlReleasesAppsAppUuidGetRequest) Execute() (*SourceControlReleasesAppsAppUuidGet200Response, *http.Response, error) { + return r.ApiService.SourceControlReleasesAppsAppUuidGetExecute(r) +} + +/* +SourceControlReleasesAppsAppUuidGet Lists all available releases for the given app. + +NOTE: This endpoint is deprecated. Use the GET /releases/{elementUuid} endpoint instead. + +Returns a list of the available releases for the app. The API token must have the "Source control > Releases (Read)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appUuid The uuid of the app. + @return ApiSourceControlReleasesAppsAppUuidGetRequest + +Deprecated +*/ +func (a *SourceControlAPIService) SourceControlReleasesAppsAppUuidGet(ctx context.Context, appUuid string) ApiSourceControlReleasesAppsAppUuidGetRequest { + return ApiSourceControlReleasesAppsAppUuidGetRequest{ + ApiService: a, + ctx: ctx, + appUuid: appUuid, + } +} + +// Execute executes the request +// @return SourceControlReleasesAppsAppUuidGet200Response +// Deprecated +func (a *SourceControlAPIService) SourceControlReleasesAppsAppUuidGetExecute(r ApiSourceControlReleasesAppsAppUuidGetRequest) (*SourceControlReleasesAppsAppUuidGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlReleasesAppsAppUuidGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlReleasesAppsAppUuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/releases/apps/{appUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"appUuid"+"}", url.PathEscape(parameterValueToString(r.appUuid, "appUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlReleasesAppsAppUuidPostRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + appUuid string + sourceControlReleasesAppsAppUuidPostRequest *SourceControlReleasesAppsAppUuidPostRequest +} + +func (r ApiSourceControlReleasesAppsAppUuidPostRequest) SourceControlReleasesAppsAppUuidPostRequest(sourceControlReleasesAppsAppUuidPostRequest SourceControlReleasesAppsAppUuidPostRequest) ApiSourceControlReleasesAppsAppUuidPostRequest { + r.sourceControlReleasesAppsAppUuidPostRequest = &sourceControlReleasesAppsAppUuidPostRequest + return r +} + +func (r ApiSourceControlReleasesAppsAppUuidPostRequest) Execute() (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + return r.ApiService.SourceControlReleasesAppsAppUuidPostExecute(r) +} + +/* +SourceControlReleasesAppsAppUuidPost Create a release artifact + +NOTE: This endpoint is deprecated. Use the POST /releases/{elementUuid} endpoint instead. + +Push a branch to the source control repository that creates a new release artifact with the provided version for the app based on the latest version. The API token must have the "Source control > Releases (Write)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appUuid The uuid of the app. + @return ApiSourceControlReleasesAppsAppUuidPostRequest + +Deprecated +*/ +func (a *SourceControlAPIService) SourceControlReleasesAppsAppUuidPost(ctx context.Context, appUuid string) ApiSourceControlReleasesAppsAppUuidPostRequest { + return ApiSourceControlReleasesAppsAppUuidPostRequest{ + ApiService: a, + ctx: ctx, + appUuid: appUuid, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNamePut200Response +// Deprecated +func (a *SourceControlAPIService) SourceControlReleasesAppsAppUuidPostExecute(r ApiSourceControlReleasesAppsAppUuidPostRequest) (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNamePut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlReleasesAppsAppUuidPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/releases/apps/{appUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"appUuid"+"}", url.PathEscape(parameterValueToString(r.appUuid, "appUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sourceControlReleasesAppsAppUuidPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlReleasesElementUuidGetRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + elementUuid string + elementType *string +} + +// The type of the element. +func (r ApiSourceControlReleasesElementUuidGetRequest) ElementType(elementType string) ApiSourceControlReleasesElementUuidGetRequest { + r.elementType = &elementType + return r +} + +func (r ApiSourceControlReleasesElementUuidGetRequest) Execute() (*SourceControlReleasesAppsAppUuidGet200Response, *http.Response, error) { + return r.ApiService.SourceControlReleasesElementUuidGetExecute(r) +} + +/* +SourceControlReleasesElementUuidGet Lists all available releases for the given element. + +Returns a list of the available releases for the element. The API token must have the "Source control > Releases (Read)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param elementUuid The uuid of the element. + @return ApiSourceControlReleasesElementUuidGetRequest +*/ +func (a *SourceControlAPIService) SourceControlReleasesElementUuidGet(ctx context.Context, elementUuid string) ApiSourceControlReleasesElementUuidGetRequest { + return ApiSourceControlReleasesElementUuidGetRequest{ + ApiService: a, + ctx: ctx, + elementUuid: elementUuid, + } +} + +// Execute executes the request +// @return SourceControlReleasesAppsAppUuidGet200Response +func (a *SourceControlAPIService) SourceControlReleasesElementUuidGetExecute(r ApiSourceControlReleasesElementUuidGetRequest) (*SourceControlReleasesAppsAppUuidGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlReleasesAppsAppUuidGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlReleasesElementUuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/releases/{elementUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"elementUuid"+"}", url.PathEscape(parameterValueToString(r.elementUuid, "elementUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.elementType == nil { + return localVarReturnValue, nil, reportError("elementType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "elementType", r.elementType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSourceControlReleasesElementUuidPostRequest struct { + ctx context.Context + ApiService *SourceControlAPIService + elementUuid string + elementType *string + sourceControlReleasesAppsAppUuidPostRequest *SourceControlReleasesAppsAppUuidPostRequest +} + +// The type of the element. +func (r ApiSourceControlReleasesElementUuidPostRequest) ElementType(elementType string) ApiSourceControlReleasesElementUuidPostRequest { + r.elementType = &elementType + return r +} + +func (r ApiSourceControlReleasesElementUuidPostRequest) SourceControlReleasesAppsAppUuidPostRequest(sourceControlReleasesAppsAppUuidPostRequest SourceControlReleasesAppsAppUuidPostRequest) ApiSourceControlReleasesElementUuidPostRequest { + r.sourceControlReleasesAppsAppUuidPostRequest = &sourceControlReleasesAppsAppUuidPostRequest + return r +} + +func (r ApiSourceControlReleasesElementUuidPostRequest) Execute() (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + return r.ApiService.SourceControlReleasesElementUuidPostExecute(r) +} + +/* +SourceControlReleasesElementUuidPost Create a release artifact + +Push a branch to the source control repository that creates a new release artifact with the provided version for the element based on the latest version. The API token must have the "Source control > Releases (Write)" scope. + +This feature is in beta. Reach out to support if you’d like to join the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param elementUuid The uuid of the element. + @return ApiSourceControlReleasesElementUuidPostRequest +*/ +func (a *SourceControlAPIService) SourceControlReleasesElementUuidPost(ctx context.Context, elementUuid string) ApiSourceControlReleasesElementUuidPostRequest { + return ApiSourceControlReleasesElementUuidPostRequest{ + ApiService: a, + ctx: ctx, + elementUuid: elementUuid, + } +} + +// Execute executes the request +// @return SourceControlManifestsManifestNamePut200Response +func (a *SourceControlAPIService) SourceControlReleasesElementUuidPostExecute(r ApiSourceControlReleasesElementUuidPostRequest) (*SourceControlManifestsManifestNamePut200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SourceControlManifestsManifestNamePut200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourceControlAPIService.SourceControlReleasesElementUuidPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/source_control/releases/{elementUuid}" + localVarPath = strings.Replace(localVarPath, "{"+"elementUuid"+"}", url.PathEscape(parameterValueToString(r.elementUuid, "elementUuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.elementType == nil { + return localVarReturnValue, nil, reportError("elementType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "elementType", r.elementType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sourceControlReleasesAppsAppUuidPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v FoldersPost409Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiSourceControlSettingsGetRequest struct { ctx context.Context ApiService *SourceControlAPIService @@ -1020,7 +2540,7 @@ func (r ApiSourceControlTestDeployPostRequest) Execute() (*SourceControlTestDepl /* SourceControlTestDeployPost Test source control changes -Attempts to do a dry deployment (no db changes) on the instance with provided commit sha to see if those changes are valid. +Attempts a test deployment (no permanent changes) using the provided commit SHA in order to determine whether the commit is valid. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiSourceControlTestDeployPostRequest diff --git a/internal/sdk/api/api_spaces.go b/internal/sdk/api/api_spaces.go index 380c463..24fa230 100644 --- a/internal/sdk/api/api_spaces.go +++ b/internal/sdk/api/api_spaces.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -39,9 +39,9 @@ func (r ApiSpacesCopyElementsPostRequest) Execute() (*SpacesCopyElementsPost201R } /* -SpacesCopyElementsPost Copies apps, queries, resources, and workflows from one space to another +SpacesCopyElementsPost Copy elements to another space -Available for orgs with Spaces enabled. Copy elements by ID. The API token must have the "Spaces > Write" scope. +Available for orgs with Spaces enabled. Copies apps, queries, resources, and workflows from one space to another. The API token must have the "Spaces > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiSpacesCopyElementsPostRequest @@ -362,7 +362,7 @@ SpacesSpaceIdDelete Delete a space Available for orgs with Spaces enabled. Delete a space by ID. The API token must have the "Spaces > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param spaceId + @param spaceId The id of the space to delete. @return ApiSpacesSpaceIdDeleteRequest */ func (a *SpacesAPIService) SpacesSpaceIdDelete(ctx context.Context, spaceId string) ApiSpacesSpaceIdDeleteRequest { @@ -580,7 +580,7 @@ func (r ApiSpacesSpaceIdPutRequest) Execute() (*SpacesSpaceIdPut200Response, *ht /* SpacesSpaceIdPut Update space -Available for orgs with Spaces enabled. Get space by ID. The API token must have the "Spaces > Write" scope. +Available for orgs with Spaces enabled. Update space by ID. The API token must have the "Spaces > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param spaceId diff --git a/internal/sdk/api/api_sso.go b/internal/sdk/api/api_sso.go index c8b3910..9826fd2 100644 --- a/internal/sdk/api/api_sso.go +++ b/internal/sdk/api/api_sso.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/api_usage.go b/internal/sdk/api/api_usage.go index b3af629..748554e 100644 --- a/internal/sdk/api/api_usage.go +++ b/internal/sdk/api/api_usage.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,6 @@ import ( "io" "net/http" "net/url" - "reflect" ) @@ -28,25 +27,29 @@ type ApiUsageAppDetailsGetRequest struct { ApiService *UsageAPIService startDate *string appName *string - orgIds *[]string + orgIds *string endDate *string } +// The start date of the date range func (r ApiUsageAppDetailsGetRequest) StartDate(startDate string) ApiUsageAppDetailsGetRequest { r.startDate = &startDate return r } +// The name of the app to retrieve usage data for func (r ApiUsageAppDetailsGetRequest) AppName(appName string) ApiUsageAppDetailsGetRequest { r.appName = &appName return r } -func (r ApiUsageAppDetailsGetRequest) OrgIds(orgIds []string) ApiUsageAppDetailsGetRequest { +// A comma separated list of org ids to retrieve usage data for +func (r ApiUsageAppDetailsGetRequest) OrgIds(orgIds string) ApiUsageAppDetailsGetRequest { r.orgIds = &orgIds return r } +// The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. func (r ApiUsageAppDetailsGetRequest) EndDate(endDate string) ApiUsageAppDetailsGetRequest { r.endDate = &endDate return r @@ -99,15 +102,7 @@ func (a *UsageAPIService) UsageAppDetailsGetExecute(r ApiUsageAppDetailsGetReque } if r.orgIds != nil { - t := *r.orgIds - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", r.orgIds, "") } parameterAddToHeaderOrQuery(localVarQueryParams, "start_date", r.startDate, "") if r.endDate != nil { @@ -172,20 +167,23 @@ type ApiUsageAppSummaryGetRequest struct { ctx context.Context ApiService *UsageAPIService startDate *string - orgIds *[]string + orgIds *string endDate *string } +// The start date of the date range func (r ApiUsageAppSummaryGetRequest) StartDate(startDate string) ApiUsageAppSummaryGetRequest { r.startDate = &startDate return r } -func (r ApiUsageAppSummaryGetRequest) OrgIds(orgIds []string) ApiUsageAppSummaryGetRequest { +// A comma separated list of org ids to retrieve usage data for +func (r ApiUsageAppSummaryGetRequest) OrgIds(orgIds string) ApiUsageAppSummaryGetRequest { r.orgIds = &orgIds return r } +// The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. func (r ApiUsageAppSummaryGetRequest) EndDate(endDate string) ApiUsageAppSummaryGetRequest { r.endDate = &endDate return r @@ -235,15 +233,7 @@ func (a *UsageAPIService) UsageAppSummaryGetExecute(r ApiUsageAppSummaryGetReque } if r.orgIds != nil { - t := *r.orgIds - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", r.orgIds, "") } parameterAddToHeaderOrQuery(localVarQueryParams, "start_date", r.startDate, "") if r.endDate != nil { @@ -307,20 +297,23 @@ type ApiUsageGetRequest struct { ctx context.Context ApiService *UsageAPIService startDate *string - orgIds *[]string + orgIds *string endDate *string } +// The start date of the date range func (r ApiUsageGetRequest) StartDate(startDate string) ApiUsageGetRequest { r.startDate = &startDate return r } -func (r ApiUsageGetRequest) OrgIds(orgIds []string) ApiUsageGetRequest { +// A comma separated list of org ids to retrieve usage data for +func (r ApiUsageGetRequest) OrgIds(orgIds string) ApiUsageGetRequest { r.orgIds = &orgIds return r } +// The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. func (r ApiUsageGetRequest) EndDate(endDate string) ApiUsageGetRequest { r.endDate = &endDate return r @@ -370,15 +363,7 @@ func (a *UsageAPIService) UsageGetExecute(r ApiUsageGetRequest) (*UsageGet200Res } if r.orgIds != nil { - t := *r.orgIds - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", r.orgIds, "") } parameterAddToHeaderOrQuery(localVarQueryParams, "start_date", r.startDate, "") if r.endDate != nil { @@ -542,25 +527,29 @@ type ApiUsageUserDetailsGetRequest struct { ApiService *UsageAPIService startDate *string email *string - orgIds *[]string + orgIds *string endDate *string } +// The start date of the date range func (r ApiUsageUserDetailsGetRequest) StartDate(startDate string) ApiUsageUserDetailsGetRequest { r.startDate = &startDate return r } +// The email of the user to retrieve usage data for func (r ApiUsageUserDetailsGetRequest) Email(email string) ApiUsageUserDetailsGetRequest { r.email = &email return r } -func (r ApiUsageUserDetailsGetRequest) OrgIds(orgIds []string) ApiUsageUserDetailsGetRequest { +// A comma separated list of org ids to retrieve usage data for +func (r ApiUsageUserDetailsGetRequest) OrgIds(orgIds string) ApiUsageUserDetailsGetRequest { r.orgIds = &orgIds return r } +// The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. func (r ApiUsageUserDetailsGetRequest) EndDate(endDate string) ApiUsageUserDetailsGetRequest { r.endDate = &endDate return r @@ -613,15 +602,7 @@ func (a *UsageAPIService) UsageUserDetailsGetExecute(r ApiUsageUserDetailsGetReq } if r.orgIds != nil { - t := *r.orgIds - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", r.orgIds, "") } parameterAddToHeaderOrQuery(localVarQueryParams, "start_date", r.startDate, "") if r.endDate != nil { @@ -686,20 +667,23 @@ type ApiUsageUserSummaryGetRequest struct { ctx context.Context ApiService *UsageAPIService startDate *string - orgIds *[]string + orgIds *string endDate *string } +// The start date of the date range func (r ApiUsageUserSummaryGetRequest) StartDate(startDate string) ApiUsageUserSummaryGetRequest { r.startDate = &startDate return r } -func (r ApiUsageUserSummaryGetRequest) OrgIds(orgIds []string) ApiUsageUserSummaryGetRequest { +// A comma separated list of org ids to retrieve usage data for +func (r ApiUsageUserSummaryGetRequest) OrgIds(orgIds string) ApiUsageUserSummaryGetRequest { r.orgIds = &orgIds return r } +// The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. func (r ApiUsageUserSummaryGetRequest) EndDate(endDate string) ApiUsageUserSummaryGetRequest { r.endDate = &endDate return r @@ -749,15 +733,7 @@ func (a *UsageAPIService) UsageUserSummaryGetExecute(r ApiUsageUserSummaryGetReq } if r.orgIds != nil { - t := *r.orgIds - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "org_ids", r.orgIds, "") } parameterAddToHeaderOrQuery(localVarQueryParams, "start_date", r.startDate, "") if r.endDate != nil { diff --git a/internal/sdk/api/api_user_attributes.go b/internal/sdk/api/api_user_attributes.go index 3b67a26..eb14125 100644 --- a/internal/sdk/api/api_user_attributes.go +++ b/internal/sdk/api/api_user_attributes.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,6 +16,7 @@ import ( "io" "net/http" "net/url" + "strings" ) @@ -32,9 +33,9 @@ func (r ApiUserAttributesGetRequest) Execute() (*UserAttributesGet200Response, * } /* -UserAttributesGet Get organization user attributes. +UserAttributesGet Get organization user attributes -Gets the list of currently configured user attributes for the organization. The API token must have the "Users > Read" scope. +Gets the list of currently configured user attributes for the organization. The API token must have either the "Users > Read" or "User Attributes > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiUserAttributesGetRequest @@ -120,3 +121,323 @@ func (a *UserAttributesAPIService) UserAttributesGetExecute(r ApiUserAttributesG return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiUserAttributesIdDeleteRequest struct { + ctx context.Context + ApiService *UserAttributesAPIService + id string + updateExistingUsers *string +} + +// Whether to update existing users with the deleted attribute +func (r ApiUserAttributesIdDeleteRequest) UpdateExistingUsers(updateExistingUsers string) ApiUserAttributesIdDeleteRequest { + r.updateExistingUsers = &updateExistingUsers + return r +} + +func (r ApiUserAttributesIdDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.UserAttributesIdDeleteExecute(r) +} + +/* +UserAttributesIdDelete Delete an user attribute from the organization + +Deletes the defined user attribute from the organization. Optionally also deletes it on any users if specified by query parameter. The API token must have the "User Attributes > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of the user attribute + @return ApiUserAttributesIdDeleteRequest +*/ +func (a *UserAttributesAPIService) UserAttributesIdDelete(ctx context.Context, id string) ApiUserAttributesIdDeleteRequest { + return ApiUserAttributesIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *UserAttributesAPIService) UserAttributesIdDeleteExecute(r ApiUserAttributesIdDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAttributesAPIService.UserAttributesIdDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user_attributes/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.updateExistingUsers != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "update_existing_users", r.updateExistingUsers, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUserAttributesIdPatchRequest struct { + ctx context.Context + ApiService *UserAttributesAPIService + id string + userAttributesIdPatchRequest *UserAttributesIdPatchRequest +} + +func (r ApiUserAttributesIdPatchRequest) UserAttributesIdPatchRequest(userAttributesIdPatchRequest UserAttributesIdPatchRequest) ApiUserAttributesIdPatchRequest { + r.userAttributesIdPatchRequest = &userAttributesIdPatchRequest + return r +} + +func (r ApiUserAttributesIdPatchRequest) Execute() (*UserAttributesIdPatch200Response, *http.Response, error) { + return r.ApiService.UserAttributesIdPatchExecute(r) +} + +/* +UserAttributesIdPatch Update organization user attribute + +Available on Retool version 3.131.0+. Update the user attribute on an organization. The API token must have the "User Attributes > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of the user attribute + @return ApiUserAttributesIdPatchRequest +*/ +func (a *UserAttributesAPIService) UserAttributesIdPatch(ctx context.Context, id string) ApiUserAttributesIdPatchRequest { + return ApiUserAttributesIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return UserAttributesIdPatch200Response +func (a *UserAttributesAPIService) UserAttributesIdPatchExecute(r ApiUserAttributesIdPatchRequest) (*UserAttributesIdPatch200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserAttributesIdPatch200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAttributesAPIService.UserAttributesIdPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user_attributes/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.userAttributesIdPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUserAttributesPostRequest struct { + ctx context.Context + ApiService *UserAttributesAPIService + userAttributesPostRequest *UserAttributesPostRequest +} + +func (r ApiUserAttributesPostRequest) UserAttributesPostRequest(userAttributesPostRequest UserAttributesPostRequest) ApiUserAttributesPostRequest { + r.userAttributesPostRequest = &userAttributesPostRequest + return r +} + +func (r ApiUserAttributesPostRequest) Execute() (*UserAttributesPost200Response, *http.Response, error) { + return r.ApiService.UserAttributesPostExecute(r) +} + +/* +UserAttributesPost Create a new user attribute for the organization + +Available on Retool version 3.128+. Creates a new user attribute for the organization. The API token must have the "User Attributes > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUserAttributesPostRequest +*/ +func (a *UserAttributesAPIService) UserAttributesPost(ctx context.Context) ApiUserAttributesPostRequest { + return ApiUserAttributesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return UserAttributesPost200Response +func (a *UserAttributesAPIService) UserAttributesPostExecute(r ApiUserAttributesPostRequest) (*UserAttributesPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserAttributesPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAttributesAPIService.UserAttributesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user_attributes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.userAttributesPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_user_invite.go b/internal/sdk/api/api_user_invite.go index fef3df1..47b3655 100644 --- a/internal/sdk/api/api_user_invite.go +++ b/internal/sdk/api/api_user_invite.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -140,7 +140,7 @@ func (r ApiUserInvitesPostRequest) Execute() (*UserInvitesPost200Response, *http /* UserInvitesPost Create a new user invite -Available from API version 2.4.0+ and onprem version 3.28.0+. Create a new user invite +Available from API version 2.4.0+ and onprem version 3.28.0+. Create a new user invite. User invite link expires 7 days after generation. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiUserInvitesPostRequest @@ -245,7 +245,7 @@ UserInvitesUserInviteIdDelete Delete user invite Available from API version 2.4.0+ and onprem version 3.26.0+. Returns the deleted user invite. The API token must have the "Users > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userInviteId + @param userInviteId The user invite's ID @return ApiUserInvitesUserInviteIdDeleteRequest */ func (a *UserInviteAPIService) UserInvitesUserInviteIdDelete(ctx context.Context, userInviteId string) ApiUserInvitesUserInviteIdDeleteRequest { @@ -337,7 +337,7 @@ UserInvitesUserInviteIdGet Get user invite Available from API version 2.4.0+ and onprem version 3.26.0+. Returns the user invite. The API token must have the "Users > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userInviteId + @param userInviteId The user invite's ID @return ApiUserInvitesUserInviteIdGetRequest */ func (a *UserInviteAPIService) UserInvitesUserInviteIdGet(ctx context.Context, userInviteId string) ApiUserInvitesUserInviteIdGetRequest { @@ -441,7 +441,7 @@ UserInvitesUserInviteIdUserAttributesAttributeNameDelete Delete a user attribute Available from API version 2.4.0+ and onprem version 3.28.0+. Delete a specified user attribute from an user invite @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userInviteId + @param userInviteId The user invite's ID @param attributeName @return ApiUserInvitesUserInviteIdUserAttributesAttributeNameDeleteRequest */ @@ -553,7 +553,7 @@ UserInvitesUserInviteIdUserAttributesPost Add or update user attributes on a use Available from API version 2.4.0+ and onprem version 3.28.0+. Add or update the user attributes of a user invite @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userInviteId + @param userInviteId The user invite's ID @return ApiUserInvitesUserInviteIdUserAttributesPostRequest */ func (a *UserInviteAPIService) UserInvitesUserInviteIdUserAttributesPost(ctx context.Context, userInviteId string) ApiUserInvitesUserInviteIdUserAttributesPostRequest { diff --git a/internal/sdk/api/api_user_tasks.go b/internal/sdk/api/api_user_tasks.go new file mode 100644 index 0000000..f80e4a3 --- /dev/null +++ b/internal/sdk/api/api_user_tasks.go @@ -0,0 +1,526 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// UserTasksAPIService UserTasksAPI service +type UserTasksAPIService service + +type ApiUserTasksGetRequest struct { + ctx context.Context + ApiService *UserTasksAPIService + assignedToUsers *UserTasksGetAssignedToUsersParameter + statuses *string + workflowIds *string + limit *string + nextToken *string + startingAfter *string + endingBefore *string +} + +// Filter tasks by assignment. Provide one or more user ids. If not provided, returns all accessible tasks. +func (r ApiUserTasksGetRequest) AssignedToUsers(assignedToUsers UserTasksGetAssignedToUsersParameter) ApiUserTasksGetRequest { + r.assignedToUsers = &assignedToUsers + return r +} + +// A comma-separated list of statuses. +func (r ApiUserTasksGetRequest) Statuses(statuses string) ApiUserTasksGetRequest { + r.statuses = &statuses + return r +} + +// A comma-separated list of workflow IDs. +func (r ApiUserTasksGetRequest) WorkflowIds(workflowIds string) ApiUserTasksGetRequest { + r.workflowIds = &workflowIds + return r +} + +// The maximum number of tasks to include in the response. +func (r ApiUserTasksGetRequest) Limit(limit string) ApiUserTasksGetRequest { + r.limit = &limit + return r +} + +// The next token from the previous API response. This is used for paginating through an arbitrary number of tasks. +func (r ApiUserTasksGetRequest) NextToken(nextToken string) ApiUserTasksGetRequest { + r.nextToken = &nextToken + return r +} + +// The ID of the task following which the response will include subsequent tasks. +func (r ApiUserTasksGetRequest) StartingAfter(startingAfter string) ApiUserTasksGetRequest { + r.startingAfter = &startingAfter + return r +} + +// The ID of the task before which the response will include preceding tasks. +func (r ApiUserTasksGetRequest) EndingBefore(endingBefore string) ApiUserTasksGetRequest { + r.endingBefore = &endingBefore + return r +} + +func (r ApiUserTasksGetRequest) Execute() (*UserTasksGet200Response, *http.Response, error) { + return r.ApiService.UserTasksGetExecute(r) +} + +/* +UserTasksGet List User Tasks + +Requires the User Tasks feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.114+. Returns a list of user tasks for a particular user. The API token must have the "User Tasks > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUserTasksGetRequest +*/ +func (a *UserTasksAPIService) UserTasksGet(ctx context.Context) ApiUserTasksGetRequest { + return ApiUserTasksGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return UserTasksGet200Response +func (a *UserTasksAPIService) UserTasksGetExecute(r ApiUserTasksGetRequest) (*UserTasksGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserTasksGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserTasksAPIService.UserTasksGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user_tasks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.assignedToUsers != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_to_users", r.assignedToUsers, "") + } + if r.statuses != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "statuses", r.statuses, "") + } + if r.workflowIds != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "workflow_ids", r.workflowIds, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.nextToken != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next_token", r.nextToken, "") + } + if r.startingAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_after", r.startingAfter, "") + } + if r.endingBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ending_before", r.endingBefore, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUserTasksTaskIdCancelPatchRequest struct { + ctx context.Context + ApiService *UserTasksAPIService + taskId string + userTasksTaskIdCancelPatchRequest *UserTasksTaskIdCancelPatchRequest +} + +func (r ApiUserTasksTaskIdCancelPatchRequest) UserTasksTaskIdCancelPatchRequest(userTasksTaskIdCancelPatchRequest UserTasksTaskIdCancelPatchRequest) ApiUserTasksTaskIdCancelPatchRequest { + r.userTasksTaskIdCancelPatchRequest = &userTasksTaskIdCancelPatchRequest + return r +} + +func (r ApiUserTasksTaskIdCancelPatchRequest) Execute() (*UserTasksTaskIdSubmitPatch200Response, *http.Response, error) { + return r.ApiService.UserTasksTaskIdCancelPatchExecute(r) +} + +/* +UserTasksTaskIdCancelPatch Cancels a user task. + +Requires the User Tasks feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.114+. Cancel a user task with a provided reason. The API token must have the "User Tasks > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param taskId The ID of the user task. + @return ApiUserTasksTaskIdCancelPatchRequest +*/ +func (a *UserTasksAPIService) UserTasksTaskIdCancelPatch(ctx context.Context, taskId string) ApiUserTasksTaskIdCancelPatchRequest { + return ApiUserTasksTaskIdCancelPatchRequest{ + ApiService: a, + ctx: ctx, + taskId: taskId, + } +} + +// Execute executes the request +// @return UserTasksTaskIdSubmitPatch200Response +func (a *UserTasksAPIService) UserTasksTaskIdCancelPatchExecute(r ApiUserTasksTaskIdCancelPatchRequest) (*UserTasksTaskIdSubmitPatch200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserTasksTaskIdSubmitPatch200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserTasksAPIService.UserTasksTaskIdCancelPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user_tasks/{taskId}/cancel" + localVarPath = strings.Replace(localVarPath, "{"+"taskId"+"}", url.PathEscape(parameterValueToString(r.taskId, "taskId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.userTasksTaskIdCancelPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUserTasksTaskIdReassignPatchRequest struct { + ctx context.Context + ApiService *UserTasksAPIService + taskId string + userTasksTaskIdReassignPatchRequest *UserTasksTaskIdReassignPatchRequest +} + +func (r ApiUserTasksTaskIdReassignPatchRequest) UserTasksTaskIdReassignPatchRequest(userTasksTaskIdReassignPatchRequest UserTasksTaskIdReassignPatchRequest) ApiUserTasksTaskIdReassignPatchRequest { + r.userTasksTaskIdReassignPatchRequest = &userTasksTaskIdReassignPatchRequest + return r +} + +func (r ApiUserTasksTaskIdReassignPatchRequest) Execute() (*UserTasksTaskIdSubmitPatch200Response, *http.Response, error) { + return r.ApiService.UserTasksTaskIdReassignPatchExecute(r) +} + +/* +UserTasksTaskIdReassignPatch Reassign a user task to a group or a user. + +Requires the User Tasks feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.114+. Reassigns a user task to a group or user based on the group or user id. The API token must have the "User Tasks > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param taskId The ID of the user task. + @return ApiUserTasksTaskIdReassignPatchRequest +*/ +func (a *UserTasksAPIService) UserTasksTaskIdReassignPatch(ctx context.Context, taskId string) ApiUserTasksTaskIdReassignPatchRequest { + return ApiUserTasksTaskIdReassignPatchRequest{ + ApiService: a, + ctx: ctx, + taskId: taskId, + } +} + +// Execute executes the request +// @return UserTasksTaskIdSubmitPatch200Response +func (a *UserTasksAPIService) UserTasksTaskIdReassignPatchExecute(r ApiUserTasksTaskIdReassignPatchRequest) (*UserTasksTaskIdSubmitPatch200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserTasksTaskIdSubmitPatch200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserTasksAPIService.UserTasksTaskIdReassignPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user_tasks/{taskId}/reassign" + localVarPath = strings.Replace(localVarPath, "{"+"taskId"+"}", url.PathEscape(parameterValueToString(r.taskId, "taskId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.userTasksTaskIdReassignPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUserTasksTaskIdSubmitPatchRequest struct { + ctx context.Context + ApiService *UserTasksAPIService + taskId string + userTasksTaskIdSubmitPatchRequest *UserTasksTaskIdSubmitPatchRequest +} + +func (r ApiUserTasksTaskIdSubmitPatchRequest) UserTasksTaskIdSubmitPatchRequest(userTasksTaskIdSubmitPatchRequest UserTasksTaskIdSubmitPatchRequest) ApiUserTasksTaskIdSubmitPatchRequest { + r.userTasksTaskIdSubmitPatchRequest = &userTasksTaskIdSubmitPatchRequest + return r +} + +func (r ApiUserTasksTaskIdSubmitPatchRequest) Execute() (*UserTasksTaskIdSubmitPatch200Response, *http.Response, error) { + return r.ApiService.UserTasksTaskIdSubmitPatchExecute(r) +} + +/* +UserTasksTaskIdSubmitPatch Submits a user task. + +Requires the User Tasks feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.114+. Submits a user task with a provided output payload. The API token must have the "User Tasks > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param taskId The ID of the user task. + @return ApiUserTasksTaskIdSubmitPatchRequest +*/ +func (a *UserTasksAPIService) UserTasksTaskIdSubmitPatch(ctx context.Context, taskId string) ApiUserTasksTaskIdSubmitPatchRequest { + return ApiUserTasksTaskIdSubmitPatchRequest{ + ApiService: a, + ctx: ctx, + taskId: taskId, + } +} + +// Execute executes the request +// @return UserTasksTaskIdSubmitPatch200Response +func (a *UserTasksAPIService) UserTasksTaskIdSubmitPatchExecute(r ApiUserTasksTaskIdSubmitPatchRequest) (*UserTasksTaskIdSubmitPatch200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserTasksTaskIdSubmitPatch200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserTasksAPIService.UserTasksTaskIdSubmitPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user_tasks/{taskId}/submit" + localVarPath = strings.Replace(localVarPath, "{"+"taskId"+"}", url.PathEscape(parameterValueToString(r.taskId, "taskId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.userTasksTaskIdSubmitPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_users.go b/internal/sdk/api/api_users.go index 488bc8f..d5e496f 100644 --- a/internal/sdk/api/api_users.go +++ b/internal/sdk/api/api_users.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,6 +26,27 @@ type UsersAPIService service type ApiUsersGetRequest struct { ctx context.Context ApiService *UsersAPIService + email *string + firstName *string + lastName *string +} + +// Email address of user +func (r ApiUsersGetRequest) Email(email string) ApiUsersGetRequest { + r.email = &email + return r +} + +// First name of user +func (r ApiUsersGetRequest) FirstName(firstName string) ApiUsersGetRequest { + r.firstName = &firstName + return r +} + +// Last name of user +func (r ApiUsersGetRequest) LastName(lastName string) ApiUsersGetRequest { + r.lastName = &lastName + return r } func (r ApiUsersGetRequest) Execute() (*UsersGet200Response, *http.Response, error) { @@ -68,6 +89,15 @@ func (a *UsersAPIService) UsersGetExecute(r ApiUsersGetRequest) (*UsersGet200Res localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.email != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "email", r.email, "") + } + if r.firstName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name", r.firstName, "") + } + if r.lastName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name", r.lastName, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -229,6 +259,98 @@ func (a *UsersAPIService) UsersPostExecute(r ApiUsersPostRequest) (*UsersPost200 return localVarReturnValue, localVarHTTPResponse, nil } +type ApiUsersReset2faUserIdPutRequest struct { + ctx context.Context + ApiService *UsersAPIService + userId string +} + +func (r ApiUsersReset2faUserIdPutRequest) Execute() (*http.Response, error) { + return r.ApiService.UsersReset2faUserIdPutExecute(r) +} + +/* +UsersReset2faUserIdPut Resets a user's existing two factor authentication setting + +Available on version 3.124+. Disables any existing 2FA settings for a user. The API token must have the "Users > Write" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userId + @return ApiUsersReset2faUserIdPutRequest +*/ +func (a *UsersAPIService) UsersReset2faUserIdPut(ctx context.Context, userId string) ApiUsersReset2faUserIdPutRequest { + return ApiUsersReset2faUserIdPutRequest{ + ApiService: a, + ctx: ctx, + userId: userId, + } +} + +// Execute executes the request +func (a *UsersAPIService) UsersReset2faUserIdPutExecute(r ApiUsersReset2faUserIdPutRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersReset2faUserIdPut") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/reset2fa/{userId}" + localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type ApiUsersUserIdDeleteRequest struct { ctx context.Context ApiService *UsersAPIService @@ -242,7 +364,7 @@ func (r ApiUsersUserIdDeleteRequest) Execute() (*http.Response, error) { /* UsersUserIdDelete Delete a user -Deletes a user. The API token must have the "Users > Write" scope. +Disables a user from the organization. The API token must have the "Users > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userId @@ -332,9 +454,9 @@ func (r ApiUsersUserIdGetRequest) Execute() (*UsersUserIdGet200Response, *http.R } /* -UsersUserIdGet Get user +UsersUserIdGet Get a user -Returns the user. The API token must have the "Users > Read" scope. +Returns the specified user. The API token must have the "Users > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userId @@ -547,13 +669,13 @@ func (r ApiUsersUserIdUserAttributesAttributeNameDeleteRequest) Execute() (*User } /* -UsersUserIdUserAttributesAttributeNameDelete Delete a user attribute. +UsersUserIdUserAttributesAttributeNameDelete Delete a user attribute -Available from API version 2.1.0+ and onprem version 3.20.1+. Deletes a user attribute, and returns the updated user metadata. The API token must have the "Users > Write" scope. +Available from API version 2.1.0+ and onprem version 3.20.1+. Deletes a user attribute, and returns the updated user metadata. The API token must have either the "Users > Write" or "User Attributes > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userId - @param attributeName + @param attributeName The name of the user attribute to delete @return ApiUsersUserIdUserAttributesAttributeNameDeleteRequest */ func (a *UsersAPIService) UsersUserIdUserAttributesAttributeNameDelete(ctx context.Context, userId string, attributeName string) ApiUsersUserIdUserAttributesAttributeNameDeleteRequest { @@ -661,7 +783,7 @@ func (r ApiUsersUserIdUserAttributesPostRequest) Execute() (*UsersUserIdUserAttr /* UsersUserIdUserAttributesPost Add or update a user attribute -Available from API version 2.1.0+ and onprem version 3.20.1+. Adds or updates a user attribute, and returns the updated user metadata. The API token must have the "Users > Write" scope. +Available from API version 2.1.0+ and onprem version 3.20.1+. Adds or updates a user attribute, and returns the updated user metadata. The API token must have either the "Users > Write" or "User Attributes > Write" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userId diff --git a/internal/sdk/api/api_workflow_run.go b/internal/sdk/api/api_workflow_run.go new file mode 100644 index 0000000..67b7d93 --- /dev/null +++ b/internal/sdk/api/api_workflow_run.go @@ -0,0 +1,127 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// WorkflowRunAPIService WorkflowRunAPI service +type WorkflowRunAPIService service + +type ApiWorkflowRunIdGetRequest struct { + ctx context.Context + ApiService *WorkflowRunAPIService + id string +} + +func (r ApiWorkflowRunIdGetRequest) Execute() (*WorkflowRunIdGet200Response, *http.Response, error) { + return r.ApiService.WorkflowRunIdGetExecute(r) +} + +/* +WorkflowRunIdGet Get Workflow Run Details + +Requires the Workflow Runs API feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.122+. Returns data for a workflow run. The API token must have the "Workflows > Read" scope. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the workflow run. + @return ApiWorkflowRunIdGetRequest +*/ +func (a *WorkflowRunAPIService) WorkflowRunIdGet(ctx context.Context, id string) ApiWorkflowRunIdGetRequest { + return ApiWorkflowRunIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return WorkflowRunIdGet200Response +func (a *WorkflowRunAPIService) WorkflowRunIdGetExecute(r ApiWorkflowRunIdGetRequest) (*WorkflowRunIdGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowRunIdGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowRunAPIService.WorkflowRunIdGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/workflow_run/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/internal/sdk/api/api_environment.go b/internal/sdk/api/api_workflows.go similarity index 58% rename from internal/sdk/api/api_environment.go rename to internal/sdk/api/api_workflows.go index 4efbb46..3212db4 100644 --- a/internal/sdk/api/api_environment.go +++ b/internal/sdk/api/api_workflows.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,53 +20,49 @@ import ( ) -// EnvironmentAPIService EnvironmentAPI service -type EnvironmentAPIService service +// WorkflowsAPIService WorkflowsAPI service +type WorkflowsAPIService service -type ApiEnvironmentsEnvironmentIdGetRequest struct { +type ApiWorkflowsGetRequest struct { ctx context.Context - ApiService *EnvironmentAPIService - environmentId string + ApiService *WorkflowsAPIService } -func (r ApiEnvironmentsEnvironmentIdGetRequest) Execute() (*EnvironmentsEnvironmentIdGet200Response, *http.Response, error) { - return r.ApiService.EnvironmentsEnvironmentIdGetExecute(r) +func (r ApiWorkflowsGetRequest) Execute() (*WorkflowsGet200Response, *http.Response, error) { + return r.ApiService.WorkflowsGetExecute(r) } /* -EnvironmentsEnvironmentIdGet Get an environment by id +WorkflowsGet Get all workflows -Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a single environment of the given uuid. The API token must have the "Environment > Read" scope. +Get all workflows for an organization or space. The API token must have the "Workflows > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param environmentId - @return ApiEnvironmentsEnvironmentIdGetRequest + @return ApiWorkflowsGetRequest */ -func (a *EnvironmentAPIService) EnvironmentsEnvironmentIdGet(ctx context.Context, environmentId string) ApiEnvironmentsEnvironmentIdGetRequest { - return ApiEnvironmentsEnvironmentIdGetRequest{ +func (a *WorkflowsAPIService) WorkflowsGet(ctx context.Context) ApiWorkflowsGetRequest { + return ApiWorkflowsGetRequest{ ApiService: a, ctx: ctx, - environmentId: environmentId, } } // Execute executes the request -// @return EnvironmentsEnvironmentIdGet200Response -func (a *EnvironmentAPIService) EnvironmentsEnvironmentIdGetExecute(r ApiEnvironmentsEnvironmentIdGetRequest) (*EnvironmentsEnvironmentIdGet200Response, *http.Response, error) { +// @return WorkflowsGet200Response +func (a *WorkflowsAPIService) WorkflowsGetExecute(r ApiWorkflowsGetRequest) (*WorkflowsGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *EnvironmentsEnvironmentIdGet200Response + localVarReturnValue *WorkflowsGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentAPIService.EnvironmentsEnvironmentIdGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.WorkflowsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/environments/{environmentId}" - localVarPath = strings.Replace(localVarPath, "{"+"environmentId"+"}", url.PathEscape(parameterValueToString(r.environmentId, "environmentId")), -1) + localVarPath := localBasePath + "/workflows" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -111,6 +107,16 @@ func (a *EnvironmentAPIService) EnvironmentsEnvironmentIdGetExecute(r ApiEnviron body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 403 { + var v WorkflowsGet403Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -126,46 +132,50 @@ func (a *EnvironmentAPIService) EnvironmentsEnvironmentIdGetExecute(r ApiEnviron return localVarReturnValue, localVarHTTPResponse, nil } -type ApiEnvironmentsGetRequest struct { +type ApiWorkflowsWorkflowIdGetRequest struct { ctx context.Context - ApiService *EnvironmentAPIService + ApiService *WorkflowsAPIService + workflowId string } -func (r ApiEnvironmentsGetRequest) Execute() (*EnvironmentsGet200Response, *http.Response, error) { - return r.ApiService.EnvironmentsGetExecute(r) +func (r ApiWorkflowsWorkflowIdGetRequest) Execute() (*WorkflowsWorkflowIdGet200Response, *http.Response, error) { + return r.ApiService.WorkflowsWorkflowIdGetExecute(r) } /* -EnvironmentsGet Get organization environments +WorkflowsWorkflowIdGet Get a workflow -Available from API version 2.4.0+ and onprem version 3.28.0+. Gets a list of environments. The API token must have the "Environment > Read" scope. +Get a workflow by ID. The API token must have the "Workflows > Read" scope. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiEnvironmentsGetRequest + @param workflowId The Workflow ID. + @return ApiWorkflowsWorkflowIdGetRequest */ -func (a *EnvironmentAPIService) EnvironmentsGet(ctx context.Context) ApiEnvironmentsGetRequest { - return ApiEnvironmentsGetRequest{ +func (a *WorkflowsAPIService) WorkflowsWorkflowIdGet(ctx context.Context, workflowId string) ApiWorkflowsWorkflowIdGetRequest { + return ApiWorkflowsWorkflowIdGetRequest{ ApiService: a, ctx: ctx, + workflowId: workflowId, } } // Execute executes the request -// @return EnvironmentsGet200Response -func (a *EnvironmentAPIService) EnvironmentsGetExecute(r ApiEnvironmentsGetRequest) (*EnvironmentsGet200Response, *http.Response, error) { +// @return WorkflowsWorkflowIdGet200Response +func (a *WorkflowsAPIService) WorkflowsWorkflowIdGetExecute(r ApiWorkflowsWorkflowIdGetRequest) (*WorkflowsWorkflowIdGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *EnvironmentsGet200Response + localVarReturnValue *WorkflowsWorkflowIdGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EnvironmentAPIService.EnvironmentsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.WorkflowsWorkflowIdGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/environments" + localVarPath := localBasePath + "/workflows/{workflowId}" + localVarPath = strings.Replace(localVarPath, "{"+"workflowId"+"}", url.PathEscape(parameterValueToString(r.workflowId, "workflowId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -210,6 +220,38 @@ func (a *EnvironmentAPIService) EnvironmentsGetExecute(r ApiEnvironmentsGetReque body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v WorkflowsGet403Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v WorkflowsGet403Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v WorkflowsGet403Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/internal/sdk/api/client.go b/internal/sdk/api/client.go index 5b50d8f..60ae689 100644 --- a/internal/sdk/api/client.go +++ b/internal/sdk/api/client.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the Retool API API v2.4.0 +// APIClient manages communication with the Retool API API v2.9.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -51,6 +51,8 @@ type APIClient struct { AccessRequestAPI *AccessRequestAPIService + AccessTokensAPI *AccessTokensAPIService + AppThemesAPI *AppThemesAPIService AppsAPI *AppsAPIService @@ -59,14 +61,18 @@ type APIClient struct { CustomComponentLibraryAPI *CustomComponentLibraryAPIService - EnvironmentAPI *EnvironmentAPIService + EnvironmentsAPI *EnvironmentsAPIService FoldersAPI *FoldersAPIService GroupsAPI *GroupsAPIService + InfoAPI *InfoAPIService + ObservabilityAPI *ObservabilityAPIService + OrganizationAPI *OrganizationAPIService + PermissionsAPI *PermissionsAPIService ResourceConfigurationsAPI *ResourceConfigurationsAPIService @@ -85,7 +91,13 @@ type APIClient struct { UserInviteAPI *UserInviteAPIService + UserTasksAPI *UserTasksAPIService + UsersAPI *UsersAPIService + + WorkflowRunAPI *WorkflowRunAPIService + + WorkflowsAPI *WorkflowsAPIService } type service struct { @@ -105,14 +117,17 @@ func NewAPIClient(cfg *Configuration) *APIClient { // API Services c.AccessRequestAPI = (*AccessRequestAPIService)(&c.common) + c.AccessTokensAPI = (*AccessTokensAPIService)(&c.common) c.AppThemesAPI = (*AppThemesAPIService)(&c.common) c.AppsAPI = (*AppsAPIService)(&c.common) c.ConfigurationVariablesAPI = (*ConfigurationVariablesAPIService)(&c.common) c.CustomComponentLibraryAPI = (*CustomComponentLibraryAPIService)(&c.common) - c.EnvironmentAPI = (*EnvironmentAPIService)(&c.common) + c.EnvironmentsAPI = (*EnvironmentsAPIService)(&c.common) c.FoldersAPI = (*FoldersAPIService)(&c.common) c.GroupsAPI = (*GroupsAPIService)(&c.common) + c.InfoAPI = (*InfoAPIService)(&c.common) c.ObservabilityAPI = (*ObservabilityAPIService)(&c.common) + c.OrganizationAPI = (*OrganizationAPIService)(&c.common) c.PermissionsAPI = (*PermissionsAPIService)(&c.common) c.ResourceConfigurationsAPI = (*ResourceConfigurationsAPIService)(&c.common) c.ResourcesAPI = (*ResourcesAPIService)(&c.common) @@ -122,7 +137,10 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.UsageAPI = (*UsageAPIService)(&c.common) c.UserAttributesAPI = (*UserAttributesAPIService)(&c.common) c.UserInviteAPI = (*UserInviteAPIService)(&c.common) + c.UserTasksAPI = (*UserTasksAPIService)(&c.common) c.UsersAPI = (*UsersAPIService)(&c.common) + c.WorkflowRunAPI = (*WorkflowRunAPIService)(&c.common) + c.WorkflowsAPI = (*WorkflowsAPIService)(&c.common) return c } diff --git a/internal/sdk/api/configuration.go b/internal/sdk/api/configuration.go index d3ecc08..8b36bd2 100644 --- a/internal/sdk/api/configuration.go +++ b/internal/sdk/api/configuration.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/docs/AWSCodeCommit.md b/internal/sdk/api/docs/AWSCodeCommit.md new file mode 100644 index 0000000..84fd7b8 --- /dev/null +++ b/internal/sdk/api/docs/AWSCodeCommit.md @@ -0,0 +1,161 @@ +# AWSCodeCommit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**AWSCodeCommitConfig**](AWSCodeCommitConfig.md) | | +**Provider** | **string** | | +**Org** | **string** | The user or organization to which the repository belongs to. | +**Repo** | **string** | The name of the repository you created to use with Retool. | +**DefaultBranch** | **string** | The default branch, e.g., main. | +**RepoVersion** | Pointer to **string** | Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. | [optional] + +## Methods + +### NewAWSCodeCommit + +`func NewAWSCodeCommit(config AWSCodeCommitConfig, provider string, org string, repo string, defaultBranch string, ) *AWSCodeCommit` + +NewAWSCodeCommit instantiates a new AWSCodeCommit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAWSCodeCommitWithDefaults + +`func NewAWSCodeCommitWithDefaults() *AWSCodeCommit` + +NewAWSCodeCommitWithDefaults instantiates a new AWSCodeCommit 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 + +### GetConfig + +`func (o *AWSCodeCommit) GetConfig() AWSCodeCommitConfig` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *AWSCodeCommit) GetConfigOk() (*AWSCodeCommitConfig, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *AWSCodeCommit) SetConfig(v AWSCodeCommitConfig)` + +SetConfig sets Config field to given value. + + +### GetProvider + +`func (o *AWSCodeCommit) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *AWSCodeCommit) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *AWSCodeCommit) SetProvider(v string)` + +SetProvider sets Provider field to given value. + + +### GetOrg + +`func (o *AWSCodeCommit) GetOrg() string` + +GetOrg returns the Org field if non-nil, zero value otherwise. + +### GetOrgOk + +`func (o *AWSCodeCommit) GetOrgOk() (*string, bool)` + +GetOrgOk returns a tuple with the Org field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrg + +`func (o *AWSCodeCommit) SetOrg(v string)` + +SetOrg sets Org field to given value. + + +### GetRepo + +`func (o *AWSCodeCommit) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *AWSCodeCommit) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *AWSCodeCommit) SetRepo(v string)` + +SetRepo sets Repo field to given value. + + +### GetDefaultBranch + +`func (o *AWSCodeCommit) GetDefaultBranch() string` + +GetDefaultBranch returns the DefaultBranch field if non-nil, zero value otherwise. + +### GetDefaultBranchOk + +`func (o *AWSCodeCommit) GetDefaultBranchOk() (*string, bool)` + +GetDefaultBranchOk returns a tuple with the DefaultBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultBranch + +`func (o *AWSCodeCommit) SetDefaultBranch(v string)` + +SetDefaultBranch sets DefaultBranch field to given value. + + +### GetRepoVersion + +`func (o *AWSCodeCommit) GetRepoVersion() string` + +GetRepoVersion returns the RepoVersion field if non-nil, zero value otherwise. + +### GetRepoVersionOk + +`func (o *AWSCodeCommit) GetRepoVersionOk() (*string, bool)` + +GetRepoVersionOk returns a tuple with the RepoVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoVersion + +`func (o *AWSCodeCommit) SetRepoVersion(v string)` + +SetRepoVersion sets RepoVersion field to given value. + +### HasRepoVersion + +`func (o *AWSCodeCommit) HasRepoVersion() bool` + +HasRepoVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AWSCodeCommitConfig.md b/internal/sdk/api/docs/AWSCodeCommitConfig.md new file mode 100644 index 0000000..ed4c882 --- /dev/null +++ b/internal/sdk/api/docs/AWSCodeCommitConfig.md @@ -0,0 +1,156 @@ +# AWSCodeCommitConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | The domain used to access your self-hosted AWS CodeCommit instance. | +**Region** | **string** | The region of the CodeCommit repository. | +**AccessKeyId** | **string** | The Access key ID from your AWSCodeCommitFullAccess policy. | +**SecretAccessKey** | **string** | The Secret Access Key from your AWSCodeCommitFullAccess policy | +**HttpsUsername** | **string** | The HTTPS username from your security credentials. | +**HttpsPassword** | **string** | The HTTPS password from your security credentials. | + +## Methods + +### NewAWSCodeCommitConfig + +`func NewAWSCodeCommitConfig(url string, region string, accessKeyId string, secretAccessKey string, httpsUsername string, httpsPassword string, ) *AWSCodeCommitConfig` + +NewAWSCodeCommitConfig instantiates a new AWSCodeCommitConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAWSCodeCommitConfigWithDefaults + +`func NewAWSCodeCommitConfigWithDefaults() *AWSCodeCommitConfig` + +NewAWSCodeCommitConfigWithDefaults instantiates a new AWSCodeCommitConfig 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 + +### GetUrl + +`func (o *AWSCodeCommitConfig) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *AWSCodeCommitConfig) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *AWSCodeCommitConfig) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetRegion + +`func (o *AWSCodeCommitConfig) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *AWSCodeCommitConfig) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *AWSCodeCommitConfig) SetRegion(v string)` + +SetRegion sets Region field to given value. + + +### GetAccessKeyId + +`func (o *AWSCodeCommitConfig) GetAccessKeyId() string` + +GetAccessKeyId returns the AccessKeyId field if non-nil, zero value otherwise. + +### GetAccessKeyIdOk + +`func (o *AWSCodeCommitConfig) GetAccessKeyIdOk() (*string, bool)` + +GetAccessKeyIdOk returns a tuple with the AccessKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessKeyId + +`func (o *AWSCodeCommitConfig) SetAccessKeyId(v string)` + +SetAccessKeyId sets AccessKeyId field to given value. + + +### GetSecretAccessKey + +`func (o *AWSCodeCommitConfig) GetSecretAccessKey() string` + +GetSecretAccessKey returns the SecretAccessKey field if non-nil, zero value otherwise. + +### GetSecretAccessKeyOk + +`func (o *AWSCodeCommitConfig) GetSecretAccessKeyOk() (*string, bool)` + +GetSecretAccessKeyOk returns a tuple with the SecretAccessKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretAccessKey + +`func (o *AWSCodeCommitConfig) SetSecretAccessKey(v string)` + +SetSecretAccessKey sets SecretAccessKey field to given value. + + +### GetHttpsUsername + +`func (o *AWSCodeCommitConfig) GetHttpsUsername() string` + +GetHttpsUsername returns the HttpsUsername field if non-nil, zero value otherwise. + +### GetHttpsUsernameOk + +`func (o *AWSCodeCommitConfig) GetHttpsUsernameOk() (*string, bool)` + +GetHttpsUsernameOk returns a tuple with the HttpsUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpsUsername + +`func (o *AWSCodeCommitConfig) SetHttpsUsername(v string)` + +SetHttpsUsername sets HttpsUsername field to given value. + + +### GetHttpsPassword + +`func (o *AWSCodeCommitConfig) GetHttpsPassword() string` + +GetHttpsPassword returns the HttpsPassword field if non-nil, zero value otherwise. + +### GetHttpsPasswordOk + +`func (o *AWSCodeCommitConfig) GetHttpsPasswordOk() (*string, bool)` + +GetHttpsPasswordOk returns a tuple with the HttpsPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpsPassword + +`func (o *AWSCodeCommitConfig) SetHttpsPassword(v string)` + +SetHttpsPassword sets HttpsPassword field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AccessRequest.md b/internal/sdk/api/docs/AccessRequest.md index e4c48ae..35265d0 100644 --- a/internal/sdk/api/docs/AccessRequest.md +++ b/internal/sdk/api/docs/AccessRequest.md @@ -9,12 +9,14 @@ Name | Type | Description | Notes **LegacyId** | **float32** | | **RequestingEmail** | **string** | | **UpdatedById** | **NullableString** | | +**CreatedAt** | **time.Time** | | +**UpdatedAt** | **time.Time** | | ## Methods ### NewAccessRequest -`func NewAccessRequest(id float32, status string, legacyId float32, requestingEmail string, updatedById NullableString, ) *AccessRequest` +`func NewAccessRequest(id float32, status string, legacyId float32, requestingEmail string, updatedById NullableString, createdAt time.Time, updatedAt time.Time, ) *AccessRequest` NewAccessRequest instantiates a new AccessRequest object This constructor will assign default values to properties that have it defined, @@ -139,6 +141,46 @@ SetUpdatedById sets UpdatedById field to given value. `func (o *AccessRequest) UnsetUpdatedById()` UnsetUpdatedById ensures that no value is present for UpdatedById, not even an explicit nil +### GetCreatedAt + +`func (o *AccessRequest) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccessRequest) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccessRequest) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AccessRequest) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccessRequest) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccessRequest) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/AccessRequestAPI.md b/internal/sdk/api/docs/AccessRequestAPI.md index f21250c..ede4ab1 100644 --- a/internal/sdk/api/docs/AccessRequestAPI.md +++ b/internal/sdk/api/docs/AccessRequestAPI.md @@ -31,7 +31,7 @@ import ( ) func main() { - accessRequestId := "accessRequestId_example" // string | + accessRequestId := "accessRequestId_example" // string | The access request's ID number configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -51,7 +51,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accessRequestId** | **string** | | +**accessRequestId** | **string** | The access request's ID number | ### Other Parameters @@ -101,8 +101,8 @@ import ( ) func main() { - accessRequestId := "accessRequestId_example" // string | - accessRequestsAccessRequestIdPatchRequest := *openapiclient.NewAccessRequestsAccessRequestIdPatchRequest([]openapiclient.UsersUserIdPatchRequestOperationsInnerAnyOf2{*openapiclient.NewUsersUserIdPatchRequestOperationsInnerAnyOf2("Op_example", "Path_example")}) // AccessRequestsAccessRequestIdPatchRequest | (optional) + accessRequestId := "accessRequestId_example" // string | The ID of the access request + accessRequestsAccessRequestIdPatchRequest := *openapiclient.NewAccessRequestsAccessRequestIdPatchRequest([]openapiclient.ReplaceOperation{*openapiclient.NewReplaceOperation("Op_example", "Path_example")}) // AccessRequestsAccessRequestIdPatchRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -122,7 +122,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accessRequestId** | **string** | | +**accessRequestId** | **string** | The ID of the access request | ### Other Parameters @@ -173,7 +173,7 @@ import ( ) func main() { - status := "status_example" // string | (optional) + status := "status_example" // string | The status of the access request (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -198,7 +198,7 @@ Other parameters are passed through a pointer to a apiAccessRequestsGetRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **string** | | + **status** | **string** | The status of the access request | ### Return type diff --git a/internal/sdk/api/docs/AccessRequestsAccessRequestIdPatchRequest.md b/internal/sdk/api/docs/AccessRequestsAccessRequestIdPatchRequest.md index a9cdcb6..a365d86 100644 --- a/internal/sdk/api/docs/AccessRequestsAccessRequestIdPatchRequest.md +++ b/internal/sdk/api/docs/AccessRequestsAccessRequestIdPatchRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Operations** | [**[]UsersUserIdPatchRequestOperationsInnerAnyOf2**](UsersUserIdPatchRequestOperationsInnerAnyOf2.md) | A list of operations to apply to the access request. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | +**Operations** | [**[]ReplaceOperation**](ReplaceOperation.md) | A list of operations to apply to the access request. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | ## Methods ### NewAccessRequestsAccessRequestIdPatchRequest -`func NewAccessRequestsAccessRequestIdPatchRequest(operations []UsersUserIdPatchRequestOperationsInnerAnyOf2, ) *AccessRequestsAccessRequestIdPatchRequest` +`func NewAccessRequestsAccessRequestIdPatchRequest(operations []ReplaceOperation, ) *AccessRequestsAccessRequestIdPatchRequest` NewAccessRequestsAccessRequestIdPatchRequest instantiates a new AccessRequestsAccessRequestIdPatchRequest object This constructor will assign default values to properties that have it defined, @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetOperations -`func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperations() []UsersUserIdPatchRequestOperationsInnerAnyOf2` +`func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperations() []ReplaceOperation` GetOperations returns the Operations field if non-nil, zero value otherwise. ### GetOperationsOk -`func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperationsOk() (*[]UsersUserIdPatchRequestOperationsInnerAnyOf2, bool)` +`func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperationsOk() (*[]ReplaceOperation, bool)` GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOperations -`func (o *AccessRequestsAccessRequestIdPatchRequest) SetOperations(v []UsersUserIdPatchRequestOperationsInnerAnyOf2)` +`func (o *AccessRequestsAccessRequestIdPatchRequest) SetOperations(v []ReplaceOperation)` SetOperations sets Operations field to given value. diff --git a/internal/sdk/api/docs/AccessRequestsGet200ResponseDataInner.md b/internal/sdk/api/docs/AccessRequestsGet200ResponseDataInner.md index 60a4143..0fb55d8 100644 --- a/internal/sdk/api/docs/AccessRequestsGet200ResponseDataInner.md +++ b/internal/sdk/api/docs/AccessRequestsGet200ResponseDataInner.md @@ -9,12 +9,14 @@ Name | Type | Description | Notes **LegacyId** | **float32** | | **RequestingEmail** | **string** | | **UpdatedById** | **NullableString** | | +**CreatedAt** | **time.Time** | | +**UpdatedAt** | **time.Time** | | ## Methods ### NewAccessRequestsGet200ResponseDataInner -`func NewAccessRequestsGet200ResponseDataInner(id float32, status string, legacyId float32, requestingEmail string, updatedById NullableString, ) *AccessRequestsGet200ResponseDataInner` +`func NewAccessRequestsGet200ResponseDataInner(id float32, status string, legacyId float32, requestingEmail string, updatedById NullableString, createdAt time.Time, updatedAt time.Time, ) *AccessRequestsGet200ResponseDataInner` NewAccessRequestsGet200ResponseDataInner instantiates a new AccessRequestsGet200ResponseDataInner object This constructor will assign default values to properties that have it defined, @@ -139,6 +141,46 @@ SetUpdatedById sets UpdatedById field to given value. `func (o *AccessRequestsGet200ResponseDataInner) UnsetUpdatedById()` UnsetUpdatedById ensures that no value is present for UpdatedById, not even an explicit nil +### GetCreatedAt + +`func (o *AccessRequestsGet200ResponseDataInner) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccessRequestsGet200ResponseDataInner) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccessRequestsGet200ResponseDataInner) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AccessRequestsGet200ResponseDataInner) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccessRequestsGet200ResponseDataInner) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccessRequestsGet200ResponseDataInner) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/AccessToken.md b/internal/sdk/api/docs/AccessToken.md new file mode 100644 index 0000000..e96f190 --- /dev/null +++ b/internal/sdk/api/docs/AccessToken.md @@ -0,0 +1,208 @@ +# AccessToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The uuid of the access token. | +**Label** | **string** | The name of the access token. | +**Description** | **NullableString** | The description of the access token. | +**Last4** | **string** | Last 4 characters of the access token secret | +**OwnerLegacyId** | **float32** | The legacy id of the user that created the token | +**Scopes** | **[]string** | | +**CreatedAt** | **time.Time** | | +**UpdatedAt** | **time.Time** | | + +## Methods + +### NewAccessToken + +`func NewAccessToken(id string, label string, description NullableString, last4 string, ownerLegacyId float32, scopes []string, createdAt time.Time, updatedAt time.Time, ) *AccessToken` + +NewAccessToken instantiates a new AccessToken object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokenWithDefaults + +`func NewAccessTokenWithDefaults() *AccessToken` + +NewAccessTokenWithDefaults instantiates a new AccessToken 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 + +### GetId + +`func (o *AccessToken) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccessToken) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AccessToken) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLabel + +`func (o *AccessToken) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *AccessToken) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *AccessToken) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDescription + +`func (o *AccessToken) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccessToken) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *AccessToken) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *AccessToken) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *AccessToken) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetLast4 + +`func (o *AccessToken) GetLast4() string` + +GetLast4 returns the Last4 field if non-nil, zero value otherwise. + +### GetLast4Ok + +`func (o *AccessToken) GetLast4Ok() (*string, bool)` + +GetLast4Ok returns a tuple with the Last4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast4 + +`func (o *AccessToken) SetLast4(v string)` + +SetLast4 sets Last4 field to given value. + + +### GetOwnerLegacyId + +`func (o *AccessToken) GetOwnerLegacyId() float32` + +GetOwnerLegacyId returns the OwnerLegacyId field if non-nil, zero value otherwise. + +### GetOwnerLegacyIdOk + +`func (o *AccessToken) GetOwnerLegacyIdOk() (*float32, bool)` + +GetOwnerLegacyIdOk returns a tuple with the OwnerLegacyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerLegacyId + +`func (o *AccessToken) SetOwnerLegacyId(v float32)` + +SetOwnerLegacyId sets OwnerLegacyId field to given value. + + +### GetScopes + +`func (o *AccessToken) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *AccessToken) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *AccessToken) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + + +### GetCreatedAt + +`func (o *AccessToken) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccessToken) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccessToken) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AccessToken) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccessToken) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccessToken) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AccessTokensAPI.md b/internal/sdk/api/docs/AccessTokensAPI.md new file mode 100644 index 0000000..73bb7ce --- /dev/null +++ b/internal/sdk/api/docs/AccessTokensAPI.md @@ -0,0 +1,199 @@ +# \AccessTokensAPI + +All URIs are relative to *http://.* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AccessTokensAccessTokenIdGet**](AccessTokensAPI.md#AccessTokensAccessTokenIdGet) | **Get** /access_tokens/:accessTokenId | Get a single access token +[**AccessTokensGet**](AccessTokensAPI.md#AccessTokensGet) | **Get** /access_tokens | List access tokens +[**AccessTokensPost**](AccessTokensAPI.md#AccessTokensPost) | **Post** /access_tokens | Create an access token + + + +## AccessTokensAccessTokenIdGet + +> AccessTokensAccessTokenIdGet200Response AccessTokensAccessTokenIdGet(ctx).Execute() + +Get a single access token + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AccessTokensAPI.AccessTokensAccessTokenIdGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessTokensAPI.AccessTokensAccessTokenIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AccessTokensAccessTokenIdGet`: AccessTokensAccessTokenIdGet200Response + fmt.Fprintf(os.Stdout, "Response from `AccessTokensAPI.AccessTokensAccessTokenIdGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAccessTokensAccessTokenIdGetRequest struct via the builder pattern + + +### Return type + +[**AccessTokensAccessTokenIdGet200Response**](AccessTokensAccessTokenIdGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AccessTokensGet + +> AccessTokensGet200Response AccessTokensGet(ctx).Execute() + +List access tokens + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AccessTokensAPI.AccessTokensGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessTokensAPI.AccessTokensGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AccessTokensGet`: AccessTokensGet200Response + fmt.Fprintf(os.Stdout, "Response from `AccessTokensAPI.AccessTokensGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAccessTokensGetRequest struct via the builder pattern + + +### Return type + +[**AccessTokensGet200Response**](AccessTokensGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AccessTokensPost + +> AccessTokensPost200Response AccessTokensPost(ctx).AccessTokensPostRequest(accessTokensPostRequest).Execute() + +Create an access token + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + accessTokensPostRequest := *openapiclient.NewAccessTokensPostRequest("Label_example", []string{"Scopes_example"}) // AccessTokensPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AccessTokensAPI.AccessTokensPost(context.Background()).AccessTokensPostRequest(accessTokensPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessTokensAPI.AccessTokensPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AccessTokensPost`: AccessTokensPost200Response + fmt.Fprintf(os.Stdout, "Response from `AccessTokensAPI.AccessTokensPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAccessTokensPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessTokensPostRequest** | [**AccessTokensPostRequest**](AccessTokensPostRequest.md) | | + +### Return type + +[**AccessTokensPost200Response**](AccessTokensPost200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/AccessTokensAccessTokenIdGet200Response.md b/internal/sdk/api/docs/AccessTokensAccessTokenIdGet200Response.md new file mode 100644 index 0000000..3c52813 --- /dev/null +++ b/internal/sdk/api/docs/AccessTokensAccessTokenIdGet200Response.md @@ -0,0 +1,72 @@ +# AccessTokensAccessTokenIdGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**AccessTokensAccessTokenIdGet200ResponseData**](AccessTokensAccessTokenIdGet200ResponseData.md) | | + +## Methods + +### NewAccessTokensAccessTokenIdGet200Response + +`func NewAccessTokensAccessTokenIdGet200Response(success bool, data AccessTokensAccessTokenIdGet200ResponseData, ) *AccessTokensAccessTokenIdGet200Response` + +NewAccessTokensAccessTokenIdGet200Response instantiates a new AccessTokensAccessTokenIdGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokensAccessTokenIdGet200ResponseWithDefaults + +`func NewAccessTokensAccessTokenIdGet200ResponseWithDefaults() *AccessTokensAccessTokenIdGet200Response` + +NewAccessTokensAccessTokenIdGet200ResponseWithDefaults instantiates a new AccessTokensAccessTokenIdGet200Response 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 + +### GetSuccess + +`func (o *AccessTokensAccessTokenIdGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *AccessTokensAccessTokenIdGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *AccessTokensAccessTokenIdGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *AccessTokensAccessTokenIdGet200Response) GetData() AccessTokensAccessTokenIdGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AccessTokensAccessTokenIdGet200Response) GetDataOk() (*AccessTokensAccessTokenIdGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AccessTokensAccessTokenIdGet200Response) SetData(v AccessTokensAccessTokenIdGet200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AccessTokensAccessTokenIdGet200ResponseData.md b/internal/sdk/api/docs/AccessTokensAccessTokenIdGet200ResponseData.md new file mode 100644 index 0000000..c3321ac --- /dev/null +++ b/internal/sdk/api/docs/AccessTokensAccessTokenIdGet200ResponseData.md @@ -0,0 +1,208 @@ +# AccessTokensAccessTokenIdGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The uuid of the access token. | +**Label** | **string** | The name of the access token. | +**Description** | **NullableString** | The description of the access token. | +**Last4** | **string** | Last 4 characters of the access token secret | +**OwnerLegacyId** | **float32** | The legacy id of the user that created the token | +**Scopes** | **[]string** | | +**CreatedAt** | **time.Time** | | +**UpdatedAt** | **time.Time** | | + +## Methods + +### NewAccessTokensAccessTokenIdGet200ResponseData + +`func NewAccessTokensAccessTokenIdGet200ResponseData(id string, label string, description NullableString, last4 string, ownerLegacyId float32, scopes []string, createdAt time.Time, updatedAt time.Time, ) *AccessTokensAccessTokenIdGet200ResponseData` + +NewAccessTokensAccessTokenIdGet200ResponseData instantiates a new AccessTokensAccessTokenIdGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokensAccessTokenIdGet200ResponseDataWithDefaults + +`func NewAccessTokensAccessTokenIdGet200ResponseDataWithDefaults() *AccessTokensAccessTokenIdGet200ResponseData` + +NewAccessTokensAccessTokenIdGet200ResponseDataWithDefaults instantiates a new AccessTokensAccessTokenIdGet200ResponseData 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 + +### GetId + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLabel + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDescription + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *AccessTokensAccessTokenIdGet200ResponseData) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetLast4 + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetLast4() string` + +GetLast4 returns the Last4 field if non-nil, zero value otherwise. + +### GetLast4Ok + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetLast4Ok() (*string, bool)` + +GetLast4Ok returns a tuple with the Last4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast4 + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetLast4(v string)` + +SetLast4 sets Last4 field to given value. + + +### GetOwnerLegacyId + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetOwnerLegacyId() float32` + +GetOwnerLegacyId returns the OwnerLegacyId field if non-nil, zero value otherwise. + +### GetOwnerLegacyIdOk + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetOwnerLegacyIdOk() (*float32, bool)` + +GetOwnerLegacyIdOk returns a tuple with the OwnerLegacyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerLegacyId + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetOwnerLegacyId(v float32)` + +SetOwnerLegacyId sets OwnerLegacyId field to given value. + + +### GetScopes + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + + +### GetCreatedAt + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccessTokensAccessTokenIdGet200ResponseData) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AccessTokensGet200Response.md b/internal/sdk/api/docs/AccessTokensGet200Response.md new file mode 100644 index 0000000..4e60f17 --- /dev/null +++ b/internal/sdk/api/docs/AccessTokensGet200Response.md @@ -0,0 +1,145 @@ +# AccessTokensGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**[]AccessTokensGet200ResponseDataInner**](AccessTokensGet200ResponseDataInner.md) | An array of requested items | +**TotalCount** | **float32** | Total number of items in the response | +**NextToken** | **NullableString** | A token to retrieve the next page of items in the collection | +**HasMore** | **bool** | Whether there are more items in the collection | + +## Methods + +### NewAccessTokensGet200Response + +`func NewAccessTokensGet200Response(success bool, data []AccessTokensGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool, ) *AccessTokensGet200Response` + +NewAccessTokensGet200Response instantiates a new AccessTokensGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokensGet200ResponseWithDefaults + +`func NewAccessTokensGet200ResponseWithDefaults() *AccessTokensGet200Response` + +NewAccessTokensGet200ResponseWithDefaults instantiates a new AccessTokensGet200Response 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 + +### GetSuccess + +`func (o *AccessTokensGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *AccessTokensGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *AccessTokensGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *AccessTokensGet200Response) GetData() []AccessTokensGet200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AccessTokensGet200Response) GetDataOk() (*[]AccessTokensGet200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AccessTokensGet200Response) SetData(v []AccessTokensGet200ResponseDataInner)` + +SetData sets Data field to given value. + + +### GetTotalCount + +`func (o *AccessTokensGet200Response) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *AccessTokensGet200Response) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *AccessTokensGet200Response) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + + +### GetNextToken + +`func (o *AccessTokensGet200Response) GetNextToken() string` + +GetNextToken returns the NextToken field if non-nil, zero value otherwise. + +### GetNextTokenOk + +`func (o *AccessTokensGet200Response) GetNextTokenOk() (*string, bool)` + +GetNextTokenOk returns a tuple with the NextToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextToken + +`func (o *AccessTokensGet200Response) SetNextToken(v string)` + +SetNextToken sets NextToken field to given value. + + +### SetNextTokenNil + +`func (o *AccessTokensGet200Response) SetNextTokenNil(b bool)` + + SetNextTokenNil sets the value for NextToken to be an explicit nil + +### UnsetNextToken +`func (o *AccessTokensGet200Response) UnsetNextToken()` + +UnsetNextToken ensures that no value is present for NextToken, not even an explicit nil +### GetHasMore + +`func (o *AccessTokensGet200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *AccessTokensGet200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *AccessTokensGet200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AccessTokensGet200ResponseDataInner.md b/internal/sdk/api/docs/AccessTokensGet200ResponseDataInner.md new file mode 100644 index 0000000..a82f7ae --- /dev/null +++ b/internal/sdk/api/docs/AccessTokensGet200ResponseDataInner.md @@ -0,0 +1,208 @@ +# AccessTokensGet200ResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The uuid of the access token. | +**Label** | **string** | The name of the access token. | +**Description** | **NullableString** | The description of the access token. | +**Last4** | **string** | Last 4 characters of the access token secret | +**OwnerLegacyId** | **float32** | The legacy id of the user that created the token | +**Scopes** | **[]string** | | +**CreatedAt** | **time.Time** | | +**UpdatedAt** | **time.Time** | | + +## Methods + +### NewAccessTokensGet200ResponseDataInner + +`func NewAccessTokensGet200ResponseDataInner(id string, label string, description NullableString, last4 string, ownerLegacyId float32, scopes []string, createdAt time.Time, updatedAt time.Time, ) *AccessTokensGet200ResponseDataInner` + +NewAccessTokensGet200ResponseDataInner instantiates a new AccessTokensGet200ResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokensGet200ResponseDataInnerWithDefaults + +`func NewAccessTokensGet200ResponseDataInnerWithDefaults() *AccessTokensGet200ResponseDataInner` + +NewAccessTokensGet200ResponseDataInnerWithDefaults instantiates a new AccessTokensGet200ResponseDataInner 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 + +### GetId + +`func (o *AccessTokensGet200ResponseDataInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccessTokensGet200ResponseDataInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AccessTokensGet200ResponseDataInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLabel + +`func (o *AccessTokensGet200ResponseDataInner) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *AccessTokensGet200ResponseDataInner) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *AccessTokensGet200ResponseDataInner) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDescription + +`func (o *AccessTokensGet200ResponseDataInner) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccessTokensGet200ResponseDataInner) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *AccessTokensGet200ResponseDataInner) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *AccessTokensGet200ResponseDataInner) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *AccessTokensGet200ResponseDataInner) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetLast4 + +`func (o *AccessTokensGet200ResponseDataInner) GetLast4() string` + +GetLast4 returns the Last4 field if non-nil, zero value otherwise. + +### GetLast4Ok + +`func (o *AccessTokensGet200ResponseDataInner) GetLast4Ok() (*string, bool)` + +GetLast4Ok returns a tuple with the Last4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast4 + +`func (o *AccessTokensGet200ResponseDataInner) SetLast4(v string)` + +SetLast4 sets Last4 field to given value. + + +### GetOwnerLegacyId + +`func (o *AccessTokensGet200ResponseDataInner) GetOwnerLegacyId() float32` + +GetOwnerLegacyId returns the OwnerLegacyId field if non-nil, zero value otherwise. + +### GetOwnerLegacyIdOk + +`func (o *AccessTokensGet200ResponseDataInner) GetOwnerLegacyIdOk() (*float32, bool)` + +GetOwnerLegacyIdOk returns a tuple with the OwnerLegacyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerLegacyId + +`func (o *AccessTokensGet200ResponseDataInner) SetOwnerLegacyId(v float32)` + +SetOwnerLegacyId sets OwnerLegacyId field to given value. + + +### GetScopes + +`func (o *AccessTokensGet200ResponseDataInner) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *AccessTokensGet200ResponseDataInner) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *AccessTokensGet200ResponseDataInner) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + + +### GetCreatedAt + +`func (o *AccessTokensGet200ResponseDataInner) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccessTokensGet200ResponseDataInner) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccessTokensGet200ResponseDataInner) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AccessTokensGet200ResponseDataInner) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccessTokensGet200ResponseDataInner) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccessTokensGet200ResponseDataInner) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AccessTokensPost200Response.md b/internal/sdk/api/docs/AccessTokensPost200Response.md new file mode 100644 index 0000000..7178671 --- /dev/null +++ b/internal/sdk/api/docs/AccessTokensPost200Response.md @@ -0,0 +1,72 @@ +# AccessTokensPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**AccessTokensPost200ResponseData**](AccessTokensPost200ResponseData.md) | | + +## Methods + +### NewAccessTokensPost200Response + +`func NewAccessTokensPost200Response(success bool, data AccessTokensPost200ResponseData, ) *AccessTokensPost200Response` + +NewAccessTokensPost200Response instantiates a new AccessTokensPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokensPost200ResponseWithDefaults + +`func NewAccessTokensPost200ResponseWithDefaults() *AccessTokensPost200Response` + +NewAccessTokensPost200ResponseWithDefaults instantiates a new AccessTokensPost200Response 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 + +### GetSuccess + +`func (o *AccessTokensPost200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *AccessTokensPost200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *AccessTokensPost200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *AccessTokensPost200Response) GetData() AccessTokensPost200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AccessTokensPost200Response) GetDataOk() (*AccessTokensPost200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AccessTokensPost200Response) SetData(v AccessTokensPost200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AccessTokensPost200ResponseData.md b/internal/sdk/api/docs/AccessTokensPost200ResponseData.md new file mode 100644 index 0000000..a58f8d1 --- /dev/null +++ b/internal/sdk/api/docs/AccessTokensPost200ResponseData.md @@ -0,0 +1,229 @@ +# AccessTokensPost200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The uuid of the access token. | +**Label** | **string** | The name of the access token. | +**Description** | **NullableString** | The description of the access token. | +**Last4** | **string** | Last 4 characters of the access token secret | +**OwnerLegacyId** | **float32** | The legacy id of the user that created the token | +**Scopes** | **[]string** | | +**CreatedAt** | **time.Time** | | +**UpdatedAt** | **time.Time** | | +**AccessToken** | **string** | Secret token for API access. Please note this as it will only be visible once. | + +## Methods + +### NewAccessTokensPost200ResponseData + +`func NewAccessTokensPost200ResponseData(id string, label string, description NullableString, last4 string, ownerLegacyId float32, scopes []string, createdAt time.Time, updatedAt time.Time, accessToken string, ) *AccessTokensPost200ResponseData` + +NewAccessTokensPost200ResponseData instantiates a new AccessTokensPost200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokensPost200ResponseDataWithDefaults + +`func NewAccessTokensPost200ResponseDataWithDefaults() *AccessTokensPost200ResponseData` + +NewAccessTokensPost200ResponseDataWithDefaults instantiates a new AccessTokensPost200ResponseData 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 + +### GetId + +`func (o *AccessTokensPost200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccessTokensPost200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AccessTokensPost200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLabel + +`func (o *AccessTokensPost200ResponseData) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *AccessTokensPost200ResponseData) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *AccessTokensPost200ResponseData) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDescription + +`func (o *AccessTokensPost200ResponseData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccessTokensPost200ResponseData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *AccessTokensPost200ResponseData) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *AccessTokensPost200ResponseData) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *AccessTokensPost200ResponseData) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetLast4 + +`func (o *AccessTokensPost200ResponseData) GetLast4() string` + +GetLast4 returns the Last4 field if non-nil, zero value otherwise. + +### GetLast4Ok + +`func (o *AccessTokensPost200ResponseData) GetLast4Ok() (*string, bool)` + +GetLast4Ok returns a tuple with the Last4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast4 + +`func (o *AccessTokensPost200ResponseData) SetLast4(v string)` + +SetLast4 sets Last4 field to given value. + + +### GetOwnerLegacyId + +`func (o *AccessTokensPost200ResponseData) GetOwnerLegacyId() float32` + +GetOwnerLegacyId returns the OwnerLegacyId field if non-nil, zero value otherwise. + +### GetOwnerLegacyIdOk + +`func (o *AccessTokensPost200ResponseData) GetOwnerLegacyIdOk() (*float32, bool)` + +GetOwnerLegacyIdOk returns a tuple with the OwnerLegacyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerLegacyId + +`func (o *AccessTokensPost200ResponseData) SetOwnerLegacyId(v float32)` + +SetOwnerLegacyId sets OwnerLegacyId field to given value. + + +### GetScopes + +`func (o *AccessTokensPost200ResponseData) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *AccessTokensPost200ResponseData) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *AccessTokensPost200ResponseData) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + + +### GetCreatedAt + +`func (o *AccessTokensPost200ResponseData) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccessTokensPost200ResponseData) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccessTokensPost200ResponseData) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AccessTokensPost200ResponseData) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccessTokensPost200ResponseData) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccessTokensPost200ResponseData) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + +### GetAccessToken + +`func (o *AccessTokensPost200ResponseData) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *AccessTokensPost200ResponseData) GetAccessTokenOk() (*string, bool)` + +GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessToken + +`func (o *AccessTokensPost200ResponseData) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AccessTokensPostRequest.md b/internal/sdk/api/docs/AccessTokensPostRequest.md new file mode 100644 index 0000000..b1b269d --- /dev/null +++ b/internal/sdk/api/docs/AccessTokensPostRequest.md @@ -0,0 +1,108 @@ +# AccessTokensPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | **string** | The name of the access token. | +**Description** | Pointer to **NullableString** | A short, user-facing description of the access token. | [optional] +**Scopes** | **[]string** | Scopes to include in the access token. All valid scopes can be found in the [documentation](https://docs.retool.com/reference/api/v2). Any invalid scopes are ignored. | + +## Methods + +### NewAccessTokensPostRequest + +`func NewAccessTokensPostRequest(label string, scopes []string, ) *AccessTokensPostRequest` + +NewAccessTokensPostRequest instantiates a new AccessTokensPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccessTokensPostRequestWithDefaults + +`func NewAccessTokensPostRequestWithDefaults() *AccessTokensPostRequest` + +NewAccessTokensPostRequestWithDefaults instantiates a new AccessTokensPostRequest 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 + +### GetLabel + +`func (o *AccessTokensPostRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *AccessTokensPostRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *AccessTokensPostRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDescription + +`func (o *AccessTokensPostRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccessTokensPostRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *AccessTokensPostRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AccessTokensPostRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *AccessTokensPostRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *AccessTokensPostRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetScopes + +`func (o *AccessTokensPostRequest) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *AccessTokensPostRequest) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *AccessTokensPostRequest) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AnalyticsIntegrationsSettings.md b/internal/sdk/api/docs/AnalyticsIntegrationsSettings.md new file mode 100644 index 0000000..7542981 --- /dev/null +++ b/internal/sdk/api/docs/AnalyticsIntegrationsSettings.md @@ -0,0 +1,135 @@ +# AnalyticsIntegrationsSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**MeasurementId** | **string** | | +**Enabled** | **bool** | | +**Host** | **string** | | +**ApiKey** | **string** | | + +## Methods + +### NewAnalyticsIntegrationsSettings + +`func NewAnalyticsIntegrationsSettings(type_ string, measurementId string, enabled bool, host string, apiKey string, ) *AnalyticsIntegrationsSettings` + +NewAnalyticsIntegrationsSettings instantiates a new AnalyticsIntegrationsSettings object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnalyticsIntegrationsSettingsWithDefaults + +`func NewAnalyticsIntegrationsSettingsWithDefaults() *AnalyticsIntegrationsSettings` + +NewAnalyticsIntegrationsSettingsWithDefaults instantiates a new AnalyticsIntegrationsSettings 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 + +### GetType + +`func (o *AnalyticsIntegrationsSettings) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AnalyticsIntegrationsSettings) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AnalyticsIntegrationsSettings) SetType(v string)` + +SetType sets Type field to given value. + + +### GetMeasurementId + +`func (o *AnalyticsIntegrationsSettings) GetMeasurementId() string` + +GetMeasurementId returns the MeasurementId field if non-nil, zero value otherwise. + +### GetMeasurementIdOk + +`func (o *AnalyticsIntegrationsSettings) GetMeasurementIdOk() (*string, bool)` + +GetMeasurementIdOk returns a tuple with the MeasurementId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeasurementId + +`func (o *AnalyticsIntegrationsSettings) SetMeasurementId(v string)` + +SetMeasurementId sets MeasurementId field to given value. + + +### GetEnabled + +`func (o *AnalyticsIntegrationsSettings) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *AnalyticsIntegrationsSettings) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *AnalyticsIntegrationsSettings) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + +### GetHost + +`func (o *AnalyticsIntegrationsSettings) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *AnalyticsIntegrationsSettings) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *AnalyticsIntegrationsSettings) SetHost(v string)` + +SetHost sets Host field to given value. + + +### GetApiKey + +`func (o *AnalyticsIntegrationsSettings) GetApiKey() string` + +GetApiKey returns the ApiKey field if non-nil, zero value otherwise. + +### GetApiKeyOk + +`func (o *AnalyticsIntegrationsSettings) GetApiKeyOk() (*string, bool)` + +GetApiKeyOk returns a tuple with the ApiKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiKey + +`func (o *AnalyticsIntegrationsSettings) SetApiKey(v string)` + +SetApiKey sets ApiKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/App.md b/internal/sdk/api/docs/App.md index bf94ec6..a704a67 100644 --- a/internal/sdk/api/docs/App.md +++ b/internal/sdk/api/docs/App.md @@ -4,21 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | **string** | | **Id** | **string** | The app ID. | -**Name** | **string** | The name of the App | -**Description** | **NullableString** | The description of the App | -**FolderId** | **string** | The id of the folder | -**Protected** | **bool** | Whether the App is protected | -**Synced** | **bool** | Whether the App is synced | -**Shortlink** | **NullableString** | The shortlink of the App | -**IsModule** | **bool** | Whether the App is a module | -**IsMobileApp** | **bool** | Whether the App is a mobile app | ## Methods ### NewApp -`func NewApp(id string, name string, description NullableString, folderId string, protected bool, synced bool, shortlink NullableString, isModule bool, isMobileApp bool, ) *App` +`func NewApp(type_ string, id string, ) *App` NewApp instantiates a new App object This constructor will assign default values to properties that have it defined, @@ -33,204 +26,44 @@ NewAppWithDefaults instantiates a new App 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 -### GetId - -`func (o *App) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *App) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *App) SetId(v string)` - -SetId sets Id field to given value. - - -### GetName - -`func (o *App) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *App) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### GetType -### SetName +`func (o *App) GetType() string` -`func (o *App) SetName(v string)` +GetType returns the Type field if non-nil, zero value otherwise. -SetName sets Name field to given value. +### GetTypeOk +`func (o *App) GetTypeOk() (*string, bool)` -### GetDescription - -`func (o *App) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *App) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *App) SetDescription(v string)` - -SetDescription sets Description field to given value. - - -### SetDescriptionNil - -`func (o *App) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *App) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetFolderId - -`func (o *App) GetFolderId() string` - -GetFolderId returns the FolderId field if non-nil, zero value otherwise. - -### GetFolderIdOk - -`func (o *App) GetFolderIdOk() (*string, bool)` - -GetFolderIdOk returns a tuple with the FolderId field if it's non-nil, zero value otherwise +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFolderId +### SetType -`func (o *App) SetFolderId(v string)` +`func (o *App) SetType(v string)` -SetFolderId sets FolderId field to given value. +SetType sets Type field to given value. -### GetProtected - -`func (o *App) GetProtected() bool` - -GetProtected returns the Protected field if non-nil, zero value otherwise. - -### GetProtectedOk - -`func (o *App) GetProtectedOk() (*bool, bool)` - -GetProtectedOk returns a tuple with the Protected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProtected - -`func (o *App) SetProtected(v bool)` - -SetProtected sets Protected field to given value. - - -### GetSynced - -`func (o *App) GetSynced() bool` - -GetSynced returns the Synced field if non-nil, zero value otherwise. - -### GetSyncedOk - -`func (o *App) GetSyncedOk() (*bool, bool)` - -GetSyncedOk returns a tuple with the Synced field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSynced - -`func (o *App) SetSynced(v bool)` - -SetSynced sets Synced field to given value. - - -### GetShortlink - -`func (o *App) GetShortlink() string` - -GetShortlink returns the Shortlink field if non-nil, zero value otherwise. - -### GetShortlinkOk - -`func (o *App) GetShortlinkOk() (*string, bool)` - -GetShortlinkOk returns a tuple with the Shortlink field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShortlink - -`func (o *App) SetShortlink(v string)` - -SetShortlink sets Shortlink field to given value. - - -### SetShortlinkNil - -`func (o *App) SetShortlinkNil(b bool)` - - SetShortlinkNil sets the value for Shortlink to be an explicit nil - -### UnsetShortlink -`func (o *App) UnsetShortlink()` - -UnsetShortlink ensures that no value is present for Shortlink, not even an explicit nil -### GetIsModule - -`func (o *App) GetIsModule() bool` - -GetIsModule returns the IsModule field if non-nil, zero value otherwise. - -### GetIsModuleOk - -`func (o *App) GetIsModuleOk() (*bool, bool)` - -GetIsModuleOk returns a tuple with the IsModule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsModule - -`func (o *App) SetIsModule(v bool)` - -SetIsModule sets IsModule field to given value. - - -### GetIsMobileApp +### GetId -`func (o *App) GetIsMobileApp() bool` +`func (o *App) GetId() string` -GetIsMobileApp returns the IsMobileApp field if non-nil, zero value otherwise. +GetId returns the Id field if non-nil, zero value otherwise. -### GetIsMobileAppOk +### GetIdOk -`func (o *App) GetIsMobileAppOk() (*bool, bool)` +`func (o *App) GetIdOk() (*string, bool)` -GetIsMobileAppOk returns a tuple with the IsMobileApp field if it's non-nil, zero value otherwise +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsMobileApp +### SetId -`func (o *App) SetIsMobileApp(v bool)` +`func (o *App) SetId(v string)` -SetIsMobileApp sets IsMobileApp field to given value. +SetId sets Id field to given value. diff --git a/internal/sdk/api/docs/AppTheme.md b/internal/sdk/api/docs/AppTheme.md index 85da0af..954e205 100644 --- a/internal/sdk/api/docs/AppTheme.md +++ b/internal/sdk/api/docs/AppTheme.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **LegacyId** | **float32** | | **Name** | **string** | The name of the app theme. | **Theme** | **map[string]interface{}** | The theme object. | +**CreatedAt** | **time.Time** | Date and time when the app theme was created. | +**UpdatedAt** | **time.Time** | Date and time when the app theme was last updated. | ## Methods ### NewAppTheme -`func NewAppTheme(id float32, legacyId float32, name string, theme map[string]interface{}, ) *AppTheme` +`func NewAppTheme(id float32, legacyId float32, name string, theme map[string]interface{}, createdAt time.Time, updatedAt time.Time, ) *AppTheme` NewAppTheme instantiates a new AppTheme object This constructor will assign default values to properties that have it defined, @@ -108,6 +110,46 @@ and a boolean to check if the value has been set. SetTheme sets Theme field to given value. +### GetCreatedAt + +`func (o *AppTheme) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AppTheme) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AppTheme) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AppTheme) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AppTheme) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AppTheme) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/AppThemesAPI.md b/internal/sdk/api/docs/AppThemesAPI.md index 556daff..6910cd7 100644 --- a/internal/sdk/api/docs/AppThemesAPI.md +++ b/internal/sdk/api/docs/AppThemesAPI.md @@ -4,6 +4,7 @@ All URIs are relative to *http://.* Method | HTTP request | Description ------------- | ------------- | ------------- +[**AppThemesGet**](AppThemesAPI.md#AppThemesGet) | **Get** /app_themes | List all app themes [**AppThemesIdDelete**](AppThemesAPI.md#AppThemesIdDelete) | **Delete** /app_themes/{id} | Delete app theme [**AppThemesIdGet**](AppThemesAPI.md#AppThemesIdGet) | **Get** /app_themes/{id} | Get app theme [**AppThemesPost**](AppThemesAPI.md#AppThemesPost) | **Post** /app_themes | Create app theme @@ -11,6 +12,67 @@ Method | HTTP request | Description +## AppThemesGet + +> AppThemesGet200Response AppThemesGet(ctx).Execute() + +List all app themes + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppThemesAPI.AppThemesGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppThemesAPI.AppThemesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppThemesGet`: AppThemesGet200Response + fmt.Fprintf(os.Stdout, "Response from `AppThemesAPI.AppThemesGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppThemesGetRequest struct via the builder pattern + + +### Return type + +[**AppThemesGet200Response**](AppThemesGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## AppThemesIdDelete > AppThemesIdDelete(ctx, id).Execute() @@ -151,7 +213,7 @@ Name | Type | Description | Notes ## AppThemesPost -> AppThemesPut200Response AppThemesPost(ctx).AppThemesPutRequest(appThemesPutRequest).Execute() +> AppThemesPut200Response AppThemesPost(ctx).AppThemesGet200ResponseDataInner(appThemesGet200ResponseDataInner).Execute() Create app theme @@ -166,15 +228,16 @@ import ( "context" "fmt" "os" + "time" openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) func main() { - appThemesPutRequest := *openapiclient.NewAppThemesPutRequest(float32(123), float32(123), "Name_example", map[string]interface{}{"key": interface{}(123)}) // AppThemesPutRequest | (optional) + appThemesGet200ResponseDataInner := *openapiclient.NewAppThemesGet200ResponseDataInner(float32(123), float32(123), "Name_example", map[string]interface{}{"key": interface{}(123)}, time.Now(), time.Now()) // AppThemesGet200ResponseDataInner | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AppThemesAPI.AppThemesPost(context.Background()).AppThemesPutRequest(appThemesPutRequest).Execute() + resp, r, err := apiClient.AppThemesAPI.AppThemesPost(context.Background()).AppThemesGet200ResponseDataInner(appThemesGet200ResponseDataInner).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AppThemesAPI.AppThemesPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -195,7 +258,7 @@ Other parameters are passed through a pointer to a apiAppThemesPostRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appThemesPutRequest** | [**AppThemesPutRequest**](AppThemesPutRequest.md) | | + **appThemesGet200ResponseDataInner** | [**AppThemesGet200ResponseDataInner**](AppThemesGet200ResponseDataInner.md) | | ### Return type @@ -217,7 +280,7 @@ Name | Type | Description | Notes ## AppThemesPut -> AppThemesPut200Response AppThemesPut(ctx).AppThemesPutRequest(appThemesPutRequest).Execute() +> AppThemesPut200Response AppThemesPut(ctx).AppThemesGet200ResponseDataInner(appThemesGet200ResponseDataInner).Execute() Update app theme @@ -232,15 +295,16 @@ import ( "context" "fmt" "os" + "time" openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) func main() { - appThemesPutRequest := *openapiclient.NewAppThemesPutRequest(float32(123), float32(123), "Name_example", map[string]interface{}{"key": interface{}(123)}) // AppThemesPutRequest | (optional) + appThemesGet200ResponseDataInner := *openapiclient.NewAppThemesGet200ResponseDataInner(float32(123), float32(123), "Name_example", map[string]interface{}{"key": interface{}(123)}, time.Now(), time.Now()) // AppThemesGet200ResponseDataInner | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AppThemesAPI.AppThemesPut(context.Background()).AppThemesPutRequest(appThemesPutRequest).Execute() + resp, r, err := apiClient.AppThemesAPI.AppThemesPut(context.Background()).AppThemesGet200ResponseDataInner(appThemesGet200ResponseDataInner).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AppThemesAPI.AppThemesPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -261,7 +325,7 @@ Other parameters are passed through a pointer to a apiAppThemesPutRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appThemesPutRequest** | [**AppThemesPutRequest**](AppThemesPutRequest.md) | | + **appThemesGet200ResponseDataInner** | [**AppThemesGet200ResponseDataInner**](AppThemesGet200ResponseDataInner.md) | | ### Return type diff --git a/internal/sdk/api/docs/AppThemesGet200Response.md b/internal/sdk/api/docs/AppThemesGet200Response.md new file mode 100644 index 0000000..c7e08b9 --- /dev/null +++ b/internal/sdk/api/docs/AppThemesGet200Response.md @@ -0,0 +1,145 @@ +# AppThemesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**[]AppThemesGet200ResponseDataInner**](AppThemesGet200ResponseDataInner.md) | An array of requested items | +**TotalCount** | **float32** | Total number of items in the response | +**NextToken** | **NullableString** | A token to retrieve the next page of items in the collection | +**HasMore** | **bool** | Whether there are more items in the collection | + +## Methods + +### NewAppThemesGet200Response + +`func NewAppThemesGet200Response(success bool, data []AppThemesGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool, ) *AppThemesGet200Response` + +NewAppThemesGet200Response instantiates a new AppThemesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppThemesGet200ResponseWithDefaults + +`func NewAppThemesGet200ResponseWithDefaults() *AppThemesGet200Response` + +NewAppThemesGet200ResponseWithDefaults instantiates a new AppThemesGet200Response 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 + +### GetSuccess + +`func (o *AppThemesGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *AppThemesGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *AppThemesGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *AppThemesGet200Response) GetData() []AppThemesGet200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AppThemesGet200Response) GetDataOk() (*[]AppThemesGet200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AppThemesGet200Response) SetData(v []AppThemesGet200ResponseDataInner)` + +SetData sets Data field to given value. + + +### GetTotalCount + +`func (o *AppThemesGet200Response) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *AppThemesGet200Response) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *AppThemesGet200Response) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + + +### GetNextToken + +`func (o *AppThemesGet200Response) GetNextToken() string` + +GetNextToken returns the NextToken field if non-nil, zero value otherwise. + +### GetNextTokenOk + +`func (o *AppThemesGet200Response) GetNextTokenOk() (*string, bool)` + +GetNextTokenOk returns a tuple with the NextToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextToken + +`func (o *AppThemesGet200Response) SetNextToken(v string)` + +SetNextToken sets NextToken field to given value. + + +### SetNextTokenNil + +`func (o *AppThemesGet200Response) SetNextTokenNil(b bool)` + + SetNextTokenNil sets the value for NextToken to be an explicit nil + +### UnsetNextToken +`func (o *AppThemesGet200Response) UnsetNextToken()` + +UnsetNextToken ensures that no value is present for NextToken, not even an explicit nil +### GetHasMore + +`func (o *AppThemesGet200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *AppThemesGet200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *AppThemesGet200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AppThemesGet200ResponseDataInner.md b/internal/sdk/api/docs/AppThemesGet200ResponseDataInner.md new file mode 100644 index 0000000..c4b46d5 --- /dev/null +++ b/internal/sdk/api/docs/AppThemesGet200ResponseDataInner.md @@ -0,0 +1,156 @@ +# AppThemesGet200ResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **float32** | | +**LegacyId** | **float32** | | +**Name** | **string** | The name of the app theme. | +**Theme** | **map[string]interface{}** | The theme object. | +**CreatedAt** | **time.Time** | Date and time when the app theme was created. | +**UpdatedAt** | **time.Time** | Date and time when the app theme was last updated. | + +## Methods + +### NewAppThemesGet200ResponseDataInner + +`func NewAppThemesGet200ResponseDataInner(id float32, legacyId float32, name string, theme map[string]interface{}, createdAt time.Time, updatedAt time.Time, ) *AppThemesGet200ResponseDataInner` + +NewAppThemesGet200ResponseDataInner instantiates a new AppThemesGet200ResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppThemesGet200ResponseDataInnerWithDefaults + +`func NewAppThemesGet200ResponseDataInnerWithDefaults() *AppThemesGet200ResponseDataInner` + +NewAppThemesGet200ResponseDataInnerWithDefaults instantiates a new AppThemesGet200ResponseDataInner 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 + +### GetId + +`func (o *AppThemesGet200ResponseDataInner) GetId() float32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AppThemesGet200ResponseDataInner) GetIdOk() (*float32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AppThemesGet200ResponseDataInner) SetId(v float32)` + +SetId sets Id field to given value. + + +### GetLegacyId + +`func (o *AppThemesGet200ResponseDataInner) GetLegacyId() float32` + +GetLegacyId returns the LegacyId field if non-nil, zero value otherwise. + +### GetLegacyIdOk + +`func (o *AppThemesGet200ResponseDataInner) GetLegacyIdOk() (*float32, bool)` + +GetLegacyIdOk returns a tuple with the LegacyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyId + +`func (o *AppThemesGet200ResponseDataInner) SetLegacyId(v float32)` + +SetLegacyId sets LegacyId field to given value. + + +### GetName + +`func (o *AppThemesGet200ResponseDataInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AppThemesGet200ResponseDataInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AppThemesGet200ResponseDataInner) SetName(v string)` + +SetName sets Name field to given value. + + +### GetTheme + +`func (o *AppThemesGet200ResponseDataInner) GetTheme() map[string]interface{}` + +GetTheme returns the Theme field if non-nil, zero value otherwise. + +### GetThemeOk + +`func (o *AppThemesGet200ResponseDataInner) GetThemeOk() (*map[string]interface{}, bool)` + +GetThemeOk returns a tuple with the Theme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTheme + +`func (o *AppThemesGet200ResponseDataInner) SetTheme(v map[string]interface{})` + +SetTheme sets Theme field to given value. + + +### GetCreatedAt + +`func (o *AppThemesGet200ResponseDataInner) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AppThemesGet200ResponseDataInner) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AppThemesGet200ResponseDataInner) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AppThemesGet200ResponseDataInner) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AppThemesGet200ResponseDataInner) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AppThemesGet200ResponseDataInner) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AppThemesIdGet200ResponseData.md b/internal/sdk/api/docs/AppThemesIdGet200ResponseData.md index a13d5ee..6184569 100644 --- a/internal/sdk/api/docs/AppThemesIdGet200ResponseData.md +++ b/internal/sdk/api/docs/AppThemesIdGet200ResponseData.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **LegacyId** | **float32** | | **Name** | **string** | The name of the app theme. | **Theme** | **map[string]interface{}** | The theme object. | +**CreatedAt** | **time.Time** | Date and time when the app theme was created. | +**UpdatedAt** | **time.Time** | Date and time when the app theme was last updated. | ## Methods ### NewAppThemesIdGet200ResponseData -`func NewAppThemesIdGet200ResponseData(id float32, legacyId float32, name string, theme map[string]interface{}, ) *AppThemesIdGet200ResponseData` +`func NewAppThemesIdGet200ResponseData(id float32, legacyId float32, name string, theme map[string]interface{}, createdAt time.Time, updatedAt time.Time, ) *AppThemesIdGet200ResponseData` NewAppThemesIdGet200ResponseData instantiates a new AppThemesIdGet200ResponseData object This constructor will assign default values to properties that have it defined, @@ -108,6 +110,46 @@ and a boolean to check if the value has been set. SetTheme sets Theme field to given value. +### GetCreatedAt + +`func (o *AppThemesIdGet200ResponseData) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AppThemesIdGet200ResponseData) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AppThemesIdGet200ResponseData) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AppThemesIdGet200ResponseData) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AppThemesIdGet200ResponseData) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AppThemesIdGet200ResponseData) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/AppThemesPut200ResponseData.md b/internal/sdk/api/docs/AppThemesPut200ResponseData.md index 16ba323..f2687df 100644 --- a/internal/sdk/api/docs/AppThemesPut200ResponseData.md +++ b/internal/sdk/api/docs/AppThemesPut200ResponseData.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **LegacyId** | **float32** | | **Name** | **string** | The name of the app theme. | **Theme** | **map[string]interface{}** | The theme object. | +**CreatedAt** | **time.Time** | Date and time when the app theme was created. | +**UpdatedAt** | **time.Time** | Date and time when the app theme was last updated. | ## Methods ### NewAppThemesPut200ResponseData -`func NewAppThemesPut200ResponseData(id float32, legacyId float32, name string, theme map[string]interface{}, ) *AppThemesPut200ResponseData` +`func NewAppThemesPut200ResponseData(id float32, legacyId float32, name string, theme map[string]interface{}, createdAt time.Time, updatedAt time.Time, ) *AppThemesPut200ResponseData` NewAppThemesPut200ResponseData instantiates a new AppThemesPut200ResponseData object This constructor will assign default values to properties that have it defined, @@ -108,6 +110,46 @@ and a boolean to check if the value has been set. SetTheme sets Theme field to given value. +### GetCreatedAt + +`func (o *AppThemesPut200ResponseData) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AppThemesPut200ResponseData) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AppThemesPut200ResponseData) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AppThemesPut200ResponseData) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AppThemesPut200ResponseData) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AppThemesPut200ResponseData) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/AppsAPI.md b/internal/sdk/api/docs/AppsAPI.md index 0aa276f..3ef3699 100644 --- a/internal/sdk/api/docs/AppsAPI.md +++ b/internal/sdk/api/docs/AppsAPI.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**AppsAppIdDelete**](AppsAPI.md#AppsAppIdDelete) | **Delete** /apps/{appId} | Delete app [**AppsAppIdGet**](AppsAPI.md#AppsAppIdGet) | **Get** /apps/{appId} | Get app +[**AppsCloneAppPost**](AppsAPI.md#AppsCloneAppPost) | **Post** /apps/cloneApp | Clone app [**AppsGet**](AppsAPI.md#AppsGet) | **Get** /apps | List apps @@ -31,7 +32,7 @@ import ( ) func main() { - appId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + appId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The app ID. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -49,7 +50,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**appId** | **string** | | +**appId** | **string** | The app ID. | ### Other Parameters @@ -99,7 +100,7 @@ import ( ) func main() { - appId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + appId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The app ID. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -119,7 +120,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**appId** | **string** | | +**appId** | **string** | The app ID. | ### Other Parameters @@ -148,6 +149,72 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AppsCloneAppPost + +> AppsAppIdGet200Response AppsCloneAppPost(ctx).AppsCloneAppPostRequest(appsCloneAppPostRequest).Execute() + +Clone app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + appsCloneAppPostRequest := *openapiclient.NewAppsCloneAppPostRequest("AppId_example", "NewAppName_example") // AppsCloneAppPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppsAPI.AppsCloneAppPost(context.Background()).AppsCloneAppPostRequest(appsCloneAppPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.AppsCloneAppPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppsCloneAppPost`: AppsAppIdGet200Response + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.AppsCloneAppPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppsCloneAppPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appsCloneAppPostRequest** | [**AppsCloneAppPostRequest**](AppsCloneAppPostRequest.md) | | + +### Return type + +[**AppsAppIdGet200Response**](AppsAppIdGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## AppsGet > AppsGet200Response AppsGet(ctx).Execute() diff --git a/internal/sdk/api/docs/AppsAppIdGet200ResponseData.md b/internal/sdk/api/docs/AppsAppIdGet200ResponseData.md index 98ef68d..dc4dab3 100644 --- a/internal/sdk/api/docs/AppsAppIdGet200ResponseData.md +++ b/internal/sdk/api/docs/AppsAppIdGet200ResponseData.md @@ -13,12 +13,15 @@ Name | Type | Description | Notes **Shortlink** | **NullableString** | The shortlink of the App | **IsModule** | **bool** | Whether the App is a module | **IsMobileApp** | **bool** | Whether the App is a mobile app | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | +**ReleaseVersion** | **string** | The live release version of the app. 'latest' if releases are disabled or the app has no live release yet | ## Methods ### NewAppsAppIdGet200ResponseData -`func NewAppsAppIdGet200ResponseData(id string, name string, description NullableString, folderId string, protected bool, synced bool, shortlink NullableString, isModule bool, isMobileApp bool, ) *AppsAppIdGet200ResponseData` +`func NewAppsAppIdGet200ResponseData(id string, name string, description NullableString, folderId string, protected bool, synced bool, shortlink NullableString, isModule bool, isMobileApp bool, createdAt string, updatedAt string, releaseVersion string, ) *AppsAppIdGet200ResponseData` NewAppsAppIdGet200ResponseData instantiates a new AppsAppIdGet200ResponseData object This constructor will assign default values to properties that have it defined, @@ -233,6 +236,66 @@ and a boolean to check if the value has been set. SetIsMobileApp sets IsMobileApp field to given value. +### GetCreatedAt + +`func (o *AppsAppIdGet200ResponseData) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AppsAppIdGet200ResponseData) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AppsAppIdGet200ResponseData) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *AppsAppIdGet200ResponseData) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AppsAppIdGet200ResponseData) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AppsAppIdGet200ResponseData) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + +### GetReleaseVersion + +`func (o *AppsAppIdGet200ResponseData) GetReleaseVersion() string` + +GetReleaseVersion returns the ReleaseVersion field if non-nil, zero value otherwise. + +### GetReleaseVersionOk + +`func (o *AppsAppIdGet200ResponseData) GetReleaseVersionOk() (*string, bool)` + +GetReleaseVersionOk returns a tuple with the ReleaseVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseVersion + +`func (o *AppsAppIdGet200ResponseData) SetReleaseVersion(v string)` + +SetReleaseVersion sets ReleaseVersion field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/AppsCloneAppPostRequest.md b/internal/sdk/api/docs/AppsCloneAppPostRequest.md new file mode 100644 index 0000000..622cabb --- /dev/null +++ b/internal/sdk/api/docs/AppsCloneAppPostRequest.md @@ -0,0 +1,98 @@ +# AppsCloneAppPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **string** | The app ID. | +**NewAppName** | **string** | The name of the new app | +**FolderId** | Pointer to **string** | The id of the folder | [optional] + +## Methods + +### NewAppsCloneAppPostRequest + +`func NewAppsCloneAppPostRequest(appId string, newAppName string, ) *AppsCloneAppPostRequest` + +NewAppsCloneAppPostRequest instantiates a new AppsCloneAppPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppsCloneAppPostRequestWithDefaults + +`func NewAppsCloneAppPostRequestWithDefaults() *AppsCloneAppPostRequest` + +NewAppsCloneAppPostRequestWithDefaults instantiates a new AppsCloneAppPostRequest 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 + +### GetAppId + +`func (o *AppsCloneAppPostRequest) GetAppId() string` + +GetAppId returns the AppId field if non-nil, zero value otherwise. + +### GetAppIdOk + +`func (o *AppsCloneAppPostRequest) GetAppIdOk() (*string, bool)` + +GetAppIdOk returns a tuple with the AppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppId + +`func (o *AppsCloneAppPostRequest) SetAppId(v string)` + +SetAppId sets AppId field to given value. + + +### GetNewAppName + +`func (o *AppsCloneAppPostRequest) GetNewAppName() string` + +GetNewAppName returns the NewAppName field if non-nil, zero value otherwise. + +### GetNewAppNameOk + +`func (o *AppsCloneAppPostRequest) GetNewAppNameOk() (*string, bool)` + +GetNewAppNameOk returns a tuple with the NewAppName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewAppName + +`func (o *AppsCloneAppPostRequest) SetNewAppName(v string)` + +SetNewAppName sets NewAppName field to given value. + + +### GetFolderId + +`func (o *AppsCloneAppPostRequest) GetFolderId() string` + +GetFolderId returns the FolderId field if non-nil, zero value otherwise. + +### GetFolderIdOk + +`func (o *AppsCloneAppPostRequest) GetFolderIdOk() (*string, bool)` + +GetFolderIdOk returns a tuple with the FolderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFolderId + +`func (o *AppsCloneAppPostRequest) SetFolderId(v string)` + +SetFolderId sets FolderId field to given value. + +### HasFolderId + +`func (o *AppsCloneAppPostRequest) HasFolderId() bool` + +HasFolderId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AzureRepos.md b/internal/sdk/api/docs/AzureRepos.md new file mode 100644 index 0000000..aaacd5f --- /dev/null +++ b/internal/sdk/api/docs/AzureRepos.md @@ -0,0 +1,161 @@ +# AzureRepos + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**AzureReposConfig**](AzureReposConfig.md) | | +**Provider** | **string** | | +**Org** | **string** | The user or organization to which the repository belongs to. | +**Repo** | **string** | The name of the repository you created to use with Retool. | +**DefaultBranch** | **string** | The default branch, e.g., main. | +**RepoVersion** | Pointer to **string** | Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. | [optional] + +## Methods + +### NewAzureRepos + +`func NewAzureRepos(config AzureReposConfig, provider string, org string, repo string, defaultBranch string, ) *AzureRepos` + +NewAzureRepos instantiates a new AzureRepos object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAzureReposWithDefaults + +`func NewAzureReposWithDefaults() *AzureRepos` + +NewAzureReposWithDefaults instantiates a new AzureRepos 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 + +### GetConfig + +`func (o *AzureRepos) GetConfig() AzureReposConfig` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *AzureRepos) GetConfigOk() (*AzureReposConfig, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *AzureRepos) SetConfig(v AzureReposConfig)` + +SetConfig sets Config field to given value. + + +### GetProvider + +`func (o *AzureRepos) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *AzureRepos) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *AzureRepos) SetProvider(v string)` + +SetProvider sets Provider field to given value. + + +### GetOrg + +`func (o *AzureRepos) GetOrg() string` + +GetOrg returns the Org field if non-nil, zero value otherwise. + +### GetOrgOk + +`func (o *AzureRepos) GetOrgOk() (*string, bool)` + +GetOrgOk returns a tuple with the Org field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrg + +`func (o *AzureRepos) SetOrg(v string)` + +SetOrg sets Org field to given value. + + +### GetRepo + +`func (o *AzureRepos) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *AzureRepos) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *AzureRepos) SetRepo(v string)` + +SetRepo sets Repo field to given value. + + +### GetDefaultBranch + +`func (o *AzureRepos) GetDefaultBranch() string` + +GetDefaultBranch returns the DefaultBranch field if non-nil, zero value otherwise. + +### GetDefaultBranchOk + +`func (o *AzureRepos) GetDefaultBranchOk() (*string, bool)` + +GetDefaultBranchOk returns a tuple with the DefaultBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultBranch + +`func (o *AzureRepos) SetDefaultBranch(v string)` + +SetDefaultBranch sets DefaultBranch field to given value. + + +### GetRepoVersion + +`func (o *AzureRepos) GetRepoVersion() string` + +GetRepoVersion returns the RepoVersion field if non-nil, zero value otherwise. + +### GetRepoVersionOk + +`func (o *AzureRepos) GetRepoVersionOk() (*string, bool)` + +GetRepoVersionOk returns a tuple with the RepoVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoVersion + +`func (o *AzureRepos) SetRepoVersion(v string)` + +SetRepoVersion sets RepoVersion field to given value. + +### HasRepoVersion + +`func (o *AzureRepos) HasRepoVersion() bool` + +HasRepoVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/AzureReposConfig.md b/internal/sdk/api/docs/AzureReposConfig.md new file mode 100644 index 0000000..aabd74f --- /dev/null +++ b/internal/sdk/api/docs/AzureReposConfig.md @@ -0,0 +1,135 @@ +# AzureReposConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | Your base Azure URL. For Azure Cloud, this is always http://dev.azure.com. For Azure self-managed, this is the URL where your instance is hosted. | +**Project** | **string** | Your new or existing Azure DevOps project. | +**User** | **string** | The Azure Repos username. | +**PersonalAccessToken** | **string** | The Azure project access tokens to authenticate to the Azure API. | +**UseBasicAuth** | **bool** | Set this to true if you are using self-hosted Azure Repos. | + +## Methods + +### NewAzureReposConfig + +`func NewAzureReposConfig(url string, project string, user string, personalAccessToken string, useBasicAuth bool, ) *AzureReposConfig` + +NewAzureReposConfig instantiates a new AzureReposConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAzureReposConfigWithDefaults + +`func NewAzureReposConfigWithDefaults() *AzureReposConfig` + +NewAzureReposConfigWithDefaults instantiates a new AzureReposConfig 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 + +### GetUrl + +`func (o *AzureReposConfig) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *AzureReposConfig) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *AzureReposConfig) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetProject + +`func (o *AzureReposConfig) GetProject() string` + +GetProject returns the Project field if non-nil, zero value otherwise. + +### GetProjectOk + +`func (o *AzureReposConfig) GetProjectOk() (*string, bool)` + +GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProject + +`func (o *AzureReposConfig) SetProject(v string)` + +SetProject sets Project field to given value. + + +### GetUser + +`func (o *AzureReposConfig) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *AzureReposConfig) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *AzureReposConfig) SetUser(v string)` + +SetUser sets User field to given value. + + +### GetPersonalAccessToken + +`func (o *AzureReposConfig) GetPersonalAccessToken() string` + +GetPersonalAccessToken returns the PersonalAccessToken field if non-nil, zero value otherwise. + +### GetPersonalAccessTokenOk + +`func (o *AzureReposConfig) GetPersonalAccessTokenOk() (*string, bool)` + +GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersonalAccessToken + +`func (o *AzureReposConfig) SetPersonalAccessToken(v string)` + +SetPersonalAccessToken sets PersonalAccessToken field to given value. + + +### GetUseBasicAuth + +`func (o *AzureReposConfig) GetUseBasicAuth() bool` + +GetUseBasicAuth returns the UseBasicAuth field if non-nil, zero value otherwise. + +### GetUseBasicAuthOk + +`func (o *AzureReposConfig) GetUseBasicAuthOk() (*bool, bool)` + +GetUseBasicAuthOk returns a tuple with the UseBasicAuth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseBasicAuth + +`func (o *AzureReposConfig) SetUseBasicAuth(v bool)` + +SetUseBasicAuth sets UseBasicAuth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/Bitbucket.md b/internal/sdk/api/docs/Bitbucket.md new file mode 100644 index 0000000..8d5805c --- /dev/null +++ b/internal/sdk/api/docs/Bitbucket.md @@ -0,0 +1,161 @@ +# Bitbucket + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**BitbucketConfig**](BitbucketConfig.md) | | +**Provider** | **string** | | +**Org** | **string** | The user or organization to which the repository belongs to. | +**Repo** | **string** | The name of the repository you created to use with Retool. | +**DefaultBranch** | **string** | The default branch, e.g., main. | +**RepoVersion** | Pointer to **string** | Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. | [optional] + +## Methods + +### NewBitbucket + +`func NewBitbucket(config BitbucketConfig, provider string, org string, repo string, defaultBranch string, ) *Bitbucket` + +NewBitbucket instantiates a new Bitbucket object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBitbucketWithDefaults + +`func NewBitbucketWithDefaults() *Bitbucket` + +NewBitbucketWithDefaults instantiates a new Bitbucket 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 + +### GetConfig + +`func (o *Bitbucket) GetConfig() BitbucketConfig` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *Bitbucket) GetConfigOk() (*BitbucketConfig, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *Bitbucket) SetConfig(v BitbucketConfig)` + +SetConfig sets Config field to given value. + + +### GetProvider + +`func (o *Bitbucket) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *Bitbucket) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *Bitbucket) SetProvider(v string)` + +SetProvider sets Provider field to given value. + + +### GetOrg + +`func (o *Bitbucket) GetOrg() string` + +GetOrg returns the Org field if non-nil, zero value otherwise. + +### GetOrgOk + +`func (o *Bitbucket) GetOrgOk() (*string, bool)` + +GetOrgOk returns a tuple with the Org field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrg + +`func (o *Bitbucket) SetOrg(v string)` + +SetOrg sets Org field to given value. + + +### GetRepo + +`func (o *Bitbucket) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *Bitbucket) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *Bitbucket) SetRepo(v string)` + +SetRepo sets Repo field to given value. + + +### GetDefaultBranch + +`func (o *Bitbucket) GetDefaultBranch() string` + +GetDefaultBranch returns the DefaultBranch field if non-nil, zero value otherwise. + +### GetDefaultBranchOk + +`func (o *Bitbucket) GetDefaultBranchOk() (*string, bool)` + +GetDefaultBranchOk returns a tuple with the DefaultBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultBranch + +`func (o *Bitbucket) SetDefaultBranch(v string)` + +SetDefaultBranch sets DefaultBranch field to given value. + + +### GetRepoVersion + +`func (o *Bitbucket) GetRepoVersion() string` + +GetRepoVersion returns the RepoVersion field if non-nil, zero value otherwise. + +### GetRepoVersionOk + +`func (o *Bitbucket) GetRepoVersionOk() (*string, bool)` + +GetRepoVersionOk returns a tuple with the RepoVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoVersion + +`func (o *Bitbucket) SetRepoVersion(v string)` + +SetRepoVersion sets RepoVersion field to given value. + +### HasRepoVersion + +`func (o *Bitbucket) HasRepoVersion() bool` + +HasRepoVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/BitbucketConfig.md b/internal/sdk/api/docs/BitbucketConfig.md new file mode 100644 index 0000000..b710d2d --- /dev/null +++ b/internal/sdk/api/docs/BitbucketConfig.md @@ -0,0 +1,171 @@ +# BitbucketConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Username** | **string** | Your Bitbucket username. | +**AppPassword** | **string** | Your Bitbucket app password. | +**Url** | Pointer to **string** | The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/. | [optional] +**EnterpriseApiUrl** | Pointer to **string** | The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0. | [optional] +**Token** | **string** | Your Bitbucket API token. | + +## Methods + +### NewBitbucketConfig + +`func NewBitbucketConfig(username string, appPassword string, token string, ) *BitbucketConfig` + +NewBitbucketConfig instantiates a new BitbucketConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBitbucketConfigWithDefaults + +`func NewBitbucketConfigWithDefaults() *BitbucketConfig` + +NewBitbucketConfigWithDefaults instantiates a new BitbucketConfig 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 + +### GetType + +`func (o *BitbucketConfig) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BitbucketConfig) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BitbucketConfig) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BitbucketConfig) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUsername + +`func (o *BitbucketConfig) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *BitbucketConfig) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *BitbucketConfig) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetAppPassword + +`func (o *BitbucketConfig) GetAppPassword() string` + +GetAppPassword returns the AppPassword field if non-nil, zero value otherwise. + +### GetAppPasswordOk + +`func (o *BitbucketConfig) GetAppPasswordOk() (*string, bool)` + +GetAppPasswordOk returns a tuple with the AppPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppPassword + +`func (o *BitbucketConfig) SetAppPassword(v string)` + +SetAppPassword sets AppPassword field to given value. + + +### GetUrl + +`func (o *BitbucketConfig) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BitbucketConfig) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BitbucketConfig) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *BitbucketConfig) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetEnterpriseApiUrl + +`func (o *BitbucketConfig) GetEnterpriseApiUrl() string` + +GetEnterpriseApiUrl returns the EnterpriseApiUrl field if non-nil, zero value otherwise. + +### GetEnterpriseApiUrlOk + +`func (o *BitbucketConfig) GetEnterpriseApiUrlOk() (*string, bool)` + +GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnterpriseApiUrl + +`func (o *BitbucketConfig) SetEnterpriseApiUrl(v string)` + +SetEnterpriseApiUrl sets EnterpriseApiUrl field to given value. + +### HasEnterpriseApiUrl + +`func (o *BitbucketConfig) HasEnterpriseApiUrl() bool` + +HasEnterpriseApiUrl returns a boolean if a field has been set. + +### GetToken + +`func (o *BitbucketConfig) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *BitbucketConfig) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *BitbucketConfig) SetToken(v string)` + +SetToken sets Token field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/BitbucketConfigAnyOf.md b/internal/sdk/api/docs/BitbucketConfigAnyOf.md new file mode 100644 index 0000000..486f28d --- /dev/null +++ b/internal/sdk/api/docs/BitbucketConfigAnyOf.md @@ -0,0 +1,150 @@ +# BitbucketConfigAnyOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Username** | **string** | Your Bitbucket username. | +**AppPassword** | **string** | Your Bitbucket app password. | +**Url** | Pointer to **string** | The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/. | [optional] +**EnterpriseApiUrl** | Pointer to **string** | The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0. | [optional] + +## Methods + +### NewBitbucketConfigAnyOf + +`func NewBitbucketConfigAnyOf(username string, appPassword string, ) *BitbucketConfigAnyOf` + +NewBitbucketConfigAnyOf instantiates a new BitbucketConfigAnyOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBitbucketConfigAnyOfWithDefaults + +`func NewBitbucketConfigAnyOfWithDefaults() *BitbucketConfigAnyOf` + +NewBitbucketConfigAnyOfWithDefaults instantiates a new BitbucketConfigAnyOf 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 + +### GetType + +`func (o *BitbucketConfigAnyOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BitbucketConfigAnyOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BitbucketConfigAnyOf) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BitbucketConfigAnyOf) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUsername + +`func (o *BitbucketConfigAnyOf) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *BitbucketConfigAnyOf) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *BitbucketConfigAnyOf) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetAppPassword + +`func (o *BitbucketConfigAnyOf) GetAppPassword() string` + +GetAppPassword returns the AppPassword field if non-nil, zero value otherwise. + +### GetAppPasswordOk + +`func (o *BitbucketConfigAnyOf) GetAppPasswordOk() (*string, bool)` + +GetAppPasswordOk returns a tuple with the AppPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppPassword + +`func (o *BitbucketConfigAnyOf) SetAppPassword(v string)` + +SetAppPassword sets AppPassword field to given value. + + +### GetUrl + +`func (o *BitbucketConfigAnyOf) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BitbucketConfigAnyOf) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BitbucketConfigAnyOf) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *BitbucketConfigAnyOf) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetEnterpriseApiUrl + +`func (o *BitbucketConfigAnyOf) GetEnterpriseApiUrl() string` + +GetEnterpriseApiUrl returns the EnterpriseApiUrl field if non-nil, zero value otherwise. + +### GetEnterpriseApiUrlOk + +`func (o *BitbucketConfigAnyOf) GetEnterpriseApiUrlOk() (*string, bool)` + +GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnterpriseApiUrl + +`func (o *BitbucketConfigAnyOf) SetEnterpriseApiUrl(v string)` + +SetEnterpriseApiUrl sets EnterpriseApiUrl field to given value. + +### HasEnterpriseApiUrl + +`func (o *BitbucketConfigAnyOf) HasEnterpriseApiUrl() bool` + +HasEnterpriseApiUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/BitbucketConfigAnyOf1.md b/internal/sdk/api/docs/BitbucketConfigAnyOf1.md new file mode 100644 index 0000000..232bf54 --- /dev/null +++ b/internal/sdk/api/docs/BitbucketConfigAnyOf1.md @@ -0,0 +1,129 @@ +# BitbucketConfigAnyOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Token** | **string** | Your Bitbucket API token. | +**Url** | Pointer to **string** | The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/. | [optional] +**EnterpriseApiUrl** | Pointer to **string** | The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0. | [optional] + +## Methods + +### NewBitbucketConfigAnyOf1 + +`func NewBitbucketConfigAnyOf1(token string, ) *BitbucketConfigAnyOf1` + +NewBitbucketConfigAnyOf1 instantiates a new BitbucketConfigAnyOf1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBitbucketConfigAnyOf1WithDefaults + +`func NewBitbucketConfigAnyOf1WithDefaults() *BitbucketConfigAnyOf1` + +NewBitbucketConfigAnyOf1WithDefaults instantiates a new BitbucketConfigAnyOf1 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 + +### GetType + +`func (o *BitbucketConfigAnyOf1) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BitbucketConfigAnyOf1) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BitbucketConfigAnyOf1) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BitbucketConfigAnyOf1) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetToken + +`func (o *BitbucketConfigAnyOf1) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *BitbucketConfigAnyOf1) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *BitbucketConfigAnyOf1) SetToken(v string)` + +SetToken sets Token field to given value. + + +### GetUrl + +`func (o *BitbucketConfigAnyOf1) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BitbucketConfigAnyOf1) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BitbucketConfigAnyOf1) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *BitbucketConfigAnyOf1) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetEnterpriseApiUrl + +`func (o *BitbucketConfigAnyOf1) GetEnterpriseApiUrl() string` + +GetEnterpriseApiUrl returns the EnterpriseApiUrl field if non-nil, zero value otherwise. + +### GetEnterpriseApiUrlOk + +`func (o *BitbucketConfigAnyOf1) GetEnterpriseApiUrlOk() (*string, bool)` + +GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnterpriseApiUrl + +`func (o *BitbucketConfigAnyOf1) SetEnterpriseApiUrl(v string)` + +SetEnterpriseApiUrl sets EnterpriseApiUrl field to given value. + +### HasEnterpriseApiUrl + +`func (o *BitbucketConfigAnyOf1) HasEnterpriseApiUrl() bool` + +HasEnterpriseApiUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ConfigurationVariablesAPI.md b/internal/sdk/api/docs/ConfigurationVariablesAPI.md index 97f0098..1904504 100644 --- a/internal/sdk/api/docs/ConfigurationVariablesAPI.md +++ b/internal/sdk/api/docs/ConfigurationVariablesAPI.md @@ -94,7 +94,7 @@ import ( ) func main() { - id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the configuration variable configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -112,7 +112,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | The ID of the configuration variable | ### Other Parameters @@ -162,7 +162,7 @@ import ( ) func main() { - id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the configuration variable configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -182,7 +182,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | The ID of the configuration variable | ### Other Parameters @@ -232,7 +232,7 @@ import ( ) func main() { - id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the configuration variable configurationVariablesPostRequest := *openapiclient.NewConfigurationVariablesPostRequest("Name_example", false, []openapiclient.ConfigurationVariablesGet200ResponseDataInnerValuesInner{*openapiclient.NewConfigurationVariablesGet200ResponseDataInnerValuesInner("EnvironmentId_example", "Value_example")}) // ConfigurationVariablesPostRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -253,7 +253,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | The ID of the configuration variable | ### Other Parameters diff --git a/internal/sdk/api/docs/CopyOperation.md b/internal/sdk/api/docs/CopyOperation.md new file mode 100644 index 0000000..0718b56 --- /dev/null +++ b/internal/sdk/api/docs/CopyOperation.md @@ -0,0 +1,93 @@ +# CopyOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Op** | **string** | | +**Path** | **string** | | +**From** | **string** | | + +## Methods + +### NewCopyOperation + +`func NewCopyOperation(op string, path string, from string, ) *CopyOperation` + +NewCopyOperation instantiates a new CopyOperation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCopyOperationWithDefaults + +`func NewCopyOperationWithDefaults() *CopyOperation` + +NewCopyOperationWithDefaults instantiates a new CopyOperation 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 + +### GetOp + +`func (o *CopyOperation) GetOp() string` + +GetOp returns the Op field if non-nil, zero value otherwise. + +### GetOpOk + +`func (o *CopyOperation) GetOpOk() (*string, bool)` + +GetOpOk returns a tuple with the Op field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOp + +`func (o *CopyOperation) SetOp(v string)` + +SetOp sets Op field to given value. + + +### GetPath + +`func (o *CopyOperation) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *CopyOperation) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *CopyOperation) SetPath(v string)` + +SetPath sets Path field to given value. + + +### GetFrom + +`func (o *CopyOperation) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *CopyOperation) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *CopyOperation) SetFrom(v string)` + +SetFrom sets From field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/CustomComponentLibraryAPI.md b/internal/sdk/api/docs/CustomComponentLibraryAPI.md index c902171..03109aa 100644 --- a/internal/sdk/api/docs/CustomComponentLibraryAPI.md +++ b/internal/sdk/api/docs/CustomComponentLibraryAPI.md @@ -34,7 +34,7 @@ import ( ) func main() { - nextToken := "nextToken_example" // string | (optional) + nextToken := "nextToken_example" // string | The token of the current page (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -59,7 +59,7 @@ Other parameters are passed through a pointer to a apiCustomComponentLibrariesGe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **nextToken** | **string** | | + **nextToken** | **string** | The token of the current page | ### Return type diff --git a/internal/sdk/api/docs/EnvironmentsAPI.md b/internal/sdk/api/docs/EnvironmentsAPI.md new file mode 100644 index 0000000..5b68f45 --- /dev/null +++ b/internal/sdk/api/docs/EnvironmentsAPI.md @@ -0,0 +1,350 @@ +# \EnvironmentsAPI + +All URIs are relative to *http://.* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**EnvironmentsEnvironmentIdDelete**](EnvironmentsAPI.md#EnvironmentsEnvironmentIdDelete) | **Delete** /environments/{environmentId} | Delete environment +[**EnvironmentsEnvironmentIdGet**](EnvironmentsAPI.md#EnvironmentsEnvironmentIdGet) | **Get** /environments/{environmentId} | Get an environment +[**EnvironmentsEnvironmentIdPatch**](EnvironmentsAPI.md#EnvironmentsEnvironmentIdPatch) | **Patch** /environments/{environmentId} | Update an environment +[**EnvironmentsGet**](EnvironmentsAPI.md#EnvironmentsGet) | **Get** /environments | Get environments +[**EnvironmentsPost**](EnvironmentsAPI.md#EnvironmentsPost) | **Post** /environments | Create environment + + + +## EnvironmentsEnvironmentIdDelete + +> EnvironmentsEnvironmentIdDelete(ctx, environmentId).Execute() + +Delete environment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EnvironmentsAPI.EnvironmentsEnvironmentIdDelete(context.Background(), environmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.EnvironmentsEnvironmentIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnvironmentsEnvironmentIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnvironmentsEnvironmentIdGet + +> EnvironmentsEnvironmentIdGet200Response EnvironmentsEnvironmentIdGet(ctx, environmentId).Execute() + +Get an environment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnvironmentsAPI.EnvironmentsEnvironmentIdGet(context.Background(), environmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.EnvironmentsEnvironmentIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnvironmentsEnvironmentIdGet`: EnvironmentsEnvironmentIdGet200Response + fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.EnvironmentsEnvironmentIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnvironmentsEnvironmentIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**EnvironmentsEnvironmentIdGet200Response**](EnvironmentsEnvironmentIdGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnvironmentsEnvironmentIdPatch + +> EnvironmentsEnvironmentIdPatch200Response EnvironmentsEnvironmentIdPatch(ctx, environmentId).EnvironmentsEnvironmentIdPatchRequest(environmentsEnvironmentIdPatchRequest).Execute() + +Update an environment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + environmentsEnvironmentIdPatchRequest := *openapiclient.NewEnvironmentsEnvironmentIdPatchRequest([]openapiclient.ReplaceOperation{*openapiclient.NewReplaceOperation("Op_example", "Path_example")}) // EnvironmentsEnvironmentIdPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnvironmentsAPI.EnvironmentsEnvironmentIdPatch(context.Background(), environmentId).EnvironmentsEnvironmentIdPatchRequest(environmentsEnvironmentIdPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.EnvironmentsEnvironmentIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnvironmentsEnvironmentIdPatch`: EnvironmentsEnvironmentIdPatch200Response + fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.EnvironmentsEnvironmentIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**environmentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnvironmentsEnvironmentIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **environmentsEnvironmentIdPatchRequest** | [**EnvironmentsEnvironmentIdPatchRequest**](EnvironmentsEnvironmentIdPatchRequest.md) | | + +### Return type + +[**EnvironmentsEnvironmentIdPatch200Response**](EnvironmentsEnvironmentIdPatch200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnvironmentsGet + +> EnvironmentsGet200Response EnvironmentsGet(ctx).Execute() + +Get environments + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnvironmentsAPI.EnvironmentsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.EnvironmentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnvironmentsGet`: EnvironmentsGet200Response + fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.EnvironmentsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnvironmentsGetRequest struct via the builder pattern + + +### Return type + +[**EnvironmentsGet200Response**](EnvironmentsGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnvironmentsPost + +> EnvironmentsPost200Response EnvironmentsPost(ctx).EnvironmentsPostRequest(environmentsPostRequest).Execute() + +Create environment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + environmentsPostRequest := *openapiclient.NewEnvironmentsPostRequest("Name_example", "#FFFFFF") // EnvironmentsPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnvironmentsAPI.EnvironmentsPost(context.Background()).EnvironmentsPostRequest(environmentsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentsAPI.EnvironmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnvironmentsPost`: EnvironmentsPost200Response + fmt.Fprintf(os.Stdout, "Response from `EnvironmentsAPI.EnvironmentsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnvironmentsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **environmentsPostRequest** | [**EnvironmentsPostRequest**](EnvironmentsPostRequest.md) | | + +### Return type + +[**EnvironmentsPost200Response**](EnvironmentsPost200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatch200Response.md b/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatch200Response.md new file mode 100644 index 0000000..bb355f4 --- /dev/null +++ b/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatch200Response.md @@ -0,0 +1,72 @@ +# EnvironmentsEnvironmentIdPatch200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**EnvironmentsEnvironmentIdPatch200ResponseData**](EnvironmentsEnvironmentIdPatch200ResponseData.md) | | + +## Methods + +### NewEnvironmentsEnvironmentIdPatch200Response + +`func NewEnvironmentsEnvironmentIdPatch200Response(success bool, data EnvironmentsEnvironmentIdPatch200ResponseData, ) *EnvironmentsEnvironmentIdPatch200Response` + +NewEnvironmentsEnvironmentIdPatch200Response instantiates a new EnvironmentsEnvironmentIdPatch200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentsEnvironmentIdPatch200ResponseWithDefaults + +`func NewEnvironmentsEnvironmentIdPatch200ResponseWithDefaults() *EnvironmentsEnvironmentIdPatch200Response` + +NewEnvironmentsEnvironmentIdPatch200ResponseWithDefaults instantiates a new EnvironmentsEnvironmentIdPatch200Response 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 + +### GetSuccess + +`func (o *EnvironmentsEnvironmentIdPatch200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *EnvironmentsEnvironmentIdPatch200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *EnvironmentsEnvironmentIdPatch200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *EnvironmentsEnvironmentIdPatch200Response) GetData() EnvironmentsEnvironmentIdPatch200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *EnvironmentsEnvironmentIdPatch200Response) GetDataOk() (*EnvironmentsEnvironmentIdPatch200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *EnvironmentsEnvironmentIdPatch200Response) SetData(v EnvironmentsEnvironmentIdPatch200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatch200ResponseData.md b/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatch200ResponseData.md new file mode 100644 index 0000000..cad0f5c --- /dev/null +++ b/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatch200ResponseData.md @@ -0,0 +1,187 @@ +# EnvironmentsEnvironmentIdPatch200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Name** | **string** | | +**Description** | **NullableString** | | +**Color** | **string** | | +**Default** | **bool** | | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | + +## Methods + +### NewEnvironmentsEnvironmentIdPatch200ResponseData + +`func NewEnvironmentsEnvironmentIdPatch200ResponseData(id string, name string, description NullableString, color string, default_ bool, createdAt string, updatedAt string, ) *EnvironmentsEnvironmentIdPatch200ResponseData` + +NewEnvironmentsEnvironmentIdPatch200ResponseData instantiates a new EnvironmentsEnvironmentIdPatch200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentsEnvironmentIdPatch200ResponseDataWithDefaults + +`func NewEnvironmentsEnvironmentIdPatch200ResponseDataWithDefaults() *EnvironmentsEnvironmentIdPatch200ResponseData` + +NewEnvironmentsEnvironmentIdPatch200ResponseDataWithDefaults instantiates a new EnvironmentsEnvironmentIdPatch200ResponseData 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 + +### GetId + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetColor + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetColor(v string)` + +SetColor sets Color field to given value. + + +### GetDefault + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetDefault() bool` + +GetDefault returns the Default field if non-nil, zero value otherwise. + +### GetDefaultOk + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetDefaultOk() (*bool, bool)` + +GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefault + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetDefault(v bool)` + +SetDefault sets Default field to given value. + + +### GetCreatedAt + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatchRequest.md b/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatchRequest.md new file mode 100644 index 0000000..a390176 --- /dev/null +++ b/internal/sdk/api/docs/EnvironmentsEnvironmentIdPatchRequest.md @@ -0,0 +1,51 @@ +# EnvironmentsEnvironmentIdPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Operations** | [**[]ReplaceOperation**](ReplaceOperation.md) | A list of operations to apply to the environment. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | + +## Methods + +### NewEnvironmentsEnvironmentIdPatchRequest + +`func NewEnvironmentsEnvironmentIdPatchRequest(operations []ReplaceOperation, ) *EnvironmentsEnvironmentIdPatchRequest` + +NewEnvironmentsEnvironmentIdPatchRequest instantiates a new EnvironmentsEnvironmentIdPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentsEnvironmentIdPatchRequestWithDefaults + +`func NewEnvironmentsEnvironmentIdPatchRequestWithDefaults() *EnvironmentsEnvironmentIdPatchRequest` + +NewEnvironmentsEnvironmentIdPatchRequestWithDefaults instantiates a new EnvironmentsEnvironmentIdPatchRequest 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 + +### GetOperations + +`func (o *EnvironmentsEnvironmentIdPatchRequest) GetOperations() []ReplaceOperation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *EnvironmentsEnvironmentIdPatchRequest) GetOperationsOk() (*[]ReplaceOperation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *EnvironmentsEnvironmentIdPatchRequest) SetOperations(v []ReplaceOperation)` + +SetOperations sets Operations field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/EnvironmentsPost200Response.md b/internal/sdk/api/docs/EnvironmentsPost200Response.md new file mode 100644 index 0000000..cd0abdc --- /dev/null +++ b/internal/sdk/api/docs/EnvironmentsPost200Response.md @@ -0,0 +1,72 @@ +# EnvironmentsPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**EnvironmentsPost200ResponseData**](EnvironmentsPost200ResponseData.md) | | + +## Methods + +### NewEnvironmentsPost200Response + +`func NewEnvironmentsPost200Response(success bool, data EnvironmentsPost200ResponseData, ) *EnvironmentsPost200Response` + +NewEnvironmentsPost200Response instantiates a new EnvironmentsPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentsPost200ResponseWithDefaults + +`func NewEnvironmentsPost200ResponseWithDefaults() *EnvironmentsPost200Response` + +NewEnvironmentsPost200ResponseWithDefaults instantiates a new EnvironmentsPost200Response 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 + +### GetSuccess + +`func (o *EnvironmentsPost200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *EnvironmentsPost200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *EnvironmentsPost200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *EnvironmentsPost200Response) GetData() EnvironmentsPost200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *EnvironmentsPost200Response) GetDataOk() (*EnvironmentsPost200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *EnvironmentsPost200Response) SetData(v EnvironmentsPost200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/EnvironmentsPost200ResponseData.md b/internal/sdk/api/docs/EnvironmentsPost200ResponseData.md new file mode 100644 index 0000000..fd62d42 --- /dev/null +++ b/internal/sdk/api/docs/EnvironmentsPost200ResponseData.md @@ -0,0 +1,187 @@ +# EnvironmentsPost200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Name** | **string** | | +**Description** | **NullableString** | | +**Color** | **string** | | +**Default** | **bool** | | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | + +## Methods + +### NewEnvironmentsPost200ResponseData + +`func NewEnvironmentsPost200ResponseData(id string, name string, description NullableString, color string, default_ bool, createdAt string, updatedAt string, ) *EnvironmentsPost200ResponseData` + +NewEnvironmentsPost200ResponseData instantiates a new EnvironmentsPost200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentsPost200ResponseDataWithDefaults + +`func NewEnvironmentsPost200ResponseDataWithDefaults() *EnvironmentsPost200ResponseData` + +NewEnvironmentsPost200ResponseDataWithDefaults instantiates a new EnvironmentsPost200ResponseData 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 + +### GetId + +`func (o *EnvironmentsPost200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EnvironmentsPost200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EnvironmentsPost200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *EnvironmentsPost200ResponseData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EnvironmentsPost200ResponseData) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *EnvironmentsPost200ResponseData) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *EnvironmentsPost200ResponseData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *EnvironmentsPost200ResponseData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *EnvironmentsPost200ResponseData) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *EnvironmentsPost200ResponseData) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *EnvironmentsPost200ResponseData) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetColor + +`func (o *EnvironmentsPost200ResponseData) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *EnvironmentsPost200ResponseData) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *EnvironmentsPost200ResponseData) SetColor(v string)` + +SetColor sets Color field to given value. + + +### GetDefault + +`func (o *EnvironmentsPost200ResponseData) GetDefault() bool` + +GetDefault returns the Default field if non-nil, zero value otherwise. + +### GetDefaultOk + +`func (o *EnvironmentsPost200ResponseData) GetDefaultOk() (*bool, bool)` + +GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefault + +`func (o *EnvironmentsPost200ResponseData) SetDefault(v bool)` + +SetDefault sets Default field to given value. + + +### GetCreatedAt + +`func (o *EnvironmentsPost200ResponseData) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *EnvironmentsPost200ResponseData) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *EnvironmentsPost200ResponseData) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *EnvironmentsPost200ResponseData) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *EnvironmentsPost200ResponseData) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *EnvironmentsPost200ResponseData) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/EnvironmentsPostRequest.md b/internal/sdk/api/docs/EnvironmentsPostRequest.md new file mode 100644 index 0000000..15bb6df --- /dev/null +++ b/internal/sdk/api/docs/EnvironmentsPostRequest.md @@ -0,0 +1,98 @@ +# EnvironmentsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the environment. | +**Description** | Pointer to **string** | A description for the environment. | [optional] +**Color** | **string** | The (hexadecimal) color of the environment. | + +## Methods + +### NewEnvironmentsPostRequest + +`func NewEnvironmentsPostRequest(name string, color string, ) *EnvironmentsPostRequest` + +NewEnvironmentsPostRequest instantiates a new EnvironmentsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentsPostRequestWithDefaults + +`func NewEnvironmentsPostRequestWithDefaults() *EnvironmentsPostRequest` + +NewEnvironmentsPostRequestWithDefaults instantiates a new EnvironmentsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *EnvironmentsPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EnvironmentsPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *EnvironmentsPostRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *EnvironmentsPostRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *EnvironmentsPostRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *EnvironmentsPostRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *EnvironmentsPostRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetColor + +`func (o *EnvironmentsPostRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *EnvironmentsPostRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *EnvironmentsPostRequest) SetColor(v string)` + +SetColor sets Color field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/Folder.md b/internal/sdk/api/docs/Folder.md index 89f57cc..94f4781 100644 --- a/internal/sdk/api/docs/Folder.md +++ b/internal/sdk/api/docs/Folder.md @@ -4,20 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | The id of the folder. Currently this is the same as legacy_id but will be different in the future. | -**LegacyId** | **string** | The legacy id of the folder. | -**Name** | **string** | The name of the folder | -**ParentFolderId** | Pointer to **NullableString** | The id of the parent folder | [optional] -**IsSystemFolder** | **bool** | Whether the folder is a system folder | -**FolderType** | **string** | The type of the folder | -**CreatedAt** | **string** | | -**UpdatedAt** | **string** | | +**Type** | **string** | | +**Id** | **string** | The id of the folder | ## Methods ### NewFolder -`func NewFolder(id string, legacyId string, name string, isSystemFolder bool, folderType string, createdAt string, updatedAt string, ) *Folder` +`func NewFolder(type_ string, id string, ) *Folder` NewFolder instantiates a new Folder object This constructor will assign default values to properties that have it defined, @@ -32,179 +26,44 @@ NewFolderWithDefaults instantiates a new Folder 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 -### GetId - -`func (o *Folder) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *Folder) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *Folder) SetId(v string)` - -SetId sets Id field to given value. - - -### GetLegacyId - -`func (o *Folder) GetLegacyId() string` - -GetLegacyId returns the LegacyId field if non-nil, zero value otherwise. - -### GetLegacyIdOk - -`func (o *Folder) GetLegacyIdOk() (*string, bool)` - -GetLegacyIdOk returns a tuple with the LegacyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLegacyId - -`func (o *Folder) SetLegacyId(v string)` - -SetLegacyId sets LegacyId field to given value. - - -### GetName - -`func (o *Folder) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *Folder) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *Folder) SetName(v string)` - -SetName sets Name field to given value. - - -### GetParentFolderId - -`func (o *Folder) GetParentFolderId() string` - -GetParentFolderId returns the ParentFolderId field if non-nil, zero value otherwise. - -### GetParentFolderIdOk +### GetType -`func (o *Folder) GetParentFolderIdOk() (*string, bool)` +`func (o *Folder) GetType() string` -GetParentFolderIdOk returns a tuple with the ParentFolderId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParentFolderId - -`func (o *Folder) SetParentFolderId(v string)` - -SetParentFolderId sets ParentFolderId field to given value. - -### HasParentFolderId - -`func (o *Folder) HasParentFolderId() bool` - -HasParentFolderId returns a boolean if a field has been set. - -### SetParentFolderIdNil - -`func (o *Folder) SetParentFolderIdNil(b bool)` - - SetParentFolderIdNil sets the value for ParentFolderId to be an explicit nil - -### UnsetParentFolderId -`func (o *Folder) UnsetParentFolderId()` - -UnsetParentFolderId ensures that no value is present for ParentFolderId, not even an explicit nil -### GetIsSystemFolder +GetType returns the Type field if non-nil, zero value otherwise. -`func (o *Folder) GetIsSystemFolder() bool` +### GetTypeOk -GetIsSystemFolder returns the IsSystemFolder field if non-nil, zero value otherwise. +`func (o *Folder) GetTypeOk() (*string, bool)` -### GetIsSystemFolderOk - -`func (o *Folder) GetIsSystemFolderOk() (*bool, bool)` - -GetIsSystemFolderOk returns a tuple with the IsSystemFolder field if it's non-nil, zero value otherwise +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsSystemFolder - -`func (o *Folder) SetIsSystemFolder(v bool)` - -SetIsSystemFolder sets IsSystemFolder field to given value. - - -### GetFolderType +### SetType -`func (o *Folder) GetFolderType() string` - -GetFolderType returns the FolderType field if non-nil, zero value otherwise. - -### GetFolderTypeOk - -`func (o *Folder) GetFolderTypeOk() (*string, bool)` - -GetFolderTypeOk returns a tuple with the FolderType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *Folder) SetType(v string)` -### SetFolderType +SetType sets Type field to given value. -`func (o *Folder) SetFolderType(v string)` -SetFolderType sets FolderType field to given value. - - -### GetCreatedAt - -`func (o *Folder) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *Folder) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *Folder) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - - -### GetUpdatedAt +### GetId -`func (o *Folder) GetUpdatedAt() string` +`func (o *Folder) GetId() string` -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. +GetId returns the Id field if non-nil, zero value otherwise. -### GetUpdatedAtOk +### GetIdOk -`func (o *Folder) GetUpdatedAtOk() (*string, bool)` +`func (o *Folder) GetIdOk() (*string, bool)` -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUpdatedAt +### SetId -`func (o *Folder) SetUpdatedAt(v string)` +`func (o *Folder) SetId(v string)` -SetUpdatedAt sets UpdatedAt field to given value. +SetId sets Id field to given value. diff --git a/internal/sdk/api/docs/FoldersAPI.md b/internal/sdk/api/docs/FoldersAPI.md index a0782c4..f4c3779 100644 --- a/internal/sdk/api/docs/FoldersAPI.md +++ b/internal/sdk/api/docs/FoldersAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## FoldersFolderIdDelete -> FoldersFolderIdDelete(ctx, folderId).FoldersFolderIdDeleteRequest(foldersFolderIdDeleteRequest).Execute() +> FoldersFolderIdDelete(ctx, folderId).Recursive(recursive).Execute() Delete folder @@ -33,12 +33,12 @@ import ( ) func main() { - folderId := "folderId_example" // string | - foldersFolderIdDeleteRequest := *openapiclient.NewFoldersFolderIdDeleteRequest() // FoldersFolderIdDeleteRequest | (optional) + folderId := "folderId_example" // string | The id of the folder + recursive := true // bool | Should the folder's contents also be deleted? (Only supported for app folders.) (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.FoldersAPI.FoldersFolderIdDelete(context.Background(), folderId).FoldersFolderIdDeleteRequest(foldersFolderIdDeleteRequest).Execute() + r, err := apiClient.FoldersAPI.FoldersFolderIdDelete(context.Background(), folderId).Recursive(recursive).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FoldersAPI.FoldersFolderIdDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -52,7 +52,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**folderId** | **string** | | +**folderId** | **string** | The id of the folder | ### Other Parameters @@ -62,7 +62,7 @@ Other parameters are passed through a pointer to a apiFoldersFolderIdDeleteReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **foldersFolderIdDeleteRequest** | [**FoldersFolderIdDeleteRequest**](FoldersFolderIdDeleteRequest.md) | | + **recursive** | **bool** | Should the folder's contents also be deleted? (Only supported for app folders.) | ### Return type @@ -74,7 +74,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -103,7 +103,7 @@ import ( ) func main() { - folderId := "folderId_example" // string | + folderId := "folderId_example" // string | The id of the folder configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -123,7 +123,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**folderId** | **string** | | +**folderId** | **string** | The id of the folder | ### Other Parameters @@ -173,7 +173,7 @@ import ( ) func main() { - folderId := "folderId_example" // string | + folderId := "folderId_example" // string | The id of the folder foldersFolderIdPatchRequest := *openapiclient.NewFoldersFolderIdPatchRequest([]openapiclient.FoldersFolderIdPatchRequestOperationsInner{*openapiclient.NewFoldersFolderIdPatchRequestOperationsInner("Op_example", "Path_example", "From_example")}) // FoldersFolderIdPatchRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -194,7 +194,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**folderId** | **string** | | +**folderId** | **string** | The id of the folder | ### Other Parameters diff --git a/internal/sdk/api/docs/GitHub.md b/internal/sdk/api/docs/GitHub.md new file mode 100644 index 0000000..be797b6 --- /dev/null +++ b/internal/sdk/api/docs/GitHub.md @@ -0,0 +1,161 @@ +# GitHub + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**GitHubConfig**](GitHubConfig.md) | | +**Provider** | **string** | | +**Org** | **string** | The user or organization to which the repository belongs to. | +**Repo** | **string** | The name of the repository you created to use with Retool. | +**DefaultBranch** | **string** | The default branch, e.g., main. | +**RepoVersion** | Pointer to **string** | Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. | [optional] + +## Methods + +### NewGitHub + +`func NewGitHub(config GitHubConfig, provider string, org string, repo string, defaultBranch string, ) *GitHub` + +NewGitHub instantiates a new GitHub object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGitHubWithDefaults + +`func NewGitHubWithDefaults() *GitHub` + +NewGitHubWithDefaults instantiates a new GitHub 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 + +### GetConfig + +`func (o *GitHub) GetConfig() GitHubConfig` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *GitHub) GetConfigOk() (*GitHubConfig, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *GitHub) SetConfig(v GitHubConfig)` + +SetConfig sets Config field to given value. + + +### GetProvider + +`func (o *GitHub) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *GitHub) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *GitHub) SetProvider(v string)` + +SetProvider sets Provider field to given value. + + +### GetOrg + +`func (o *GitHub) GetOrg() string` + +GetOrg returns the Org field if non-nil, zero value otherwise. + +### GetOrgOk + +`func (o *GitHub) GetOrgOk() (*string, bool)` + +GetOrgOk returns a tuple with the Org field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrg + +`func (o *GitHub) SetOrg(v string)` + +SetOrg sets Org field to given value. + + +### GetRepo + +`func (o *GitHub) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *GitHub) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *GitHub) SetRepo(v string)` + +SetRepo sets Repo field to given value. + + +### GetDefaultBranch + +`func (o *GitHub) GetDefaultBranch() string` + +GetDefaultBranch returns the DefaultBranch field if non-nil, zero value otherwise. + +### GetDefaultBranchOk + +`func (o *GitHub) GetDefaultBranchOk() (*string, bool)` + +GetDefaultBranchOk returns a tuple with the DefaultBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultBranch + +`func (o *GitHub) SetDefaultBranch(v string)` + +SetDefaultBranch sets DefaultBranch field to given value. + + +### GetRepoVersion + +`func (o *GitHub) GetRepoVersion() string` + +GetRepoVersion returns the RepoVersion field if non-nil, zero value otherwise. + +### GetRepoVersionOk + +`func (o *GitHub) GetRepoVersionOk() (*string, bool)` + +GetRepoVersionOk returns a tuple with the RepoVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoVersion + +`func (o *GitHub) SetRepoVersion(v string)` + +SetRepoVersion sets RepoVersion field to given value. + +### HasRepoVersion + +`func (o *GitHub) HasRepoVersion() bool` + +HasRepoVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/GitHubConfig.md b/internal/sdk/api/docs/GitHubConfig.md new file mode 100644 index 0000000..46d9aa9 --- /dev/null +++ b/internal/sdk/api/docs/GitHubConfig.md @@ -0,0 +1,187 @@ +# GitHubConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**AppId** | **string** | The GitHub App ID. | +**InstallationId** | **string** | The GitHub installation ID. This can be found at the end of the installation URL. | +**PrivateKey** | **string** | The base64-encoded private key. | +**Url** | Pointer to **string** | The domain used to access your self-hosted GitHub instance. | [optional] +**EnterpriseApiUrl** | Pointer to **string** | The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3. | [optional] +**PersonalAccessToken** | **string** | The GitHub project access token to authenticate to the GitHub API. | + +## Methods + +### NewGitHubConfig + +`func NewGitHubConfig(type_ string, appId string, installationId string, privateKey string, personalAccessToken string, ) *GitHubConfig` + +NewGitHubConfig instantiates a new GitHubConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGitHubConfigWithDefaults + +`func NewGitHubConfigWithDefaults() *GitHubConfig` + +NewGitHubConfigWithDefaults instantiates a new GitHubConfig 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 + +### GetType + +`func (o *GitHubConfig) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GitHubConfig) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GitHubConfig) SetType(v string)` + +SetType sets Type field to given value. + + +### GetAppId + +`func (o *GitHubConfig) GetAppId() string` + +GetAppId returns the AppId field if non-nil, zero value otherwise. + +### GetAppIdOk + +`func (o *GitHubConfig) GetAppIdOk() (*string, bool)` + +GetAppIdOk returns a tuple with the AppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppId + +`func (o *GitHubConfig) SetAppId(v string)` + +SetAppId sets AppId field to given value. + + +### GetInstallationId + +`func (o *GitHubConfig) GetInstallationId() string` + +GetInstallationId returns the InstallationId field if non-nil, zero value otherwise. + +### GetInstallationIdOk + +`func (o *GitHubConfig) GetInstallationIdOk() (*string, bool)` + +GetInstallationIdOk returns a tuple with the InstallationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallationId + +`func (o *GitHubConfig) SetInstallationId(v string)` + +SetInstallationId sets InstallationId field to given value. + + +### GetPrivateKey + +`func (o *GitHubConfig) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *GitHubConfig) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *GitHubConfig) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + + +### GetUrl + +`func (o *GitHubConfig) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *GitHubConfig) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *GitHubConfig) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *GitHubConfig) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetEnterpriseApiUrl + +`func (o *GitHubConfig) GetEnterpriseApiUrl() string` + +GetEnterpriseApiUrl returns the EnterpriseApiUrl field if non-nil, zero value otherwise. + +### GetEnterpriseApiUrlOk + +`func (o *GitHubConfig) GetEnterpriseApiUrlOk() (*string, bool)` + +GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnterpriseApiUrl + +`func (o *GitHubConfig) SetEnterpriseApiUrl(v string)` + +SetEnterpriseApiUrl sets EnterpriseApiUrl field to given value. + +### HasEnterpriseApiUrl + +`func (o *GitHubConfig) HasEnterpriseApiUrl() bool` + +HasEnterpriseApiUrl returns a boolean if a field has been set. + +### GetPersonalAccessToken + +`func (o *GitHubConfig) GetPersonalAccessToken() string` + +GetPersonalAccessToken returns the PersonalAccessToken field if non-nil, zero value otherwise. + +### GetPersonalAccessTokenOk + +`func (o *GitHubConfig) GetPersonalAccessTokenOk() (*string, bool)` + +GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersonalAccessToken + +`func (o *GitHubConfig) SetPersonalAccessToken(v string)` + +SetPersonalAccessToken sets PersonalAccessToken field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/GitHubConfigAnyOf.md b/internal/sdk/api/docs/GitHubConfigAnyOf.md new file mode 100644 index 0000000..a869535 --- /dev/null +++ b/internal/sdk/api/docs/GitHubConfigAnyOf.md @@ -0,0 +1,166 @@ +# GitHubConfigAnyOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**AppId** | **string** | The GitHub App ID. | +**InstallationId** | **string** | The GitHub installation ID. This can be found at the end of the installation URL. | +**PrivateKey** | **string** | The base64-encoded private key. | +**Url** | Pointer to **string** | The domain used to access your self-hosted GitHub instance. | [optional] +**EnterpriseApiUrl** | Pointer to **string** | The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3. | [optional] + +## Methods + +### NewGitHubConfigAnyOf + +`func NewGitHubConfigAnyOf(type_ string, appId string, installationId string, privateKey string, ) *GitHubConfigAnyOf` + +NewGitHubConfigAnyOf instantiates a new GitHubConfigAnyOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGitHubConfigAnyOfWithDefaults + +`func NewGitHubConfigAnyOfWithDefaults() *GitHubConfigAnyOf` + +NewGitHubConfigAnyOfWithDefaults instantiates a new GitHubConfigAnyOf 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 + +### GetType + +`func (o *GitHubConfigAnyOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GitHubConfigAnyOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GitHubConfigAnyOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetAppId + +`func (o *GitHubConfigAnyOf) GetAppId() string` + +GetAppId returns the AppId field if non-nil, zero value otherwise. + +### GetAppIdOk + +`func (o *GitHubConfigAnyOf) GetAppIdOk() (*string, bool)` + +GetAppIdOk returns a tuple with the AppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppId + +`func (o *GitHubConfigAnyOf) SetAppId(v string)` + +SetAppId sets AppId field to given value. + + +### GetInstallationId + +`func (o *GitHubConfigAnyOf) GetInstallationId() string` + +GetInstallationId returns the InstallationId field if non-nil, zero value otherwise. + +### GetInstallationIdOk + +`func (o *GitHubConfigAnyOf) GetInstallationIdOk() (*string, bool)` + +GetInstallationIdOk returns a tuple with the InstallationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallationId + +`func (o *GitHubConfigAnyOf) SetInstallationId(v string)` + +SetInstallationId sets InstallationId field to given value. + + +### GetPrivateKey + +`func (o *GitHubConfigAnyOf) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *GitHubConfigAnyOf) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *GitHubConfigAnyOf) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + + +### GetUrl + +`func (o *GitHubConfigAnyOf) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *GitHubConfigAnyOf) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *GitHubConfigAnyOf) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *GitHubConfigAnyOf) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetEnterpriseApiUrl + +`func (o *GitHubConfigAnyOf) GetEnterpriseApiUrl() string` + +GetEnterpriseApiUrl returns the EnterpriseApiUrl field if non-nil, zero value otherwise. + +### GetEnterpriseApiUrlOk + +`func (o *GitHubConfigAnyOf) GetEnterpriseApiUrlOk() (*string, bool)` + +GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnterpriseApiUrl + +`func (o *GitHubConfigAnyOf) SetEnterpriseApiUrl(v string)` + +SetEnterpriseApiUrl sets EnterpriseApiUrl field to given value. + +### HasEnterpriseApiUrl + +`func (o *GitHubConfigAnyOf) HasEnterpriseApiUrl() bool` + +HasEnterpriseApiUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/GitHubConfigAnyOf1.md b/internal/sdk/api/docs/GitHubConfigAnyOf1.md new file mode 100644 index 0000000..5a302ac --- /dev/null +++ b/internal/sdk/api/docs/GitHubConfigAnyOf1.md @@ -0,0 +1,124 @@ +# GitHubConfigAnyOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**PersonalAccessToken** | **string** | The GitHub project access token to authenticate to the GitHub API. | +**Url** | Pointer to **string** | The domain used to access your self-hosted GitHub instance. | [optional] +**EnterpriseApiUrl** | Pointer to **string** | The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3. | [optional] + +## Methods + +### NewGitHubConfigAnyOf1 + +`func NewGitHubConfigAnyOf1(type_ string, personalAccessToken string, ) *GitHubConfigAnyOf1` + +NewGitHubConfigAnyOf1 instantiates a new GitHubConfigAnyOf1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGitHubConfigAnyOf1WithDefaults + +`func NewGitHubConfigAnyOf1WithDefaults() *GitHubConfigAnyOf1` + +NewGitHubConfigAnyOf1WithDefaults instantiates a new GitHubConfigAnyOf1 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 + +### GetType + +`func (o *GitHubConfigAnyOf1) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GitHubConfigAnyOf1) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GitHubConfigAnyOf1) SetType(v string)` + +SetType sets Type field to given value. + + +### GetPersonalAccessToken + +`func (o *GitHubConfigAnyOf1) GetPersonalAccessToken() string` + +GetPersonalAccessToken returns the PersonalAccessToken field if non-nil, zero value otherwise. + +### GetPersonalAccessTokenOk + +`func (o *GitHubConfigAnyOf1) GetPersonalAccessTokenOk() (*string, bool)` + +GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPersonalAccessToken + +`func (o *GitHubConfigAnyOf1) SetPersonalAccessToken(v string)` + +SetPersonalAccessToken sets PersonalAccessToken field to given value. + + +### GetUrl + +`func (o *GitHubConfigAnyOf1) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *GitHubConfigAnyOf1) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *GitHubConfigAnyOf1) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *GitHubConfigAnyOf1) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetEnterpriseApiUrl + +`func (o *GitHubConfigAnyOf1) GetEnterpriseApiUrl() string` + +GetEnterpriseApiUrl returns the EnterpriseApiUrl field if non-nil, zero value otherwise. + +### GetEnterpriseApiUrlOk + +`func (o *GitHubConfigAnyOf1) GetEnterpriseApiUrlOk() (*string, bool)` + +GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnterpriseApiUrl + +`func (o *GitHubConfigAnyOf1) SetEnterpriseApiUrl(v string)` + +SetEnterpriseApiUrl sets EnterpriseApiUrl field to given value. + +### HasEnterpriseApiUrl + +`func (o *GitHubConfigAnyOf1) HasEnterpriseApiUrl() bool` + +HasEnterpriseApiUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/GitLab.md b/internal/sdk/api/docs/GitLab.md new file mode 100644 index 0000000..34b4694 --- /dev/null +++ b/internal/sdk/api/docs/GitLab.md @@ -0,0 +1,161 @@ +# GitLab + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**GitLabConfig**](GitLabConfig.md) | | +**Provider** | **string** | | +**Org** | **string** | The user or organization to which the repository belongs to. | +**Repo** | **string** | The name of the repository you created to use with Retool. | +**DefaultBranch** | **string** | The default branch, e.g., main. | +**RepoVersion** | Pointer to **string** | Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. | [optional] + +## Methods + +### NewGitLab + +`func NewGitLab(config GitLabConfig, provider string, org string, repo string, defaultBranch string, ) *GitLab` + +NewGitLab instantiates a new GitLab object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGitLabWithDefaults + +`func NewGitLabWithDefaults() *GitLab` + +NewGitLabWithDefaults instantiates a new GitLab 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 + +### GetConfig + +`func (o *GitLab) GetConfig() GitLabConfig` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *GitLab) GetConfigOk() (*GitLabConfig, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *GitLab) SetConfig(v GitLabConfig)` + +SetConfig sets Config field to given value. + + +### GetProvider + +`func (o *GitLab) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *GitLab) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *GitLab) SetProvider(v string)` + +SetProvider sets Provider field to given value. + + +### GetOrg + +`func (o *GitLab) GetOrg() string` + +GetOrg returns the Org field if non-nil, zero value otherwise. + +### GetOrgOk + +`func (o *GitLab) GetOrgOk() (*string, bool)` + +GetOrgOk returns a tuple with the Org field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrg + +`func (o *GitLab) SetOrg(v string)` + +SetOrg sets Org field to given value. + + +### GetRepo + +`func (o *GitLab) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *GitLab) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *GitLab) SetRepo(v string)` + +SetRepo sets Repo field to given value. + + +### GetDefaultBranch + +`func (o *GitLab) GetDefaultBranch() string` + +GetDefaultBranch returns the DefaultBranch field if non-nil, zero value otherwise. + +### GetDefaultBranchOk + +`func (o *GitLab) GetDefaultBranchOk() (*string, bool)` + +GetDefaultBranchOk returns a tuple with the DefaultBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultBranch + +`func (o *GitLab) SetDefaultBranch(v string)` + +SetDefaultBranch sets DefaultBranch field to given value. + + +### GetRepoVersion + +`func (o *GitLab) GetRepoVersion() string` + +GetRepoVersion returns the RepoVersion field if non-nil, zero value otherwise. + +### GetRepoVersionOk + +`func (o *GitLab) GetRepoVersionOk() (*string, bool)` + +GetRepoVersionOk returns a tuple with the RepoVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoVersion + +`func (o *GitLab) SetRepoVersion(v string)` + +SetRepoVersion sets RepoVersion field to given value. + +### HasRepoVersion + +`func (o *GitLab) HasRepoVersion() bool` + +HasRepoVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/GitLabConfig.md b/internal/sdk/api/docs/GitLabConfig.md new file mode 100644 index 0000000..2befcbb --- /dev/null +++ b/internal/sdk/api/docs/GitLabConfig.md @@ -0,0 +1,93 @@ +# GitLabConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProjectId** | **float32** | The numerical project ID for your GitLab project. Find this ID listed below the project's name on the project's homepage. | +**Url** | **string** | Your base GitLab URL. On GitLab Cloud, this is always https://gitlab.com. On GitLab self-managed, this is the URL where your instance is hosted. | +**ProjectAccessToken** | **string** | The GitLab project access token to authenticate to the GitLab API. | + +## Methods + +### NewGitLabConfig + +`func NewGitLabConfig(projectId float32, url string, projectAccessToken string, ) *GitLabConfig` + +NewGitLabConfig instantiates a new GitLabConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGitLabConfigWithDefaults + +`func NewGitLabConfigWithDefaults() *GitLabConfig` + +NewGitLabConfigWithDefaults instantiates a new GitLabConfig 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 + +### GetProjectId + +`func (o *GitLabConfig) GetProjectId() float32` + +GetProjectId returns the ProjectId field if non-nil, zero value otherwise. + +### GetProjectIdOk + +`func (o *GitLabConfig) GetProjectIdOk() (*float32, bool)` + +GetProjectIdOk returns a tuple with the ProjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectId + +`func (o *GitLabConfig) SetProjectId(v float32)` + +SetProjectId sets ProjectId field to given value. + + +### GetUrl + +`func (o *GitLabConfig) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *GitLabConfig) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *GitLabConfig) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetProjectAccessToken + +`func (o *GitLabConfig) GetProjectAccessToken() string` + +GetProjectAccessToken returns the ProjectAccessToken field if non-nil, zero value otherwise. + +### GetProjectAccessTokenOk + +`func (o *GitLabConfig) GetProjectAccessTokenOk() (*string, bool)` + +GetProjectAccessTokenOk returns a tuple with the ProjectAccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectAccessToken + +`func (o *GitLabConfig) SetProjectAccessToken(v string)` + +SetProjectAccessToken sets ProjectAccessToken field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/Google.md b/internal/sdk/api/docs/Google.md new file mode 100644 index 0000000..cab2b8a --- /dev/null +++ b/internal/sdk/api/docs/Google.md @@ -0,0 +1,114 @@ +# Google + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigType** | **string** | | +**GoogleClientId** | **string** | | +**GoogleClientSecret** | **string** | | +**DisableEmailPasswordLogin** | **bool** | | + +## Methods + +### NewGoogle + +`func NewGoogle(configType string, googleClientId string, googleClientSecret string, disableEmailPasswordLogin bool, ) *Google` + +NewGoogle instantiates a new Google object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGoogleWithDefaults + +`func NewGoogleWithDefaults() *Google` + +NewGoogleWithDefaults instantiates a new Google 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 + +### GetConfigType + +`func (o *Google) GetConfigType() string` + +GetConfigType returns the ConfigType field if non-nil, zero value otherwise. + +### GetConfigTypeOk + +`func (o *Google) GetConfigTypeOk() (*string, bool)` + +GetConfigTypeOk returns a tuple with the ConfigType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigType + +`func (o *Google) SetConfigType(v string)` + +SetConfigType sets ConfigType field to given value. + + +### GetGoogleClientId + +`func (o *Google) GetGoogleClientId() string` + +GetGoogleClientId returns the GoogleClientId field if non-nil, zero value otherwise. + +### GetGoogleClientIdOk + +`func (o *Google) GetGoogleClientIdOk() (*string, bool)` + +GetGoogleClientIdOk returns a tuple with the GoogleClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoogleClientId + +`func (o *Google) SetGoogleClientId(v string)` + +SetGoogleClientId sets GoogleClientId field to given value. + + +### GetGoogleClientSecret + +`func (o *Google) GetGoogleClientSecret() string` + +GetGoogleClientSecret returns the GoogleClientSecret field if non-nil, zero value otherwise. + +### GetGoogleClientSecretOk + +`func (o *Google) GetGoogleClientSecretOk() (*string, bool)` + +GetGoogleClientSecretOk returns a tuple with the GoogleClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoogleClientSecret + +`func (o *Google) SetGoogleClientSecret(v string)` + +SetGoogleClientSecret sets GoogleClientSecret field to given value. + + +### GetDisableEmailPasswordLogin + +`func (o *Google) GetDisableEmailPasswordLogin() bool` + +GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field if non-nil, zero value otherwise. + +### GetDisableEmailPasswordLoginOk + +`func (o *Google) GetDisableEmailPasswordLoginOk() (*bool, bool)` + +GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableEmailPasswordLogin + +`func (o *Google) SetDisableEmailPasswordLogin(v bool)` + +SetDisableEmailPasswordLogin sets DisableEmailPasswordLogin field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/GoogleOIDC.md b/internal/sdk/api/docs/GoogleOIDC.md new file mode 100644 index 0000000..e9ffdeb --- /dev/null +++ b/internal/sdk/api/docs/GoogleOIDC.md @@ -0,0 +1,454 @@ +# GoogleOIDC + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigType** | **string** | | +**GoogleClientId** | **string** | | +**GoogleClientSecret** | **string** | | +**DisableEmailPasswordLogin** | **bool** | | +**OidcClientId** | **string** | | +**OidcClientSecret** | **string** | | +**OidcScopes** | **string** | | +**OidcAuthUrl** | **string** | | +**OidcTokenUrl** | **string** | | +**OidcUserinfoUrl** | Pointer to **string** | | [optional] +**OidcAudience** | Pointer to **string** | | [optional] +**JwtEmailKey** | **string** | | +**JwtRolesKey** | Pointer to **string** | | [optional] +**JwtFirstNameKey** | **string** | | +**JwtLastNameKey** | **string** | | +**RolesMapping** | Pointer to **string** | | [optional] +**JitEnabled** | **bool** | | +**RestrictedDomain** | Pointer to **string** | | [optional] +**TriggerLoginAutomatically** | **bool** | | + +## Methods + +### NewGoogleOIDC + +`func NewGoogleOIDC(configType string, googleClientId string, googleClientSecret string, disableEmailPasswordLogin bool, oidcClientId string, oidcClientSecret string, oidcScopes string, oidcAuthUrl string, oidcTokenUrl string, jwtEmailKey string, jwtFirstNameKey string, jwtLastNameKey string, jitEnabled bool, triggerLoginAutomatically bool, ) *GoogleOIDC` + +NewGoogleOIDC instantiates a new GoogleOIDC object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGoogleOIDCWithDefaults + +`func NewGoogleOIDCWithDefaults() *GoogleOIDC` + +NewGoogleOIDCWithDefaults instantiates a new GoogleOIDC 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 + +### GetConfigType + +`func (o *GoogleOIDC) GetConfigType() string` + +GetConfigType returns the ConfigType field if non-nil, zero value otherwise. + +### GetConfigTypeOk + +`func (o *GoogleOIDC) GetConfigTypeOk() (*string, bool)` + +GetConfigTypeOk returns a tuple with the ConfigType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigType + +`func (o *GoogleOIDC) SetConfigType(v string)` + +SetConfigType sets ConfigType field to given value. + + +### GetGoogleClientId + +`func (o *GoogleOIDC) GetGoogleClientId() string` + +GetGoogleClientId returns the GoogleClientId field if non-nil, zero value otherwise. + +### GetGoogleClientIdOk + +`func (o *GoogleOIDC) GetGoogleClientIdOk() (*string, bool)` + +GetGoogleClientIdOk returns a tuple with the GoogleClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoogleClientId + +`func (o *GoogleOIDC) SetGoogleClientId(v string)` + +SetGoogleClientId sets GoogleClientId field to given value. + + +### GetGoogleClientSecret + +`func (o *GoogleOIDC) GetGoogleClientSecret() string` + +GetGoogleClientSecret returns the GoogleClientSecret field if non-nil, zero value otherwise. + +### GetGoogleClientSecretOk + +`func (o *GoogleOIDC) GetGoogleClientSecretOk() (*string, bool)` + +GetGoogleClientSecretOk returns a tuple with the GoogleClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoogleClientSecret + +`func (o *GoogleOIDC) SetGoogleClientSecret(v string)` + +SetGoogleClientSecret sets GoogleClientSecret field to given value. + + +### GetDisableEmailPasswordLogin + +`func (o *GoogleOIDC) GetDisableEmailPasswordLogin() bool` + +GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field if non-nil, zero value otherwise. + +### GetDisableEmailPasswordLoginOk + +`func (o *GoogleOIDC) GetDisableEmailPasswordLoginOk() (*bool, bool)` + +GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableEmailPasswordLogin + +`func (o *GoogleOIDC) SetDisableEmailPasswordLogin(v bool)` + +SetDisableEmailPasswordLogin sets DisableEmailPasswordLogin field to given value. + + +### GetOidcClientId + +`func (o *GoogleOIDC) GetOidcClientId() string` + +GetOidcClientId returns the OidcClientId field if non-nil, zero value otherwise. + +### GetOidcClientIdOk + +`func (o *GoogleOIDC) GetOidcClientIdOk() (*string, bool)` + +GetOidcClientIdOk returns a tuple with the OidcClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcClientId + +`func (o *GoogleOIDC) SetOidcClientId(v string)` + +SetOidcClientId sets OidcClientId field to given value. + + +### GetOidcClientSecret + +`func (o *GoogleOIDC) GetOidcClientSecret() string` + +GetOidcClientSecret returns the OidcClientSecret field if non-nil, zero value otherwise. + +### GetOidcClientSecretOk + +`func (o *GoogleOIDC) GetOidcClientSecretOk() (*string, bool)` + +GetOidcClientSecretOk returns a tuple with the OidcClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcClientSecret + +`func (o *GoogleOIDC) SetOidcClientSecret(v string)` + +SetOidcClientSecret sets OidcClientSecret field to given value. + + +### GetOidcScopes + +`func (o *GoogleOIDC) GetOidcScopes() string` + +GetOidcScopes returns the OidcScopes field if non-nil, zero value otherwise. + +### GetOidcScopesOk + +`func (o *GoogleOIDC) GetOidcScopesOk() (*string, bool)` + +GetOidcScopesOk returns a tuple with the OidcScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcScopes + +`func (o *GoogleOIDC) SetOidcScopes(v string)` + +SetOidcScopes sets OidcScopes field to given value. + + +### GetOidcAuthUrl + +`func (o *GoogleOIDC) GetOidcAuthUrl() string` + +GetOidcAuthUrl returns the OidcAuthUrl field if non-nil, zero value otherwise. + +### GetOidcAuthUrlOk + +`func (o *GoogleOIDC) GetOidcAuthUrlOk() (*string, bool)` + +GetOidcAuthUrlOk returns a tuple with the OidcAuthUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcAuthUrl + +`func (o *GoogleOIDC) SetOidcAuthUrl(v string)` + +SetOidcAuthUrl sets OidcAuthUrl field to given value. + + +### GetOidcTokenUrl + +`func (o *GoogleOIDC) GetOidcTokenUrl() string` + +GetOidcTokenUrl returns the OidcTokenUrl field if non-nil, zero value otherwise. + +### GetOidcTokenUrlOk + +`func (o *GoogleOIDC) GetOidcTokenUrlOk() (*string, bool)` + +GetOidcTokenUrlOk returns a tuple with the OidcTokenUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcTokenUrl + +`func (o *GoogleOIDC) SetOidcTokenUrl(v string)` + +SetOidcTokenUrl sets OidcTokenUrl field to given value. + + +### GetOidcUserinfoUrl + +`func (o *GoogleOIDC) GetOidcUserinfoUrl() string` + +GetOidcUserinfoUrl returns the OidcUserinfoUrl field if non-nil, zero value otherwise. + +### GetOidcUserinfoUrlOk + +`func (o *GoogleOIDC) GetOidcUserinfoUrlOk() (*string, bool)` + +GetOidcUserinfoUrlOk returns a tuple with the OidcUserinfoUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcUserinfoUrl + +`func (o *GoogleOIDC) SetOidcUserinfoUrl(v string)` + +SetOidcUserinfoUrl sets OidcUserinfoUrl field to given value. + +### HasOidcUserinfoUrl + +`func (o *GoogleOIDC) HasOidcUserinfoUrl() bool` + +HasOidcUserinfoUrl returns a boolean if a field has been set. + +### GetOidcAudience + +`func (o *GoogleOIDC) GetOidcAudience() string` + +GetOidcAudience returns the OidcAudience field if non-nil, zero value otherwise. + +### GetOidcAudienceOk + +`func (o *GoogleOIDC) GetOidcAudienceOk() (*string, bool)` + +GetOidcAudienceOk returns a tuple with the OidcAudience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcAudience + +`func (o *GoogleOIDC) SetOidcAudience(v string)` + +SetOidcAudience sets OidcAudience field to given value. + +### HasOidcAudience + +`func (o *GoogleOIDC) HasOidcAudience() bool` + +HasOidcAudience returns a boolean if a field has been set. + +### GetJwtEmailKey + +`func (o *GoogleOIDC) GetJwtEmailKey() string` + +GetJwtEmailKey returns the JwtEmailKey field if non-nil, zero value otherwise. + +### GetJwtEmailKeyOk + +`func (o *GoogleOIDC) GetJwtEmailKeyOk() (*string, bool)` + +GetJwtEmailKeyOk returns a tuple with the JwtEmailKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtEmailKey + +`func (o *GoogleOIDC) SetJwtEmailKey(v string)` + +SetJwtEmailKey sets JwtEmailKey field to given value. + + +### GetJwtRolesKey + +`func (o *GoogleOIDC) GetJwtRolesKey() string` + +GetJwtRolesKey returns the JwtRolesKey field if non-nil, zero value otherwise. + +### GetJwtRolesKeyOk + +`func (o *GoogleOIDC) GetJwtRolesKeyOk() (*string, bool)` + +GetJwtRolesKeyOk returns a tuple with the JwtRolesKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtRolesKey + +`func (o *GoogleOIDC) SetJwtRolesKey(v string)` + +SetJwtRolesKey sets JwtRolesKey field to given value. + +### HasJwtRolesKey + +`func (o *GoogleOIDC) HasJwtRolesKey() bool` + +HasJwtRolesKey returns a boolean if a field has been set. + +### GetJwtFirstNameKey + +`func (o *GoogleOIDC) GetJwtFirstNameKey() string` + +GetJwtFirstNameKey returns the JwtFirstNameKey field if non-nil, zero value otherwise. + +### GetJwtFirstNameKeyOk + +`func (o *GoogleOIDC) GetJwtFirstNameKeyOk() (*string, bool)` + +GetJwtFirstNameKeyOk returns a tuple with the JwtFirstNameKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtFirstNameKey + +`func (o *GoogleOIDC) SetJwtFirstNameKey(v string)` + +SetJwtFirstNameKey sets JwtFirstNameKey field to given value. + + +### GetJwtLastNameKey + +`func (o *GoogleOIDC) GetJwtLastNameKey() string` + +GetJwtLastNameKey returns the JwtLastNameKey field if non-nil, zero value otherwise. + +### GetJwtLastNameKeyOk + +`func (o *GoogleOIDC) GetJwtLastNameKeyOk() (*string, bool)` + +GetJwtLastNameKeyOk returns a tuple with the JwtLastNameKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtLastNameKey + +`func (o *GoogleOIDC) SetJwtLastNameKey(v string)` + +SetJwtLastNameKey sets JwtLastNameKey field to given value. + + +### GetRolesMapping + +`func (o *GoogleOIDC) GetRolesMapping() string` + +GetRolesMapping returns the RolesMapping field if non-nil, zero value otherwise. + +### GetRolesMappingOk + +`func (o *GoogleOIDC) GetRolesMappingOk() (*string, bool)` + +GetRolesMappingOk returns a tuple with the RolesMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRolesMapping + +`func (o *GoogleOIDC) SetRolesMapping(v string)` + +SetRolesMapping sets RolesMapping field to given value. + +### HasRolesMapping + +`func (o *GoogleOIDC) HasRolesMapping() bool` + +HasRolesMapping returns a boolean if a field has been set. + +### GetJitEnabled + +`func (o *GoogleOIDC) GetJitEnabled() bool` + +GetJitEnabled returns the JitEnabled field if non-nil, zero value otherwise. + +### GetJitEnabledOk + +`func (o *GoogleOIDC) GetJitEnabledOk() (*bool, bool)` + +GetJitEnabledOk returns a tuple with the JitEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJitEnabled + +`func (o *GoogleOIDC) SetJitEnabled(v bool)` + +SetJitEnabled sets JitEnabled field to given value. + + +### GetRestrictedDomain + +`func (o *GoogleOIDC) GetRestrictedDomain() string` + +GetRestrictedDomain returns the RestrictedDomain field if non-nil, zero value otherwise. + +### GetRestrictedDomainOk + +`func (o *GoogleOIDC) GetRestrictedDomainOk() (*string, bool)` + +GetRestrictedDomainOk returns a tuple with the RestrictedDomain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestrictedDomain + +`func (o *GoogleOIDC) SetRestrictedDomain(v string)` + +SetRestrictedDomain sets RestrictedDomain field to given value. + +### HasRestrictedDomain + +`func (o *GoogleOIDC) HasRestrictedDomain() bool` + +HasRestrictedDomain returns a boolean if a field has been set. + +### GetTriggerLoginAutomatically + +`func (o *GoogleOIDC) GetTriggerLoginAutomatically() bool` + +GetTriggerLoginAutomatically returns the TriggerLoginAutomatically field if non-nil, zero value otherwise. + +### GetTriggerLoginAutomaticallyOk + +`func (o *GoogleOIDC) GetTriggerLoginAutomaticallyOk() (*bool, bool)` + +GetTriggerLoginAutomaticallyOk returns a tuple with the TriggerLoginAutomatically field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerLoginAutomatically + +`func (o *GoogleOIDC) SetTriggerLoginAutomatically(v bool)` + +SetTriggerLoginAutomatically sets TriggerLoginAutomatically field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/GoogleSAML.md b/internal/sdk/api/docs/GoogleSAML.md new file mode 100644 index 0000000..67bb373 --- /dev/null +++ b/internal/sdk/api/docs/GoogleSAML.md @@ -0,0 +1,474 @@ +# GoogleSAML + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigType** | **string** | | +**GoogleClientId** | **string** | | +**GoogleClientSecret** | **string** | | +**DisableEmailPasswordLogin** | **bool** | | +**IdpMetadataXml** | **string** | | +**SamlFirstNameAttribute** | **string** | | +**SamlLastNameAttribute** | **string** | | +**SamlGroupsAttribute** | Pointer to **string** | | [optional] +**SamlSyncGroupClaims** | **bool** | | +**LdapSyncGroupClaims** | Pointer to **bool** | | [optional] +**LdapRoleMapping** | Pointer to **string** | | [optional] +**LdapServerUrl** | Pointer to **string** | | [optional] +**LdapBaseDomainComponents** | Pointer to **string** | | [optional] +**LdapServerName** | Pointer to **string** | | [optional] +**LdapServerKey** | Pointer to **string** | | [optional] +**LdapServerCertificate** | Pointer to **string** | | [optional] +**JitEnabled** | **bool** | | +**RestrictedDomain** | Pointer to **string** | | [optional] +**TriggerLoginAutomatically** | **bool** | | + +## Methods + +### NewGoogleSAML + +`func NewGoogleSAML(configType string, googleClientId string, googleClientSecret string, disableEmailPasswordLogin bool, idpMetadataXml string, samlFirstNameAttribute string, samlLastNameAttribute string, samlSyncGroupClaims bool, jitEnabled bool, triggerLoginAutomatically bool, ) *GoogleSAML` + +NewGoogleSAML instantiates a new GoogleSAML object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGoogleSAMLWithDefaults + +`func NewGoogleSAMLWithDefaults() *GoogleSAML` + +NewGoogleSAMLWithDefaults instantiates a new GoogleSAML 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 + +### GetConfigType + +`func (o *GoogleSAML) GetConfigType() string` + +GetConfigType returns the ConfigType field if non-nil, zero value otherwise. + +### GetConfigTypeOk + +`func (o *GoogleSAML) GetConfigTypeOk() (*string, bool)` + +GetConfigTypeOk returns a tuple with the ConfigType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigType + +`func (o *GoogleSAML) SetConfigType(v string)` + +SetConfigType sets ConfigType field to given value. + + +### GetGoogleClientId + +`func (o *GoogleSAML) GetGoogleClientId() string` + +GetGoogleClientId returns the GoogleClientId field if non-nil, zero value otherwise. + +### GetGoogleClientIdOk + +`func (o *GoogleSAML) GetGoogleClientIdOk() (*string, bool)` + +GetGoogleClientIdOk returns a tuple with the GoogleClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoogleClientId + +`func (o *GoogleSAML) SetGoogleClientId(v string)` + +SetGoogleClientId sets GoogleClientId field to given value. + + +### GetGoogleClientSecret + +`func (o *GoogleSAML) GetGoogleClientSecret() string` + +GetGoogleClientSecret returns the GoogleClientSecret field if non-nil, zero value otherwise. + +### GetGoogleClientSecretOk + +`func (o *GoogleSAML) GetGoogleClientSecretOk() (*string, bool)` + +GetGoogleClientSecretOk returns a tuple with the GoogleClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoogleClientSecret + +`func (o *GoogleSAML) SetGoogleClientSecret(v string)` + +SetGoogleClientSecret sets GoogleClientSecret field to given value. + + +### GetDisableEmailPasswordLogin + +`func (o *GoogleSAML) GetDisableEmailPasswordLogin() bool` + +GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field if non-nil, zero value otherwise. + +### GetDisableEmailPasswordLoginOk + +`func (o *GoogleSAML) GetDisableEmailPasswordLoginOk() (*bool, bool)` + +GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableEmailPasswordLogin + +`func (o *GoogleSAML) SetDisableEmailPasswordLogin(v bool)` + +SetDisableEmailPasswordLogin sets DisableEmailPasswordLogin field to given value. + + +### GetIdpMetadataXml + +`func (o *GoogleSAML) GetIdpMetadataXml() string` + +GetIdpMetadataXml returns the IdpMetadataXml field if non-nil, zero value otherwise. + +### GetIdpMetadataXmlOk + +`func (o *GoogleSAML) GetIdpMetadataXmlOk() (*string, bool)` + +GetIdpMetadataXmlOk returns a tuple with the IdpMetadataXml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdpMetadataXml + +`func (o *GoogleSAML) SetIdpMetadataXml(v string)` + +SetIdpMetadataXml sets IdpMetadataXml field to given value. + + +### GetSamlFirstNameAttribute + +`func (o *GoogleSAML) GetSamlFirstNameAttribute() string` + +GetSamlFirstNameAttribute returns the SamlFirstNameAttribute field if non-nil, zero value otherwise. + +### GetSamlFirstNameAttributeOk + +`func (o *GoogleSAML) GetSamlFirstNameAttributeOk() (*string, bool)` + +GetSamlFirstNameAttributeOk returns a tuple with the SamlFirstNameAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlFirstNameAttribute + +`func (o *GoogleSAML) SetSamlFirstNameAttribute(v string)` + +SetSamlFirstNameAttribute sets SamlFirstNameAttribute field to given value. + + +### GetSamlLastNameAttribute + +`func (o *GoogleSAML) GetSamlLastNameAttribute() string` + +GetSamlLastNameAttribute returns the SamlLastNameAttribute field if non-nil, zero value otherwise. + +### GetSamlLastNameAttributeOk + +`func (o *GoogleSAML) GetSamlLastNameAttributeOk() (*string, bool)` + +GetSamlLastNameAttributeOk returns a tuple with the SamlLastNameAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlLastNameAttribute + +`func (o *GoogleSAML) SetSamlLastNameAttribute(v string)` + +SetSamlLastNameAttribute sets SamlLastNameAttribute field to given value. + + +### GetSamlGroupsAttribute + +`func (o *GoogleSAML) GetSamlGroupsAttribute() string` + +GetSamlGroupsAttribute returns the SamlGroupsAttribute field if non-nil, zero value otherwise. + +### GetSamlGroupsAttributeOk + +`func (o *GoogleSAML) GetSamlGroupsAttributeOk() (*string, bool)` + +GetSamlGroupsAttributeOk returns a tuple with the SamlGroupsAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlGroupsAttribute + +`func (o *GoogleSAML) SetSamlGroupsAttribute(v string)` + +SetSamlGroupsAttribute sets SamlGroupsAttribute field to given value. + +### HasSamlGroupsAttribute + +`func (o *GoogleSAML) HasSamlGroupsAttribute() bool` + +HasSamlGroupsAttribute returns a boolean if a field has been set. + +### GetSamlSyncGroupClaims + +`func (o *GoogleSAML) GetSamlSyncGroupClaims() bool` + +GetSamlSyncGroupClaims returns the SamlSyncGroupClaims field if non-nil, zero value otherwise. + +### GetSamlSyncGroupClaimsOk + +`func (o *GoogleSAML) GetSamlSyncGroupClaimsOk() (*bool, bool)` + +GetSamlSyncGroupClaimsOk returns a tuple with the SamlSyncGroupClaims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlSyncGroupClaims + +`func (o *GoogleSAML) SetSamlSyncGroupClaims(v bool)` + +SetSamlSyncGroupClaims sets SamlSyncGroupClaims field to given value. + + +### GetLdapSyncGroupClaims + +`func (o *GoogleSAML) GetLdapSyncGroupClaims() bool` + +GetLdapSyncGroupClaims returns the LdapSyncGroupClaims field if non-nil, zero value otherwise. + +### GetLdapSyncGroupClaimsOk + +`func (o *GoogleSAML) GetLdapSyncGroupClaimsOk() (*bool, bool)` + +GetLdapSyncGroupClaimsOk returns a tuple with the LdapSyncGroupClaims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapSyncGroupClaims + +`func (o *GoogleSAML) SetLdapSyncGroupClaims(v bool)` + +SetLdapSyncGroupClaims sets LdapSyncGroupClaims field to given value. + +### HasLdapSyncGroupClaims + +`func (o *GoogleSAML) HasLdapSyncGroupClaims() bool` + +HasLdapSyncGroupClaims returns a boolean if a field has been set. + +### GetLdapRoleMapping + +`func (o *GoogleSAML) GetLdapRoleMapping() string` + +GetLdapRoleMapping returns the LdapRoleMapping field if non-nil, zero value otherwise. + +### GetLdapRoleMappingOk + +`func (o *GoogleSAML) GetLdapRoleMappingOk() (*string, bool)` + +GetLdapRoleMappingOk returns a tuple with the LdapRoleMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapRoleMapping + +`func (o *GoogleSAML) SetLdapRoleMapping(v string)` + +SetLdapRoleMapping sets LdapRoleMapping field to given value. + +### HasLdapRoleMapping + +`func (o *GoogleSAML) HasLdapRoleMapping() bool` + +HasLdapRoleMapping returns a boolean if a field has been set. + +### GetLdapServerUrl + +`func (o *GoogleSAML) GetLdapServerUrl() string` + +GetLdapServerUrl returns the LdapServerUrl field if non-nil, zero value otherwise. + +### GetLdapServerUrlOk + +`func (o *GoogleSAML) GetLdapServerUrlOk() (*string, bool)` + +GetLdapServerUrlOk returns a tuple with the LdapServerUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapServerUrl + +`func (o *GoogleSAML) SetLdapServerUrl(v string)` + +SetLdapServerUrl sets LdapServerUrl field to given value. + +### HasLdapServerUrl + +`func (o *GoogleSAML) HasLdapServerUrl() bool` + +HasLdapServerUrl returns a boolean if a field has been set. + +### GetLdapBaseDomainComponents + +`func (o *GoogleSAML) GetLdapBaseDomainComponents() string` + +GetLdapBaseDomainComponents returns the LdapBaseDomainComponents field if non-nil, zero value otherwise. + +### GetLdapBaseDomainComponentsOk + +`func (o *GoogleSAML) GetLdapBaseDomainComponentsOk() (*string, bool)` + +GetLdapBaseDomainComponentsOk returns a tuple with the LdapBaseDomainComponents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapBaseDomainComponents + +`func (o *GoogleSAML) SetLdapBaseDomainComponents(v string)` + +SetLdapBaseDomainComponents sets LdapBaseDomainComponents field to given value. + +### HasLdapBaseDomainComponents + +`func (o *GoogleSAML) HasLdapBaseDomainComponents() bool` + +HasLdapBaseDomainComponents returns a boolean if a field has been set. + +### GetLdapServerName + +`func (o *GoogleSAML) GetLdapServerName() string` + +GetLdapServerName returns the LdapServerName field if non-nil, zero value otherwise. + +### GetLdapServerNameOk + +`func (o *GoogleSAML) GetLdapServerNameOk() (*string, bool)` + +GetLdapServerNameOk returns a tuple with the LdapServerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapServerName + +`func (o *GoogleSAML) SetLdapServerName(v string)` + +SetLdapServerName sets LdapServerName field to given value. + +### HasLdapServerName + +`func (o *GoogleSAML) HasLdapServerName() bool` + +HasLdapServerName returns a boolean if a field has been set. + +### GetLdapServerKey + +`func (o *GoogleSAML) GetLdapServerKey() string` + +GetLdapServerKey returns the LdapServerKey field if non-nil, zero value otherwise. + +### GetLdapServerKeyOk + +`func (o *GoogleSAML) GetLdapServerKeyOk() (*string, bool)` + +GetLdapServerKeyOk returns a tuple with the LdapServerKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapServerKey + +`func (o *GoogleSAML) SetLdapServerKey(v string)` + +SetLdapServerKey sets LdapServerKey field to given value. + +### HasLdapServerKey + +`func (o *GoogleSAML) HasLdapServerKey() bool` + +HasLdapServerKey returns a boolean if a field has been set. + +### GetLdapServerCertificate + +`func (o *GoogleSAML) GetLdapServerCertificate() string` + +GetLdapServerCertificate returns the LdapServerCertificate field if non-nil, zero value otherwise. + +### GetLdapServerCertificateOk + +`func (o *GoogleSAML) GetLdapServerCertificateOk() (*string, bool)` + +GetLdapServerCertificateOk returns a tuple with the LdapServerCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapServerCertificate + +`func (o *GoogleSAML) SetLdapServerCertificate(v string)` + +SetLdapServerCertificate sets LdapServerCertificate field to given value. + +### HasLdapServerCertificate + +`func (o *GoogleSAML) HasLdapServerCertificate() bool` + +HasLdapServerCertificate returns a boolean if a field has been set. + +### GetJitEnabled + +`func (o *GoogleSAML) GetJitEnabled() bool` + +GetJitEnabled returns the JitEnabled field if non-nil, zero value otherwise. + +### GetJitEnabledOk + +`func (o *GoogleSAML) GetJitEnabledOk() (*bool, bool)` + +GetJitEnabledOk returns a tuple with the JitEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJitEnabled + +`func (o *GoogleSAML) SetJitEnabled(v bool)` + +SetJitEnabled sets JitEnabled field to given value. + + +### GetRestrictedDomain + +`func (o *GoogleSAML) GetRestrictedDomain() string` + +GetRestrictedDomain returns the RestrictedDomain field if non-nil, zero value otherwise. + +### GetRestrictedDomainOk + +`func (o *GoogleSAML) GetRestrictedDomainOk() (*string, bool)` + +GetRestrictedDomainOk returns a tuple with the RestrictedDomain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestrictedDomain + +`func (o *GoogleSAML) SetRestrictedDomain(v string)` + +SetRestrictedDomain sets RestrictedDomain field to given value. + +### HasRestrictedDomain + +`func (o *GoogleSAML) HasRestrictedDomain() bool` + +HasRestrictedDomain returns a boolean if a field has been set. + +### GetTriggerLoginAutomatically + +`func (o *GoogleSAML) GetTriggerLoginAutomatically() bool` + +GetTriggerLoginAutomatically returns the TriggerLoginAutomatically field if non-nil, zero value otherwise. + +### GetTriggerLoginAutomaticallyOk + +`func (o *GoogleSAML) GetTriggerLoginAutomaticallyOk() (*bool, bool)` + +GetTriggerLoginAutomaticallyOk returns a tuple with the TriggerLoginAutomatically field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerLoginAutomatically + +`func (o *GoogleSAML) SetTriggerLoginAutomatically(v bool)` + +SetTriggerLoginAutomatically sets TriggerLoginAutomatically field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/Group.md b/internal/sdk/api/docs/Group.md index 7d2b0e8..625a3e4 100644 --- a/internal/sdk/api/docs/Group.md +++ b/internal/sdk/api/docs/Group.md @@ -4,29 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **NullableFloat32** | The ID of the group. Currently this is the same legacy_id but will change in the future. | -**LegacyId** | **NullableFloat32** | The legacy ID of the group. | -**Name** | **string** | The name of the group. | -**Members** | [**[]GroupsGroupIdGet200ResponseDataMembersInner**](GroupsGroupIdGet200ResponseDataMembersInner.md) | The members of the group. | -**UniversalAppAccess** | **string** | The universal app access level for the group. This denotes the access level that this group has for all apps. | -**UniversalResourceAccess** | **string** | The universal resource access level for the group. This denotes the access level that this group has for all resources. | -**UniversalWorkflowAccess** | **string** | The universal workflow access level for the group. This denotes the access level that this group has for all workflows. | -**UniversalQueryLibraryAccess** | Pointer to **string** | Level of access that the group has to the Query Library. | [optional] -**UserInvites** | [**[]GroupsGroupIdGet200ResponseDataUserInvitesInner**](GroupsGroupIdGet200ResponseDataUserInvitesInner.md) | A list of user invites that will be added to the group | -**UserListAccess** | **bool** | Whether the group has access to the user list | -**AuditLogAccess** | **bool** | Whether the group has access to the audit log | -**UnpublishedReleaseAccess** | **bool** | Whether the group has access to unpublished releases | -**UsageAnalyticsAccess** | **bool** | Whether the group has access to usage analytics | -**AccountDetailsAccess** | **bool** | Whether the group has access to account details | -**LandingPageAppId** | **NullableString** | The app ID of the landing page | -**CreatedAt** | **string** | | -**UpdatedAt** | **string** | | +**Type** | **string** | | +**Id** | **NullableFloat32** | The ID number of the group | ## Methods ### NewGroup -`func NewGroup(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *Group` +`func NewGroup(type_ string, id NullableFloat32, ) *Group` NewGroup instantiates a new Group object This constructor will assign default values to properties that have it defined, @@ -41,6 +26,26 @@ NewGroupWithDefaults instantiates a new Group 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 +### GetType + +`func (o *Group) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Group) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Group) SetType(v string)` + +SetType sets Type field to given value. + + ### GetId `func (o *Group) GetId() float32` @@ -71,351 +76,6 @@ SetId sets Id field to given value. `func (o *Group) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil -### GetLegacyId - -`func (o *Group) GetLegacyId() float32` - -GetLegacyId returns the LegacyId field if non-nil, zero value otherwise. - -### GetLegacyIdOk - -`func (o *Group) GetLegacyIdOk() (*float32, bool)` - -GetLegacyIdOk returns a tuple with the LegacyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLegacyId - -`func (o *Group) SetLegacyId(v float32)` - -SetLegacyId sets LegacyId field to given value. - - -### SetLegacyIdNil - -`func (o *Group) SetLegacyIdNil(b bool)` - - SetLegacyIdNil sets the value for LegacyId to be an explicit nil - -### UnsetLegacyId -`func (o *Group) UnsetLegacyId()` - -UnsetLegacyId ensures that no value is present for LegacyId, not even an explicit nil -### GetName - -`func (o *Group) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *Group) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *Group) SetName(v string)` - -SetName sets Name field to given value. - - -### GetMembers - -`func (o *Group) GetMembers() []GroupsGroupIdGet200ResponseDataMembersInner` - -GetMembers returns the Members field if non-nil, zero value otherwise. - -### GetMembersOk - -`func (o *Group) GetMembersOk() (*[]GroupsGroupIdGet200ResponseDataMembersInner, bool)` - -GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMembers - -`func (o *Group) SetMembers(v []GroupsGroupIdGet200ResponseDataMembersInner)` - -SetMembers sets Members field to given value. - - -### GetUniversalAppAccess - -`func (o *Group) GetUniversalAppAccess() string` - -GetUniversalAppAccess returns the UniversalAppAccess field if non-nil, zero value otherwise. - -### GetUniversalAppAccessOk - -`func (o *Group) GetUniversalAppAccessOk() (*string, bool)` - -GetUniversalAppAccessOk returns a tuple with the UniversalAppAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUniversalAppAccess - -`func (o *Group) SetUniversalAppAccess(v string)` - -SetUniversalAppAccess sets UniversalAppAccess field to given value. - - -### GetUniversalResourceAccess - -`func (o *Group) GetUniversalResourceAccess() string` - -GetUniversalResourceAccess returns the UniversalResourceAccess field if non-nil, zero value otherwise. - -### GetUniversalResourceAccessOk - -`func (o *Group) GetUniversalResourceAccessOk() (*string, bool)` - -GetUniversalResourceAccessOk returns a tuple with the UniversalResourceAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUniversalResourceAccess - -`func (o *Group) SetUniversalResourceAccess(v string)` - -SetUniversalResourceAccess sets UniversalResourceAccess field to given value. - - -### GetUniversalWorkflowAccess - -`func (o *Group) GetUniversalWorkflowAccess() string` - -GetUniversalWorkflowAccess returns the UniversalWorkflowAccess field if non-nil, zero value otherwise. - -### GetUniversalWorkflowAccessOk - -`func (o *Group) GetUniversalWorkflowAccessOk() (*string, bool)` - -GetUniversalWorkflowAccessOk returns a tuple with the UniversalWorkflowAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUniversalWorkflowAccess - -`func (o *Group) SetUniversalWorkflowAccess(v string)` - -SetUniversalWorkflowAccess sets UniversalWorkflowAccess field to given value. - - -### GetUniversalQueryLibraryAccess - -`func (o *Group) GetUniversalQueryLibraryAccess() string` - -GetUniversalQueryLibraryAccess returns the UniversalQueryLibraryAccess field if non-nil, zero value otherwise. - -### GetUniversalQueryLibraryAccessOk - -`func (o *Group) GetUniversalQueryLibraryAccessOk() (*string, bool)` - -GetUniversalQueryLibraryAccessOk returns a tuple with the UniversalQueryLibraryAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUniversalQueryLibraryAccess - -`func (o *Group) SetUniversalQueryLibraryAccess(v string)` - -SetUniversalQueryLibraryAccess sets UniversalQueryLibraryAccess field to given value. - -### HasUniversalQueryLibraryAccess - -`func (o *Group) HasUniversalQueryLibraryAccess() bool` - -HasUniversalQueryLibraryAccess returns a boolean if a field has been set. - -### GetUserInvites - -`func (o *Group) GetUserInvites() []GroupsGroupIdGet200ResponseDataUserInvitesInner` - -GetUserInvites returns the UserInvites field if non-nil, zero value otherwise. - -### GetUserInvitesOk - -`func (o *Group) GetUserInvitesOk() (*[]GroupsGroupIdGet200ResponseDataUserInvitesInner, bool)` - -GetUserInvitesOk returns a tuple with the UserInvites field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserInvites - -`func (o *Group) SetUserInvites(v []GroupsGroupIdGet200ResponseDataUserInvitesInner)` - -SetUserInvites sets UserInvites field to given value. - - -### GetUserListAccess - -`func (o *Group) GetUserListAccess() bool` - -GetUserListAccess returns the UserListAccess field if non-nil, zero value otherwise. - -### GetUserListAccessOk - -`func (o *Group) GetUserListAccessOk() (*bool, bool)` - -GetUserListAccessOk returns a tuple with the UserListAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserListAccess - -`func (o *Group) SetUserListAccess(v bool)` - -SetUserListAccess sets UserListAccess field to given value. - - -### GetAuditLogAccess - -`func (o *Group) GetAuditLogAccess() bool` - -GetAuditLogAccess returns the AuditLogAccess field if non-nil, zero value otherwise. - -### GetAuditLogAccessOk - -`func (o *Group) GetAuditLogAccessOk() (*bool, bool)` - -GetAuditLogAccessOk returns a tuple with the AuditLogAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuditLogAccess - -`func (o *Group) SetAuditLogAccess(v bool)` - -SetAuditLogAccess sets AuditLogAccess field to given value. - - -### GetUnpublishedReleaseAccess - -`func (o *Group) GetUnpublishedReleaseAccess() bool` - -GetUnpublishedReleaseAccess returns the UnpublishedReleaseAccess field if non-nil, zero value otherwise. - -### GetUnpublishedReleaseAccessOk - -`func (o *Group) GetUnpublishedReleaseAccessOk() (*bool, bool)` - -GetUnpublishedReleaseAccessOk returns a tuple with the UnpublishedReleaseAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUnpublishedReleaseAccess - -`func (o *Group) SetUnpublishedReleaseAccess(v bool)` - -SetUnpublishedReleaseAccess sets UnpublishedReleaseAccess field to given value. - - -### GetUsageAnalyticsAccess - -`func (o *Group) GetUsageAnalyticsAccess() bool` - -GetUsageAnalyticsAccess returns the UsageAnalyticsAccess field if non-nil, zero value otherwise. - -### GetUsageAnalyticsAccessOk - -`func (o *Group) GetUsageAnalyticsAccessOk() (*bool, bool)` - -GetUsageAnalyticsAccessOk returns a tuple with the UsageAnalyticsAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsageAnalyticsAccess - -`func (o *Group) SetUsageAnalyticsAccess(v bool)` - -SetUsageAnalyticsAccess sets UsageAnalyticsAccess field to given value. - - -### GetAccountDetailsAccess - -`func (o *Group) GetAccountDetailsAccess() bool` - -GetAccountDetailsAccess returns the AccountDetailsAccess field if non-nil, zero value otherwise. - -### GetAccountDetailsAccessOk - -`func (o *Group) GetAccountDetailsAccessOk() (*bool, bool)` - -GetAccountDetailsAccessOk returns a tuple with the AccountDetailsAccess field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccountDetailsAccess - -`func (o *Group) SetAccountDetailsAccess(v bool)` - -SetAccountDetailsAccess sets AccountDetailsAccess field to given value. - - -### GetLandingPageAppId - -`func (o *Group) GetLandingPageAppId() string` - -GetLandingPageAppId returns the LandingPageAppId field if non-nil, zero value otherwise. - -### GetLandingPageAppIdOk - -`func (o *Group) GetLandingPageAppIdOk() (*string, bool)` - -GetLandingPageAppIdOk returns a tuple with the LandingPageAppId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLandingPageAppId - -`func (o *Group) SetLandingPageAppId(v string)` - -SetLandingPageAppId sets LandingPageAppId field to given value. - - -### SetLandingPageAppIdNil - -`func (o *Group) SetLandingPageAppIdNil(b bool)` - - SetLandingPageAppIdNil sets the value for LandingPageAppId to be an explicit nil - -### UnsetLandingPageAppId -`func (o *Group) UnsetLandingPageAppId()` - -UnsetLandingPageAppId ensures that no value is present for LandingPageAppId, not even an explicit nil -### GetCreatedAt - -`func (o *Group) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *Group) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *Group) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - - -### GetUpdatedAt - -`func (o *Group) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *Group) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *Group) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/GroupsAPI.md b/internal/sdk/api/docs/GroupsAPI.md index 404b151..aedfb45 100644 --- a/internal/sdk/api/docs/GroupsAPI.md +++ b/internal/sdk/api/docs/GroupsAPI.md @@ -99,7 +99,7 @@ import ( ) func main() { - groupId := "groupId_example" // string | + groupId := "groupId_example" // string | The group's ID number configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -117,7 +117,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | | +**groupId** | **string** | The group's ID number | ### Other Parameters @@ -167,7 +167,7 @@ import ( ) func main() { - groupId := "groupId_example" // string | + groupId := "groupId_example" // string | The group's ID number configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -187,7 +187,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | | +**groupId** | **string** | The group's ID number | ### Other Parameters @@ -237,7 +237,7 @@ import ( ) func main() { - groupId := "groupId_example" // string | + groupId := "groupId_example" // string | The group's ID number groupsGroupIdMembersPostRequest := *openapiclient.NewGroupsGroupIdMembersPostRequest([]openapiclient.GroupsGroupIdPutRequestMembersInner{*openapiclient.NewGroupsGroupIdPutRequestMembersInner("Id_example", false)}) // GroupsGroupIdMembersPostRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -258,7 +258,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | | +**groupId** | **string** | The group's ID number | ### Other Parameters @@ -309,7 +309,7 @@ import ( ) func main() { - groupId := "groupId_example" // string | + groupId := "groupId_example" // string | The group's ID number userSid := "userSid_example" // string | configuration := openapiclient.NewConfiguration() @@ -330,7 +330,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | | +**groupId** | **string** | The group's ID number | **userSid** | **string** | | ### Other Parameters @@ -382,8 +382,8 @@ import ( ) func main() { - groupId := "groupId_example" // string | - groupsGroupIdPatchRequest := *openapiclient.NewGroupsGroupIdPatchRequest([]openapiclient.GroupsGroupIdPatchRequestOperationsInner{*openapiclient.NewGroupsGroupIdPatchRequestOperationsInner("Op_example", "Path_example")}) // GroupsGroupIdPatchRequest | (optional) + groupId := "groupId_example" // string | The group's ID number + groupsGroupIdPatchRequest := *openapiclient.NewGroupsGroupIdPatchRequest([]openapiclient.UsersUserIdPatchRequestOperationsInner{*openapiclient.NewUsersUserIdPatchRequestOperationsInner("Op_example", "Path_example")}) // GroupsGroupIdPatchRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -403,7 +403,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | | +**groupId** | **string** | The group's ID number | ### Other Parameters @@ -454,7 +454,7 @@ import ( ) func main() { - groupId := "groupId_example" // string | + groupId := "groupId_example" // string | The group's ID number groupsGroupIdPutRequest := *openapiclient.NewGroupsGroupIdPutRequest() // GroupsGroupIdPutRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -475,7 +475,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | | +**groupId** | **string** | The group's ID number | ### Other Parameters @@ -526,7 +526,7 @@ import ( ) func main() { - groupId := "groupId_example" // string | + groupId := "groupId_example" // string | The group's ID number groupsGroupIdUserInvitesPostRequest := *openapiclient.NewGroupsGroupIdUserInvitesPostRequest([]float32{float32(123)}) // GroupsGroupIdUserInvitesPostRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -547,7 +547,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | | +**groupId** | **string** | The group's ID number | ### Other Parameters @@ -598,8 +598,8 @@ import ( ) func main() { - groupId := "groupId_example" // string | - userInviteId := "userInviteId_example" // string | + groupId := "groupId_example" // string | The group's ID number + userInviteId := "userInviteId_example" // string | The user invite's ID number configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -617,8 +617,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | | -**userInviteId** | **string** | | +**groupId** | **string** | The group's ID number | +**userInviteId** | **string** | The user invite's ID number | ### Other Parameters diff --git a/internal/sdk/api/docs/GroupsGet200ResponseDataInner.md b/internal/sdk/api/docs/GroupsGet200ResponseDataInner.md index b2692e2..9ae7f93 100644 --- a/internal/sdk/api/docs/GroupsGet200ResponseDataInner.md +++ b/internal/sdk/api/docs/GroupsGet200ResponseDataInner.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **AuditLogAccess** | **bool** | Whether the group has access to the audit log | **UnpublishedReleaseAccess** | **bool** | Whether the group has access to unpublished releases | **UsageAnalyticsAccess** | **bool** | Whether the group has access to usage analytics | +**ThemeAccess** | **bool** | Whether the group has access to edit themes | **AccountDetailsAccess** | **bool** | Whether the group has access to account details | **LandingPageAppId** | **NullableString** | The app ID of the landing page | **CreatedAt** | **string** | | @@ -26,7 +27,7 @@ Name | Type | Description | Notes ### NewGroupsGet200ResponseDataInner -`func NewGroupsGet200ResponseDataInner(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *GroupsGet200ResponseDataInner` +`func NewGroupsGet200ResponseDataInner(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, themeAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *GroupsGet200ResponseDataInner` NewGroupsGet200ResponseDataInner instantiates a new GroupsGet200ResponseDataInner object This constructor will assign default values to properties that have it defined, @@ -321,6 +322,26 @@ and a boolean to check if the value has been set. SetUsageAnalyticsAccess sets UsageAnalyticsAccess field to given value. +### GetThemeAccess + +`func (o *GroupsGet200ResponseDataInner) GetThemeAccess() bool` + +GetThemeAccess returns the ThemeAccess field if non-nil, zero value otherwise. + +### GetThemeAccessOk + +`func (o *GroupsGet200ResponseDataInner) GetThemeAccessOk() (*bool, bool)` + +GetThemeAccessOk returns a tuple with the ThemeAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeAccess + +`func (o *GroupsGet200ResponseDataInner) SetThemeAccess(v bool)` + +SetThemeAccess sets ThemeAccess field to given value. + + ### GetAccountDetailsAccess `func (o *GroupsGet200ResponseDataInner) GetAccountDetailsAccess() bool` diff --git a/internal/sdk/api/docs/GroupsGroupIdGet200ResponseData.md b/internal/sdk/api/docs/GroupsGroupIdGet200ResponseData.md index b83a513..97b5e24 100644 --- a/internal/sdk/api/docs/GroupsGroupIdGet200ResponseData.md +++ b/internal/sdk/api/docs/GroupsGroupIdGet200ResponseData.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **AuditLogAccess** | **bool** | Whether the group has access to the audit log | **UnpublishedReleaseAccess** | **bool** | Whether the group has access to unpublished releases | **UsageAnalyticsAccess** | **bool** | Whether the group has access to usage analytics | +**ThemeAccess** | **bool** | Whether the group has access to edit themes | **AccountDetailsAccess** | **bool** | Whether the group has access to account details | **LandingPageAppId** | **NullableString** | The app ID of the landing page | **CreatedAt** | **string** | | @@ -26,7 +27,7 @@ Name | Type | Description | Notes ### NewGroupsGroupIdGet200ResponseData -`func NewGroupsGroupIdGet200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *GroupsGroupIdGet200ResponseData` +`func NewGroupsGroupIdGet200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, themeAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *GroupsGroupIdGet200ResponseData` NewGroupsGroupIdGet200ResponseData instantiates a new GroupsGroupIdGet200ResponseData object This constructor will assign default values to properties that have it defined, @@ -321,6 +322,26 @@ and a boolean to check if the value has been set. SetUsageAnalyticsAccess sets UsageAnalyticsAccess field to given value. +### GetThemeAccess + +`func (o *GroupsGroupIdGet200ResponseData) GetThemeAccess() bool` + +GetThemeAccess returns the ThemeAccess field if non-nil, zero value otherwise. + +### GetThemeAccessOk + +`func (o *GroupsGroupIdGet200ResponseData) GetThemeAccessOk() (*bool, bool)` + +GetThemeAccessOk returns a tuple with the ThemeAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeAccess + +`func (o *GroupsGroupIdGet200ResponseData) SetThemeAccess(v bool)` + +SetThemeAccess sets ThemeAccess field to given value. + + ### GetAccountDetailsAccess `func (o *GroupsGroupIdGet200ResponseData) GetAccountDetailsAccess() bool` diff --git a/internal/sdk/api/docs/GroupsGroupIdGet200ResponseDataUserInvitesInner.md b/internal/sdk/api/docs/GroupsGroupIdGet200ResponseDataUserInvitesInner.md index b7c97da..1ce4397 100644 --- a/internal/sdk/api/docs/GroupsGroupIdGet200ResponseDataUserInvitesInner.md +++ b/internal/sdk/api/docs/GroupsGroupIdGet200ResponseDataUserInvitesInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **UserType** | **NullableString** | | **Metadata** | **map[string]interface{}** | | [default to {}] **CreatedAt** | **string** | | -**InviteLink** | Pointer to **string** | | [optional] +**InviteLink** | Pointer to **string** | User invite link expires 7 days after generation. | [optional] ## Methods diff --git a/internal/sdk/api/docs/GroupsGroupIdMembersPostRequest.md b/internal/sdk/api/docs/GroupsGroupIdMembersPostRequest.md index 0f4d771..3f1b3eb 100644 --- a/internal/sdk/api/docs/GroupsGroupIdMembersPostRequest.md +++ b/internal/sdk/api/docs/GroupsGroupIdMembersPostRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Members** | [**[]GroupsGroupIdPutRequestMembersInner**](GroupsGroupIdPutRequestMembersInner.md) | Users to add to the group. Pass in an empty list to create a group with no members. | +**Members** | [**[]GroupsGroupIdPutRequestMembersInner**](GroupsGroupIdPutRequestMembersInner.md) | Users to add to the group. | ## Methods diff --git a/internal/sdk/api/docs/GroupsGroupIdPatchRequest.md b/internal/sdk/api/docs/GroupsGroupIdPatchRequest.md index 7e4b221..acc4e50 100644 --- a/internal/sdk/api/docs/GroupsGroupIdPatchRequest.md +++ b/internal/sdk/api/docs/GroupsGroupIdPatchRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Operations** | [**[]GroupsGroupIdPatchRequestOperationsInner**](GroupsGroupIdPatchRequestOperationsInner.md) | A list of operations to apply to the group. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | +**Operations** | [**[]UsersUserIdPatchRequestOperationsInner**](UsersUserIdPatchRequestOperationsInner.md) | A list of operations to apply to the group. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | ## Methods ### NewGroupsGroupIdPatchRequest -`func NewGroupsGroupIdPatchRequest(operations []GroupsGroupIdPatchRequestOperationsInner, ) *GroupsGroupIdPatchRequest` +`func NewGroupsGroupIdPatchRequest(operations []UsersUserIdPatchRequestOperationsInner, ) *GroupsGroupIdPatchRequest` NewGroupsGroupIdPatchRequest instantiates a new GroupsGroupIdPatchRequest object This constructor will assign default values to properties that have it defined, @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetOperations -`func (o *GroupsGroupIdPatchRequest) GetOperations() []GroupsGroupIdPatchRequestOperationsInner` +`func (o *GroupsGroupIdPatchRequest) GetOperations() []UsersUserIdPatchRequestOperationsInner` GetOperations returns the Operations field if non-nil, zero value otherwise. ### GetOperationsOk -`func (o *GroupsGroupIdPatchRequest) GetOperationsOk() (*[]GroupsGroupIdPatchRequestOperationsInner, bool)` +`func (o *GroupsGroupIdPatchRequest) GetOperationsOk() (*[]UsersUserIdPatchRequestOperationsInner, bool)` GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOperations -`func (o *GroupsGroupIdPatchRequest) SetOperations(v []GroupsGroupIdPatchRequestOperationsInner)` +`func (o *GroupsGroupIdPatchRequest) SetOperations(v []UsersUserIdPatchRequestOperationsInner)` SetOperations sets Operations field to given value. diff --git a/internal/sdk/api/docs/GroupsGroupIdPut200ResponseData.md b/internal/sdk/api/docs/GroupsGroupIdPut200ResponseData.md index 10e0350..c8501ae 100644 --- a/internal/sdk/api/docs/GroupsGroupIdPut200ResponseData.md +++ b/internal/sdk/api/docs/GroupsGroupIdPut200ResponseData.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **AuditLogAccess** | **bool** | Whether the group has access to the audit log | **UnpublishedReleaseAccess** | **bool** | Whether the group has access to unpublished releases | **UsageAnalyticsAccess** | **bool** | Whether the group has access to usage analytics | +**ThemeAccess** | **bool** | Whether the group has access to edit themes | **AccountDetailsAccess** | **bool** | Whether the group has access to account details | **LandingPageAppId** | **NullableString** | The app ID of the landing page | **CreatedAt** | **string** | | @@ -26,7 +27,7 @@ Name | Type | Description | Notes ### NewGroupsGroupIdPut200ResponseData -`func NewGroupsGroupIdPut200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *GroupsGroupIdPut200ResponseData` +`func NewGroupsGroupIdPut200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, themeAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *GroupsGroupIdPut200ResponseData` NewGroupsGroupIdPut200ResponseData instantiates a new GroupsGroupIdPut200ResponseData object This constructor will assign default values to properties that have it defined, @@ -321,6 +322,26 @@ and a boolean to check if the value has been set. SetUsageAnalyticsAccess sets UsageAnalyticsAccess field to given value. +### GetThemeAccess + +`func (o *GroupsGroupIdPut200ResponseData) GetThemeAccess() bool` + +GetThemeAccess returns the ThemeAccess field if non-nil, zero value otherwise. + +### GetThemeAccessOk + +`func (o *GroupsGroupIdPut200ResponseData) GetThemeAccessOk() (*bool, bool)` + +GetThemeAccessOk returns a tuple with the ThemeAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeAccess + +`func (o *GroupsGroupIdPut200ResponseData) SetThemeAccess(v bool)` + +SetThemeAccess sets ThemeAccess field to given value. + + ### GetAccountDetailsAccess `func (o *GroupsGroupIdPut200ResponseData) GetAccountDetailsAccess() bool` diff --git a/internal/sdk/api/docs/GroupsGroupIdPutRequest.md b/internal/sdk/api/docs/GroupsGroupIdPutRequest.md index 14d9ca1..0291760 100644 --- a/internal/sdk/api/docs/GroupsGroupIdPutRequest.md +++ b/internal/sdk/api/docs/GroupsGroupIdPutRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | The name of the group. | [optional] -**Members** | Pointer to [**[]GroupsGroupIdPutRequestMembersInner**](GroupsGroupIdPutRequestMembersInner.md) | Users to add to the group. Pass in an empty list to create a group with no members. | [optional] +**Members** | Pointer to [**[]GroupsGroupIdPutRequestMembersInner**](GroupsGroupIdPutRequestMembersInner.md) | Users to add to the group. | [optional] **UniversalAppAccess** | Pointer to **string** | The universal app access level for the group. This denotes the access level that this group has for all apps. | [optional] **UniversalResourceAccess** | Pointer to **string** | The universal resource access level for the group. This denotes the access level that this group has for all resources. | [optional] **UniversalWorkflowAccess** | Pointer to **string** | The universal workflow access level for the group. This denotes the access level that this group has for all workflows. | [optional] @@ -15,6 +15,7 @@ Name | Type | Description | Notes **AuditLogAccess** | Pointer to **bool** | Whether the group has access to the audit log | [optional] **UnpublishedReleaseAccess** | Pointer to **bool** | Whether the group has access to unpublished releases | [optional] **UsageAnalyticsAccess** | Pointer to **bool** | Whether the group has access to usage analytics | [optional] +**ThemeAccess** | Pointer to **bool** | Whether the group has access to edit themes | [optional] **AccountDetailsAccess** | Pointer to **bool** | Whether the group has access to account details | [optional] **LandingPageAppId** | Pointer to **NullableString** | The app ID of the landing page | [optional] **CreatedAt** | Pointer to **string** | | [optional] @@ -314,6 +315,31 @@ SetUsageAnalyticsAccess sets UsageAnalyticsAccess field to given value. HasUsageAnalyticsAccess returns a boolean if a field has been set. +### GetThemeAccess + +`func (o *GroupsGroupIdPutRequest) GetThemeAccess() bool` + +GetThemeAccess returns the ThemeAccess field if non-nil, zero value otherwise. + +### GetThemeAccessOk + +`func (o *GroupsGroupIdPutRequest) GetThemeAccessOk() (*bool, bool)` + +GetThemeAccessOk returns a tuple with the ThemeAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeAccess + +`func (o *GroupsGroupIdPutRequest) SetThemeAccess(v bool)` + +SetThemeAccess sets ThemeAccess field to given value. + +### HasThemeAccess + +`func (o *GroupsGroupIdPutRequest) HasThemeAccess() bool` + +HasThemeAccess returns a boolean if a field has been set. + ### GetAccountDetailsAccess `func (o *GroupsGroupIdPutRequest) GetAccountDetailsAccess() bool` diff --git a/internal/sdk/api/docs/GroupsPost200ResponseData.md b/internal/sdk/api/docs/GroupsPost200ResponseData.md index fb18cb1..cc2d0d3 100644 --- a/internal/sdk/api/docs/GroupsPost200ResponseData.md +++ b/internal/sdk/api/docs/GroupsPost200ResponseData.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **AuditLogAccess** | **bool** | Whether the group has access to the audit log | **UnpublishedReleaseAccess** | **bool** | Whether the group has access to unpublished releases | **UsageAnalyticsAccess** | **bool** | Whether the group has access to usage analytics | +**ThemeAccess** | **bool** | Whether the group has access to edit themes | **AccountDetailsAccess** | **bool** | Whether the group has access to account details | **LandingPageAppId** | **NullableString** | The app ID of the landing page | **CreatedAt** | **string** | | @@ -26,7 +27,7 @@ Name | Type | Description | Notes ### NewGroupsPost200ResponseData -`func NewGroupsPost200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *GroupsPost200ResponseData` +`func NewGroupsPost200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, themeAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string, ) *GroupsPost200ResponseData` NewGroupsPost200ResponseData instantiates a new GroupsPost200ResponseData object This constructor will assign default values to properties that have it defined, @@ -321,6 +322,26 @@ and a boolean to check if the value has been set. SetUsageAnalyticsAccess sets UsageAnalyticsAccess field to given value. +### GetThemeAccess + +`func (o *GroupsPost200ResponseData) GetThemeAccess() bool` + +GetThemeAccess returns the ThemeAccess field if non-nil, zero value otherwise. + +### GetThemeAccessOk + +`func (o *GroupsPost200ResponseData) GetThemeAccessOk() (*bool, bool)` + +GetThemeAccessOk returns a tuple with the ThemeAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeAccess + +`func (o *GroupsPost200ResponseData) SetThemeAccess(v bool)` + +SetThemeAccess sets ThemeAccess field to given value. + + ### GetAccountDetailsAccess `func (o *GroupsPost200ResponseData) GetAccountDetailsAccess() bool` diff --git a/internal/sdk/api/docs/GroupsPostRequest.md b/internal/sdk/api/docs/GroupsPostRequest.md index 718cfad..ee97baf 100644 --- a/internal/sdk/api/docs/GroupsPostRequest.md +++ b/internal/sdk/api/docs/GroupsPostRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | The name of the group. | -**Members** | Pointer to [**[]GroupsGroupIdPutRequestMembersInner**](GroupsGroupIdPutRequestMembersInner.md) | Users to add to the group. Pass in an empty list to create a group with no members. | [optional] +**Members** | Pointer to [**[]GroupsGroupIdPutRequestMembersInner**](GroupsGroupIdPutRequestMembersInner.md) | Users to add to the group. | [optional] **UniversalAppAccess** | Pointer to **string** | The universal app access level for the group. This denotes the access level that this group has for all apps. | [optional] **UniversalResourceAccess** | Pointer to **string** | The universal resource access level for the group. This denotes the access level that this group has for all resources. | [optional] **UniversalWorkflowAccess** | Pointer to **string** | The universal workflow access level for the group. This denotes the access level that this group has for all workflows. | [optional] @@ -15,6 +15,7 @@ Name | Type | Description | Notes **AuditLogAccess** | Pointer to **bool** | Whether the group has access to the audit log | [optional] **UnpublishedReleaseAccess** | Pointer to **bool** | Whether the group has access to unpublished releases | [optional] **UsageAnalyticsAccess** | Pointer to **bool** | Whether the group has access to usage analytics | [optional] +**ThemeAccess** | Pointer to **bool** | Whether the group has access to edit themes | [optional] **AccountDetailsAccess** | Pointer to **bool** | Whether the group has access to account details | [optional] **LandingPageAppId** | Pointer to **NullableString** | The app ID of the landing page | [optional] **CreatedAt** | Pointer to **string** | | [optional] @@ -309,6 +310,31 @@ SetUsageAnalyticsAccess sets UsageAnalyticsAccess field to given value. HasUsageAnalyticsAccess returns a boolean if a field has been set. +### GetThemeAccess + +`func (o *GroupsPostRequest) GetThemeAccess() bool` + +GetThemeAccess returns the ThemeAccess field if non-nil, zero value otherwise. + +### GetThemeAccessOk + +`func (o *GroupsPostRequest) GetThemeAccessOk() (*bool, bool)` + +GetThemeAccessOk returns a tuple with the ThemeAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeAccess + +`func (o *GroupsPostRequest) SetThemeAccess(v bool)` + +SetThemeAccess sets ThemeAccess field to given value. + +### HasThemeAccess + +`func (o *GroupsPostRequest) HasThemeAccess() bool` + +HasThemeAccess returns a boolean if a field has been set. + ### GetAccountDetailsAccess `func (o *GroupsPostRequest) GetAccountDetailsAccess() bool` diff --git a/internal/sdk/api/docs/InfoAPI.md b/internal/sdk/api/docs/InfoAPI.md new file mode 100644 index 0000000..80d12d5 --- /dev/null +++ b/internal/sdk/api/docs/InfoAPI.md @@ -0,0 +1,70 @@ +# \InfoAPI + +All URIs are relative to *http://.* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InfoIpAllowlistGet**](InfoAPI.md#InfoIpAllowlistGet) | **Get** /info/ip_allowlist | Get IP allowlist by region + + + +## InfoIpAllowlistGet + +> InfoIpAllowlistGet200Response InfoIpAllowlistGet(ctx).Execute() + +Get IP allowlist by region + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InfoAPI.InfoIpAllowlistGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.InfoIpAllowlistGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InfoIpAllowlistGet`: InfoIpAllowlistGet200Response + fmt.Fprintf(os.Stdout, "Response from `InfoAPI.InfoIpAllowlistGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiInfoIpAllowlistGetRequest struct via the builder pattern + + +### Return type + +[**InfoIpAllowlistGet200Response**](InfoIpAllowlistGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/InfoIpAllowlistGet200Response.md b/internal/sdk/api/docs/InfoIpAllowlistGet200Response.md new file mode 100644 index 0000000..a010de1 --- /dev/null +++ b/internal/sdk/api/docs/InfoIpAllowlistGet200Response.md @@ -0,0 +1,72 @@ +# InfoIpAllowlistGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**InfoIpAllowlistGet200ResponseData**](InfoIpAllowlistGet200ResponseData.md) | | + +## Methods + +### NewInfoIpAllowlistGet200Response + +`func NewInfoIpAllowlistGet200Response(success bool, data InfoIpAllowlistGet200ResponseData, ) *InfoIpAllowlistGet200Response` + +NewInfoIpAllowlistGet200Response instantiates a new InfoIpAllowlistGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInfoIpAllowlistGet200ResponseWithDefaults + +`func NewInfoIpAllowlistGet200ResponseWithDefaults() *InfoIpAllowlistGet200Response` + +NewInfoIpAllowlistGet200ResponseWithDefaults instantiates a new InfoIpAllowlistGet200Response 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 + +### GetSuccess + +`func (o *InfoIpAllowlistGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *InfoIpAllowlistGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *InfoIpAllowlistGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *InfoIpAllowlistGet200Response) GetData() InfoIpAllowlistGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InfoIpAllowlistGet200Response) GetDataOk() (*InfoIpAllowlistGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *InfoIpAllowlistGet200Response) SetData(v InfoIpAllowlistGet200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/InfoIpAllowlistGet200ResponseData.md b/internal/sdk/api/docs/InfoIpAllowlistGet200ResponseData.md new file mode 100644 index 0000000..17a400e --- /dev/null +++ b/internal/sdk/api/docs/InfoIpAllowlistGet200ResponseData.md @@ -0,0 +1,51 @@ +# InfoIpAllowlistGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpAddresses** | [**InfoIpAllowlistGet200ResponseDataIpAddresses**](InfoIpAllowlistGet200ResponseDataIpAddresses.md) | | + +## Methods + +### NewInfoIpAllowlistGet200ResponseData + +`func NewInfoIpAllowlistGet200ResponseData(ipAddresses InfoIpAllowlistGet200ResponseDataIpAddresses, ) *InfoIpAllowlistGet200ResponseData` + +NewInfoIpAllowlistGet200ResponseData instantiates a new InfoIpAllowlistGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInfoIpAllowlistGet200ResponseDataWithDefaults + +`func NewInfoIpAllowlistGet200ResponseDataWithDefaults() *InfoIpAllowlistGet200ResponseData` + +NewInfoIpAllowlistGet200ResponseDataWithDefaults instantiates a new InfoIpAllowlistGet200ResponseData 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 + +### GetIpAddresses + +`func (o *InfoIpAllowlistGet200ResponseData) GetIpAddresses() InfoIpAllowlistGet200ResponseDataIpAddresses` + +GetIpAddresses returns the IpAddresses field if non-nil, zero value otherwise. + +### GetIpAddressesOk + +`func (o *InfoIpAllowlistGet200ResponseData) GetIpAddressesOk() (*InfoIpAllowlistGet200ResponseDataIpAddresses, bool)` + +GetIpAddressesOk returns a tuple with the IpAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddresses + +`func (o *InfoIpAllowlistGet200ResponseData) SetIpAddresses(v InfoIpAllowlistGet200ResponseDataIpAddresses)` + +SetIpAddresses sets IpAddresses field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/InfoIpAllowlistGet200ResponseDataIpAddresses.md b/internal/sdk/api/docs/InfoIpAllowlistGet200ResponseDataIpAddresses.md new file mode 100644 index 0000000..f602640 --- /dev/null +++ b/internal/sdk/api/docs/InfoIpAllowlistGet200ResponseDataIpAddresses.md @@ -0,0 +1,93 @@ +# InfoIpAllowlistGet200ResponseDataIpAddresses + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UsWest2** | **string** | | +**EuCentral1** | **string** | | +**ApSoutheast1** | **string** | | + +## Methods + +### NewInfoIpAllowlistGet200ResponseDataIpAddresses + +`func NewInfoIpAllowlistGet200ResponseDataIpAddresses(usWest2 string, euCentral1 string, apSoutheast1 string, ) *InfoIpAllowlistGet200ResponseDataIpAddresses` + +NewInfoIpAllowlistGet200ResponseDataIpAddresses instantiates a new InfoIpAllowlistGet200ResponseDataIpAddresses object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInfoIpAllowlistGet200ResponseDataIpAddressesWithDefaults + +`func NewInfoIpAllowlistGet200ResponseDataIpAddressesWithDefaults() *InfoIpAllowlistGet200ResponseDataIpAddresses` + +NewInfoIpAllowlistGet200ResponseDataIpAddressesWithDefaults instantiates a new InfoIpAllowlistGet200ResponseDataIpAddresses 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 + +### GetUsWest2 + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetUsWest2() string` + +GetUsWest2 returns the UsWest2 field if non-nil, zero value otherwise. + +### GetUsWest2Ok + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetUsWest2Ok() (*string, bool)` + +GetUsWest2Ok returns a tuple with the UsWest2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsWest2 + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) SetUsWest2(v string)` + +SetUsWest2 sets UsWest2 field to given value. + + +### GetEuCentral1 + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetEuCentral1() string` + +GetEuCentral1 returns the EuCentral1 field if non-nil, zero value otherwise. + +### GetEuCentral1Ok + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetEuCentral1Ok() (*string, bool)` + +GetEuCentral1Ok returns a tuple with the EuCentral1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEuCentral1 + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) SetEuCentral1(v string)` + +SetEuCentral1 sets EuCentral1 field to given value. + + +### GetApSoutheast1 + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetApSoutheast1() string` + +GetApSoutheast1 returns the ApSoutheast1 field if non-nil, zero value otherwise. + +### GetApSoutheast1Ok + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetApSoutheast1Ok() (*string, bool)` + +GetApSoutheast1Ok returns a tuple with the ApSoutheast1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApSoutheast1 + +`func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) SetApSoutheast1(v string)` + +SetApSoutheast1 sets ApSoutheast1 field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/IpAllowlist.md b/internal/sdk/api/docs/IpAllowlist.md new file mode 100644 index 0000000..b07cbcf --- /dev/null +++ b/internal/sdk/api/docs/IpAllowlist.md @@ -0,0 +1,51 @@ +# IpAllowlist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpAddresses** | [**InfoIpAllowlistGet200ResponseDataIpAddresses**](InfoIpAllowlistGet200ResponseDataIpAddresses.md) | | + +## Methods + +### NewIpAllowlist + +`func NewIpAllowlist(ipAddresses InfoIpAllowlistGet200ResponseDataIpAddresses, ) *IpAllowlist` + +NewIpAllowlist instantiates a new IpAllowlist object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIpAllowlistWithDefaults + +`func NewIpAllowlistWithDefaults() *IpAllowlist` + +NewIpAllowlistWithDefaults instantiates a new IpAllowlist 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 + +### GetIpAddresses + +`func (o *IpAllowlist) GetIpAddresses() InfoIpAllowlistGet200ResponseDataIpAddresses` + +GetIpAddresses returns the IpAddresses field if non-nil, zero value otherwise. + +### GetIpAddressesOk + +`func (o *IpAllowlist) GetIpAddressesOk() (*InfoIpAllowlistGet200ResponseDataIpAddresses, bool)` + +GetIpAddressesOk returns a tuple with the IpAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddresses + +`func (o *IpAllowlist) SetIpAddresses(v InfoIpAllowlistGet200ResponseDataIpAddresses)` + +SetIpAddresses sets IpAddresses field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/MoveOperation.md b/internal/sdk/api/docs/MoveOperation.md new file mode 100644 index 0000000..312c335 --- /dev/null +++ b/internal/sdk/api/docs/MoveOperation.md @@ -0,0 +1,93 @@ +# MoveOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Op** | **string** | | +**Path** | **string** | | +**From** | **string** | | + +## Methods + +### NewMoveOperation + +`func NewMoveOperation(op string, path string, from string, ) *MoveOperation` + +NewMoveOperation instantiates a new MoveOperation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMoveOperationWithDefaults + +`func NewMoveOperationWithDefaults() *MoveOperation` + +NewMoveOperationWithDefaults instantiates a new MoveOperation 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 + +### GetOp + +`func (o *MoveOperation) GetOp() string` + +GetOp returns the Op field if non-nil, zero value otherwise. + +### GetOpOk + +`func (o *MoveOperation) GetOpOk() (*string, bool)` + +GetOpOk returns a tuple with the Op field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOp + +`func (o *MoveOperation) SetOp(v string)` + +SetOp sets Op field to given value. + + +### GetPath + +`func (o *MoveOperation) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *MoveOperation) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *MoveOperation) SetPath(v string)` + +SetPath sets Path field to given value. + + +### GetFrom + +`func (o *MoveOperation) GetFrom() string` + +GetFrom returns the From field if non-nil, zero value otherwise. + +### GetFromOk + +`func (o *MoveOperation) GetFromOk() (*string, bool)` + +GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrom + +`func (o *MoveOperation) SetFrom(v string)` + +SetFrom sets From field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OIDC.md b/internal/sdk/api/docs/OIDC.md new file mode 100644 index 0000000..3af97a1 --- /dev/null +++ b/internal/sdk/api/docs/OIDC.md @@ -0,0 +1,412 @@ +# OIDC + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigType** | **string** | | +**OidcClientId** | **string** | | +**OidcClientSecret** | **string** | | +**OidcScopes** | **string** | | +**OidcAuthUrl** | **string** | | +**OidcTokenUrl** | **string** | | +**OidcUserinfoUrl** | Pointer to **string** | | [optional] +**OidcAudience** | Pointer to **string** | | [optional] +**JwtEmailKey** | **string** | | +**JwtRolesKey** | Pointer to **string** | | [optional] +**JwtFirstNameKey** | **string** | | +**JwtLastNameKey** | **string** | | +**RolesMapping** | Pointer to **string** | | [optional] +**JitEnabled** | **bool** | | +**RestrictedDomain** | Pointer to **string** | | [optional] +**TriggerLoginAutomatically** | **bool** | | +**DisableEmailPasswordLogin** | **bool** | | + +## Methods + +### NewOIDC + +`func NewOIDC(configType string, oidcClientId string, oidcClientSecret string, oidcScopes string, oidcAuthUrl string, oidcTokenUrl string, jwtEmailKey string, jwtFirstNameKey string, jwtLastNameKey string, jitEnabled bool, triggerLoginAutomatically bool, disableEmailPasswordLogin bool, ) *OIDC` + +NewOIDC instantiates a new OIDC object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOIDCWithDefaults + +`func NewOIDCWithDefaults() *OIDC` + +NewOIDCWithDefaults instantiates a new OIDC 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 + +### GetConfigType + +`func (o *OIDC) GetConfigType() string` + +GetConfigType returns the ConfigType field if non-nil, zero value otherwise. + +### GetConfigTypeOk + +`func (o *OIDC) GetConfigTypeOk() (*string, bool)` + +GetConfigTypeOk returns a tuple with the ConfigType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigType + +`func (o *OIDC) SetConfigType(v string)` + +SetConfigType sets ConfigType field to given value. + + +### GetOidcClientId + +`func (o *OIDC) GetOidcClientId() string` + +GetOidcClientId returns the OidcClientId field if non-nil, zero value otherwise. + +### GetOidcClientIdOk + +`func (o *OIDC) GetOidcClientIdOk() (*string, bool)` + +GetOidcClientIdOk returns a tuple with the OidcClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcClientId + +`func (o *OIDC) SetOidcClientId(v string)` + +SetOidcClientId sets OidcClientId field to given value. + + +### GetOidcClientSecret + +`func (o *OIDC) GetOidcClientSecret() string` + +GetOidcClientSecret returns the OidcClientSecret field if non-nil, zero value otherwise. + +### GetOidcClientSecretOk + +`func (o *OIDC) GetOidcClientSecretOk() (*string, bool)` + +GetOidcClientSecretOk returns a tuple with the OidcClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcClientSecret + +`func (o *OIDC) SetOidcClientSecret(v string)` + +SetOidcClientSecret sets OidcClientSecret field to given value. + + +### GetOidcScopes + +`func (o *OIDC) GetOidcScopes() string` + +GetOidcScopes returns the OidcScopes field if non-nil, zero value otherwise. + +### GetOidcScopesOk + +`func (o *OIDC) GetOidcScopesOk() (*string, bool)` + +GetOidcScopesOk returns a tuple with the OidcScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcScopes + +`func (o *OIDC) SetOidcScopes(v string)` + +SetOidcScopes sets OidcScopes field to given value. + + +### GetOidcAuthUrl + +`func (o *OIDC) GetOidcAuthUrl() string` + +GetOidcAuthUrl returns the OidcAuthUrl field if non-nil, zero value otherwise. + +### GetOidcAuthUrlOk + +`func (o *OIDC) GetOidcAuthUrlOk() (*string, bool)` + +GetOidcAuthUrlOk returns a tuple with the OidcAuthUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcAuthUrl + +`func (o *OIDC) SetOidcAuthUrl(v string)` + +SetOidcAuthUrl sets OidcAuthUrl field to given value. + + +### GetOidcTokenUrl + +`func (o *OIDC) GetOidcTokenUrl() string` + +GetOidcTokenUrl returns the OidcTokenUrl field if non-nil, zero value otherwise. + +### GetOidcTokenUrlOk + +`func (o *OIDC) GetOidcTokenUrlOk() (*string, bool)` + +GetOidcTokenUrlOk returns a tuple with the OidcTokenUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcTokenUrl + +`func (o *OIDC) SetOidcTokenUrl(v string)` + +SetOidcTokenUrl sets OidcTokenUrl field to given value. + + +### GetOidcUserinfoUrl + +`func (o *OIDC) GetOidcUserinfoUrl() string` + +GetOidcUserinfoUrl returns the OidcUserinfoUrl field if non-nil, zero value otherwise. + +### GetOidcUserinfoUrlOk + +`func (o *OIDC) GetOidcUserinfoUrlOk() (*string, bool)` + +GetOidcUserinfoUrlOk returns a tuple with the OidcUserinfoUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcUserinfoUrl + +`func (o *OIDC) SetOidcUserinfoUrl(v string)` + +SetOidcUserinfoUrl sets OidcUserinfoUrl field to given value. + +### HasOidcUserinfoUrl + +`func (o *OIDC) HasOidcUserinfoUrl() bool` + +HasOidcUserinfoUrl returns a boolean if a field has been set. + +### GetOidcAudience + +`func (o *OIDC) GetOidcAudience() string` + +GetOidcAudience returns the OidcAudience field if non-nil, zero value otherwise. + +### GetOidcAudienceOk + +`func (o *OIDC) GetOidcAudienceOk() (*string, bool)` + +GetOidcAudienceOk returns a tuple with the OidcAudience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcAudience + +`func (o *OIDC) SetOidcAudience(v string)` + +SetOidcAudience sets OidcAudience field to given value. + +### HasOidcAudience + +`func (o *OIDC) HasOidcAudience() bool` + +HasOidcAudience returns a boolean if a field has been set. + +### GetJwtEmailKey + +`func (o *OIDC) GetJwtEmailKey() string` + +GetJwtEmailKey returns the JwtEmailKey field if non-nil, zero value otherwise. + +### GetJwtEmailKeyOk + +`func (o *OIDC) GetJwtEmailKeyOk() (*string, bool)` + +GetJwtEmailKeyOk returns a tuple with the JwtEmailKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtEmailKey + +`func (o *OIDC) SetJwtEmailKey(v string)` + +SetJwtEmailKey sets JwtEmailKey field to given value. + + +### GetJwtRolesKey + +`func (o *OIDC) GetJwtRolesKey() string` + +GetJwtRolesKey returns the JwtRolesKey field if non-nil, zero value otherwise. + +### GetJwtRolesKeyOk + +`func (o *OIDC) GetJwtRolesKeyOk() (*string, bool)` + +GetJwtRolesKeyOk returns a tuple with the JwtRolesKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtRolesKey + +`func (o *OIDC) SetJwtRolesKey(v string)` + +SetJwtRolesKey sets JwtRolesKey field to given value. + +### HasJwtRolesKey + +`func (o *OIDC) HasJwtRolesKey() bool` + +HasJwtRolesKey returns a boolean if a field has been set. + +### GetJwtFirstNameKey + +`func (o *OIDC) GetJwtFirstNameKey() string` + +GetJwtFirstNameKey returns the JwtFirstNameKey field if non-nil, zero value otherwise. + +### GetJwtFirstNameKeyOk + +`func (o *OIDC) GetJwtFirstNameKeyOk() (*string, bool)` + +GetJwtFirstNameKeyOk returns a tuple with the JwtFirstNameKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtFirstNameKey + +`func (o *OIDC) SetJwtFirstNameKey(v string)` + +SetJwtFirstNameKey sets JwtFirstNameKey field to given value. + + +### GetJwtLastNameKey + +`func (o *OIDC) GetJwtLastNameKey() string` + +GetJwtLastNameKey returns the JwtLastNameKey field if non-nil, zero value otherwise. + +### GetJwtLastNameKeyOk + +`func (o *OIDC) GetJwtLastNameKeyOk() (*string, bool)` + +GetJwtLastNameKeyOk returns a tuple with the JwtLastNameKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtLastNameKey + +`func (o *OIDC) SetJwtLastNameKey(v string)` + +SetJwtLastNameKey sets JwtLastNameKey field to given value. + + +### GetRolesMapping + +`func (o *OIDC) GetRolesMapping() string` + +GetRolesMapping returns the RolesMapping field if non-nil, zero value otherwise. + +### GetRolesMappingOk + +`func (o *OIDC) GetRolesMappingOk() (*string, bool)` + +GetRolesMappingOk returns a tuple with the RolesMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRolesMapping + +`func (o *OIDC) SetRolesMapping(v string)` + +SetRolesMapping sets RolesMapping field to given value. + +### HasRolesMapping + +`func (o *OIDC) HasRolesMapping() bool` + +HasRolesMapping returns a boolean if a field has been set. + +### GetJitEnabled + +`func (o *OIDC) GetJitEnabled() bool` + +GetJitEnabled returns the JitEnabled field if non-nil, zero value otherwise. + +### GetJitEnabledOk + +`func (o *OIDC) GetJitEnabledOk() (*bool, bool)` + +GetJitEnabledOk returns a tuple with the JitEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJitEnabled + +`func (o *OIDC) SetJitEnabled(v bool)` + +SetJitEnabled sets JitEnabled field to given value. + + +### GetRestrictedDomain + +`func (o *OIDC) GetRestrictedDomain() string` + +GetRestrictedDomain returns the RestrictedDomain field if non-nil, zero value otherwise. + +### GetRestrictedDomainOk + +`func (o *OIDC) GetRestrictedDomainOk() (*string, bool)` + +GetRestrictedDomainOk returns a tuple with the RestrictedDomain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestrictedDomain + +`func (o *OIDC) SetRestrictedDomain(v string)` + +SetRestrictedDomain sets RestrictedDomain field to given value. + +### HasRestrictedDomain + +`func (o *OIDC) HasRestrictedDomain() bool` + +HasRestrictedDomain returns a boolean if a field has been set. + +### GetTriggerLoginAutomatically + +`func (o *OIDC) GetTriggerLoginAutomatically() bool` + +GetTriggerLoginAutomatically returns the TriggerLoginAutomatically field if non-nil, zero value otherwise. + +### GetTriggerLoginAutomaticallyOk + +`func (o *OIDC) GetTriggerLoginAutomaticallyOk() (*bool, bool)` + +GetTriggerLoginAutomaticallyOk returns a tuple with the TriggerLoginAutomatically field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerLoginAutomatically + +`func (o *OIDC) SetTriggerLoginAutomatically(v bool)` + +SetTriggerLoginAutomatically sets TriggerLoginAutomatically field to given value. + + +### GetDisableEmailPasswordLogin + +`func (o *OIDC) GetDisableEmailPasswordLogin() bool` + +GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field if non-nil, zero value otherwise. + +### GetDisableEmailPasswordLoginOk + +`func (o *OIDC) GetDisableEmailPasswordLoginOk() (*bool, bool)` + +GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableEmailPasswordLogin + +`func (o *OIDC) SetDisableEmailPasswordLogin(v bool)` + +SetDisableEmailPasswordLogin sets DisableEmailPasswordLogin field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ObservabilityAPI.md b/internal/sdk/api/docs/ObservabilityAPI.md index ed220e0..b933b87 100644 --- a/internal/sdk/api/docs/ObservabilityAPI.md +++ b/internal/sdk/api/docs/ObservabilityAPI.md @@ -33,7 +33,7 @@ import ( ) func main() { - configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The id of the observability configuration to delete. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -51,7 +51,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**configId** | **string** | | +**configId** | **string** | The id of the observability configuration to delete. | ### Other Parameters @@ -101,7 +101,7 @@ import ( ) func main() { - configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + configId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The id of the observability configuration to update. observabilityConfigConfigIdPutRequest := *openapiclient.NewObservabilityConfigConfigIdPutRequest() // ObservabilityConfigConfigIdPutRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -122,7 +122,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**configId** | **string** | | +**configId** | **string** | The id of the observability configuration to update. | ### Other Parameters @@ -300,7 +300,7 @@ import ( ) func main() { - provider := *openapiclient.NewObservabilityProviderProviderTestPostProviderParameter() // ObservabilityProviderProviderTestPostProviderParameter | + provider := *openapiclient.NewObservabilityProviderProviderTestPostProviderParameter() // ObservabilityProviderProviderTestPostProviderParameter | The observability provider name, either \"Sentry\" or \"Datadog\" configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -320,7 +320,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**provider** | [**ObservabilityProviderProviderTestPostProviderParameter**](.md) | | +**provider** | [**ObservabilityProviderProviderTestPostProviderParameter**](.md) | The observability provider name, either \"Sentry\" or \"Datadog\" | ### Other Parameters diff --git a/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfig.md b/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfig.md index 6a66b85..abb7bda 100644 --- a/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfig.md +++ b/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfig.md @@ -6,13 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Provider** | **string** | This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration. | **Dsn** | **string** | This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions. | +**CaCerts** | Pointer to **[]string** | This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient | [optional] **ApiKey** | **string** | This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API. | +**Site** | **string** | This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com. | [default to "US1"] ## Methods ### NewObservabilityConfigGet200ResponseDataInnerConfig -`func NewObservabilityConfigGet200ResponseDataInnerConfig(provider string, dsn string, apiKey string, ) *ObservabilityConfigGet200ResponseDataInnerConfig` +`func NewObservabilityConfigGet200ResponseDataInnerConfig(provider string, dsn string, apiKey string, site string, ) *ObservabilityConfigGet200ResponseDataInnerConfig` NewObservabilityConfigGet200ResponseDataInnerConfig instantiates a new ObservabilityConfigGet200ResponseDataInnerConfig object This constructor will assign default values to properties that have it defined, @@ -67,6 +69,31 @@ and a boolean to check if the value has been set. SetDsn sets Dsn field to given value. +### GetCaCerts + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfig) GetCaCerts() []string` + +GetCaCerts returns the CaCerts field if non-nil, zero value otherwise. + +### GetCaCertsOk + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfig) GetCaCertsOk() (*[]string, bool)` + +GetCaCertsOk returns a tuple with the CaCerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaCerts + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfig) SetCaCerts(v []string)` + +SetCaCerts sets CaCerts field to given value. + +### HasCaCerts + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfig) HasCaCerts() bool` + +HasCaCerts returns a boolean if a field has been set. + ### GetApiKey `func (o *ObservabilityConfigGet200ResponseDataInnerConfig) GetApiKey() string` @@ -87,6 +114,26 @@ and a boolean to check if the value has been set. SetApiKey sets ApiKey field to given value. +### GetSite + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfig) GetSite() string` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfig) GetSiteOk() (*string, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfig) SetSite(v string)` + +SetSite sets Site field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfigOneOf.md b/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfigOneOf.md index f93a1a6..5f066e8 100644 --- a/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfigOneOf.md +++ b/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfigOneOf.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Provider** | **string** | This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration. | **Dsn** | **string** | This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions. | +**CaCerts** | Pointer to **[]string** | This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient | [optional] ## Methods @@ -66,6 +67,31 @@ and a boolean to check if the value has been set. SetDsn sets Dsn field to given value. +### GetCaCerts + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) GetCaCerts() []string` + +GetCaCerts returns the CaCerts field if non-nil, zero value otherwise. + +### GetCaCertsOk + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) GetCaCertsOk() (*[]string, bool)` + +GetCaCertsOk returns a tuple with the CaCerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaCerts + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) SetCaCerts(v []string)` + +SetCaCerts sets CaCerts field to given value. + +### HasCaCerts + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) HasCaCerts() bool` + +HasCaCerts returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfigOneOf1.md b/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfigOneOf1.md index 91e7692..ee09e5b 100644 --- a/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfigOneOf1.md +++ b/internal/sdk/api/docs/ObservabilityConfigGet200ResponseDataInnerConfigOneOf1.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Provider** | **string** | This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration. | **ApiKey** | **string** | This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API. | +**Site** | **string** | This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com. | [default to "US1"] ## Methods ### NewObservabilityConfigGet200ResponseDataInnerConfigOneOf1 -`func NewObservabilityConfigGet200ResponseDataInnerConfigOneOf1(provider string, apiKey string, ) *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1` +`func NewObservabilityConfigGet200ResponseDataInnerConfigOneOf1(provider string, apiKey string, site string, ) *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1` NewObservabilityConfigGet200ResponseDataInnerConfigOneOf1 instantiates a new ObservabilityConfigGet200ResponseDataInnerConfigOneOf1 object This constructor will assign default values to properties that have it defined, @@ -66,6 +67,26 @@ and a boolean to check if the value has been set. SetApiKey sets ApiKey field to given value. +### GetSite + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) GetSite() string` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) GetSiteOk() (*string, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) SetSite(v string)` + +SetSite sets Site field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf.md b/internal/sdk/api/docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf.md new file mode 100644 index 0000000..5e8e430 --- /dev/null +++ b/internal/sdk/api/docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf.md @@ -0,0 +1,72 @@ +# ObservabilityProviderProviderTestPost200ResponseDataOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | Send test error failed | +**Message** | **string** | Error message | + +## Methods + +### NewObservabilityProviderProviderTestPost200ResponseDataOneOf + +`func NewObservabilityProviderProviderTestPost200ResponseDataOneOf(success bool, message string, ) *ObservabilityProviderProviderTestPost200ResponseDataOneOf` + +NewObservabilityProviderProviderTestPost200ResponseDataOneOf instantiates a new ObservabilityProviderProviderTestPost200ResponseDataOneOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewObservabilityProviderProviderTestPost200ResponseDataOneOfWithDefaults + +`func NewObservabilityProviderProviderTestPost200ResponseDataOneOfWithDefaults() *ObservabilityProviderProviderTestPost200ResponseDataOneOf` + +NewObservabilityProviderProviderTestPost200ResponseDataOneOfWithDefaults instantiates a new ObservabilityProviderProviderTestPost200ResponseDataOneOf 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 + +### GetSuccess + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetMessage + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf1.md b/internal/sdk/api/docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf1.md new file mode 100644 index 0000000..3ae0ab8 --- /dev/null +++ b/internal/sdk/api/docs/ObservabilityProviderProviderTestPost200ResponseDataOneOf1.md @@ -0,0 +1,51 @@ +# ObservabilityProviderProviderTestPost200ResponseDataOneOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | Send test error succeeded | + +## Methods + +### NewObservabilityProviderProviderTestPost200ResponseDataOneOf1 + +`func NewObservabilityProviderProviderTestPost200ResponseDataOneOf1(success bool, ) *ObservabilityProviderProviderTestPost200ResponseDataOneOf1` + +NewObservabilityProviderProviderTestPost200ResponseDataOneOf1 instantiates a new ObservabilityProviderProviderTestPost200ResponseDataOneOf1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewObservabilityProviderProviderTestPost200ResponseDataOneOf1WithDefaults + +`func NewObservabilityProviderProviderTestPost200ResponseDataOneOf1WithDefaults() *ObservabilityProviderProviderTestPost200ResponseDataOneOf1` + +NewObservabilityProviderProviderTestPost200ResponseDataOneOf1WithDefaults instantiates a new ObservabilityProviderProviderTestPost200ResponseDataOneOf1 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 + +### GetSuccess + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationAPI.md b/internal/sdk/api/docs/OrganizationAPI.md new file mode 100644 index 0000000..2cf9b82 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAPI.md @@ -0,0 +1,388 @@ +# \OrganizationAPI + +All URIs are relative to *http://.* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**OrganizationAiSettingsGet**](OrganizationAPI.md#OrganizationAiSettingsGet) | **Get** /organization/ai_settings | Get organization AI settings +[**OrganizationAiSettingsPut**](OrganizationAPI.md#OrganizationAiSettingsPut) | **Put** /organization/ai_settings | Update organization AI settings +[**OrganizationAnalyticsIntegrationsGet**](OrganizationAPI.md#OrganizationAnalyticsIntegrationsGet) | **Get** /organization/analytics_integrations | Get organization third-party Analytics Integrations settings +[**OrganizationGet**](OrganizationAPI.md#OrganizationGet) | **Get** /organization/ | Get organization +[**OrganizationInvalidateSessionsPost**](OrganizationAPI.md#OrganizationInvalidateSessionsPost) | **Post** /organization/invalidate_sessions/ | Invalidates all sessions for your organization +[**OrganizationPatch**](OrganizationAPI.md#OrganizationPatch) | **Patch** /organization/ | Update advanced settings on organization + + + +## OrganizationAiSettingsGet + +> OrganizationAiSettingsGet200Response OrganizationAiSettingsGet(ctx).Execute() + +Get organization AI settings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationAPI.OrganizationAiSettingsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.OrganizationAiSettingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrganizationAiSettingsGet`: OrganizationAiSettingsGet200Response + fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.OrganizationAiSettingsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrganizationAiSettingsGetRequest struct via the builder pattern + + +### Return type + +[**OrganizationAiSettingsGet200Response**](OrganizationAiSettingsGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrganizationAiSettingsPut + +> OrganizationAiSettingsPut200Response OrganizationAiSettingsPut(ctx).OrganizationAiSettingsGet200ResponseData(organizationAiSettingsGet200ResponseData).Execute() + +Update organization AI settings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + organizationAiSettingsGet200ResponseData := *openapiclient.NewOrganizationAiSettingsGet200ResponseData(false, false, false, false) // OrganizationAiSettingsGet200ResponseData | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationAPI.OrganizationAiSettingsPut(context.Background()).OrganizationAiSettingsGet200ResponseData(organizationAiSettingsGet200ResponseData).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.OrganizationAiSettingsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrganizationAiSettingsPut`: OrganizationAiSettingsPut200Response + fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.OrganizationAiSettingsPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrganizationAiSettingsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organizationAiSettingsGet200ResponseData** | [**OrganizationAiSettingsGet200ResponseData**](OrganizationAiSettingsGet200ResponseData.md) | | + +### Return type + +[**OrganizationAiSettingsPut200Response**](OrganizationAiSettingsPut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrganizationAnalyticsIntegrationsGet + +> OrganizationAnalyticsIntegrationsGet200Response OrganizationAnalyticsIntegrationsGet(ctx).Execute() + +Get organization third-party Analytics Integrations settings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationAPI.OrganizationAnalyticsIntegrationsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.OrganizationAnalyticsIntegrationsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrganizationAnalyticsIntegrationsGet`: OrganizationAnalyticsIntegrationsGet200Response + fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.OrganizationAnalyticsIntegrationsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrganizationAnalyticsIntegrationsGetRequest struct via the builder pattern + + +### Return type + +[**OrganizationAnalyticsIntegrationsGet200Response**](OrganizationAnalyticsIntegrationsGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrganizationGet + +> OrganizationGet200Response OrganizationGet(ctx).Execute() + +Get organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationAPI.OrganizationGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.OrganizationGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrganizationGet`: OrganizationGet200Response + fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.OrganizationGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrganizationGetRequest struct via the builder pattern + + +### Return type + +[**OrganizationGet200Response**](OrganizationGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrganizationInvalidateSessionsPost + +> OrganizationInvalidateSessionsPost(ctx).Execute() + +Invalidates all sessions for your organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrganizationAPI.OrganizationInvalidateSessionsPost(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.OrganizationInvalidateSessionsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrganizationInvalidateSessionsPostRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrganizationPatch + +> OrganizationPatch200Response OrganizationPatch(ctx).OrganizationPatchRequest(organizationPatchRequest).Execute() + +Update advanced settings on organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + organizationPatchRequest := *openapiclient.NewOrganizationPatchRequest([]openapiclient.ReplaceOperation{*openapiclient.NewReplaceOperation("Op_example", "Path_example")}) // OrganizationPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationAPI.OrganizationPatch(context.Background()).OrganizationPatchRequest(organizationPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationAPI.OrganizationPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrganizationPatch`: OrganizationPatch200Response + fmt.Fprintf(os.Stdout, "Response from `OrganizationAPI.OrganizationPatch`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrganizationPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organizationPatchRequest** | [**OrganizationPatchRequest**](OrganizationPatchRequest.md) | | + +### Return type + +[**OrganizationPatch200Response**](OrganizationPatch200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/OrganizationAiSettingsGet200Response.md b/internal/sdk/api/docs/OrganizationAiSettingsGet200Response.md new file mode 100644 index 0000000..bca4a02 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAiSettingsGet200Response.md @@ -0,0 +1,72 @@ +# OrganizationAiSettingsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**OrganizationAiSettingsGet200ResponseData**](OrganizationAiSettingsGet200ResponseData.md) | | + +## Methods + +### NewOrganizationAiSettingsGet200Response + +`func NewOrganizationAiSettingsGet200Response(success bool, data OrganizationAiSettingsGet200ResponseData, ) *OrganizationAiSettingsGet200Response` + +NewOrganizationAiSettingsGet200Response instantiates a new OrganizationAiSettingsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationAiSettingsGet200ResponseWithDefaults + +`func NewOrganizationAiSettingsGet200ResponseWithDefaults() *OrganizationAiSettingsGet200Response` + +NewOrganizationAiSettingsGet200ResponseWithDefaults instantiates a new OrganizationAiSettingsGet200Response 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 + +### GetSuccess + +`func (o *OrganizationAiSettingsGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *OrganizationAiSettingsGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *OrganizationAiSettingsGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *OrganizationAiSettingsGet200Response) GetData() OrganizationAiSettingsGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrganizationAiSettingsGet200Response) GetDataOk() (*OrganizationAiSettingsGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrganizationAiSettingsGet200Response) SetData(v OrganizationAiSettingsGet200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationAiSettingsGet200ResponseData.md b/internal/sdk/api/docs/OrganizationAiSettingsGet200ResponseData.md new file mode 100644 index 0000000..f1b58b9 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAiSettingsGet200ResponseData.md @@ -0,0 +1,114 @@ +# OrganizationAiSettingsGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RetoolAI** | **bool** | Global switch for all Retool AI features. This switch takes precedence over individual feature switches. | +**RetoolAIActions** | **bool** | Whether Retool AI Actions are enabled. | +**RetoolVector** | **bool** | Whether Retool Vector is enabled. | +**RetoolAskAI** | **bool** | Whether Retool Ask AI is enabled. | + +## Methods + +### NewOrganizationAiSettingsGet200ResponseData + +`func NewOrganizationAiSettingsGet200ResponseData(retoolAI bool, retoolAIActions bool, retoolVector bool, retoolAskAI bool, ) *OrganizationAiSettingsGet200ResponseData` + +NewOrganizationAiSettingsGet200ResponseData instantiates a new OrganizationAiSettingsGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationAiSettingsGet200ResponseDataWithDefaults + +`func NewOrganizationAiSettingsGet200ResponseDataWithDefaults() *OrganizationAiSettingsGet200ResponseData` + +NewOrganizationAiSettingsGet200ResponseDataWithDefaults instantiates a new OrganizationAiSettingsGet200ResponseData 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 + +### GetRetoolAI + +`func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAI() bool` + +GetRetoolAI returns the RetoolAI field if non-nil, zero value otherwise. + +### GetRetoolAIOk + +`func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAIOk() (*bool, bool)` + +GetRetoolAIOk returns a tuple with the RetoolAI field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetoolAI + +`func (o *OrganizationAiSettingsGet200ResponseData) SetRetoolAI(v bool)` + +SetRetoolAI sets RetoolAI field to given value. + + +### GetRetoolAIActions + +`func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAIActions() bool` + +GetRetoolAIActions returns the RetoolAIActions field if non-nil, zero value otherwise. + +### GetRetoolAIActionsOk + +`func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAIActionsOk() (*bool, bool)` + +GetRetoolAIActionsOk returns a tuple with the RetoolAIActions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetoolAIActions + +`func (o *OrganizationAiSettingsGet200ResponseData) SetRetoolAIActions(v bool)` + +SetRetoolAIActions sets RetoolAIActions field to given value. + + +### GetRetoolVector + +`func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolVector() bool` + +GetRetoolVector returns the RetoolVector field if non-nil, zero value otherwise. + +### GetRetoolVectorOk + +`func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolVectorOk() (*bool, bool)` + +GetRetoolVectorOk returns a tuple with the RetoolVector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetoolVector + +`func (o *OrganizationAiSettingsGet200ResponseData) SetRetoolVector(v bool)` + +SetRetoolVector sets RetoolVector field to given value. + + +### GetRetoolAskAI + +`func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAskAI() bool` + +GetRetoolAskAI returns the RetoolAskAI field if non-nil, zero value otherwise. + +### GetRetoolAskAIOk + +`func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAskAIOk() (*bool, bool)` + +GetRetoolAskAIOk returns a tuple with the RetoolAskAI field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetoolAskAI + +`func (o *OrganizationAiSettingsGet200ResponseData) SetRetoolAskAI(v bool)` + +SetRetoolAskAI sets RetoolAskAI field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationAiSettingsPut200Response.md b/internal/sdk/api/docs/OrganizationAiSettingsPut200Response.md new file mode 100644 index 0000000..4511bd0 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAiSettingsPut200Response.md @@ -0,0 +1,72 @@ +# OrganizationAiSettingsPut200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**OrganizationAiSettingsGet200ResponseData**](OrganizationAiSettingsGet200ResponseData.md) | | + +## Methods + +### NewOrganizationAiSettingsPut200Response + +`func NewOrganizationAiSettingsPut200Response(success bool, data OrganizationAiSettingsGet200ResponseData, ) *OrganizationAiSettingsPut200Response` + +NewOrganizationAiSettingsPut200Response instantiates a new OrganizationAiSettingsPut200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationAiSettingsPut200ResponseWithDefaults + +`func NewOrganizationAiSettingsPut200ResponseWithDefaults() *OrganizationAiSettingsPut200Response` + +NewOrganizationAiSettingsPut200ResponseWithDefaults instantiates a new OrganizationAiSettingsPut200Response 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 + +### GetSuccess + +`func (o *OrganizationAiSettingsPut200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *OrganizationAiSettingsPut200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *OrganizationAiSettingsPut200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *OrganizationAiSettingsPut200Response) GetData() OrganizationAiSettingsGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrganizationAiSettingsPut200Response) GetDataOk() (*OrganizationAiSettingsGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrganizationAiSettingsPut200Response) SetData(v OrganizationAiSettingsGet200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200Response.md b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200Response.md new file mode 100644 index 0000000..3aa880a --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200Response.md @@ -0,0 +1,145 @@ +# OrganizationAnalyticsIntegrationsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**[]OrganizationAnalyticsIntegrationsGet200ResponseDataInner**](OrganizationAnalyticsIntegrationsGet200ResponseDataInner.md) | An array of requested items | +**TotalCount** | **float32** | Total number of items in the response | +**NextToken** | **NullableString** | A token to retrieve the next page of items in the collection | +**HasMore** | **bool** | Whether there are more items in the collection | + +## Methods + +### NewOrganizationAnalyticsIntegrationsGet200Response + +`func NewOrganizationAnalyticsIntegrationsGet200Response(success bool, data []OrganizationAnalyticsIntegrationsGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool, ) *OrganizationAnalyticsIntegrationsGet200Response` + +NewOrganizationAnalyticsIntegrationsGet200Response instantiates a new OrganizationAnalyticsIntegrationsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationAnalyticsIntegrationsGet200ResponseWithDefaults + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseWithDefaults() *OrganizationAnalyticsIntegrationsGet200Response` + +NewOrganizationAnalyticsIntegrationsGet200ResponseWithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200Response 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 + +### GetSuccess + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetData() []OrganizationAnalyticsIntegrationsGet200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetDataOk() (*[]OrganizationAnalyticsIntegrationsGet200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) SetData(v []OrganizationAnalyticsIntegrationsGet200ResponseDataInner)` + +SetData sets Data field to given value. + + +### GetTotalCount + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + + +### GetNextToken + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetNextToken() string` + +GetNextToken returns the NextToken field if non-nil, zero value otherwise. + +### GetNextTokenOk + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetNextTokenOk() (*string, bool)` + +GetNextTokenOk returns a tuple with the NextToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextToken + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) SetNextToken(v string)` + +SetNextToken sets NextToken field to given value. + + +### SetNextTokenNil + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) SetNextTokenNil(b bool)` + + SetNextTokenNil sets the value for NextToken to be an explicit nil + +### UnsetNextToken +`func (o *OrganizationAnalyticsIntegrationsGet200Response) UnsetNextToken()` + +UnsetNextToken ensures that no value is present for NextToken, not even an explicit nil +### GetHasMore + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *OrganizationAnalyticsIntegrationsGet200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInner.md b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInner.md new file mode 100644 index 0000000..6da49c8 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInner.md @@ -0,0 +1,135 @@ +# OrganizationAnalyticsIntegrationsGet200ResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**MeasurementId** | **string** | | +**Enabled** | **bool** | | +**Host** | **string** | | +**ApiKey** | **string** | | + +## Methods + +### NewOrganizationAnalyticsIntegrationsGet200ResponseDataInner + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInner(type_ string, measurementId string, enabled bool, host string, apiKey string, ) *OrganizationAnalyticsIntegrationsGet200ResponseDataInner` + +NewOrganizationAnalyticsIntegrationsGet200ResponseDataInner instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerWithDefaults + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerWithDefaults() *OrganizationAnalyticsIntegrationsGet200ResponseDataInner` + +NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerWithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInner 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 + +### GetType + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) SetType(v string)` + +SetType sets Type field to given value. + + +### GetMeasurementId + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetMeasurementId() string` + +GetMeasurementId returns the MeasurementId field if non-nil, zero value otherwise. + +### GetMeasurementIdOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetMeasurementIdOk() (*string, bool)` + +GetMeasurementIdOk returns a tuple with the MeasurementId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeasurementId + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) SetMeasurementId(v string)` + +SetMeasurementId sets MeasurementId field to given value. + + +### GetEnabled + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + +### GetHost + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) SetHost(v string)` + +SetHost sets Host field to given value. + + +### GetApiKey + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetApiKey() string` + +GetApiKey returns the ApiKey field if non-nil, zero value otherwise. + +### GetApiKeyOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetApiKeyOk() (*string, bool)` + +GetApiKeyOk returns a tuple with the ApiKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiKey + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) SetApiKey(v string)` + +SetApiKey sets ApiKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf.md b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf.md new file mode 100644 index 0000000..b188c05 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf.md @@ -0,0 +1,93 @@ +# OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**MeasurementId** | **string** | | +**Enabled** | **bool** | | + +## Methods + +### NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf(type_ string, measurementId string, enabled bool, ) *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf` + +NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfWithDefaults + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfWithDefaults() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf` + +NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfWithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf 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 + +### GetType + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetMeasurementId + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetMeasurementId() string` + +GetMeasurementId returns the MeasurementId field if non-nil, zero value otherwise. + +### GetMeasurementIdOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetMeasurementIdOk() (*string, bool)` + +GetMeasurementIdOk returns a tuple with the MeasurementId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeasurementId + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) SetMeasurementId(v string)` + +SetMeasurementId sets MeasurementId field to given value. + + +### GetEnabled + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1.md b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1.md new file mode 100644 index 0000000..80c83d0 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1.md @@ -0,0 +1,114 @@ +# OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Host** | **string** | | +**ApiKey** | **string** | | +**Enabled** | **bool** | | + +## Methods + +### NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1(type_ string, host string, apiKey string, enabled bool, ) *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1` + +NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1WithDefaults + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1WithDefaults() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1` + +NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1WithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 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 + +### GetType + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHost + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) SetHost(v string)` + +SetHost sets Host field to given value. + + +### GetApiKey + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetApiKey() string` + +GetApiKey returns the ApiKey field if non-nil, zero value otherwise. + +### GetApiKeyOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetApiKeyOk() (*string, bool)` + +GetApiKeyOk returns a tuple with the ApiKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiKey + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) SetApiKey(v string)` + +SetApiKey sets ApiKey field to given value. + + +### GetEnabled + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2.md b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2.md new file mode 100644 index 0000000..32ccfc8 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2.md @@ -0,0 +1,72 @@ +# OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Enabled** | **bool** | | + +## Methods + +### NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2(type_ string, enabled bool, ) *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2` + +NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2WithDefaults + +`func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2WithDefaults() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2` + +NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2WithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 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 + +### GetType + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) SetType(v string)` + +SetType sets Type field to given value. + + +### GetEnabled + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationGet200Response.md b/internal/sdk/api/docs/OrganizationGet200Response.md new file mode 100644 index 0000000..7f77f6f --- /dev/null +++ b/internal/sdk/api/docs/OrganizationGet200Response.md @@ -0,0 +1,72 @@ +# OrganizationGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**OrganizationGet200ResponseData**](OrganizationGet200ResponseData.md) | | + +## Methods + +### NewOrganizationGet200Response + +`func NewOrganizationGet200Response(success bool, data OrganizationGet200ResponseData, ) *OrganizationGet200Response` + +NewOrganizationGet200Response instantiates a new OrganizationGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationGet200ResponseWithDefaults + +`func NewOrganizationGet200ResponseWithDefaults() *OrganizationGet200Response` + +NewOrganizationGet200ResponseWithDefaults instantiates a new OrganizationGet200Response 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 + +### GetSuccess + +`func (o *OrganizationGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *OrganizationGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *OrganizationGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *OrganizationGet200Response) GetData() OrganizationGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrganizationGet200Response) GetDataOk() (*OrganizationGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrganizationGet200Response) SetData(v OrganizationGet200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationGet200ResponseData.md b/internal/sdk/api/docs/OrganizationGet200ResponseData.md new file mode 100644 index 0000000..798af25 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationGet200ResponseData.md @@ -0,0 +1,385 @@ +# OrganizationGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the organization. | +**RequestAccessEnabled** | **bool** | Whether users can request access to join the organization. | +**AiSupportBotDisabled** | **bool** | Whether the AI support bot is disabled. | +**RetoolFormsDisabled** | **bool** | Whether Retool forms are disabled. | +**ReleaseManagementEnabled** | **bool** | Whether versions and releases on apps are disabled. | +**CacheQueriesPerUser** | **NullableBool** | | +**ApplyPreloadedCssToHomepage** | **bool** | Whether preloaded CSS is applied to the Retool homepage. | +**PreloadedCss** | **NullableString** | Custom CSS rules to apply across Retool. | +**PreloadedJavascript** | **NullableString** | Preloaded JavaScript that will apply to every Retool app. | +**JavascriptLinks** | **[]string** | List of custom JavaScript libraries to load in every app. | +**WorkflowRunRetentionPeriodMins** | **float32** | Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem) | +**AppOwnersPermissionsManagement** | **bool** | Whether app owners can manage permissions for their apps directly. | +**TwoFactorAuthRequired** | **bool** | Whether two-factor authentication is required for all users in the organization. | +**TwoFactorAuthType** | **NullableString** | Required 2FA type, applies to the whole organization | +**DisableNewLoginIpNotificationEmail** | **bool** | Whether notification emails for logins from new IPs are disabled. | + +## Methods + +### NewOrganizationGet200ResponseData + +`func NewOrganizationGet200ResponseData(id string, requestAccessEnabled bool, aiSupportBotDisabled bool, retoolFormsDisabled bool, releaseManagementEnabled bool, cacheQueriesPerUser NullableBool, applyPreloadedCssToHomepage bool, preloadedCss NullableString, preloadedJavascript NullableString, javascriptLinks []string, workflowRunRetentionPeriodMins float32, appOwnersPermissionsManagement bool, twoFactorAuthRequired bool, twoFactorAuthType NullableString, disableNewLoginIpNotificationEmail bool, ) *OrganizationGet200ResponseData` + +NewOrganizationGet200ResponseData instantiates a new OrganizationGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationGet200ResponseDataWithDefaults + +`func NewOrganizationGet200ResponseDataWithDefaults() *OrganizationGet200ResponseData` + +NewOrganizationGet200ResponseDataWithDefaults instantiates a new OrganizationGet200ResponseData 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 + +### GetId + +`func (o *OrganizationGet200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OrganizationGet200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OrganizationGet200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetRequestAccessEnabled + +`func (o *OrganizationGet200ResponseData) GetRequestAccessEnabled() bool` + +GetRequestAccessEnabled returns the RequestAccessEnabled field if non-nil, zero value otherwise. + +### GetRequestAccessEnabledOk + +`func (o *OrganizationGet200ResponseData) GetRequestAccessEnabledOk() (*bool, bool)` + +GetRequestAccessEnabledOk returns a tuple with the RequestAccessEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestAccessEnabled + +`func (o *OrganizationGet200ResponseData) SetRequestAccessEnabled(v bool)` + +SetRequestAccessEnabled sets RequestAccessEnabled field to given value. + + +### GetAiSupportBotDisabled + +`func (o *OrganizationGet200ResponseData) GetAiSupportBotDisabled() bool` + +GetAiSupportBotDisabled returns the AiSupportBotDisabled field if non-nil, zero value otherwise. + +### GetAiSupportBotDisabledOk + +`func (o *OrganizationGet200ResponseData) GetAiSupportBotDisabledOk() (*bool, bool)` + +GetAiSupportBotDisabledOk returns a tuple with the AiSupportBotDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAiSupportBotDisabled + +`func (o *OrganizationGet200ResponseData) SetAiSupportBotDisabled(v bool)` + +SetAiSupportBotDisabled sets AiSupportBotDisabled field to given value. + + +### GetRetoolFormsDisabled + +`func (o *OrganizationGet200ResponseData) GetRetoolFormsDisabled() bool` + +GetRetoolFormsDisabled returns the RetoolFormsDisabled field if non-nil, zero value otherwise. + +### GetRetoolFormsDisabledOk + +`func (o *OrganizationGet200ResponseData) GetRetoolFormsDisabledOk() (*bool, bool)` + +GetRetoolFormsDisabledOk returns a tuple with the RetoolFormsDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetoolFormsDisabled + +`func (o *OrganizationGet200ResponseData) SetRetoolFormsDisabled(v bool)` + +SetRetoolFormsDisabled sets RetoolFormsDisabled field to given value. + + +### GetReleaseManagementEnabled + +`func (o *OrganizationGet200ResponseData) GetReleaseManagementEnabled() bool` + +GetReleaseManagementEnabled returns the ReleaseManagementEnabled field if non-nil, zero value otherwise. + +### GetReleaseManagementEnabledOk + +`func (o *OrganizationGet200ResponseData) GetReleaseManagementEnabledOk() (*bool, bool)` + +GetReleaseManagementEnabledOk returns a tuple with the ReleaseManagementEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseManagementEnabled + +`func (o *OrganizationGet200ResponseData) SetReleaseManagementEnabled(v bool)` + +SetReleaseManagementEnabled sets ReleaseManagementEnabled field to given value. + + +### GetCacheQueriesPerUser + +`func (o *OrganizationGet200ResponseData) GetCacheQueriesPerUser() bool` + +GetCacheQueriesPerUser returns the CacheQueriesPerUser field if non-nil, zero value otherwise. + +### GetCacheQueriesPerUserOk + +`func (o *OrganizationGet200ResponseData) GetCacheQueriesPerUserOk() (*bool, bool)` + +GetCacheQueriesPerUserOk returns a tuple with the CacheQueriesPerUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCacheQueriesPerUser + +`func (o *OrganizationGet200ResponseData) SetCacheQueriesPerUser(v bool)` + +SetCacheQueriesPerUser sets CacheQueriesPerUser field to given value. + + +### SetCacheQueriesPerUserNil + +`func (o *OrganizationGet200ResponseData) SetCacheQueriesPerUserNil(b bool)` + + SetCacheQueriesPerUserNil sets the value for CacheQueriesPerUser to be an explicit nil + +### UnsetCacheQueriesPerUser +`func (o *OrganizationGet200ResponseData) UnsetCacheQueriesPerUser()` + +UnsetCacheQueriesPerUser ensures that no value is present for CacheQueriesPerUser, not even an explicit nil +### GetApplyPreloadedCssToHomepage + +`func (o *OrganizationGet200ResponseData) GetApplyPreloadedCssToHomepage() bool` + +GetApplyPreloadedCssToHomepage returns the ApplyPreloadedCssToHomepage field if non-nil, zero value otherwise. + +### GetApplyPreloadedCssToHomepageOk + +`func (o *OrganizationGet200ResponseData) GetApplyPreloadedCssToHomepageOk() (*bool, bool)` + +GetApplyPreloadedCssToHomepageOk returns a tuple with the ApplyPreloadedCssToHomepage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplyPreloadedCssToHomepage + +`func (o *OrganizationGet200ResponseData) SetApplyPreloadedCssToHomepage(v bool)` + +SetApplyPreloadedCssToHomepage sets ApplyPreloadedCssToHomepage field to given value. + + +### GetPreloadedCss + +`func (o *OrganizationGet200ResponseData) GetPreloadedCss() string` + +GetPreloadedCss returns the PreloadedCss field if non-nil, zero value otherwise. + +### GetPreloadedCssOk + +`func (o *OrganizationGet200ResponseData) GetPreloadedCssOk() (*string, bool)` + +GetPreloadedCssOk returns a tuple with the PreloadedCss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreloadedCss + +`func (o *OrganizationGet200ResponseData) SetPreloadedCss(v string)` + +SetPreloadedCss sets PreloadedCss field to given value. + + +### SetPreloadedCssNil + +`func (o *OrganizationGet200ResponseData) SetPreloadedCssNil(b bool)` + + SetPreloadedCssNil sets the value for PreloadedCss to be an explicit nil + +### UnsetPreloadedCss +`func (o *OrganizationGet200ResponseData) UnsetPreloadedCss()` + +UnsetPreloadedCss ensures that no value is present for PreloadedCss, not even an explicit nil +### GetPreloadedJavascript + +`func (o *OrganizationGet200ResponseData) GetPreloadedJavascript() string` + +GetPreloadedJavascript returns the PreloadedJavascript field if non-nil, zero value otherwise. + +### GetPreloadedJavascriptOk + +`func (o *OrganizationGet200ResponseData) GetPreloadedJavascriptOk() (*string, bool)` + +GetPreloadedJavascriptOk returns a tuple with the PreloadedJavascript field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreloadedJavascript + +`func (o *OrganizationGet200ResponseData) SetPreloadedJavascript(v string)` + +SetPreloadedJavascript sets PreloadedJavascript field to given value. + + +### SetPreloadedJavascriptNil + +`func (o *OrganizationGet200ResponseData) SetPreloadedJavascriptNil(b bool)` + + SetPreloadedJavascriptNil sets the value for PreloadedJavascript to be an explicit nil + +### UnsetPreloadedJavascript +`func (o *OrganizationGet200ResponseData) UnsetPreloadedJavascript()` + +UnsetPreloadedJavascript ensures that no value is present for PreloadedJavascript, not even an explicit nil +### GetJavascriptLinks + +`func (o *OrganizationGet200ResponseData) GetJavascriptLinks() []string` + +GetJavascriptLinks returns the JavascriptLinks field if non-nil, zero value otherwise. + +### GetJavascriptLinksOk + +`func (o *OrganizationGet200ResponseData) GetJavascriptLinksOk() (*[]string, bool)` + +GetJavascriptLinksOk returns a tuple with the JavascriptLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJavascriptLinks + +`func (o *OrganizationGet200ResponseData) SetJavascriptLinks(v []string)` + +SetJavascriptLinks sets JavascriptLinks field to given value. + + +### GetWorkflowRunRetentionPeriodMins + +`func (o *OrganizationGet200ResponseData) GetWorkflowRunRetentionPeriodMins() float32` + +GetWorkflowRunRetentionPeriodMins returns the WorkflowRunRetentionPeriodMins field if non-nil, zero value otherwise. + +### GetWorkflowRunRetentionPeriodMinsOk + +`func (o *OrganizationGet200ResponseData) GetWorkflowRunRetentionPeriodMinsOk() (*float32, bool)` + +GetWorkflowRunRetentionPeriodMinsOk returns a tuple with the WorkflowRunRetentionPeriodMins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRunRetentionPeriodMins + +`func (o *OrganizationGet200ResponseData) SetWorkflowRunRetentionPeriodMins(v float32)` + +SetWorkflowRunRetentionPeriodMins sets WorkflowRunRetentionPeriodMins field to given value. + + +### GetAppOwnersPermissionsManagement + +`func (o *OrganizationGet200ResponseData) GetAppOwnersPermissionsManagement() bool` + +GetAppOwnersPermissionsManagement returns the AppOwnersPermissionsManagement field if non-nil, zero value otherwise. + +### GetAppOwnersPermissionsManagementOk + +`func (o *OrganizationGet200ResponseData) GetAppOwnersPermissionsManagementOk() (*bool, bool)` + +GetAppOwnersPermissionsManagementOk returns a tuple with the AppOwnersPermissionsManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppOwnersPermissionsManagement + +`func (o *OrganizationGet200ResponseData) SetAppOwnersPermissionsManagement(v bool)` + +SetAppOwnersPermissionsManagement sets AppOwnersPermissionsManagement field to given value. + + +### GetTwoFactorAuthRequired + +`func (o *OrganizationGet200ResponseData) GetTwoFactorAuthRequired() bool` + +GetTwoFactorAuthRequired returns the TwoFactorAuthRequired field if non-nil, zero value otherwise. + +### GetTwoFactorAuthRequiredOk + +`func (o *OrganizationGet200ResponseData) GetTwoFactorAuthRequiredOk() (*bool, bool)` + +GetTwoFactorAuthRequiredOk returns a tuple with the TwoFactorAuthRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwoFactorAuthRequired + +`func (o *OrganizationGet200ResponseData) SetTwoFactorAuthRequired(v bool)` + +SetTwoFactorAuthRequired sets TwoFactorAuthRequired field to given value. + + +### GetTwoFactorAuthType + +`func (o *OrganizationGet200ResponseData) GetTwoFactorAuthType() string` + +GetTwoFactorAuthType returns the TwoFactorAuthType field if non-nil, zero value otherwise. + +### GetTwoFactorAuthTypeOk + +`func (o *OrganizationGet200ResponseData) GetTwoFactorAuthTypeOk() (*string, bool)` + +GetTwoFactorAuthTypeOk returns a tuple with the TwoFactorAuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwoFactorAuthType + +`func (o *OrganizationGet200ResponseData) SetTwoFactorAuthType(v string)` + +SetTwoFactorAuthType sets TwoFactorAuthType field to given value. + + +### SetTwoFactorAuthTypeNil + +`func (o *OrganizationGet200ResponseData) SetTwoFactorAuthTypeNil(b bool)` + + SetTwoFactorAuthTypeNil sets the value for TwoFactorAuthType to be an explicit nil + +### UnsetTwoFactorAuthType +`func (o *OrganizationGet200ResponseData) UnsetTwoFactorAuthType()` + +UnsetTwoFactorAuthType ensures that no value is present for TwoFactorAuthType, not even an explicit nil +### GetDisableNewLoginIpNotificationEmail + +`func (o *OrganizationGet200ResponseData) GetDisableNewLoginIpNotificationEmail() bool` + +GetDisableNewLoginIpNotificationEmail returns the DisableNewLoginIpNotificationEmail field if non-nil, zero value otherwise. + +### GetDisableNewLoginIpNotificationEmailOk + +`func (o *OrganizationGet200ResponseData) GetDisableNewLoginIpNotificationEmailOk() (*bool, bool)` + +GetDisableNewLoginIpNotificationEmailOk returns a tuple with the DisableNewLoginIpNotificationEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableNewLoginIpNotificationEmail + +`func (o *OrganizationGet200ResponseData) SetDisableNewLoginIpNotificationEmail(v bool)` + +SetDisableNewLoginIpNotificationEmail sets DisableNewLoginIpNotificationEmail field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationPatch200Response.md b/internal/sdk/api/docs/OrganizationPatch200Response.md new file mode 100644 index 0000000..1778dc0 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationPatch200Response.md @@ -0,0 +1,72 @@ +# OrganizationPatch200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**OrganizationPatch200ResponseData**](OrganizationPatch200ResponseData.md) | | + +## Methods + +### NewOrganizationPatch200Response + +`func NewOrganizationPatch200Response(success bool, data OrganizationPatch200ResponseData, ) *OrganizationPatch200Response` + +NewOrganizationPatch200Response instantiates a new OrganizationPatch200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationPatch200ResponseWithDefaults + +`func NewOrganizationPatch200ResponseWithDefaults() *OrganizationPatch200Response` + +NewOrganizationPatch200ResponseWithDefaults instantiates a new OrganizationPatch200Response 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 + +### GetSuccess + +`func (o *OrganizationPatch200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *OrganizationPatch200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *OrganizationPatch200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *OrganizationPatch200Response) GetData() OrganizationPatch200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrganizationPatch200Response) GetDataOk() (*OrganizationPatch200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrganizationPatch200Response) SetData(v OrganizationPatch200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationPatch200ResponseData.md b/internal/sdk/api/docs/OrganizationPatch200ResponseData.md new file mode 100644 index 0000000..ff69789 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationPatch200ResponseData.md @@ -0,0 +1,385 @@ +# OrganizationPatch200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the organization. | +**RequestAccessEnabled** | **bool** | Whether users can request access to join the organization. | +**AiSupportBotDisabled** | **bool** | Whether the AI support bot is disabled. | +**RetoolFormsDisabled** | **bool** | Whether Retool forms are disabled. | +**ReleaseManagementEnabled** | **bool** | Whether versions and releases on apps are disabled. | +**CacheQueriesPerUser** | **NullableBool** | | +**ApplyPreloadedCssToHomepage** | **bool** | Whether preloaded CSS is applied to the Retool homepage. | +**PreloadedCss** | **NullableString** | Custom CSS rules to apply across Retool. | +**PreloadedJavascript** | **NullableString** | Preloaded JavaScript that will apply to every Retool app. | +**JavascriptLinks** | **[]string** | List of custom JavaScript libraries to load in every app. | +**WorkflowRunRetentionPeriodMins** | **float32** | Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem) | +**AppOwnersPermissionsManagement** | **bool** | Whether app owners can manage permissions for their apps directly. | +**TwoFactorAuthRequired** | **bool** | Whether two-factor authentication is required for all users in the organization. | +**TwoFactorAuthType** | **NullableString** | Required 2FA type, applies to the whole organization | +**DisableNewLoginIpNotificationEmail** | **bool** | Whether notification emails for logins from new IPs are disabled. | + +## Methods + +### NewOrganizationPatch200ResponseData + +`func NewOrganizationPatch200ResponseData(id string, requestAccessEnabled bool, aiSupportBotDisabled bool, retoolFormsDisabled bool, releaseManagementEnabled bool, cacheQueriesPerUser NullableBool, applyPreloadedCssToHomepage bool, preloadedCss NullableString, preloadedJavascript NullableString, javascriptLinks []string, workflowRunRetentionPeriodMins float32, appOwnersPermissionsManagement bool, twoFactorAuthRequired bool, twoFactorAuthType NullableString, disableNewLoginIpNotificationEmail bool, ) *OrganizationPatch200ResponseData` + +NewOrganizationPatch200ResponseData instantiates a new OrganizationPatch200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationPatch200ResponseDataWithDefaults + +`func NewOrganizationPatch200ResponseDataWithDefaults() *OrganizationPatch200ResponseData` + +NewOrganizationPatch200ResponseDataWithDefaults instantiates a new OrganizationPatch200ResponseData 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 + +### GetId + +`func (o *OrganizationPatch200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OrganizationPatch200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OrganizationPatch200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetRequestAccessEnabled + +`func (o *OrganizationPatch200ResponseData) GetRequestAccessEnabled() bool` + +GetRequestAccessEnabled returns the RequestAccessEnabled field if non-nil, zero value otherwise. + +### GetRequestAccessEnabledOk + +`func (o *OrganizationPatch200ResponseData) GetRequestAccessEnabledOk() (*bool, bool)` + +GetRequestAccessEnabledOk returns a tuple with the RequestAccessEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestAccessEnabled + +`func (o *OrganizationPatch200ResponseData) SetRequestAccessEnabled(v bool)` + +SetRequestAccessEnabled sets RequestAccessEnabled field to given value. + + +### GetAiSupportBotDisabled + +`func (o *OrganizationPatch200ResponseData) GetAiSupportBotDisabled() bool` + +GetAiSupportBotDisabled returns the AiSupportBotDisabled field if non-nil, zero value otherwise. + +### GetAiSupportBotDisabledOk + +`func (o *OrganizationPatch200ResponseData) GetAiSupportBotDisabledOk() (*bool, bool)` + +GetAiSupportBotDisabledOk returns a tuple with the AiSupportBotDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAiSupportBotDisabled + +`func (o *OrganizationPatch200ResponseData) SetAiSupportBotDisabled(v bool)` + +SetAiSupportBotDisabled sets AiSupportBotDisabled field to given value. + + +### GetRetoolFormsDisabled + +`func (o *OrganizationPatch200ResponseData) GetRetoolFormsDisabled() bool` + +GetRetoolFormsDisabled returns the RetoolFormsDisabled field if non-nil, zero value otherwise. + +### GetRetoolFormsDisabledOk + +`func (o *OrganizationPatch200ResponseData) GetRetoolFormsDisabledOk() (*bool, bool)` + +GetRetoolFormsDisabledOk returns a tuple with the RetoolFormsDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetoolFormsDisabled + +`func (o *OrganizationPatch200ResponseData) SetRetoolFormsDisabled(v bool)` + +SetRetoolFormsDisabled sets RetoolFormsDisabled field to given value. + + +### GetReleaseManagementEnabled + +`func (o *OrganizationPatch200ResponseData) GetReleaseManagementEnabled() bool` + +GetReleaseManagementEnabled returns the ReleaseManagementEnabled field if non-nil, zero value otherwise. + +### GetReleaseManagementEnabledOk + +`func (o *OrganizationPatch200ResponseData) GetReleaseManagementEnabledOk() (*bool, bool)` + +GetReleaseManagementEnabledOk returns a tuple with the ReleaseManagementEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseManagementEnabled + +`func (o *OrganizationPatch200ResponseData) SetReleaseManagementEnabled(v bool)` + +SetReleaseManagementEnabled sets ReleaseManagementEnabled field to given value. + + +### GetCacheQueriesPerUser + +`func (o *OrganizationPatch200ResponseData) GetCacheQueriesPerUser() bool` + +GetCacheQueriesPerUser returns the CacheQueriesPerUser field if non-nil, zero value otherwise. + +### GetCacheQueriesPerUserOk + +`func (o *OrganizationPatch200ResponseData) GetCacheQueriesPerUserOk() (*bool, bool)` + +GetCacheQueriesPerUserOk returns a tuple with the CacheQueriesPerUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCacheQueriesPerUser + +`func (o *OrganizationPatch200ResponseData) SetCacheQueriesPerUser(v bool)` + +SetCacheQueriesPerUser sets CacheQueriesPerUser field to given value. + + +### SetCacheQueriesPerUserNil + +`func (o *OrganizationPatch200ResponseData) SetCacheQueriesPerUserNil(b bool)` + + SetCacheQueriesPerUserNil sets the value for CacheQueriesPerUser to be an explicit nil + +### UnsetCacheQueriesPerUser +`func (o *OrganizationPatch200ResponseData) UnsetCacheQueriesPerUser()` + +UnsetCacheQueriesPerUser ensures that no value is present for CacheQueriesPerUser, not even an explicit nil +### GetApplyPreloadedCssToHomepage + +`func (o *OrganizationPatch200ResponseData) GetApplyPreloadedCssToHomepage() bool` + +GetApplyPreloadedCssToHomepage returns the ApplyPreloadedCssToHomepage field if non-nil, zero value otherwise. + +### GetApplyPreloadedCssToHomepageOk + +`func (o *OrganizationPatch200ResponseData) GetApplyPreloadedCssToHomepageOk() (*bool, bool)` + +GetApplyPreloadedCssToHomepageOk returns a tuple with the ApplyPreloadedCssToHomepage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplyPreloadedCssToHomepage + +`func (o *OrganizationPatch200ResponseData) SetApplyPreloadedCssToHomepage(v bool)` + +SetApplyPreloadedCssToHomepage sets ApplyPreloadedCssToHomepage field to given value. + + +### GetPreloadedCss + +`func (o *OrganizationPatch200ResponseData) GetPreloadedCss() string` + +GetPreloadedCss returns the PreloadedCss field if non-nil, zero value otherwise. + +### GetPreloadedCssOk + +`func (o *OrganizationPatch200ResponseData) GetPreloadedCssOk() (*string, bool)` + +GetPreloadedCssOk returns a tuple with the PreloadedCss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreloadedCss + +`func (o *OrganizationPatch200ResponseData) SetPreloadedCss(v string)` + +SetPreloadedCss sets PreloadedCss field to given value. + + +### SetPreloadedCssNil + +`func (o *OrganizationPatch200ResponseData) SetPreloadedCssNil(b bool)` + + SetPreloadedCssNil sets the value for PreloadedCss to be an explicit nil + +### UnsetPreloadedCss +`func (o *OrganizationPatch200ResponseData) UnsetPreloadedCss()` + +UnsetPreloadedCss ensures that no value is present for PreloadedCss, not even an explicit nil +### GetPreloadedJavascript + +`func (o *OrganizationPatch200ResponseData) GetPreloadedJavascript() string` + +GetPreloadedJavascript returns the PreloadedJavascript field if non-nil, zero value otherwise. + +### GetPreloadedJavascriptOk + +`func (o *OrganizationPatch200ResponseData) GetPreloadedJavascriptOk() (*string, bool)` + +GetPreloadedJavascriptOk returns a tuple with the PreloadedJavascript field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreloadedJavascript + +`func (o *OrganizationPatch200ResponseData) SetPreloadedJavascript(v string)` + +SetPreloadedJavascript sets PreloadedJavascript field to given value. + + +### SetPreloadedJavascriptNil + +`func (o *OrganizationPatch200ResponseData) SetPreloadedJavascriptNil(b bool)` + + SetPreloadedJavascriptNil sets the value for PreloadedJavascript to be an explicit nil + +### UnsetPreloadedJavascript +`func (o *OrganizationPatch200ResponseData) UnsetPreloadedJavascript()` + +UnsetPreloadedJavascript ensures that no value is present for PreloadedJavascript, not even an explicit nil +### GetJavascriptLinks + +`func (o *OrganizationPatch200ResponseData) GetJavascriptLinks() []string` + +GetJavascriptLinks returns the JavascriptLinks field if non-nil, zero value otherwise. + +### GetJavascriptLinksOk + +`func (o *OrganizationPatch200ResponseData) GetJavascriptLinksOk() (*[]string, bool)` + +GetJavascriptLinksOk returns a tuple with the JavascriptLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJavascriptLinks + +`func (o *OrganizationPatch200ResponseData) SetJavascriptLinks(v []string)` + +SetJavascriptLinks sets JavascriptLinks field to given value. + + +### GetWorkflowRunRetentionPeriodMins + +`func (o *OrganizationPatch200ResponseData) GetWorkflowRunRetentionPeriodMins() float32` + +GetWorkflowRunRetentionPeriodMins returns the WorkflowRunRetentionPeriodMins field if non-nil, zero value otherwise. + +### GetWorkflowRunRetentionPeriodMinsOk + +`func (o *OrganizationPatch200ResponseData) GetWorkflowRunRetentionPeriodMinsOk() (*float32, bool)` + +GetWorkflowRunRetentionPeriodMinsOk returns a tuple with the WorkflowRunRetentionPeriodMins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRunRetentionPeriodMins + +`func (o *OrganizationPatch200ResponseData) SetWorkflowRunRetentionPeriodMins(v float32)` + +SetWorkflowRunRetentionPeriodMins sets WorkflowRunRetentionPeriodMins field to given value. + + +### GetAppOwnersPermissionsManagement + +`func (o *OrganizationPatch200ResponseData) GetAppOwnersPermissionsManagement() bool` + +GetAppOwnersPermissionsManagement returns the AppOwnersPermissionsManagement field if non-nil, zero value otherwise. + +### GetAppOwnersPermissionsManagementOk + +`func (o *OrganizationPatch200ResponseData) GetAppOwnersPermissionsManagementOk() (*bool, bool)` + +GetAppOwnersPermissionsManagementOk returns a tuple with the AppOwnersPermissionsManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppOwnersPermissionsManagement + +`func (o *OrganizationPatch200ResponseData) SetAppOwnersPermissionsManagement(v bool)` + +SetAppOwnersPermissionsManagement sets AppOwnersPermissionsManagement field to given value. + + +### GetTwoFactorAuthRequired + +`func (o *OrganizationPatch200ResponseData) GetTwoFactorAuthRequired() bool` + +GetTwoFactorAuthRequired returns the TwoFactorAuthRequired field if non-nil, zero value otherwise. + +### GetTwoFactorAuthRequiredOk + +`func (o *OrganizationPatch200ResponseData) GetTwoFactorAuthRequiredOk() (*bool, bool)` + +GetTwoFactorAuthRequiredOk returns a tuple with the TwoFactorAuthRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwoFactorAuthRequired + +`func (o *OrganizationPatch200ResponseData) SetTwoFactorAuthRequired(v bool)` + +SetTwoFactorAuthRequired sets TwoFactorAuthRequired field to given value. + + +### GetTwoFactorAuthType + +`func (o *OrganizationPatch200ResponseData) GetTwoFactorAuthType() string` + +GetTwoFactorAuthType returns the TwoFactorAuthType field if non-nil, zero value otherwise. + +### GetTwoFactorAuthTypeOk + +`func (o *OrganizationPatch200ResponseData) GetTwoFactorAuthTypeOk() (*string, bool)` + +GetTwoFactorAuthTypeOk returns a tuple with the TwoFactorAuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwoFactorAuthType + +`func (o *OrganizationPatch200ResponseData) SetTwoFactorAuthType(v string)` + +SetTwoFactorAuthType sets TwoFactorAuthType field to given value. + + +### SetTwoFactorAuthTypeNil + +`func (o *OrganizationPatch200ResponseData) SetTwoFactorAuthTypeNil(b bool)` + + SetTwoFactorAuthTypeNil sets the value for TwoFactorAuthType to be an explicit nil + +### UnsetTwoFactorAuthType +`func (o *OrganizationPatch200ResponseData) UnsetTwoFactorAuthType()` + +UnsetTwoFactorAuthType ensures that no value is present for TwoFactorAuthType, not even an explicit nil +### GetDisableNewLoginIpNotificationEmail + +`func (o *OrganizationPatch200ResponseData) GetDisableNewLoginIpNotificationEmail() bool` + +GetDisableNewLoginIpNotificationEmail returns the DisableNewLoginIpNotificationEmail field if non-nil, zero value otherwise. + +### GetDisableNewLoginIpNotificationEmailOk + +`func (o *OrganizationPatch200ResponseData) GetDisableNewLoginIpNotificationEmailOk() (*bool, bool)` + +GetDisableNewLoginIpNotificationEmailOk returns a tuple with the DisableNewLoginIpNotificationEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableNewLoginIpNotificationEmail + +`func (o *OrganizationPatch200ResponseData) SetDisableNewLoginIpNotificationEmail(v bool)` + +SetDisableNewLoginIpNotificationEmail sets DisableNewLoginIpNotificationEmail field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationPatchRequest.md b/internal/sdk/api/docs/OrganizationPatchRequest.md new file mode 100644 index 0000000..e8bd2b7 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationPatchRequest.md @@ -0,0 +1,51 @@ +# OrganizationPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Operations** | [**[]ReplaceOperation**](ReplaceOperation.md) | A list of operations to apply to update the organization. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | + +## Methods + +### NewOrganizationPatchRequest + +`func NewOrganizationPatchRequest(operations []ReplaceOperation, ) *OrganizationPatchRequest` + +NewOrganizationPatchRequest instantiates a new OrganizationPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationPatchRequestWithDefaults + +`func NewOrganizationPatchRequestWithDefaults() *OrganizationPatchRequest` + +NewOrganizationPatchRequestWithDefaults instantiates a new OrganizationPatchRequest 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 + +### GetOperations + +`func (o *OrganizationPatchRequest) GetOperations() []ReplaceOperation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *OrganizationPatchRequest) GetOperationsOk() (*[]ReplaceOperation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *OrganizationPatchRequest) SetOperations(v []ReplaceOperation)` + +SetOperations sets Operations field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/OrganizationSettings.md b/internal/sdk/api/docs/OrganizationSettings.md new file mode 100644 index 0000000..12d4a03 --- /dev/null +++ b/internal/sdk/api/docs/OrganizationSettings.md @@ -0,0 +1,385 @@ +# OrganizationSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the organization. | +**RequestAccessEnabled** | **bool** | Whether users can request access to join the organization. | +**AiSupportBotDisabled** | **bool** | Whether the AI support bot is disabled. | +**RetoolFormsDisabled** | **bool** | Whether Retool forms are disabled. | +**ReleaseManagementEnabled** | **bool** | Whether versions and releases on apps are disabled. | +**CacheQueriesPerUser** | **NullableBool** | | +**ApplyPreloadedCssToHomepage** | **bool** | Whether preloaded CSS is applied to the Retool homepage. | +**PreloadedCss** | **NullableString** | Custom CSS rules to apply across Retool. | +**PreloadedJavascript** | **NullableString** | Preloaded JavaScript that will apply to every Retool app. | +**JavascriptLinks** | **[]string** | List of custom JavaScript libraries to load in every app. | +**WorkflowRunRetentionPeriodMins** | **float32** | Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem) | +**AppOwnersPermissionsManagement** | **bool** | Whether app owners can manage permissions for their apps directly. | +**TwoFactorAuthRequired** | **bool** | Whether two-factor authentication is required for all users in the organization. | +**TwoFactorAuthType** | **NullableString** | Required 2FA type, applies to the whole organization | +**DisableNewLoginIpNotificationEmail** | **bool** | Whether notification emails for logins from new IPs are disabled. | + +## Methods + +### NewOrganizationSettings + +`func NewOrganizationSettings(id string, requestAccessEnabled bool, aiSupportBotDisabled bool, retoolFormsDisabled bool, releaseManagementEnabled bool, cacheQueriesPerUser NullableBool, applyPreloadedCssToHomepage bool, preloadedCss NullableString, preloadedJavascript NullableString, javascriptLinks []string, workflowRunRetentionPeriodMins float32, appOwnersPermissionsManagement bool, twoFactorAuthRequired bool, twoFactorAuthType NullableString, disableNewLoginIpNotificationEmail bool, ) *OrganizationSettings` + +NewOrganizationSettings instantiates a new OrganizationSettings object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationSettingsWithDefaults + +`func NewOrganizationSettingsWithDefaults() *OrganizationSettings` + +NewOrganizationSettingsWithDefaults instantiates a new OrganizationSettings 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 + +### GetId + +`func (o *OrganizationSettings) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OrganizationSettings) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OrganizationSettings) SetId(v string)` + +SetId sets Id field to given value. + + +### GetRequestAccessEnabled + +`func (o *OrganizationSettings) GetRequestAccessEnabled() bool` + +GetRequestAccessEnabled returns the RequestAccessEnabled field if non-nil, zero value otherwise. + +### GetRequestAccessEnabledOk + +`func (o *OrganizationSettings) GetRequestAccessEnabledOk() (*bool, bool)` + +GetRequestAccessEnabledOk returns a tuple with the RequestAccessEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestAccessEnabled + +`func (o *OrganizationSettings) SetRequestAccessEnabled(v bool)` + +SetRequestAccessEnabled sets RequestAccessEnabled field to given value. + + +### GetAiSupportBotDisabled + +`func (o *OrganizationSettings) GetAiSupportBotDisabled() bool` + +GetAiSupportBotDisabled returns the AiSupportBotDisabled field if non-nil, zero value otherwise. + +### GetAiSupportBotDisabledOk + +`func (o *OrganizationSettings) GetAiSupportBotDisabledOk() (*bool, bool)` + +GetAiSupportBotDisabledOk returns a tuple with the AiSupportBotDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAiSupportBotDisabled + +`func (o *OrganizationSettings) SetAiSupportBotDisabled(v bool)` + +SetAiSupportBotDisabled sets AiSupportBotDisabled field to given value. + + +### GetRetoolFormsDisabled + +`func (o *OrganizationSettings) GetRetoolFormsDisabled() bool` + +GetRetoolFormsDisabled returns the RetoolFormsDisabled field if non-nil, zero value otherwise. + +### GetRetoolFormsDisabledOk + +`func (o *OrganizationSettings) GetRetoolFormsDisabledOk() (*bool, bool)` + +GetRetoolFormsDisabledOk returns a tuple with the RetoolFormsDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetoolFormsDisabled + +`func (o *OrganizationSettings) SetRetoolFormsDisabled(v bool)` + +SetRetoolFormsDisabled sets RetoolFormsDisabled field to given value. + + +### GetReleaseManagementEnabled + +`func (o *OrganizationSettings) GetReleaseManagementEnabled() bool` + +GetReleaseManagementEnabled returns the ReleaseManagementEnabled field if non-nil, zero value otherwise. + +### GetReleaseManagementEnabledOk + +`func (o *OrganizationSettings) GetReleaseManagementEnabledOk() (*bool, bool)` + +GetReleaseManagementEnabledOk returns a tuple with the ReleaseManagementEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseManagementEnabled + +`func (o *OrganizationSettings) SetReleaseManagementEnabled(v bool)` + +SetReleaseManagementEnabled sets ReleaseManagementEnabled field to given value. + + +### GetCacheQueriesPerUser + +`func (o *OrganizationSettings) GetCacheQueriesPerUser() bool` + +GetCacheQueriesPerUser returns the CacheQueriesPerUser field if non-nil, zero value otherwise. + +### GetCacheQueriesPerUserOk + +`func (o *OrganizationSettings) GetCacheQueriesPerUserOk() (*bool, bool)` + +GetCacheQueriesPerUserOk returns a tuple with the CacheQueriesPerUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCacheQueriesPerUser + +`func (o *OrganizationSettings) SetCacheQueriesPerUser(v bool)` + +SetCacheQueriesPerUser sets CacheQueriesPerUser field to given value. + + +### SetCacheQueriesPerUserNil + +`func (o *OrganizationSettings) SetCacheQueriesPerUserNil(b bool)` + + SetCacheQueriesPerUserNil sets the value for CacheQueriesPerUser to be an explicit nil + +### UnsetCacheQueriesPerUser +`func (o *OrganizationSettings) UnsetCacheQueriesPerUser()` + +UnsetCacheQueriesPerUser ensures that no value is present for CacheQueriesPerUser, not even an explicit nil +### GetApplyPreloadedCssToHomepage + +`func (o *OrganizationSettings) GetApplyPreloadedCssToHomepage() bool` + +GetApplyPreloadedCssToHomepage returns the ApplyPreloadedCssToHomepage field if non-nil, zero value otherwise. + +### GetApplyPreloadedCssToHomepageOk + +`func (o *OrganizationSettings) GetApplyPreloadedCssToHomepageOk() (*bool, bool)` + +GetApplyPreloadedCssToHomepageOk returns a tuple with the ApplyPreloadedCssToHomepage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplyPreloadedCssToHomepage + +`func (o *OrganizationSettings) SetApplyPreloadedCssToHomepage(v bool)` + +SetApplyPreloadedCssToHomepage sets ApplyPreloadedCssToHomepage field to given value. + + +### GetPreloadedCss + +`func (o *OrganizationSettings) GetPreloadedCss() string` + +GetPreloadedCss returns the PreloadedCss field if non-nil, zero value otherwise. + +### GetPreloadedCssOk + +`func (o *OrganizationSettings) GetPreloadedCssOk() (*string, bool)` + +GetPreloadedCssOk returns a tuple with the PreloadedCss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreloadedCss + +`func (o *OrganizationSettings) SetPreloadedCss(v string)` + +SetPreloadedCss sets PreloadedCss field to given value. + + +### SetPreloadedCssNil + +`func (o *OrganizationSettings) SetPreloadedCssNil(b bool)` + + SetPreloadedCssNil sets the value for PreloadedCss to be an explicit nil + +### UnsetPreloadedCss +`func (o *OrganizationSettings) UnsetPreloadedCss()` + +UnsetPreloadedCss ensures that no value is present for PreloadedCss, not even an explicit nil +### GetPreloadedJavascript + +`func (o *OrganizationSettings) GetPreloadedJavascript() string` + +GetPreloadedJavascript returns the PreloadedJavascript field if non-nil, zero value otherwise. + +### GetPreloadedJavascriptOk + +`func (o *OrganizationSettings) GetPreloadedJavascriptOk() (*string, bool)` + +GetPreloadedJavascriptOk returns a tuple with the PreloadedJavascript field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreloadedJavascript + +`func (o *OrganizationSettings) SetPreloadedJavascript(v string)` + +SetPreloadedJavascript sets PreloadedJavascript field to given value. + + +### SetPreloadedJavascriptNil + +`func (o *OrganizationSettings) SetPreloadedJavascriptNil(b bool)` + + SetPreloadedJavascriptNil sets the value for PreloadedJavascript to be an explicit nil + +### UnsetPreloadedJavascript +`func (o *OrganizationSettings) UnsetPreloadedJavascript()` + +UnsetPreloadedJavascript ensures that no value is present for PreloadedJavascript, not even an explicit nil +### GetJavascriptLinks + +`func (o *OrganizationSettings) GetJavascriptLinks() []string` + +GetJavascriptLinks returns the JavascriptLinks field if non-nil, zero value otherwise. + +### GetJavascriptLinksOk + +`func (o *OrganizationSettings) GetJavascriptLinksOk() (*[]string, bool)` + +GetJavascriptLinksOk returns a tuple with the JavascriptLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJavascriptLinks + +`func (o *OrganizationSettings) SetJavascriptLinks(v []string)` + +SetJavascriptLinks sets JavascriptLinks field to given value. + + +### GetWorkflowRunRetentionPeriodMins + +`func (o *OrganizationSettings) GetWorkflowRunRetentionPeriodMins() float32` + +GetWorkflowRunRetentionPeriodMins returns the WorkflowRunRetentionPeriodMins field if non-nil, zero value otherwise. + +### GetWorkflowRunRetentionPeriodMinsOk + +`func (o *OrganizationSettings) GetWorkflowRunRetentionPeriodMinsOk() (*float32, bool)` + +GetWorkflowRunRetentionPeriodMinsOk returns a tuple with the WorkflowRunRetentionPeriodMins field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRunRetentionPeriodMins + +`func (o *OrganizationSettings) SetWorkflowRunRetentionPeriodMins(v float32)` + +SetWorkflowRunRetentionPeriodMins sets WorkflowRunRetentionPeriodMins field to given value. + + +### GetAppOwnersPermissionsManagement + +`func (o *OrganizationSettings) GetAppOwnersPermissionsManagement() bool` + +GetAppOwnersPermissionsManagement returns the AppOwnersPermissionsManagement field if non-nil, zero value otherwise. + +### GetAppOwnersPermissionsManagementOk + +`func (o *OrganizationSettings) GetAppOwnersPermissionsManagementOk() (*bool, bool)` + +GetAppOwnersPermissionsManagementOk returns a tuple with the AppOwnersPermissionsManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppOwnersPermissionsManagement + +`func (o *OrganizationSettings) SetAppOwnersPermissionsManagement(v bool)` + +SetAppOwnersPermissionsManagement sets AppOwnersPermissionsManagement field to given value. + + +### GetTwoFactorAuthRequired + +`func (o *OrganizationSettings) GetTwoFactorAuthRequired() bool` + +GetTwoFactorAuthRequired returns the TwoFactorAuthRequired field if non-nil, zero value otherwise. + +### GetTwoFactorAuthRequiredOk + +`func (o *OrganizationSettings) GetTwoFactorAuthRequiredOk() (*bool, bool)` + +GetTwoFactorAuthRequiredOk returns a tuple with the TwoFactorAuthRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwoFactorAuthRequired + +`func (o *OrganizationSettings) SetTwoFactorAuthRequired(v bool)` + +SetTwoFactorAuthRequired sets TwoFactorAuthRequired field to given value. + + +### GetTwoFactorAuthType + +`func (o *OrganizationSettings) GetTwoFactorAuthType() string` + +GetTwoFactorAuthType returns the TwoFactorAuthType field if non-nil, zero value otherwise. + +### GetTwoFactorAuthTypeOk + +`func (o *OrganizationSettings) GetTwoFactorAuthTypeOk() (*string, bool)` + +GetTwoFactorAuthTypeOk returns a tuple with the TwoFactorAuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwoFactorAuthType + +`func (o *OrganizationSettings) SetTwoFactorAuthType(v string)` + +SetTwoFactorAuthType sets TwoFactorAuthType field to given value. + + +### SetTwoFactorAuthTypeNil + +`func (o *OrganizationSettings) SetTwoFactorAuthTypeNil(b bool)` + + SetTwoFactorAuthTypeNil sets the value for TwoFactorAuthType to be an explicit nil + +### UnsetTwoFactorAuthType +`func (o *OrganizationSettings) UnsetTwoFactorAuthType()` + +UnsetTwoFactorAuthType ensures that no value is present for TwoFactorAuthType, not even an explicit nil +### GetDisableNewLoginIpNotificationEmail + +`func (o *OrganizationSettings) GetDisableNewLoginIpNotificationEmail() bool` + +GetDisableNewLoginIpNotificationEmail returns the DisableNewLoginIpNotificationEmail field if non-nil, zero value otherwise. + +### GetDisableNewLoginIpNotificationEmailOk + +`func (o *OrganizationSettings) GetDisableNewLoginIpNotificationEmailOk() (*bool, bool)` + +GetDisableNewLoginIpNotificationEmailOk returns a tuple with the DisableNewLoginIpNotificationEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableNewLoginIpNotificationEmail + +`func (o *OrganizationSettings) SetDisableNewLoginIpNotificationEmail(v bool)` + +SetDisableNewLoginIpNotificationEmail sets DisableNewLoginIpNotificationEmail field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsAPI.md b/internal/sdk/api/docs/PermissionsAPI.md index 4adb831..bf80547 100644 --- a/internal/sdk/api/docs/PermissionsAPI.md +++ b/internal/sdk/api/docs/PermissionsAPI.md @@ -4,12 +4,94 @@ All URIs are relative to *http://.* Method | HTTP request | Description ------------- | ------------- | ------------- +[**PermissionsAccessListObjectTypeObjectIdGet**](PermissionsAPI.md#PermissionsAccessListObjectTypeObjectIdGet) | **Get** /permissions/accessList/{objectType}/{objectId} | Get the access list of an app or folder [**PermissionsGrantPost**](PermissionsAPI.md#PermissionsGrantPost) | **Post** /permissions/grant | Grant permissions [**PermissionsListObjectsPost**](PermissionsAPI.md#PermissionsListObjectsPost) | **Post** /permissions/listObjects | List objects a group can access [**PermissionsRevokePost**](PermissionsAPI.md#PermissionsRevokePost) | **Post** /permissions/revoke | Revoke permissions +[**RolePermissionsRoleGrantsGet**](PermissionsAPI.md#RolePermissionsRoleGrantsGet) | **Get** /role_permissions/role_grants | Get role grants +[**RolePermissionsRoleGrantsPost**](PermissionsAPI.md#RolePermissionsRoleGrantsPost) | **Post** /role_permissions/role_grants | Create a role grant +[**RolePermissionsRoleGrantsRoleGrantIdDelete**](PermissionsAPI.md#RolePermissionsRoleGrantsRoleGrantIdDelete) | **Delete** /role_permissions/role_grants/{roleGrantId} | Delete a role grant +[**RolePermissionsRoleGrantsSubjectTypeSubjectIdGet**](PermissionsAPI.md#RolePermissionsRoleGrantsSubjectTypeSubjectIdGet) | **Get** /role_permissions/role_grants/{subjectType}/{subjectId} | Get role grants for a subject +[**RolePermissionsRolesGet**](PermissionsAPI.md#RolePermissionsRolesGet) | **Get** /role_permissions/roles | List roles +[**RolePermissionsRolesPost**](PermissionsAPI.md#RolePermissionsRolesPost) | **Post** /role_permissions/roles | Create a role +[**RolePermissionsRolesRoleIdDelete**](PermissionsAPI.md#RolePermissionsRolesRoleIdDelete) | **Delete** /role_permissions/roles/{roleId} | Delete a role +[**RolePermissionsRolesRoleIdPatch**](PermissionsAPI.md#RolePermissionsRolesRoleIdPatch) | **Patch** /role_permissions/roles/{roleId} | Update a role +## PermissionsAccessListObjectTypeObjectIdGet + +> PermissionsAccessListObjectTypeObjectIdGet200Response PermissionsAccessListObjectTypeObjectIdGet(ctx, objectId, objectType).Execute() + +Get the access list of an app or folder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + objectId := "objectId_example" // string | Object ID. Apps can be accessed by numeric id or UUID. Folders can be accessed by numeric id. + objectType := "objectType_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionsAPI.PermissionsAccessListObjectTypeObjectIdGet(context.Background(), objectId, objectType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.PermissionsAccessListObjectTypeObjectIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PermissionsAccessListObjectTypeObjectIdGet`: PermissionsAccessListObjectTypeObjectIdGet200Response + fmt.Fprintf(os.Stdout, "Response from `PermissionsAPI.PermissionsAccessListObjectTypeObjectIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**objectId** | **string** | Object ID. Apps can be accessed by numeric id or UUID. Folders can be accessed by numeric id. | +**objectType** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPermissionsAccessListObjectTypeObjectIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**PermissionsAccessListObjectTypeObjectIdGet200Response**](PermissionsAccessListObjectTypeObjectIdGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## PermissionsGrantPost > PermissionsListObjectsPost200Response PermissionsGrantPost(ctx).PermissionsGrantPostRequest(permissionsGrantPostRequest).Execute() @@ -31,7 +113,7 @@ import ( ) func main() { - permissionsGrantPostRequest := *openapiclient.NewPermissionsGrantPostRequest(openapiclient._permissions_listObjects_post_request_subject{PermissionsListObjectsPostRequestSubjectOneOf: openapiclient.NewPermissionsListObjectsPostRequestSubjectOneOf("Type_example", NullableFloat32(123))}, openapiclient._permissions_grant_post_request_object{PermissionsGrantPostRequestObjectOneOf: openapiclient.NewPermissionsGrantPostRequestObjectOneOf("Type_example", "Id_example")}, "AccessLevel_example") // PermissionsGrantPostRequest | (optional) + permissionsGrantPostRequest := *openapiclient.NewPermissionsGrantPostRequest(openapiclient._permissions_listObjects_post_request_subject{Group: openapiclient.NewGroup("Type_example", NullableFloat32(123))}, openapiclient._permissions_grant_post_request_object{App: openapiclient.NewApp("Type_example", "Id_example")}, "AccessLevel_example") // PermissionsGrantPostRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -97,7 +179,7 @@ import ( ) func main() { - permissionsListObjectsPostRequest := *openapiclient.NewPermissionsListObjectsPostRequest(openapiclient._permissions_listObjects_post_request_subject{PermissionsListObjectsPostRequestSubjectOneOf: openapiclient.NewPermissionsListObjectsPostRequestSubjectOneOf("Type_example", NullableFloat32(123))}, "ObjectType_example") // PermissionsListObjectsPostRequest | (optional) + permissionsListObjectsPostRequest := *openapiclient.NewPermissionsListObjectsPostRequest(openapiclient._permissions_listObjects_post_request_subject{Group: openapiclient.NewGroup("Type_example", NullableFloat32(123))}, "ObjectType_example") // PermissionsListObjectsPostRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -144,7 +226,7 @@ Name | Type | Description | Notes ## PermissionsRevokePost -> PermissionsRevokePost200Response PermissionsRevokePost(ctx).PermissionsRevokePostRequest(permissionsRevokePostRequest).Execute() +> PermissionsListObjectsPost200Response PermissionsRevokePost(ctx).PermissionsRevokePostRequest(permissionsRevokePostRequest).Execute() Revoke permissions @@ -163,7 +245,7 @@ import ( ) func main() { - permissionsRevokePostRequest := *openapiclient.NewPermissionsRevokePostRequest(openapiclient._permissions_listObjects_post_request_subject{PermissionsListObjectsPostRequestSubjectOneOf: openapiclient.NewPermissionsListObjectsPostRequestSubjectOneOf("Type_example", NullableFloat32(123))}, openapiclient._permissions_grant_post_request_object{PermissionsGrantPostRequestObjectOneOf: openapiclient.NewPermissionsGrantPostRequestObjectOneOf("Type_example", "Id_example")}) // PermissionsRevokePostRequest | (optional) + permissionsRevokePostRequest := *openapiclient.NewPermissionsRevokePostRequest(openapiclient._permissions_listObjects_post_request_subject{Group: openapiclient.NewGroup("Type_example", NullableFloat32(123))}, openapiclient._permissions_grant_post_request_object{App: openapiclient.NewApp("Type_example", "Id_example")}) // PermissionsRevokePostRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -172,7 +254,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.PermissionsRevokePost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PermissionsRevokePost`: PermissionsRevokePost200Response + // response from `PermissionsRevokePost`: PermissionsListObjectsPost200Response fmt.Fprintf(os.Stdout, "Response from `PermissionsAPI.PermissionsRevokePost`: %v\n", resp) } ``` @@ -192,7 +274,536 @@ Name | Type | Description | Notes ### Return type -[**PermissionsRevokePost200Response**](PermissionsRevokePost200Response.md) +[**PermissionsListObjectsPost200Response**](PermissionsListObjectsPost200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RolePermissionsRoleGrantsGet + +> RolePermissionsRoleGrantsGet(ctx).Execute() + +Get role grants + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PermissionsAPI.RolePermissionsRoleGrantsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.RolePermissionsRoleGrantsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiRolePermissionsRoleGrantsGetRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RolePermissionsRoleGrantsPost + +> RolePermissionsRoleGrantsPost(ctx).RolePermissionsRoleGrantsPostRequest(rolePermissionsRoleGrantsPostRequest).Execute() + +Create a role grant + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + rolePermissionsRoleGrantsPostRequest := *openapiclient.NewRolePermissionsRoleGrantsPostRequest("RoleId_example", "SubjectType_example", "SubjectId_example") // RolePermissionsRoleGrantsPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PermissionsAPI.RolePermissionsRoleGrantsPost(context.Background()).RolePermissionsRoleGrantsPostRequest(rolePermissionsRoleGrantsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.RolePermissionsRoleGrantsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRolePermissionsRoleGrantsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rolePermissionsRoleGrantsPostRequest** | [**RolePermissionsRoleGrantsPostRequest**](RolePermissionsRoleGrantsPostRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RolePermissionsRoleGrantsRoleGrantIdDelete + +> RolePermissionsRoleGrantsRoleGrantIdDelete(ctx, roleGrantId).Execute() + +Delete a role grant + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleGrantId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The id of the role grant + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PermissionsAPI.RolePermissionsRoleGrantsRoleGrantIdDelete(context.Background(), roleGrantId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.RolePermissionsRoleGrantsRoleGrantIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleGrantId** | **string** | The id of the role grant | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRolePermissionsRoleGrantsRoleGrantIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RolePermissionsRoleGrantsSubjectTypeSubjectIdGet + +> RolePermissionsRoleGrantsSubjectTypeSubjectIdGet(ctx, subjectType, subjectId).Execute() + +Get role grants for a subject + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + subjectType := "subjectType_example" // string | The type of the subject + subjectId := "subjectId_example" // string | The id of the subject + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PermissionsAPI.RolePermissionsRoleGrantsSubjectTypeSubjectIdGet(context.Background(), subjectType, subjectId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.RolePermissionsRoleGrantsSubjectTypeSubjectIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subjectType** | **string** | The type of the subject | +**subjectId** | **string** | The id of the subject | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRolePermissionsRoleGrantsSubjectTypeSubjectIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RolePermissionsRolesGet + +> RolePermissionsRolesGet200Response RolePermissionsRolesGet(ctx).Execute() + +List roles + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionsAPI.RolePermissionsRolesGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.RolePermissionsRolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RolePermissionsRolesGet`: RolePermissionsRolesGet200Response + fmt.Fprintf(os.Stdout, "Response from `PermissionsAPI.RolePermissionsRolesGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiRolePermissionsRolesGetRequest struct via the builder pattern + + +### Return type + +[**RolePermissionsRolesGet200Response**](RolePermissionsRolesGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RolePermissionsRolesPost + +> RolePermissionsRolesPost201Response RolePermissionsRolesPost(ctx).RolePermissionsRolesPostRequest(rolePermissionsRolesPostRequest).Execute() + +Create a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + rolePermissionsRolesPostRequest := *openapiclient.NewRolePermissionsRolesPostRequest("Name_example", []string{"ObjectScopes_example"}, []string{"OrganizationScopes_example"}) // RolePermissionsRolesPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionsAPI.RolePermissionsRolesPost(context.Background()).RolePermissionsRolesPostRequest(rolePermissionsRolesPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.RolePermissionsRolesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RolePermissionsRolesPost`: RolePermissionsRolesPost201Response + fmt.Fprintf(os.Stdout, "Response from `PermissionsAPI.RolePermissionsRolesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRolePermissionsRolesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rolePermissionsRolesPostRequest** | [**RolePermissionsRolesPostRequest**](RolePermissionsRolesPostRequest.md) | | + +### Return type + +[**RolePermissionsRolesPost201Response**](RolePermissionsRolesPost201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RolePermissionsRolesRoleIdDelete + +> RolePermissionsRolesRoleIdDelete(ctx, roleId).Execute() + +Delete a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The id of the role + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PermissionsAPI.RolePermissionsRolesRoleIdDelete(context.Background(), roleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.RolePermissionsRolesRoleIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleId** | **string** | The id of the role | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRolePermissionsRolesRoleIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RolePermissionsRolesRoleIdPatch + +> RolePermissionsRolesPost201Response RolePermissionsRolesRoleIdPatch(ctx, roleId).RolePermissionsRolesRoleIdPatchRequest(rolePermissionsRolesRoleIdPatchRequest).Execute() + +Update a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + roleId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The id of the role + rolePermissionsRolesRoleIdPatchRequest := *openapiclient.NewRolePermissionsRolesRoleIdPatchRequest() // RolePermissionsRolesRoleIdPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionsAPI.RolePermissionsRolesRoleIdPatch(context.Background(), roleId).RolePermissionsRolesRoleIdPatchRequest(rolePermissionsRolesRoleIdPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsAPI.RolePermissionsRolesRoleIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RolePermissionsRolesRoleIdPatch`: RolePermissionsRolesPost201Response + fmt.Fprintf(os.Stdout, "Response from `PermissionsAPI.RolePermissionsRolesRoleIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleId** | **string** | The id of the role | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRolePermissionsRolesRoleIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **rolePermissionsRolesRoleIdPatchRequest** | [**RolePermissionsRolesRoleIdPatchRequest**](RolePermissionsRolesRoleIdPatchRequest.md) | | + +### Return type + +[**RolePermissionsRolesPost201Response**](RolePermissionsRolesPost201Response.md) ### Authorization diff --git a/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200Response.md b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200Response.md new file mode 100644 index 0000000..64b7fc6 --- /dev/null +++ b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200Response.md @@ -0,0 +1,72 @@ +# PermissionsAccessListObjectTypeObjectIdGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**PermissionsAccessListObjectTypeObjectIdGet200ResponseData**](PermissionsAccessListObjectTypeObjectIdGet200ResponseData.md) | | + +## Methods + +### NewPermissionsAccessListObjectTypeObjectIdGet200Response + +`func NewPermissionsAccessListObjectTypeObjectIdGet200Response(success bool, data PermissionsAccessListObjectTypeObjectIdGet200ResponseData, ) *PermissionsAccessListObjectTypeObjectIdGet200Response` + +NewPermissionsAccessListObjectTypeObjectIdGet200Response instantiates a new PermissionsAccessListObjectTypeObjectIdGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseWithDefaults + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200Response` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200Response 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 + +### GetSuccess + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) GetData() PermissionsAccessListObjectTypeObjectIdGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) GetDataOk() (*PermissionsAccessListObjectTypeObjectIdGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) SetData(v PermissionsAccessListObjectTypeObjectIdGet200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseData.md b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseData.md new file mode 100644 index 0000000..03d5878 --- /dev/null +++ b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseData.md @@ -0,0 +1,108 @@ +# PermissionsAccessListObjectTypeObjectIdGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | Pointer to [**[]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner**](PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner.md) | | [optional] +**User** | Pointer to [**[]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner**](PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner.md) | | [optional] +**UserInvite** | Pointer to [**[]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner**](PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner.md) | | [optional] + +## Methods + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseData + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseData() *PermissionsAccessListObjectTypeObjectIdGet200ResponseData` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseData instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataWithDefaults + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseData` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseData 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 + +### GetGroup + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetGroup() []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetGroupOk() (*[]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) SetGroup(v []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetUser + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetUser() []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetUserOk() (*[]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) SetUser(v []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetUserInvite + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetUserInvite() []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner` + +GetUserInvite returns the UserInvite field if non-nil, zero value otherwise. + +### GetUserInviteOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetUserInviteOk() (*[]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner, bool)` + +GetUserInviteOk returns a tuple with the UserInvite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserInvite + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) SetUserInvite(v []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner)` + +SetUserInvite sets UserInvite field to given value. + +### HasUserInvite + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) HasUserInvite() bool` + +HasUserInvite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner.md b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner.md new file mode 100644 index 0000000..51fc295 --- /dev/null +++ b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner.md @@ -0,0 +1,98 @@ +# PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | [**PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject**](PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject.md) | | +**Sources** | Pointer to [**PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources**](PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources.md) | | [optional] +**AccessLevel** | **string** | | + +## Methods + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner(subject PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject, accessLevel string, ) *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerWithDefaults + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner 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 + +### GetSubject + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetSubject() PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetSubjectOk() (*PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) SetSubject(v PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject)` + +SetSubject sets Subject field to given value. + + +### GetSources + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetSources() PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources` + +GetSources returns the Sources field if non-nil, zero value otherwise. + +### GetSourcesOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetSourcesOk() (*PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources, bool)` + +GetSourcesOk returns a tuple with the Sources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSources + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) SetSources(v PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources)` + +SetSources sets Sources field to given value. + +### HasSources + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) HasSources() bool` + +HasSources returns a boolean if a field has been set. + +### GetAccessLevel + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetAccessLevel() string` + +GetAccessLevel returns the AccessLevel field if non-nil, zero value otherwise. + +### GetAccessLevelOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetAccessLevelOk() (*string, bool)` + +GetAccessLevelOk returns a tuple with the AccessLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessLevel + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) SetAccessLevel(v string)` + +SetAccessLevel sets AccessLevel field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources.md b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources.md new file mode 100644 index 0000000..0b621ea --- /dev/null +++ b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources.md @@ -0,0 +1,134 @@ +# PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Direct** | Pointer to **bool** | | [optional] +**Universal** | Pointer to **bool** | | [optional] +**Groups** | Pointer to [**[]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner**](PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner.md) | | [optional] +**Inherited** | Pointer to [**PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited**](PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited.md) | | [optional] + +## Methods + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesWithDefaults + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources 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 + +### GetDirect + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetDirect() bool` + +GetDirect returns the Direct field if non-nil, zero value otherwise. + +### GetDirectOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetDirectOk() (*bool, bool)` + +GetDirectOk returns a tuple with the Direct field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirect + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) SetDirect(v bool)` + +SetDirect sets Direct field to given value. + +### HasDirect + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) HasDirect() bool` + +HasDirect returns a boolean if a field has been set. + +### GetUniversal + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetUniversal() bool` + +GetUniversal returns the Universal field if non-nil, zero value otherwise. + +### GetUniversalOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetUniversalOk() (*bool, bool)` + +GetUniversalOk returns a tuple with the Universal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniversal + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) SetUniversal(v bool)` + +SetUniversal sets Universal field to given value. + +### HasUniversal + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) HasUniversal() bool` + +HasUniversal returns a boolean if a field has been set. + +### GetGroups + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetGroups() []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetGroupsOk() (*[]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) SetGroups(v []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetInherited + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetInherited() PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited` + +GetInherited returns the Inherited field if non-nil, zero value otherwise. + +### GetInheritedOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetInheritedOk() (*PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited, bool)` + +GetInheritedOk returns a tuple with the Inherited field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInherited + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) SetInherited(v PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited)` + +SetInherited sets Inherited field to given value. + +### HasInherited + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) HasInherited() bool` + +HasInherited returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner.md b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner.md new file mode 100644 index 0000000..1b3c09f --- /dev/null +++ b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner.md @@ -0,0 +1,72 @@ +# PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Type** | **string** | | + +## Methods + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner(id string, type_ string, ) *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInnerWithDefaults + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInnerWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInnerWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner 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 + +### GetId + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited.md b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited.md new file mode 100644 index 0000000..399011e --- /dev/null +++ b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited.md @@ -0,0 +1,72 @@ +# PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Type** | **string** | | + +## Methods + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited(id string, type_ string, ) *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInheritedWithDefaults + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInheritedWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInheritedWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited 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 + +### GetId + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject.md b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject.md new file mode 100644 index 0000000..f40147b --- /dev/null +++ b/internal/sdk/api/docs/PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject.md @@ -0,0 +1,72 @@ +# PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Type** | **string** | | + +## Methods + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject(id string, type_ string, ) *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubjectWithDefaults + +`func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubjectWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject` + +NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubjectWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject 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 + +### GetId + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsGrantPost200Response.md b/internal/sdk/api/docs/PermissionsGrantPost200Response.md new file mode 100644 index 0000000..7bfae6e --- /dev/null +++ b/internal/sdk/api/docs/PermissionsGrantPost200Response.md @@ -0,0 +1,145 @@ +# PermissionsGrantPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**[]PermissionsGrantPost200ResponseDataInner**](PermissionsGrantPost200ResponseDataInner.md) | An array of requested items | +**TotalCount** | **float32** | Total number of items in the response | +**NextToken** | **NullableString** | A token to retrieve the next page of items in the collection | +**HasMore** | **bool** | Whether there are more items in the collection | + +## Methods + +### NewPermissionsGrantPost200Response + +`func NewPermissionsGrantPost200Response(success bool, data []PermissionsGrantPost200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool, ) *PermissionsGrantPost200Response` + +NewPermissionsGrantPost200Response instantiates a new PermissionsGrantPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsGrantPost200ResponseWithDefaults + +`func NewPermissionsGrantPost200ResponseWithDefaults() *PermissionsGrantPost200Response` + +NewPermissionsGrantPost200ResponseWithDefaults instantiates a new PermissionsGrantPost200Response 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 + +### GetSuccess + +`func (o *PermissionsGrantPost200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *PermissionsGrantPost200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *PermissionsGrantPost200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *PermissionsGrantPost200Response) GetData() []PermissionsGrantPost200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PermissionsGrantPost200Response) GetDataOk() (*[]PermissionsGrantPost200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PermissionsGrantPost200Response) SetData(v []PermissionsGrantPost200ResponseDataInner)` + +SetData sets Data field to given value. + + +### GetTotalCount + +`func (o *PermissionsGrantPost200Response) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *PermissionsGrantPost200Response) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *PermissionsGrantPost200Response) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + + +### GetNextToken + +`func (o *PermissionsGrantPost200Response) GetNextToken() string` + +GetNextToken returns the NextToken field if non-nil, zero value otherwise. + +### GetNextTokenOk + +`func (o *PermissionsGrantPost200Response) GetNextTokenOk() (*string, bool)` + +GetNextTokenOk returns a tuple with the NextToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextToken + +`func (o *PermissionsGrantPost200Response) SetNextToken(v string)` + +SetNextToken sets NextToken field to given value. + + +### SetNextTokenNil + +`func (o *PermissionsGrantPost200Response) SetNextTokenNil(b bool)` + + SetNextTokenNil sets the value for NextToken to be an explicit nil + +### UnsetNextToken +`func (o *PermissionsGrantPost200Response) UnsetNextToken()` + +UnsetNextToken ensures that no value is present for NextToken, not even an explicit nil +### GetHasMore + +`func (o *PermissionsGrantPost200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *PermissionsGrantPost200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *PermissionsGrantPost200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsGrantPost200ResponseDataInner.md b/internal/sdk/api/docs/PermissionsGrantPost200ResponseDataInner.md new file mode 100644 index 0000000..9eab4f0 --- /dev/null +++ b/internal/sdk/api/docs/PermissionsGrantPost200ResponseDataInner.md @@ -0,0 +1,93 @@ +# PermissionsGrantPost200ResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **string** | The resource configuration id. | +**AccessLevel** | **string** | The access level of the resource configuration. Note that the access level in practice of this resource configuration could be different dependent on what the access level of the resource with the same id as the \"name\" of this resource_configuration. | + +## Methods + +### NewPermissionsGrantPost200ResponseDataInner + +`func NewPermissionsGrantPost200ResponseDataInner(type_ string, id string, accessLevel string, ) *PermissionsGrantPost200ResponseDataInner` + +NewPermissionsGrantPost200ResponseDataInner instantiates a new PermissionsGrantPost200ResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsGrantPost200ResponseDataInnerWithDefaults + +`func NewPermissionsGrantPost200ResponseDataInnerWithDefaults() *PermissionsGrantPost200ResponseDataInner` + +NewPermissionsGrantPost200ResponseDataInnerWithDefaults instantiates a new PermissionsGrantPost200ResponseDataInner 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 + +### GetType + +`func (o *PermissionsGrantPost200ResponseDataInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PermissionsGrantPost200ResponseDataInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PermissionsGrantPost200ResponseDataInner) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *PermissionsGrantPost200ResponseDataInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionsGrantPost200ResponseDataInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionsGrantPost200ResponseDataInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetAccessLevel + +`func (o *PermissionsGrantPost200ResponseDataInner) GetAccessLevel() string` + +GetAccessLevel returns the AccessLevel field if non-nil, zero value otherwise. + +### GetAccessLevelOk + +`func (o *PermissionsGrantPost200ResponseDataInner) GetAccessLevelOk() (*string, bool)` + +GetAccessLevelOk returns a tuple with the AccessLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessLevel + +`func (o *PermissionsGrantPost200ResponseDataInner) SetAccessLevel(v string)` + +SetAccessLevel sets AccessLevel field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsGrantPostRequestObject.md b/internal/sdk/api/docs/PermissionsGrantPostRequestObject.md index dd77ddf..64e5cbc 100644 --- a/internal/sdk/api/docs/PermissionsGrantPostRequestObject.md +++ b/internal/sdk/api/docs/PermissionsGrantPostRequestObject.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | -**Id** | **string** | The id of the object | +**Id** | **string** | The resource configuration id. | ## Methods diff --git a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInner.md b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInner.md index fa530f0..b5f1b05 100644 --- a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInner.md +++ b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInner.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | -**Id** | **string** | The id of the object | -**AccessLevel** | **string** | The access level of the object | +**Id** | **string** | The resource configuration id. | +**AccessLevel** | **string** | The access level of the resource configuration. Note that the access level in practice of this resource configuration could be different dependent on what the access level of the resource with the same id as the \"name\" of this resource_configuration. | ## Methods diff --git a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf.md b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf.md new file mode 100644 index 0000000..10c7a65 --- /dev/null +++ b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf.md @@ -0,0 +1,93 @@ +# PermissionsListObjectsPost200ResponseDataInnerAnyOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **string** | The id of the folder | +**AccessLevel** | **string** | The access level of the folder | + +## Methods + +### NewPermissionsListObjectsPost200ResponseDataInnerAnyOf + +`func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf(type_ string, id string, accessLevel string, ) *PermissionsListObjectsPost200ResponseDataInnerAnyOf` + +NewPermissionsListObjectsPost200ResponseDataInnerAnyOf instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsListObjectsPost200ResponseDataInnerAnyOfWithDefaults + +`func NewPermissionsListObjectsPost200ResponseDataInnerAnyOfWithDefaults() *PermissionsListObjectsPost200ResponseDataInnerAnyOf` + +NewPermissionsListObjectsPost200ResponseDataInnerAnyOfWithDefaults instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf 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 + +### GetType + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) SetId(v string)` + +SetId sets Id field to given value. + + +### GetAccessLevel + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetAccessLevel() string` + +GetAccessLevel returns the AccessLevel field if non-nil, zero value otherwise. + +### GetAccessLevelOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetAccessLevelOk() (*string, bool)` + +GetAccessLevelOk returns a tuple with the AccessLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessLevel + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) SetAccessLevel(v string)` + +SetAccessLevel sets AccessLevel field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf1.md b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf1.md new file mode 100644 index 0000000..841ca92 --- /dev/null +++ b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf1.md @@ -0,0 +1,93 @@ +# PermissionsListObjectsPost200ResponseDataInnerAnyOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **string** | The app ID. | +**AccessLevel** | **string** | The access level of the app | + +## Methods + +### NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1 + +`func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1(type_ string, id string, accessLevel string, ) *PermissionsListObjectsPost200ResponseDataInnerAnyOf1` + +NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1 instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1WithDefaults + +`func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1WithDefaults() *PermissionsListObjectsPost200ResponseDataInnerAnyOf1` + +NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1WithDefaults instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf1 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 + +### GetType + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) SetId(v string)` + +SetId sets Id field to given value. + + +### GetAccessLevel + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetAccessLevel() string` + +GetAccessLevel returns the AccessLevel field if non-nil, zero value otherwise. + +### GetAccessLevelOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetAccessLevelOk() (*string, bool)` + +GetAccessLevelOk returns a tuple with the AccessLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessLevel + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) SetAccessLevel(v string)` + +SetAccessLevel sets AccessLevel field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf2.md b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf2.md new file mode 100644 index 0000000..d3e0a52 --- /dev/null +++ b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf2.md @@ -0,0 +1,93 @@ +# PermissionsListObjectsPost200ResponseDataInnerAnyOf2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **string** | The uuid or name for the resource. | +**AccessLevel** | **string** | The access level of the resource | + +## Methods + +### NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2 + +`func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2(type_ string, id string, accessLevel string, ) *PermissionsListObjectsPost200ResponseDataInnerAnyOf2` + +NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2 instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf2 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2WithDefaults + +`func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2WithDefaults() *PermissionsListObjectsPost200ResponseDataInnerAnyOf2` + +NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2WithDefaults instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf2 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 + +### GetType + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) SetId(v string)` + +SetId sets Id field to given value. + + +### GetAccessLevel + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetAccessLevel() string` + +GetAccessLevel returns the AccessLevel field if non-nil, zero value otherwise. + +### GetAccessLevelOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetAccessLevelOk() (*string, bool)` + +GetAccessLevelOk returns a tuple with the AccessLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessLevel + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) SetAccessLevel(v string)` + +SetAccessLevel sets AccessLevel field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf3.md b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf3.md new file mode 100644 index 0000000..738784c --- /dev/null +++ b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerAnyOf3.md @@ -0,0 +1,93 @@ +# PermissionsListObjectsPost200ResponseDataInnerAnyOf3 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **string** | The resource configuration id. | +**AccessLevel** | **string** | The access level of the resource configuration. Note that the access level in practice of this resource configuration could be different dependent on what the access level of the resource with the same id as the \"name\" of this resource_configuration. | + +## Methods + +### NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3 + +`func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3(type_ string, id string, accessLevel string, ) *PermissionsListObjectsPost200ResponseDataInnerAnyOf3` + +NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3 instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf3 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3WithDefaults + +`func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3WithDefaults() *PermissionsListObjectsPost200ResponseDataInnerAnyOf3` + +NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3WithDefaults instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf3 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 + +### GetType + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) SetId(v string)` + +SetId sets Id field to given value. + + +### GetAccessLevel + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetAccessLevel() string` + +GetAccessLevel returns the AccessLevel field if non-nil, zero value otherwise. + +### GetAccessLevelOk + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetAccessLevelOk() (*string, bool)` + +GetAccessLevelOk returns a tuple with the AccessLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessLevel + +`func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) SetAccessLevel(v string)` + +SetAccessLevel sets AccessLevel field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerOneOf.md b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerOneOf.md index 71b619d..c7ed5cb 100644 --- a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerOneOf.md +++ b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerOneOf.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | -**Id** | **string** | The id of the object | -**AccessLevel** | **string** | The access level of the object | +**Id** | **string** | The id of the folder | +**AccessLevel** | **string** | The access level of the folder | ## Methods diff --git a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerOneOf2.md b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerOneOf2.md index a1ec397..c28f9da 100644 --- a/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerOneOf2.md +++ b/internal/sdk/api/docs/PermissionsListObjectsPost200ResponseDataInnerOneOf2.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | -**Id** | [**PermissionsListObjectsPost200ResponseDataInnerOneOf2Id**](PermissionsListObjectsPost200ResponseDataInnerOneOf2Id.md) | | +**Id** | **string** | The uuid or name for the resource. | **AccessLevel** | **string** | The access level of the resource | ## Methods ### NewPermissionsListObjectsPost200ResponseDataInnerOneOf2 -`func NewPermissionsListObjectsPost200ResponseDataInnerOneOf2(type_ string, id PermissionsListObjectsPost200ResponseDataInnerOneOf2Id, accessLevel string, ) *PermissionsListObjectsPost200ResponseDataInnerOneOf2` +`func NewPermissionsListObjectsPost200ResponseDataInnerOneOf2(type_ string, id string, accessLevel string, ) *PermissionsListObjectsPost200ResponseDataInnerOneOf2` NewPermissionsListObjectsPost200ResponseDataInnerOneOf2 instantiates a new PermissionsListObjectsPost200ResponseDataInnerOneOf2 object This constructor will assign default values to properties that have it defined, @@ -49,20 +49,20 @@ SetType sets Type field to given value. ### GetId -`func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetId() PermissionsListObjectsPost200ResponseDataInnerOneOf2Id` +`func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetIdOk() (*PermissionsListObjectsPost200ResponseDataInnerOneOf2Id, bool)` +`func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetIdOk() (*string, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) SetId(v PermissionsListObjectsPost200ResponseDataInnerOneOf2Id)` +`func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) SetId(v string)` SetId sets Id field to given value. diff --git a/internal/sdk/api/docs/PermissionsListObjectsPostRequest.md b/internal/sdk/api/docs/PermissionsListObjectsPostRequest.md index 70029f5..95dc32b 100644 --- a/internal/sdk/api/docs/PermissionsListObjectsPostRequest.md +++ b/internal/sdk/api/docs/PermissionsListObjectsPostRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Subject** | [**PermissionsListObjectsPostRequestSubject**](PermissionsListObjectsPostRequestSubject.md) | | **ObjectType** | **string** | | +**IncludeInheritedAccess** | Pointer to **bool** | | [optional] ## Methods @@ -66,6 +67,31 @@ and a boolean to check if the value has been set. SetObjectType sets ObjectType field to given value. +### GetIncludeInheritedAccess + +`func (o *PermissionsListObjectsPostRequest) GetIncludeInheritedAccess() bool` + +GetIncludeInheritedAccess returns the IncludeInheritedAccess field if non-nil, zero value otherwise. + +### GetIncludeInheritedAccessOk + +`func (o *PermissionsListObjectsPostRequest) GetIncludeInheritedAccessOk() (*bool, bool)` + +GetIncludeInheritedAccessOk returns a tuple with the IncludeInheritedAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeInheritedAccess + +`func (o *PermissionsListObjectsPostRequest) SetIncludeInheritedAccess(v bool)` + +SetIncludeInheritedAccess sets IncludeInheritedAccess field to given value. + +### HasIncludeInheritedAccess + +`func (o *PermissionsListObjectsPostRequest) HasIncludeInheritedAccess() bool` + +HasIncludeInheritedAccess returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/Resource.md b/internal/sdk/api/docs/Resource.md index d163c08..18147a4 100644 --- a/internal/sdk/api/docs/Resource.md +++ b/internal/sdk/api/docs/Resource.md @@ -4,17 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | [**ResourcesGet200ResponseDataInnerId**](ResourcesGet200ResponseDataInnerId.md) | | -**Type** | **string** | The type of resource. | -**DisplayName** | **string** | | -**CreatedAt** | **string** | | -**UpdatedAt** | **string** | | +**Type** | **string** | | +**Id** | **string** | The uuid or name for the resource. | ## Methods ### NewResource -`func NewResource(id ResourcesGet200ResponseDataInnerId, type_ string, displayName string, createdAt string, updatedAt string, ) *Resource` +`func NewResource(type_ string, id string, ) *Resource` NewResource instantiates a new Resource object This constructor will assign default values to properties that have it defined, @@ -29,26 +26,6 @@ NewResourceWithDefaults instantiates a new Resource 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 -### GetId - -`func (o *Resource) GetId() ResourcesGet200ResponseDataInnerId` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *Resource) GetIdOk() (*ResourcesGet200ResponseDataInnerId, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *Resource) SetId(v ResourcesGet200ResponseDataInnerId)` - -SetId sets Id field to given value. - - ### GetType `func (o *Resource) GetType() string` @@ -69,64 +46,24 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### GetDisplayName - -`func (o *Resource) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *Resource) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *Resource) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - - -### GetCreatedAt - -`func (o *Resource) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *Resource) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *Resource) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - - -### GetUpdatedAt +### GetId -`func (o *Resource) GetUpdatedAt() string` +`func (o *Resource) GetId() string` -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. +GetId returns the Id field if non-nil, zero value otherwise. -### GetUpdatedAtOk +### GetIdOk -`func (o *Resource) GetUpdatedAtOk() (*string, bool)` +`func (o *Resource) GetIdOk() (*string, bool)` -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUpdatedAt +### SetId -`func (o *Resource) SetUpdatedAt(v string)` +`func (o *Resource) SetId(v string)` -SetUpdatedAt sets UpdatedAt field to given value. +SetId sets Id field to given value. diff --git a/internal/sdk/api/docs/ResourceConfiguration.md b/internal/sdk/api/docs/ResourceConfiguration.md index 5020f26..ed38b3b 100644 --- a/internal/sdk/api/docs/ResourceConfiguration.md +++ b/internal/sdk/api/docs/ResourceConfiguration.md @@ -4,18 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | The uuid for the resource configuration. | -**Resource** | [**ResourcesGet200ResponseDataInner**](ResourcesGet200ResponseDataInner.md) | | -**Environment** | [**ResourceConfigurationsGet200ResponseDataInnerEnvironment**](ResourceConfigurationsGet200ResponseDataInnerEnvironment.md) | | -**Options** | [**ResourcesPostRequestOptions**](ResourcesPostRequestOptions.md) | | -**CreatedAt** | **string** | | -**UpdatedAt** | **string** | | +**Type** | **string** | | +**Id** | **string** | The resource configuration id. | ## Methods ### NewResourceConfiguration -`func NewResourceConfiguration(id string, resource ResourcesGet200ResponseDataInner, environment ResourceConfigurationsGet200ResponseDataInnerEnvironment, options ResourcesPostRequestOptions, createdAt string, updatedAt string, ) *ResourceConfiguration` +`func NewResourceConfiguration(type_ string, id string, ) *ResourceConfiguration` NewResourceConfiguration instantiates a new ResourceConfiguration object This constructor will assign default values to properties that have it defined, @@ -30,124 +26,44 @@ NewResourceConfigurationWithDefaults instantiates a new ResourceConfiguration ob 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 -### GetId - -`func (o *ResourceConfiguration) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ResourceConfiguration) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ResourceConfiguration) SetId(v string)` - -SetId sets Id field to given value. - - -### GetResource - -`func (o *ResourceConfiguration) GetResource() ResourcesGet200ResponseDataInner` - -GetResource returns the Resource field if non-nil, zero value otherwise. - -### GetResourceOk - -`func (o *ResourceConfiguration) GetResourceOk() (*ResourcesGet200ResponseDataInner, bool)` - -GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResource - -`func (o *ResourceConfiguration) SetResource(v ResourcesGet200ResponseDataInner)` - -SetResource sets Resource field to given value. - - -### GetEnvironment +### GetType -`func (o *ResourceConfiguration) GetEnvironment() ResourceConfigurationsGet200ResponseDataInnerEnvironment` +`func (o *ResourceConfiguration) GetType() string` -GetEnvironment returns the Environment field if non-nil, zero value otherwise. +GetType returns the Type field if non-nil, zero value otherwise. -### GetEnvironmentOk +### GetTypeOk -`func (o *ResourceConfiguration) GetEnvironmentOk() (*ResourceConfigurationsGet200ResponseDataInnerEnvironment, bool)` +`func (o *ResourceConfiguration) GetTypeOk() (*string, bool)` -GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEnvironment +### SetType -`func (o *ResourceConfiguration) SetEnvironment(v ResourceConfigurationsGet200ResponseDataInnerEnvironment)` +`func (o *ResourceConfiguration) SetType(v string)` -SetEnvironment sets Environment field to given value. +SetType sets Type field to given value. -### GetOptions - -`func (o *ResourceConfiguration) GetOptions() ResourcesPostRequestOptions` - -GetOptions returns the Options field if non-nil, zero value otherwise. - -### GetOptionsOk - -`func (o *ResourceConfiguration) GetOptionsOk() (*ResourcesPostRequestOptions, bool)` - -GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOptions - -`func (o *ResourceConfiguration) SetOptions(v ResourcesPostRequestOptions)` - -SetOptions sets Options field to given value. - - -### GetCreatedAt - -`func (o *ResourceConfiguration) GetCreatedAt() string` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ResourceConfiguration) GetCreatedAtOk() (*string, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ResourceConfiguration) SetCreatedAt(v string)` - -SetCreatedAt sets CreatedAt field to given value. - - -### GetUpdatedAt +### GetId -`func (o *ResourceConfiguration) GetUpdatedAt() string` +`func (o *ResourceConfiguration) GetId() string` -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. +GetId returns the Id field if non-nil, zero value otherwise. -### GetUpdatedAtOk +### GetIdOk -`func (o *ResourceConfiguration) GetUpdatedAtOk() (*string, bool)` +`func (o *ResourceConfiguration) GetIdOk() (*string, bool)` -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUpdatedAt +### SetId -`func (o *ResourceConfiguration) SetUpdatedAt(v string)` +`func (o *ResourceConfiguration) SetId(v string)` -SetUpdatedAt sets UpdatedAt field to given value. +SetId sets Id field to given value. diff --git a/internal/sdk/api/docs/ResourceConfigurationsAPI.md b/internal/sdk/api/docs/ResourceConfigurationsAPI.md index 7b3d0e4..fca1d85 100644 --- a/internal/sdk/api/docs/ResourceConfigurationsAPI.md +++ b/internal/sdk/api/docs/ResourceConfigurationsAPI.md @@ -6,7 +6,9 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**ResourceConfigurationsConfigurationIdDelete**](ResourceConfigurationsAPI.md#ResourceConfigurationsConfigurationIdDelete) | **Delete** /resource_configurations/{configurationId} | Delete resource configuration [**ResourceConfigurationsConfigurationIdGet**](ResourceConfigurationsAPI.md#ResourceConfigurationsConfigurationIdGet) | **Get** /resource_configurations/{configurationId} | Get resource configuration by id +[**ResourceConfigurationsConfigurationIdPatch**](ResourceConfigurationsAPI.md#ResourceConfigurationsConfigurationIdPatch) | **Patch** /resource_configurations/{configurationId} | Update a resource configuration [**ResourceConfigurationsGet**](ResourceConfigurationsAPI.md#ResourceConfigurationsGet) | **Get** /resource_configurations | Get resource configurations +[**ResourceConfigurationsPost**](ResourceConfigurationsAPI.md#ResourceConfigurationsPost) | **Post** /resource_configurations | Create resource configuration @@ -31,7 +33,7 @@ import ( ) func main() { - configurationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + configurationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The resource configuration id. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -49,7 +51,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**configurationId** | **string** | | +**configurationId** | **string** | The resource configuration id. | ### Other Parameters @@ -99,7 +101,7 @@ import ( ) func main() { - configurationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + configurationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The resource configuration id. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -119,7 +121,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**configurationId** | **string** | | +**configurationId** | **string** | The resource configuration id. | ### Other Parameters @@ -148,6 +150,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## ResourceConfigurationsConfigurationIdPatch + +> ResourceConfigurationsConfigurationIdPatch200Response ResourceConfigurationsConfigurationIdPatch(ctx, configurationId).ResourceConfigurationsConfigurationIdPatchRequest(resourceConfigurationsConfigurationIdPatchRequest).Execute() + +Update a resource configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + configurationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The resource configuration id. + resourceConfigurationsConfigurationIdPatchRequest := *openapiclient.NewResourceConfigurationsConfigurationIdPatchRequest([]openapiclient.ReplaceOperation{*openapiclient.NewReplaceOperation("Op_example", "Path_example")}) // ResourceConfigurationsConfigurationIdPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourceConfigurationsAPI.ResourceConfigurationsConfigurationIdPatch(context.Background(), configurationId).ResourceConfigurationsConfigurationIdPatchRequest(resourceConfigurationsConfigurationIdPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourceConfigurationsAPI.ResourceConfigurationsConfigurationIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResourceConfigurationsConfigurationIdPatch`: ResourceConfigurationsConfigurationIdPatch200Response + fmt.Fprintf(os.Stdout, "Response from `ResourceConfigurationsAPI.ResourceConfigurationsConfigurationIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**configurationId** | **string** | The resource configuration id. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResourceConfigurationsConfigurationIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **resourceConfigurationsConfigurationIdPatchRequest** | [**ResourceConfigurationsConfigurationIdPatchRequest**](ResourceConfigurationsConfigurationIdPatchRequest.md) | | + +### Return type + +[**ResourceConfigurationsConfigurationIdPatch200Response**](ResourceConfigurationsConfigurationIdPatch200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## ResourceConfigurationsGet > ResourceConfigurationsGet200Response ResourceConfigurationsGet(ctx).NextToken(nextToken).ResourceType(resourceType).ResourceId(resourceId).EnvironmentId(environmentId).Execute() @@ -169,9 +243,9 @@ import ( ) func main() { - nextToken := "nextToken_example" // string | (optional) - resourceType := "resourceType_example" // string | (optional) - resourceId := *openapiclient.NewResourcesGet200ResponseDataInnerId() // ResourcesGet200ResponseDataInnerId | (optional) + nextToken := "nextToken_example" // string | The token of the current page (optional) + resourceType := "resourceType_example" // string | The type of resource. (optional) + resourceId := "resourceId_example" // string | The uuid or name for the resource. (optional) environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() @@ -197,9 +271,9 @@ Other parameters are passed through a pointer to a apiResourceConfigurationsGetR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **nextToken** | **string** | | - **resourceType** | **string** | | - **resourceId** | [**ResourcesGet200ResponseDataInnerId**](ResourcesGet200ResponseDataInnerId.md) | | + **nextToken** | **string** | The token of the current page | + **resourceType** | **string** | The type of resource. | + **resourceId** | **string** | The uuid or name for the resource. | **environmentId** | **string** | | ### Return type @@ -219,3 +293,69 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## ResourceConfigurationsPost + +> ResourceConfigurationsPost200Response ResourceConfigurationsPost(ctx).ResourceConfigurationsPostRequest(resourceConfigurationsPostRequest).Execute() + +Create resource configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + resourceConfigurationsPostRequest := *openapiclient.NewResourceConfigurationsPostRequest("ResourceId_example", "EnvironmentId_example", *openapiclient.NewResourcesPostRequestOptions(*openapiclient.NewSnowflakeOptionsDatabaseOptions("Name_example"), "AccountIdentifier_example", *openapiclient.NewRestAPIOptionsAuthenticationOptions("AuthenticationType_example", "Auth0Domain_example", "Auth0ClientId_example", "Auth0ClientSecret_example", "Auth0CustomAudience_example", "AmazonAwsRegion_example", "AmazonServiceName_example", "AmazonAccessKeyId_example", "AmazonSecretAccessKey_example", "BasicUsername_example", "DigestUsername_example", "DigestPassword_example", *openapiclient.NewRestAPIOptionsAuthenticationOptionsAnyOf4Oauth1SignatureMethod(), "Oauth1ConsumerKey_example", "Oauth1ConsumerSecret_example", "Oauth1TokenKey_example", "Oauth1TokenSecret_example", "Oauth1RealmParameter_example", "Oauth2ClientId_example", "Oauth2ClientSecret_example", "Oauth2AuthUrl_example", "Oauth2AccessTokenUrl_example"), "BaseUrl_example")) // ResourceConfigurationsPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourceConfigurationsAPI.ResourceConfigurationsPost(context.Background()).ResourceConfigurationsPostRequest(resourceConfigurationsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourceConfigurationsAPI.ResourceConfigurationsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResourceConfigurationsPost`: ResourceConfigurationsPost200Response + fmt.Fprintf(os.Stdout, "Response from `ResourceConfigurationsAPI.ResourceConfigurationsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiResourceConfigurationsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceConfigurationsPostRequest** | [**ResourceConfigurationsPostRequest**](ResourceConfigurationsPostRequest.md) | | + +### Return type + +[**ResourceConfigurationsPost200Response**](ResourceConfigurationsPost200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatch200Response.md b/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatch200Response.md new file mode 100644 index 0000000..e32eef1 --- /dev/null +++ b/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatch200Response.md @@ -0,0 +1,72 @@ +# ResourceConfigurationsConfigurationIdPatch200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**ResourceConfigurationsConfigurationIdPatch200ResponseData**](ResourceConfigurationsConfigurationIdPatch200ResponseData.md) | | + +## Methods + +### NewResourceConfigurationsConfigurationIdPatch200Response + +`func NewResourceConfigurationsConfigurationIdPatch200Response(success bool, data ResourceConfigurationsConfigurationIdPatch200ResponseData, ) *ResourceConfigurationsConfigurationIdPatch200Response` + +NewResourceConfigurationsConfigurationIdPatch200Response instantiates a new ResourceConfigurationsConfigurationIdPatch200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceConfigurationsConfigurationIdPatch200ResponseWithDefaults + +`func NewResourceConfigurationsConfigurationIdPatch200ResponseWithDefaults() *ResourceConfigurationsConfigurationIdPatch200Response` + +NewResourceConfigurationsConfigurationIdPatch200ResponseWithDefaults instantiates a new ResourceConfigurationsConfigurationIdPatch200Response 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 + +### GetSuccess + +`func (o *ResourceConfigurationsConfigurationIdPatch200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *ResourceConfigurationsConfigurationIdPatch200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *ResourceConfigurationsConfigurationIdPatch200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *ResourceConfigurationsConfigurationIdPatch200Response) GetData() ResourceConfigurationsConfigurationIdPatch200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ResourceConfigurationsConfigurationIdPatch200Response) GetDataOk() (*ResourceConfigurationsConfigurationIdPatch200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ResourceConfigurationsConfigurationIdPatch200Response) SetData(v ResourceConfigurationsConfigurationIdPatch200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatch200ResponseData.md b/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatch200ResponseData.md new file mode 100644 index 0000000..d86c2f9 --- /dev/null +++ b/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatch200ResponseData.md @@ -0,0 +1,156 @@ +# ResourceConfigurationsConfigurationIdPatch200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The uuid for the resource configuration. | +**Resource** | [**ResourcesGet200ResponseDataInner**](ResourcesGet200ResponseDataInner.md) | | +**Environment** | [**ResourceConfigurationsGet200ResponseDataInnerEnvironment**](ResourceConfigurationsGet200ResponseDataInnerEnvironment.md) | | +**Options** | [**ResourcesPostRequestOptions**](ResourcesPostRequestOptions.md) | | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | + +## Methods + +### NewResourceConfigurationsConfigurationIdPatch200ResponseData + +`func NewResourceConfigurationsConfigurationIdPatch200ResponseData(id string, resource ResourcesGet200ResponseDataInner, environment ResourceConfigurationsGet200ResponseDataInnerEnvironment, options ResourcesPostRequestOptions, createdAt string, updatedAt string, ) *ResourceConfigurationsConfigurationIdPatch200ResponseData` + +NewResourceConfigurationsConfigurationIdPatch200ResponseData instantiates a new ResourceConfigurationsConfigurationIdPatch200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceConfigurationsConfigurationIdPatch200ResponseDataWithDefaults + +`func NewResourceConfigurationsConfigurationIdPatch200ResponseDataWithDefaults() *ResourceConfigurationsConfigurationIdPatch200ResponseData` + +NewResourceConfigurationsConfigurationIdPatch200ResponseDataWithDefaults instantiates a new ResourceConfigurationsConfigurationIdPatch200ResponseData 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 + +### GetId + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetResource + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetResource() ResourcesGet200ResponseDataInner` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetResourceOk() (*ResourcesGet200ResponseDataInner, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetResource(v ResourcesGet200ResponseDataInner)` + +SetResource sets Resource field to given value. + + +### GetEnvironment + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetEnvironment() ResourceConfigurationsGet200ResponseDataInnerEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetEnvironmentOk() (*ResourceConfigurationsGet200ResponseDataInnerEnvironment, bool)` + +GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironment + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetEnvironment(v ResourceConfigurationsGet200ResponseDataInnerEnvironment)` + +SetEnvironment sets Environment field to given value. + + +### GetOptions + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetOptions() ResourcesPostRequestOptions` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetOptionsOk() (*ResourcesPostRequestOptions, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetOptions(v ResourcesPostRequestOptions)` + +SetOptions sets Options field to given value. + + +### GetCreatedAt + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatchRequest.md b/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatchRequest.md new file mode 100644 index 0000000..c991579 --- /dev/null +++ b/internal/sdk/api/docs/ResourceConfigurationsConfigurationIdPatchRequest.md @@ -0,0 +1,51 @@ +# ResourceConfigurationsConfigurationIdPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Operations** | [**[]ReplaceOperation**](ReplaceOperation.md) | A list of operations to apply to the resource configuration. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | + +## Methods + +### NewResourceConfigurationsConfigurationIdPatchRequest + +`func NewResourceConfigurationsConfigurationIdPatchRequest(operations []ReplaceOperation, ) *ResourceConfigurationsConfigurationIdPatchRequest` + +NewResourceConfigurationsConfigurationIdPatchRequest instantiates a new ResourceConfigurationsConfigurationIdPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceConfigurationsConfigurationIdPatchRequestWithDefaults + +`func NewResourceConfigurationsConfigurationIdPatchRequestWithDefaults() *ResourceConfigurationsConfigurationIdPatchRequest` + +NewResourceConfigurationsConfigurationIdPatchRequestWithDefaults instantiates a new ResourceConfigurationsConfigurationIdPatchRequest 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 + +### GetOperations + +`func (o *ResourceConfigurationsConfigurationIdPatchRequest) GetOperations() []ReplaceOperation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *ResourceConfigurationsConfigurationIdPatchRequest) GetOperationsOk() (*[]ReplaceOperation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *ResourceConfigurationsConfigurationIdPatchRequest) SetOperations(v []ReplaceOperation)` + +SetOperations sets Operations field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ResourceConfigurationsPost200Response.md b/internal/sdk/api/docs/ResourceConfigurationsPost200Response.md new file mode 100644 index 0000000..871ff15 --- /dev/null +++ b/internal/sdk/api/docs/ResourceConfigurationsPost200Response.md @@ -0,0 +1,72 @@ +# ResourceConfigurationsPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**ResourceConfigurationsPost200ResponseData**](ResourceConfigurationsPost200ResponseData.md) | | + +## Methods + +### NewResourceConfigurationsPost200Response + +`func NewResourceConfigurationsPost200Response(success bool, data ResourceConfigurationsPost200ResponseData, ) *ResourceConfigurationsPost200Response` + +NewResourceConfigurationsPost200Response instantiates a new ResourceConfigurationsPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceConfigurationsPost200ResponseWithDefaults + +`func NewResourceConfigurationsPost200ResponseWithDefaults() *ResourceConfigurationsPost200Response` + +NewResourceConfigurationsPost200ResponseWithDefaults instantiates a new ResourceConfigurationsPost200Response 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 + +### GetSuccess + +`func (o *ResourceConfigurationsPost200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *ResourceConfigurationsPost200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *ResourceConfigurationsPost200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *ResourceConfigurationsPost200Response) GetData() ResourceConfigurationsPost200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ResourceConfigurationsPost200Response) GetDataOk() (*ResourceConfigurationsPost200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ResourceConfigurationsPost200Response) SetData(v ResourceConfigurationsPost200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ResourceConfigurationsPost200ResponseData.md b/internal/sdk/api/docs/ResourceConfigurationsPost200ResponseData.md new file mode 100644 index 0000000..0e3a18c --- /dev/null +++ b/internal/sdk/api/docs/ResourceConfigurationsPost200ResponseData.md @@ -0,0 +1,156 @@ +# ResourceConfigurationsPost200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The uuid for the resource configuration. | +**Resource** | [**ResourcesGet200ResponseDataInner**](ResourcesGet200ResponseDataInner.md) | | +**Environment** | [**ResourceConfigurationsGet200ResponseDataInnerEnvironment**](ResourceConfigurationsGet200ResponseDataInnerEnvironment.md) | | +**Options** | [**ResourcesPostRequestOptions**](ResourcesPostRequestOptions.md) | | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | + +## Methods + +### NewResourceConfigurationsPost200ResponseData + +`func NewResourceConfigurationsPost200ResponseData(id string, resource ResourcesGet200ResponseDataInner, environment ResourceConfigurationsGet200ResponseDataInnerEnvironment, options ResourcesPostRequestOptions, createdAt string, updatedAt string, ) *ResourceConfigurationsPost200ResponseData` + +NewResourceConfigurationsPost200ResponseData instantiates a new ResourceConfigurationsPost200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceConfigurationsPost200ResponseDataWithDefaults + +`func NewResourceConfigurationsPost200ResponseDataWithDefaults() *ResourceConfigurationsPost200ResponseData` + +NewResourceConfigurationsPost200ResponseDataWithDefaults instantiates a new ResourceConfigurationsPost200ResponseData 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 + +### GetId + +`func (o *ResourceConfigurationsPost200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ResourceConfigurationsPost200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ResourceConfigurationsPost200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetResource + +`func (o *ResourceConfigurationsPost200ResponseData) GetResource() ResourcesGet200ResponseDataInner` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *ResourceConfigurationsPost200ResponseData) GetResourceOk() (*ResourcesGet200ResponseDataInner, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *ResourceConfigurationsPost200ResponseData) SetResource(v ResourcesGet200ResponseDataInner)` + +SetResource sets Resource field to given value. + + +### GetEnvironment + +`func (o *ResourceConfigurationsPost200ResponseData) GetEnvironment() ResourceConfigurationsGet200ResponseDataInnerEnvironment` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *ResourceConfigurationsPost200ResponseData) GetEnvironmentOk() (*ResourceConfigurationsGet200ResponseDataInnerEnvironment, bool)` + +GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironment + +`func (o *ResourceConfigurationsPost200ResponseData) SetEnvironment(v ResourceConfigurationsGet200ResponseDataInnerEnvironment)` + +SetEnvironment sets Environment field to given value. + + +### GetOptions + +`func (o *ResourceConfigurationsPost200ResponseData) GetOptions() ResourcesPostRequestOptions` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ResourceConfigurationsPost200ResponseData) GetOptionsOk() (*ResourcesPostRequestOptions, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ResourceConfigurationsPost200ResponseData) SetOptions(v ResourcesPostRequestOptions)` + +SetOptions sets Options field to given value. + + +### GetCreatedAt + +`func (o *ResourceConfigurationsPost200ResponseData) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ResourceConfigurationsPost200ResponseData) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ResourceConfigurationsPost200ResponseData) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *ResourceConfigurationsPost200ResponseData) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ResourceConfigurationsPost200ResponseData) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ResourceConfigurationsPost200ResponseData) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ResourceConfigurationsPostRequest.md b/internal/sdk/api/docs/ResourceConfigurationsPostRequest.md new file mode 100644 index 0000000..7e019f0 --- /dev/null +++ b/internal/sdk/api/docs/ResourceConfigurationsPostRequest.md @@ -0,0 +1,93 @@ +# ResourceConfigurationsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | A UUID that uniquely identifies a resource. This is also referenced within the Retool app. For example, when you edit a resource, the ID can be found in the url. | +**EnvironmentId** | **string** | A UUID that uniquely identifies an environment. | +**Options** | [**ResourcesPostRequestOptions**](ResourcesPostRequestOptions.md) | | + +## Methods + +### NewResourceConfigurationsPostRequest + +`func NewResourceConfigurationsPostRequest(resourceId string, environmentId string, options ResourcesPostRequestOptions, ) *ResourceConfigurationsPostRequest` + +NewResourceConfigurationsPostRequest instantiates a new ResourceConfigurationsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceConfigurationsPostRequestWithDefaults + +`func NewResourceConfigurationsPostRequestWithDefaults() *ResourceConfigurationsPostRequest` + +NewResourceConfigurationsPostRequestWithDefaults instantiates a new ResourceConfigurationsPostRequest 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 + +### GetResourceId + +`func (o *ResourceConfigurationsPostRequest) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceConfigurationsPostRequest) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceConfigurationsPostRequest) SetResourceId(v string)` + +SetResourceId sets ResourceId field to given value. + + +### GetEnvironmentId + +`func (o *ResourceConfigurationsPostRequest) GetEnvironmentId() string` + +GetEnvironmentId returns the EnvironmentId field if non-nil, zero value otherwise. + +### GetEnvironmentIdOk + +`func (o *ResourceConfigurationsPostRequest) GetEnvironmentIdOk() (*string, bool)` + +GetEnvironmentIdOk returns a tuple with the EnvironmentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentId + +`func (o *ResourceConfigurationsPostRequest) SetEnvironmentId(v string)` + +SetEnvironmentId sets EnvironmentId field to given value. + + +### GetOptions + +`func (o *ResourceConfigurationsPostRequest) GetOptions() ResourcesPostRequestOptions` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ResourceConfigurationsPostRequest) GetOptionsOk() (*ResourcesPostRequestOptions, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ResourceConfigurationsPostRequest) SetOptions(v ResourcesPostRequestOptions)` + +SetOptions sets Options field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ResourcesAPI.md b/internal/sdk/api/docs/ResourcesAPI.md index c8dfdd1..0753577 100644 --- a/internal/sdk/api/docs/ResourcesAPI.md +++ b/internal/sdk/api/docs/ResourcesAPI.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**ResourcesPost**](ResourcesAPI.md#ResourcesPost) | **Post** /resources | Create a resource [**ResourcesResourceIdDelete**](ResourcesAPI.md#ResourcesResourceIdDelete) | **Delete** /resources/{resourceId} | Delete resource [**ResourcesResourceIdGet**](ResourcesAPI.md#ResourcesResourceIdGet) | **Get** /resources/{resourceId} | Get resource by id +[**ResourcesResourceIdPatch**](ResourcesAPI.md#ResourcesResourceIdPatch) | **Patch** /resources/{resourceId} | Update a resource @@ -32,8 +33,8 @@ import ( ) func main() { - nextToken := "nextToken_example" // string | (optional) - resourceType := "resourceType_example" // string | (optional) + nextToken := "nextToken_example" // string | The token of the current page (optional) + resourceType := "resourceType_example" // string | The type of resource. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -58,8 +59,8 @@ Other parameters are passed through a pointer to a apiResourcesGetRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **nextToken** | **string** | | - **resourceType** | **string** | | + **nextToken** | **string** | The token of the current page | + **resourceType** | **string** | The type of resource. | ### Return type @@ -147,7 +148,7 @@ Name | Type | Description | Notes ## ResourcesResourceIdDelete -> ResourcesResourceIdDelete(ctx, resourceId).Execute() +> ResourcesResourceIdDelete(ctx, resourceId).DeleteUnderlyingDB(deleteUnderlyingDB).Execute() Delete resource @@ -166,11 +167,12 @@ import ( ) func main() { - resourceId := *openapiclient.NewResourcesGet200ResponseDataInnerId() // ResourcesGet200ResponseDataInnerId | + resourceId := "resourceId_example" // string | The uuid or name for the resource. + deleteUnderlyingDB := true // bool | Whether to delete the underlying retool database when deleting the resource. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ResourcesAPI.ResourcesResourceIdDelete(context.Background(), resourceId).Execute() + r, err := apiClient.ResourcesAPI.ResourcesResourceIdDelete(context.Background(), resourceId).DeleteUnderlyingDB(deleteUnderlyingDB).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ResourcesAPI.ResourcesResourceIdDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -184,7 +186,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceId** | [**ResourcesGet200ResponseDataInnerId**](.md) | | +**resourceId** | **string** | The uuid or name for the resource. | ### Other Parameters @@ -194,6 +196,7 @@ Other parameters are passed through a pointer to a apiResourcesResourceIdDeleteR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **deleteUnderlyingDB** | **bool** | Whether to delete the underlying retool database when deleting the resource. | ### Return type @@ -234,7 +237,7 @@ import ( ) func main() { - resourceId := *openapiclient.NewResourcesGet200ResponseDataInnerId() // ResourcesGet200ResponseDataInnerId | + resourceId := "resourceId_example" // string | The uuid or name for the resource. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -254,7 +257,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceId** | [**ResourcesGet200ResponseDataInnerId**](.md) | | +**resourceId** | **string** | The uuid or name for the resource. | ### Other Parameters @@ -282,3 +285,75 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## ResourcesResourceIdPatch + +> ResourcesResourceIdPatch200Response ResourcesResourceIdPatch(ctx, resourceId).ResourcesResourceIdPatchRequest(resourcesResourceIdPatchRequest).Execute() + +Update a resource + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + resourceId := "resourceId_example" // string | The uuid or name for the resource. + resourcesResourceIdPatchRequest := *openapiclient.NewResourcesResourceIdPatchRequest([]openapiclient.ReplaceOperation{*openapiclient.NewReplaceOperation("Op_example", "Path_example")}) // ResourcesResourceIdPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourcesAPI.ResourcesResourceIdPatch(context.Background(), resourceId).ResourcesResourceIdPatchRequest(resourcesResourceIdPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourcesAPI.ResourcesResourceIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResourcesResourceIdPatch`: ResourcesResourceIdPatch200Response + fmt.Fprintf(os.Stdout, "Response from `ResourcesAPI.ResourcesResourceIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceId** | **string** | The uuid or name for the resource. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResourcesResourceIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **resourcesResourceIdPatchRequest** | [**ResourcesResourceIdPatchRequest**](ResourcesResourceIdPatchRequest.md) | | + +### Return type + +[**ResourcesResourceIdPatch200Response**](ResourcesResourceIdPatch200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/ResourcesGet200ResponseDataInner.md b/internal/sdk/api/docs/ResourcesGet200ResponseDataInner.md index 5756c01..18e93c4 100644 --- a/internal/sdk/api/docs/ResourcesGet200ResponseDataInner.md +++ b/internal/sdk/api/docs/ResourcesGet200ResponseDataInner.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | [**ResourcesGet200ResponseDataInnerId**](ResourcesGet200ResponseDataInnerId.md) | | +**Id** | **string** | The uuid or name for the resource. | **Type** | **string** | The type of resource. | **DisplayName** | **string** | | +**Protected** | **bool** | Whether the resource is protected in source control | **CreatedAt** | **string** | | **UpdatedAt** | **string** | | @@ -14,7 +15,7 @@ Name | Type | Description | Notes ### NewResourcesGet200ResponseDataInner -`func NewResourcesGet200ResponseDataInner(id ResourcesGet200ResponseDataInnerId, type_ string, displayName string, createdAt string, updatedAt string, ) *ResourcesGet200ResponseDataInner` +`func NewResourcesGet200ResponseDataInner(id string, type_ string, displayName string, protected bool, createdAt string, updatedAt string, ) *ResourcesGet200ResponseDataInner` NewResourcesGet200ResponseDataInner instantiates a new ResourcesGet200ResponseDataInner object This constructor will assign default values to properties that have it defined, @@ -31,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetId -`func (o *ResourcesGet200ResponseDataInner) GetId() ResourcesGet200ResponseDataInnerId` +`func (o *ResourcesGet200ResponseDataInner) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *ResourcesGet200ResponseDataInner) GetIdOk() (*ResourcesGet200ResponseDataInnerId, bool)` +`func (o *ResourcesGet200ResponseDataInner) GetIdOk() (*string, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *ResourcesGet200ResponseDataInner) SetId(v ResourcesGet200ResponseDataInnerId)` +`func (o *ResourcesGet200ResponseDataInner) SetId(v string)` SetId sets Id field to given value. @@ -89,6 +90,26 @@ and a boolean to check if the value has been set. SetDisplayName sets DisplayName field to given value. +### GetProtected + +`func (o *ResourcesGet200ResponseDataInner) GetProtected() bool` + +GetProtected returns the Protected field if non-nil, zero value otherwise. + +### GetProtectedOk + +`func (o *ResourcesGet200ResponseDataInner) GetProtectedOk() (*bool, bool)` + +GetProtectedOk returns a tuple with the Protected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtected + +`func (o *ResourcesGet200ResponseDataInner) SetProtected(v bool)` + +SetProtected sets Protected field to given value. + + ### GetCreatedAt `func (o *ResourcesGet200ResponseDataInner) GetCreatedAt() string` diff --git a/internal/sdk/api/docs/ResourcesPost200ResponseData.md b/internal/sdk/api/docs/ResourcesPost200ResponseData.md index 41266f9..62d157b 100644 --- a/internal/sdk/api/docs/ResourcesPost200ResponseData.md +++ b/internal/sdk/api/docs/ResourcesPost200ResponseData.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | [**ResourcesGet200ResponseDataInnerId**](ResourcesGet200ResponseDataInnerId.md) | | +**Id** | **string** | The uuid or name for the resource. | **Type** | **string** | The type of resource. | **DisplayName** | **string** | | +**Protected** | **bool** | Whether the resource is protected in source control | **CreatedAt** | **string** | | **UpdatedAt** | **string** | | @@ -14,7 +15,7 @@ Name | Type | Description | Notes ### NewResourcesPost200ResponseData -`func NewResourcesPost200ResponseData(id ResourcesGet200ResponseDataInnerId, type_ string, displayName string, createdAt string, updatedAt string, ) *ResourcesPost200ResponseData` +`func NewResourcesPost200ResponseData(id string, type_ string, displayName string, protected bool, createdAt string, updatedAt string, ) *ResourcesPost200ResponseData` NewResourcesPost200ResponseData instantiates a new ResourcesPost200ResponseData object This constructor will assign default values to properties that have it defined, @@ -31,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetId -`func (o *ResourcesPost200ResponseData) GetId() ResourcesGet200ResponseDataInnerId` +`func (o *ResourcesPost200ResponseData) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *ResourcesPost200ResponseData) GetIdOk() (*ResourcesGet200ResponseDataInnerId, bool)` +`func (o *ResourcesPost200ResponseData) GetIdOk() (*string, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *ResourcesPost200ResponseData) SetId(v ResourcesGet200ResponseDataInnerId)` +`func (o *ResourcesPost200ResponseData) SetId(v string)` SetId sets Id field to given value. @@ -89,6 +90,26 @@ and a boolean to check if the value has been set. SetDisplayName sets DisplayName field to given value. +### GetProtected + +`func (o *ResourcesPost200ResponseData) GetProtected() bool` + +GetProtected returns the Protected field if non-nil, zero value otherwise. + +### GetProtectedOk + +`func (o *ResourcesPost200ResponseData) GetProtectedOk() (*bool, bool)` + +GetProtectedOk returns a tuple with the Protected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtected + +`func (o *ResourcesPost200ResponseData) SetProtected(v bool)` + +SetProtected sets Protected field to given value. + + ### GetCreatedAt `func (o *ResourcesPost200ResponseData) GetCreatedAt() string` diff --git a/internal/sdk/api/docs/ResourcesPostRequestOptions.md b/internal/sdk/api/docs/ResourcesPostRequestOptions.md index f7911b5..e5ccbf5 100644 --- a/internal/sdk/api/docs/ResourcesPostRequestOptions.md +++ b/internal/sdk/api/docs/ResourcesPostRequestOptions.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **AccountIdentifier** | **string** | | **UserRole** | Pointer to **string** | | [optional] **AuthenticationOptions** | [**RestAPIOptionsAuthenticationOptions**](RestAPIOptionsAuthenticationOptions.md) | | -**BaseUrl** | **string** | Use the absolute URL (e.g https://example.com). | +**BaseUrl** | **string** | Use the absolute URL (e.g. https://example.com). | **UrlParameters** | Pointer to **[][]string** | | [optional] **Headers** | Pointer to **[][]string** | | [optional] **ExtraBodyValues** | Pointer to **[][]string** | Extra body values are not passed for GET or HEAD requests. | [optional] diff --git a/internal/sdk/api/docs/ResourcesResourceIdPatch200Response.md b/internal/sdk/api/docs/ResourcesResourceIdPatch200Response.md new file mode 100644 index 0000000..647ee1c --- /dev/null +++ b/internal/sdk/api/docs/ResourcesResourceIdPatch200Response.md @@ -0,0 +1,72 @@ +# ResourcesResourceIdPatch200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**ResourcesResourceIdPatch200ResponseData**](ResourcesResourceIdPatch200ResponseData.md) | | + +## Methods + +### NewResourcesResourceIdPatch200Response + +`func NewResourcesResourceIdPatch200Response(success bool, data ResourcesResourceIdPatch200ResponseData, ) *ResourcesResourceIdPatch200Response` + +NewResourcesResourceIdPatch200Response instantiates a new ResourcesResourceIdPatch200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourcesResourceIdPatch200ResponseWithDefaults + +`func NewResourcesResourceIdPatch200ResponseWithDefaults() *ResourcesResourceIdPatch200Response` + +NewResourcesResourceIdPatch200ResponseWithDefaults instantiates a new ResourcesResourceIdPatch200Response 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 + +### GetSuccess + +`func (o *ResourcesResourceIdPatch200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *ResourcesResourceIdPatch200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *ResourcesResourceIdPatch200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *ResourcesResourceIdPatch200Response) GetData() ResourcesResourceIdPatch200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ResourcesResourceIdPatch200Response) GetDataOk() (*ResourcesResourceIdPatch200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ResourcesResourceIdPatch200Response) SetData(v ResourcesResourceIdPatch200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ResourcesResourceIdPatch200ResponseData.md b/internal/sdk/api/docs/ResourcesResourceIdPatch200ResponseData.md new file mode 100644 index 0000000..99940f3 --- /dev/null +++ b/internal/sdk/api/docs/ResourcesResourceIdPatch200ResponseData.md @@ -0,0 +1,156 @@ +# ResourcesResourceIdPatch200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The uuid or name for the resource. | +**Type** | **string** | The type of resource. | +**DisplayName** | **string** | | +**Protected** | **bool** | Whether the resource is protected in source control | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | + +## Methods + +### NewResourcesResourceIdPatch200ResponseData + +`func NewResourcesResourceIdPatch200ResponseData(id string, type_ string, displayName string, protected bool, createdAt string, updatedAt string, ) *ResourcesResourceIdPatch200ResponseData` + +NewResourcesResourceIdPatch200ResponseData instantiates a new ResourcesResourceIdPatch200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourcesResourceIdPatch200ResponseDataWithDefaults + +`func NewResourcesResourceIdPatch200ResponseDataWithDefaults() *ResourcesResourceIdPatch200ResponseData` + +NewResourcesResourceIdPatch200ResponseDataWithDefaults instantiates a new ResourcesResourceIdPatch200ResponseData 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 + +### GetId + +`func (o *ResourcesResourceIdPatch200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ResourcesResourceIdPatch200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ResourcesResourceIdPatch200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *ResourcesResourceIdPatch200ResponseData) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ResourcesResourceIdPatch200ResponseData) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ResourcesResourceIdPatch200ResponseData) SetType(v string)` + +SetType sets Type field to given value. + + +### GetDisplayName + +`func (o *ResourcesResourceIdPatch200ResponseData) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ResourcesResourceIdPatch200ResponseData) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ResourcesResourceIdPatch200ResponseData) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetProtected + +`func (o *ResourcesResourceIdPatch200ResponseData) GetProtected() bool` + +GetProtected returns the Protected field if non-nil, zero value otherwise. + +### GetProtectedOk + +`func (o *ResourcesResourceIdPatch200ResponseData) GetProtectedOk() (*bool, bool)` + +GetProtectedOk returns a tuple with the Protected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtected + +`func (o *ResourcesResourceIdPatch200ResponseData) SetProtected(v bool)` + +SetProtected sets Protected field to given value. + + +### GetCreatedAt + +`func (o *ResourcesResourceIdPatch200ResponseData) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ResourcesResourceIdPatch200ResponseData) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ResourcesResourceIdPatch200ResponseData) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *ResourcesResourceIdPatch200ResponseData) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ResourcesResourceIdPatch200ResponseData) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ResourcesResourceIdPatch200ResponseData) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/ResourcesResourceIdPatchRequest.md b/internal/sdk/api/docs/ResourcesResourceIdPatchRequest.md new file mode 100644 index 0000000..52602d4 --- /dev/null +++ b/internal/sdk/api/docs/ResourcesResourceIdPatchRequest.md @@ -0,0 +1,51 @@ +# ResourcesResourceIdPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Operations** | [**[]ReplaceOperation**](ReplaceOperation.md) | A list of operations to apply to the resource. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | + +## Methods + +### NewResourcesResourceIdPatchRequest + +`func NewResourcesResourceIdPatchRequest(operations []ReplaceOperation, ) *ResourcesResourceIdPatchRequest` + +NewResourcesResourceIdPatchRequest instantiates a new ResourcesResourceIdPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourcesResourceIdPatchRequestWithDefaults + +`func NewResourcesResourceIdPatchRequestWithDefaults() *ResourcesResourceIdPatchRequest` + +NewResourcesResourceIdPatchRequestWithDefaults instantiates a new ResourcesResourceIdPatchRequest 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 + +### GetOperations + +`func (o *ResourcesResourceIdPatchRequest) GetOperations() []ReplaceOperation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *ResourcesResourceIdPatchRequest) GetOperationsOk() (*[]ReplaceOperation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *ResourcesResourceIdPatchRequest) SetOperations(v []ReplaceOperation)` + +SetOperations sets Operations field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/RestAPIOptions.md b/internal/sdk/api/docs/RestAPIOptions.md index 86e49ec..d51890c 100644 --- a/internal/sdk/api/docs/RestAPIOptions.md +++ b/internal/sdk/api/docs/RestAPIOptions.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BaseUrl** | **string** | Use the absolute URL (e.g https://example.com). | +**BaseUrl** | **string** | Use the absolute URL (e.g. https://example.com). | **UrlParameters** | Pointer to **[][]string** | | [optional] **Headers** | Pointer to **[][]string** | | [optional] **ExtraBodyValues** | Pointer to **[][]string** | Extra body values are not passed for GET or HEAD requests. | [optional] diff --git a/internal/sdk/api/docs/Role.md b/internal/sdk/api/docs/Role.md new file mode 100644 index 0000000..c20da15 --- /dev/null +++ b/internal/sdk/api/docs/Role.md @@ -0,0 +1,240 @@ +# Role + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the role. | +**OrganizationId** | **string** | The id of the organization | +**Name** | **string** | The name of the role | +**Description** | **string** | The description of the role | +**IsDefaultRole** | **bool** | Whether the role is the default role | +**IsLegacyRole** | **bool** | Whether the role is a migrated legacy role | +**ObjectScopes** | **[]string** | The object scopes of the role | +**OrganizationScopes** | **[]string** | The organization scopes of the role | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | + +## Methods + +### NewRole + +`func NewRole(id string, organizationId string, name string, description string, isDefaultRole bool, isLegacyRole bool, objectScopes []string, organizationScopes []string, createdAt string, updatedAt string, ) *Role` + +NewRole instantiates a new Role object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleWithDefaults + +`func NewRoleWithDefaults() *Role` + +NewRoleWithDefaults instantiates a new Role 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 + +### GetId + +`func (o *Role) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Role) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Role) SetId(v string)` + +SetId sets Id field to given value. + + +### GetOrganizationId + +`func (o *Role) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *Role) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *Role) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + + +### GetName + +`func (o *Role) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Role) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Role) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *Role) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Role) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Role) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetIsDefaultRole + +`func (o *Role) GetIsDefaultRole() bool` + +GetIsDefaultRole returns the IsDefaultRole field if non-nil, zero value otherwise. + +### GetIsDefaultRoleOk + +`func (o *Role) GetIsDefaultRoleOk() (*bool, bool)` + +GetIsDefaultRoleOk returns a tuple with the IsDefaultRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDefaultRole + +`func (o *Role) SetIsDefaultRole(v bool)` + +SetIsDefaultRole sets IsDefaultRole field to given value. + + +### GetIsLegacyRole + +`func (o *Role) GetIsLegacyRole() bool` + +GetIsLegacyRole returns the IsLegacyRole field if non-nil, zero value otherwise. + +### GetIsLegacyRoleOk + +`func (o *Role) GetIsLegacyRoleOk() (*bool, bool)` + +GetIsLegacyRoleOk returns a tuple with the IsLegacyRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLegacyRole + +`func (o *Role) SetIsLegacyRole(v bool)` + +SetIsLegacyRole sets IsLegacyRole field to given value. + + +### GetObjectScopes + +`func (o *Role) GetObjectScopes() []string` + +GetObjectScopes returns the ObjectScopes field if non-nil, zero value otherwise. + +### GetObjectScopesOk + +`func (o *Role) GetObjectScopesOk() (*[]string, bool)` + +GetObjectScopesOk returns a tuple with the ObjectScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectScopes + +`func (o *Role) SetObjectScopes(v []string)` + +SetObjectScopes sets ObjectScopes field to given value. + + +### GetOrganizationScopes + +`func (o *Role) GetOrganizationScopes() []string` + +GetOrganizationScopes returns the OrganizationScopes field if non-nil, zero value otherwise. + +### GetOrganizationScopesOk + +`func (o *Role) GetOrganizationScopesOk() (*[]string, bool)` + +GetOrganizationScopesOk returns a tuple with the OrganizationScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationScopes + +`func (o *Role) SetOrganizationScopes(v []string)` + +SetOrganizationScopes sets OrganizationScopes field to given value. + + +### GetCreatedAt + +`func (o *Role) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Role) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Role) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *Role) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Role) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Role) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/RolePermissionsRoleGrantsPostRequest.md b/internal/sdk/api/docs/RolePermissionsRoleGrantsPostRequest.md new file mode 100644 index 0000000..ae5cbc0 --- /dev/null +++ b/internal/sdk/api/docs/RolePermissionsRoleGrantsPostRequest.md @@ -0,0 +1,145 @@ +# RolePermissionsRoleGrantsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role | +**SubjectType** | **string** | The type of the subject | +**SubjectId** | **string** | The id of the subject | +**ObjectType** | Pointer to **string** | The type of the object | [optional] +**ObjectId** | Pointer to **string** | The id of the object | [optional] + +## Methods + +### NewRolePermissionsRoleGrantsPostRequest + +`func NewRolePermissionsRoleGrantsPostRequest(roleId string, subjectType string, subjectId string, ) *RolePermissionsRoleGrantsPostRequest` + +NewRolePermissionsRoleGrantsPostRequest instantiates a new RolePermissionsRoleGrantsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRolePermissionsRoleGrantsPostRequestWithDefaults + +`func NewRolePermissionsRoleGrantsPostRequestWithDefaults() *RolePermissionsRoleGrantsPostRequest` + +NewRolePermissionsRoleGrantsPostRequestWithDefaults instantiates a new RolePermissionsRoleGrantsPostRequest 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 + +### GetRoleId + +`func (o *RolePermissionsRoleGrantsPostRequest) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *RolePermissionsRoleGrantsPostRequest) GetRoleIdOk() (*string, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *RolePermissionsRoleGrantsPostRequest) SetRoleId(v string)` + +SetRoleId sets RoleId field to given value. + + +### GetSubjectType + +`func (o *RolePermissionsRoleGrantsPostRequest) GetSubjectType() string` + +GetSubjectType returns the SubjectType field if non-nil, zero value otherwise. + +### GetSubjectTypeOk + +`func (o *RolePermissionsRoleGrantsPostRequest) GetSubjectTypeOk() (*string, bool)` + +GetSubjectTypeOk returns a tuple with the SubjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectType + +`func (o *RolePermissionsRoleGrantsPostRequest) SetSubjectType(v string)` + +SetSubjectType sets SubjectType field to given value. + + +### GetSubjectId + +`func (o *RolePermissionsRoleGrantsPostRequest) GetSubjectId() string` + +GetSubjectId returns the SubjectId field if non-nil, zero value otherwise. + +### GetSubjectIdOk + +`func (o *RolePermissionsRoleGrantsPostRequest) GetSubjectIdOk() (*string, bool)` + +GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectId + +`func (o *RolePermissionsRoleGrantsPostRequest) SetSubjectId(v string)` + +SetSubjectId sets SubjectId field to given value. + + +### GetObjectType + +`func (o *RolePermissionsRoleGrantsPostRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *RolePermissionsRoleGrantsPostRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *RolePermissionsRoleGrantsPostRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *RolePermissionsRoleGrantsPostRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *RolePermissionsRoleGrantsPostRequest) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *RolePermissionsRoleGrantsPostRequest) GetObjectIdOk() (*string, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *RolePermissionsRoleGrantsPostRequest) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *RolePermissionsRoleGrantsPostRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/RolePermissionsRolesGet200Response.md b/internal/sdk/api/docs/RolePermissionsRolesGet200Response.md new file mode 100644 index 0000000..0e1f83c --- /dev/null +++ b/internal/sdk/api/docs/RolePermissionsRolesGet200Response.md @@ -0,0 +1,145 @@ +# RolePermissionsRolesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**[]RolePermissionsRolesGet200ResponseDataInner**](RolePermissionsRolesGet200ResponseDataInner.md) | An array of requested items | +**TotalCount** | **float32** | Total number of items in the response | +**NextToken** | **NullableString** | A token to retrieve the next page of items in the collection | +**HasMore** | **bool** | Whether there are more items in the collection | + +## Methods + +### NewRolePermissionsRolesGet200Response + +`func NewRolePermissionsRolesGet200Response(success bool, data []RolePermissionsRolesGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool, ) *RolePermissionsRolesGet200Response` + +NewRolePermissionsRolesGet200Response instantiates a new RolePermissionsRolesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRolePermissionsRolesGet200ResponseWithDefaults + +`func NewRolePermissionsRolesGet200ResponseWithDefaults() *RolePermissionsRolesGet200Response` + +NewRolePermissionsRolesGet200ResponseWithDefaults instantiates a new RolePermissionsRolesGet200Response 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 + +### GetSuccess + +`func (o *RolePermissionsRolesGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *RolePermissionsRolesGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *RolePermissionsRolesGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *RolePermissionsRolesGet200Response) GetData() []RolePermissionsRolesGet200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *RolePermissionsRolesGet200Response) GetDataOk() (*[]RolePermissionsRolesGet200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *RolePermissionsRolesGet200Response) SetData(v []RolePermissionsRolesGet200ResponseDataInner)` + +SetData sets Data field to given value. + + +### GetTotalCount + +`func (o *RolePermissionsRolesGet200Response) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *RolePermissionsRolesGet200Response) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *RolePermissionsRolesGet200Response) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + + +### GetNextToken + +`func (o *RolePermissionsRolesGet200Response) GetNextToken() string` + +GetNextToken returns the NextToken field if non-nil, zero value otherwise. + +### GetNextTokenOk + +`func (o *RolePermissionsRolesGet200Response) GetNextTokenOk() (*string, bool)` + +GetNextTokenOk returns a tuple with the NextToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextToken + +`func (o *RolePermissionsRolesGet200Response) SetNextToken(v string)` + +SetNextToken sets NextToken field to given value. + + +### SetNextTokenNil + +`func (o *RolePermissionsRolesGet200Response) SetNextTokenNil(b bool)` + + SetNextTokenNil sets the value for NextToken to be an explicit nil + +### UnsetNextToken +`func (o *RolePermissionsRolesGet200Response) UnsetNextToken()` + +UnsetNextToken ensures that no value is present for NextToken, not even an explicit nil +### GetHasMore + +`func (o *RolePermissionsRolesGet200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *RolePermissionsRolesGet200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *RolePermissionsRolesGet200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/RolePermissionsRolesGet200ResponseDataInner.md b/internal/sdk/api/docs/RolePermissionsRolesGet200ResponseDataInner.md new file mode 100644 index 0000000..6042b31 --- /dev/null +++ b/internal/sdk/api/docs/RolePermissionsRolesGet200ResponseDataInner.md @@ -0,0 +1,240 @@ +# RolePermissionsRolesGet200ResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the role. | +**OrganizationId** | **string** | The id of the organization | +**Name** | **string** | The name of the role | +**Description** | **string** | The description of the role | +**IsDefaultRole** | **bool** | Whether the role is the default role | +**IsLegacyRole** | **bool** | Whether the role is a migrated legacy role | +**ObjectScopes** | **[]string** | The object scopes of the role | +**OrganizationScopes** | **[]string** | The organization scopes of the role | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | + +## Methods + +### NewRolePermissionsRolesGet200ResponseDataInner + +`func NewRolePermissionsRolesGet200ResponseDataInner(id string, organizationId string, name string, description string, isDefaultRole bool, isLegacyRole bool, objectScopes []string, organizationScopes []string, createdAt string, updatedAt string, ) *RolePermissionsRolesGet200ResponseDataInner` + +NewRolePermissionsRolesGet200ResponseDataInner instantiates a new RolePermissionsRolesGet200ResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRolePermissionsRolesGet200ResponseDataInnerWithDefaults + +`func NewRolePermissionsRolesGet200ResponseDataInnerWithDefaults() *RolePermissionsRolesGet200ResponseDataInner` + +NewRolePermissionsRolesGet200ResponseDataInnerWithDefaults instantiates a new RolePermissionsRolesGet200ResponseDataInner 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 + +### GetId + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetOrganizationId + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + + +### GetName + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetIsDefaultRole + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetIsDefaultRole() bool` + +GetIsDefaultRole returns the IsDefaultRole field if non-nil, zero value otherwise. + +### GetIsDefaultRoleOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetIsDefaultRoleOk() (*bool, bool)` + +GetIsDefaultRoleOk returns a tuple with the IsDefaultRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDefaultRole + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetIsDefaultRole(v bool)` + +SetIsDefaultRole sets IsDefaultRole field to given value. + + +### GetIsLegacyRole + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetIsLegacyRole() bool` + +GetIsLegacyRole returns the IsLegacyRole field if non-nil, zero value otherwise. + +### GetIsLegacyRoleOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetIsLegacyRoleOk() (*bool, bool)` + +GetIsLegacyRoleOk returns a tuple with the IsLegacyRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLegacyRole + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetIsLegacyRole(v bool)` + +SetIsLegacyRole sets IsLegacyRole field to given value. + + +### GetObjectScopes + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetObjectScopes() []string` + +GetObjectScopes returns the ObjectScopes field if non-nil, zero value otherwise. + +### GetObjectScopesOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetObjectScopesOk() (*[]string, bool)` + +GetObjectScopesOk returns a tuple with the ObjectScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectScopes + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetObjectScopes(v []string)` + +SetObjectScopes sets ObjectScopes field to given value. + + +### GetOrganizationScopes + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetOrganizationScopes() []string` + +GetOrganizationScopes returns the OrganizationScopes field if non-nil, zero value otherwise. + +### GetOrganizationScopesOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetOrganizationScopesOk() (*[]string, bool)` + +GetOrganizationScopesOk returns a tuple with the OrganizationScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationScopes + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetOrganizationScopes(v []string)` + +SetOrganizationScopes sets OrganizationScopes field to given value. + + +### GetCreatedAt + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *RolePermissionsRolesGet200ResponseDataInner) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *RolePermissionsRolesGet200ResponseDataInner) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/RolePermissionsRolesPost201Response.md b/internal/sdk/api/docs/RolePermissionsRolesPost201Response.md new file mode 100644 index 0000000..bbd013f --- /dev/null +++ b/internal/sdk/api/docs/RolePermissionsRolesPost201Response.md @@ -0,0 +1,240 @@ +# RolePermissionsRolesPost201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the role. | +**OrganizationId** | **string** | The id of the organization | +**Name** | **string** | The name of the role | +**Description** | **string** | The description of the role | +**IsDefaultRole** | **bool** | Whether the role is the default role | +**IsLegacyRole** | **bool** | Whether the role is a migrated legacy role | +**ObjectScopes** | **[]string** | The object scopes of the role | +**OrganizationScopes** | **[]string** | The organization scopes of the role | +**CreatedAt** | **string** | | +**UpdatedAt** | **string** | | + +## Methods + +### NewRolePermissionsRolesPost201Response + +`func NewRolePermissionsRolesPost201Response(id string, organizationId string, name string, description string, isDefaultRole bool, isLegacyRole bool, objectScopes []string, organizationScopes []string, createdAt string, updatedAt string, ) *RolePermissionsRolesPost201Response` + +NewRolePermissionsRolesPost201Response instantiates a new RolePermissionsRolesPost201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRolePermissionsRolesPost201ResponseWithDefaults + +`func NewRolePermissionsRolesPost201ResponseWithDefaults() *RolePermissionsRolesPost201Response` + +NewRolePermissionsRolesPost201ResponseWithDefaults instantiates a new RolePermissionsRolesPost201Response 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 + +### GetId + +`func (o *RolePermissionsRolesPost201Response) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RolePermissionsRolesPost201Response) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RolePermissionsRolesPost201Response) SetId(v string)` + +SetId sets Id field to given value. + + +### GetOrganizationId + +`func (o *RolePermissionsRolesPost201Response) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *RolePermissionsRolesPost201Response) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *RolePermissionsRolesPost201Response) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + + +### GetName + +`func (o *RolePermissionsRolesPost201Response) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RolePermissionsRolesPost201Response) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RolePermissionsRolesPost201Response) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *RolePermissionsRolesPost201Response) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RolePermissionsRolesPost201Response) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RolePermissionsRolesPost201Response) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetIsDefaultRole + +`func (o *RolePermissionsRolesPost201Response) GetIsDefaultRole() bool` + +GetIsDefaultRole returns the IsDefaultRole field if non-nil, zero value otherwise. + +### GetIsDefaultRoleOk + +`func (o *RolePermissionsRolesPost201Response) GetIsDefaultRoleOk() (*bool, bool)` + +GetIsDefaultRoleOk returns a tuple with the IsDefaultRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDefaultRole + +`func (o *RolePermissionsRolesPost201Response) SetIsDefaultRole(v bool)` + +SetIsDefaultRole sets IsDefaultRole field to given value. + + +### GetIsLegacyRole + +`func (o *RolePermissionsRolesPost201Response) GetIsLegacyRole() bool` + +GetIsLegacyRole returns the IsLegacyRole field if non-nil, zero value otherwise. + +### GetIsLegacyRoleOk + +`func (o *RolePermissionsRolesPost201Response) GetIsLegacyRoleOk() (*bool, bool)` + +GetIsLegacyRoleOk returns a tuple with the IsLegacyRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLegacyRole + +`func (o *RolePermissionsRolesPost201Response) SetIsLegacyRole(v bool)` + +SetIsLegacyRole sets IsLegacyRole field to given value. + + +### GetObjectScopes + +`func (o *RolePermissionsRolesPost201Response) GetObjectScopes() []string` + +GetObjectScopes returns the ObjectScopes field if non-nil, zero value otherwise. + +### GetObjectScopesOk + +`func (o *RolePermissionsRolesPost201Response) GetObjectScopesOk() (*[]string, bool)` + +GetObjectScopesOk returns a tuple with the ObjectScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectScopes + +`func (o *RolePermissionsRolesPost201Response) SetObjectScopes(v []string)` + +SetObjectScopes sets ObjectScopes field to given value. + + +### GetOrganizationScopes + +`func (o *RolePermissionsRolesPost201Response) GetOrganizationScopes() []string` + +GetOrganizationScopes returns the OrganizationScopes field if non-nil, zero value otherwise. + +### GetOrganizationScopesOk + +`func (o *RolePermissionsRolesPost201Response) GetOrganizationScopesOk() (*[]string, bool)` + +GetOrganizationScopesOk returns a tuple with the OrganizationScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationScopes + +`func (o *RolePermissionsRolesPost201Response) SetOrganizationScopes(v []string)` + +SetOrganizationScopes sets OrganizationScopes field to given value. + + +### GetCreatedAt + +`func (o *RolePermissionsRolesPost201Response) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RolePermissionsRolesPost201Response) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RolePermissionsRolesPost201Response) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *RolePermissionsRolesPost201Response) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *RolePermissionsRolesPost201Response) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *RolePermissionsRolesPost201Response) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/RolePermissionsRolesPostRequest.md b/internal/sdk/api/docs/RolePermissionsRolesPostRequest.md new file mode 100644 index 0000000..0127e91 --- /dev/null +++ b/internal/sdk/api/docs/RolePermissionsRolesPostRequest.md @@ -0,0 +1,119 @@ +# RolePermissionsRolesPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the role. | +**Description** | Pointer to **string** | The description of the role | [optional] +**ObjectScopes** | **[]string** | The object scopes of the role | +**OrganizationScopes** | **[]string** | The organization scopes of the role | + +## Methods + +### NewRolePermissionsRolesPostRequest + +`func NewRolePermissionsRolesPostRequest(name string, objectScopes []string, organizationScopes []string, ) *RolePermissionsRolesPostRequest` + +NewRolePermissionsRolesPostRequest instantiates a new RolePermissionsRolesPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRolePermissionsRolesPostRequestWithDefaults + +`func NewRolePermissionsRolesPostRequestWithDefaults() *RolePermissionsRolesPostRequest` + +NewRolePermissionsRolesPostRequestWithDefaults instantiates a new RolePermissionsRolesPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *RolePermissionsRolesPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RolePermissionsRolesPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RolePermissionsRolesPostRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *RolePermissionsRolesPostRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RolePermissionsRolesPostRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RolePermissionsRolesPostRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RolePermissionsRolesPostRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetObjectScopes + +`func (o *RolePermissionsRolesPostRequest) GetObjectScopes() []string` + +GetObjectScopes returns the ObjectScopes field if non-nil, zero value otherwise. + +### GetObjectScopesOk + +`func (o *RolePermissionsRolesPostRequest) GetObjectScopesOk() (*[]string, bool)` + +GetObjectScopesOk returns a tuple with the ObjectScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectScopes + +`func (o *RolePermissionsRolesPostRequest) SetObjectScopes(v []string)` + +SetObjectScopes sets ObjectScopes field to given value. + + +### GetOrganizationScopes + +`func (o *RolePermissionsRolesPostRequest) GetOrganizationScopes() []string` + +GetOrganizationScopes returns the OrganizationScopes field if non-nil, zero value otherwise. + +### GetOrganizationScopesOk + +`func (o *RolePermissionsRolesPostRequest) GetOrganizationScopesOk() (*[]string, bool)` + +GetOrganizationScopesOk returns a tuple with the OrganizationScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationScopes + +`func (o *RolePermissionsRolesPostRequest) SetOrganizationScopes(v []string)` + +SetOrganizationScopes sets OrganizationScopes field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/RolePermissionsRolesRoleIdPatchRequest.md b/internal/sdk/api/docs/RolePermissionsRolesRoleIdPatchRequest.md new file mode 100644 index 0000000..01751db --- /dev/null +++ b/internal/sdk/api/docs/RolePermissionsRolesRoleIdPatchRequest.md @@ -0,0 +1,134 @@ +# RolePermissionsRolesRoleIdPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of the role. | [optional] +**Description** | Pointer to **string** | The description of the role | [optional] +**ObjectScopes** | Pointer to **[]string** | The object scopes of the role | [optional] +**OrganizationScopes** | Pointer to **[]string** | The organization scopes of the role | [optional] + +## Methods + +### NewRolePermissionsRolesRoleIdPatchRequest + +`func NewRolePermissionsRolesRoleIdPatchRequest() *RolePermissionsRolesRoleIdPatchRequest` + +NewRolePermissionsRolesRoleIdPatchRequest instantiates a new RolePermissionsRolesRoleIdPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRolePermissionsRolesRoleIdPatchRequestWithDefaults + +`func NewRolePermissionsRolesRoleIdPatchRequestWithDefaults() *RolePermissionsRolesRoleIdPatchRequest` + +NewRolePermissionsRolesRoleIdPatchRequestWithDefaults instantiates a new RolePermissionsRolesRoleIdPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *RolePermissionsRolesRoleIdPatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RolePermissionsRolesRoleIdPatchRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RolePermissionsRolesRoleIdPatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RolePermissionsRolesRoleIdPatchRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *RolePermissionsRolesRoleIdPatchRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RolePermissionsRolesRoleIdPatchRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RolePermissionsRolesRoleIdPatchRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RolePermissionsRolesRoleIdPatchRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetObjectScopes + +`func (o *RolePermissionsRolesRoleIdPatchRequest) GetObjectScopes() []string` + +GetObjectScopes returns the ObjectScopes field if non-nil, zero value otherwise. + +### GetObjectScopesOk + +`func (o *RolePermissionsRolesRoleIdPatchRequest) GetObjectScopesOk() (*[]string, bool)` + +GetObjectScopesOk returns a tuple with the ObjectScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectScopes + +`func (o *RolePermissionsRolesRoleIdPatchRequest) SetObjectScopes(v []string)` + +SetObjectScopes sets ObjectScopes field to given value. + +### HasObjectScopes + +`func (o *RolePermissionsRolesRoleIdPatchRequest) HasObjectScopes() bool` + +HasObjectScopes returns a boolean if a field has been set. + +### GetOrganizationScopes + +`func (o *RolePermissionsRolesRoleIdPatchRequest) GetOrganizationScopes() []string` + +GetOrganizationScopes returns the OrganizationScopes field if non-nil, zero value otherwise. + +### GetOrganizationScopesOk + +`func (o *RolePermissionsRolesRoleIdPatchRequest) GetOrganizationScopesOk() (*[]string, bool)` + +GetOrganizationScopesOk returns a tuple with the OrganizationScopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationScopes + +`func (o *RolePermissionsRolesRoleIdPatchRequest) SetOrganizationScopes(v []string)` + +SetOrganizationScopes sets OrganizationScopes field to given value. + +### HasOrganizationScopes + +`func (o *RolePermissionsRolesRoleIdPatchRequest) HasOrganizationScopes() bool` + +HasOrganizationScopes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SAML.md b/internal/sdk/api/docs/SAML.md new file mode 100644 index 0000000..02f06a4 --- /dev/null +++ b/internal/sdk/api/docs/SAML.md @@ -0,0 +1,432 @@ +# SAML + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigType** | **string** | | +**IdpMetadataXml** | **string** | | +**SamlFirstNameAttribute** | **string** | | +**SamlLastNameAttribute** | **string** | | +**SamlGroupsAttribute** | Pointer to **string** | | [optional] +**SamlSyncGroupClaims** | **bool** | | +**LdapSyncGroupClaims** | Pointer to **bool** | | [optional] +**LdapRoleMapping** | Pointer to **string** | | [optional] +**LdapServerUrl** | Pointer to **string** | | [optional] +**LdapBaseDomainComponents** | Pointer to **string** | | [optional] +**LdapServerName** | Pointer to **string** | | [optional] +**LdapServerKey** | Pointer to **string** | | [optional] +**LdapServerCertificate** | Pointer to **string** | | [optional] +**JitEnabled** | **bool** | | +**RestrictedDomain** | Pointer to **string** | | [optional] +**TriggerLoginAutomatically** | **bool** | | +**DisableEmailPasswordLogin** | **bool** | | + +## Methods + +### NewSAML + +`func NewSAML(configType string, idpMetadataXml string, samlFirstNameAttribute string, samlLastNameAttribute string, samlSyncGroupClaims bool, jitEnabled bool, triggerLoginAutomatically bool, disableEmailPasswordLogin bool, ) *SAML` + +NewSAML instantiates a new SAML object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSAMLWithDefaults + +`func NewSAMLWithDefaults() *SAML` + +NewSAMLWithDefaults instantiates a new SAML 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 + +### GetConfigType + +`func (o *SAML) GetConfigType() string` + +GetConfigType returns the ConfigType field if non-nil, zero value otherwise. + +### GetConfigTypeOk + +`func (o *SAML) GetConfigTypeOk() (*string, bool)` + +GetConfigTypeOk returns a tuple with the ConfigType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigType + +`func (o *SAML) SetConfigType(v string)` + +SetConfigType sets ConfigType field to given value. + + +### GetIdpMetadataXml + +`func (o *SAML) GetIdpMetadataXml() string` + +GetIdpMetadataXml returns the IdpMetadataXml field if non-nil, zero value otherwise. + +### GetIdpMetadataXmlOk + +`func (o *SAML) GetIdpMetadataXmlOk() (*string, bool)` + +GetIdpMetadataXmlOk returns a tuple with the IdpMetadataXml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdpMetadataXml + +`func (o *SAML) SetIdpMetadataXml(v string)` + +SetIdpMetadataXml sets IdpMetadataXml field to given value. + + +### GetSamlFirstNameAttribute + +`func (o *SAML) GetSamlFirstNameAttribute() string` + +GetSamlFirstNameAttribute returns the SamlFirstNameAttribute field if non-nil, zero value otherwise. + +### GetSamlFirstNameAttributeOk + +`func (o *SAML) GetSamlFirstNameAttributeOk() (*string, bool)` + +GetSamlFirstNameAttributeOk returns a tuple with the SamlFirstNameAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlFirstNameAttribute + +`func (o *SAML) SetSamlFirstNameAttribute(v string)` + +SetSamlFirstNameAttribute sets SamlFirstNameAttribute field to given value. + + +### GetSamlLastNameAttribute + +`func (o *SAML) GetSamlLastNameAttribute() string` + +GetSamlLastNameAttribute returns the SamlLastNameAttribute field if non-nil, zero value otherwise. + +### GetSamlLastNameAttributeOk + +`func (o *SAML) GetSamlLastNameAttributeOk() (*string, bool)` + +GetSamlLastNameAttributeOk returns a tuple with the SamlLastNameAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlLastNameAttribute + +`func (o *SAML) SetSamlLastNameAttribute(v string)` + +SetSamlLastNameAttribute sets SamlLastNameAttribute field to given value. + + +### GetSamlGroupsAttribute + +`func (o *SAML) GetSamlGroupsAttribute() string` + +GetSamlGroupsAttribute returns the SamlGroupsAttribute field if non-nil, zero value otherwise. + +### GetSamlGroupsAttributeOk + +`func (o *SAML) GetSamlGroupsAttributeOk() (*string, bool)` + +GetSamlGroupsAttributeOk returns a tuple with the SamlGroupsAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlGroupsAttribute + +`func (o *SAML) SetSamlGroupsAttribute(v string)` + +SetSamlGroupsAttribute sets SamlGroupsAttribute field to given value. + +### HasSamlGroupsAttribute + +`func (o *SAML) HasSamlGroupsAttribute() bool` + +HasSamlGroupsAttribute returns a boolean if a field has been set. + +### GetSamlSyncGroupClaims + +`func (o *SAML) GetSamlSyncGroupClaims() bool` + +GetSamlSyncGroupClaims returns the SamlSyncGroupClaims field if non-nil, zero value otherwise. + +### GetSamlSyncGroupClaimsOk + +`func (o *SAML) GetSamlSyncGroupClaimsOk() (*bool, bool)` + +GetSamlSyncGroupClaimsOk returns a tuple with the SamlSyncGroupClaims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSamlSyncGroupClaims + +`func (o *SAML) SetSamlSyncGroupClaims(v bool)` + +SetSamlSyncGroupClaims sets SamlSyncGroupClaims field to given value. + + +### GetLdapSyncGroupClaims + +`func (o *SAML) GetLdapSyncGroupClaims() bool` + +GetLdapSyncGroupClaims returns the LdapSyncGroupClaims field if non-nil, zero value otherwise. + +### GetLdapSyncGroupClaimsOk + +`func (o *SAML) GetLdapSyncGroupClaimsOk() (*bool, bool)` + +GetLdapSyncGroupClaimsOk returns a tuple with the LdapSyncGroupClaims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapSyncGroupClaims + +`func (o *SAML) SetLdapSyncGroupClaims(v bool)` + +SetLdapSyncGroupClaims sets LdapSyncGroupClaims field to given value. + +### HasLdapSyncGroupClaims + +`func (o *SAML) HasLdapSyncGroupClaims() bool` + +HasLdapSyncGroupClaims returns a boolean if a field has been set. + +### GetLdapRoleMapping + +`func (o *SAML) GetLdapRoleMapping() string` + +GetLdapRoleMapping returns the LdapRoleMapping field if non-nil, zero value otherwise. + +### GetLdapRoleMappingOk + +`func (o *SAML) GetLdapRoleMappingOk() (*string, bool)` + +GetLdapRoleMappingOk returns a tuple with the LdapRoleMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapRoleMapping + +`func (o *SAML) SetLdapRoleMapping(v string)` + +SetLdapRoleMapping sets LdapRoleMapping field to given value. + +### HasLdapRoleMapping + +`func (o *SAML) HasLdapRoleMapping() bool` + +HasLdapRoleMapping returns a boolean if a field has been set. + +### GetLdapServerUrl + +`func (o *SAML) GetLdapServerUrl() string` + +GetLdapServerUrl returns the LdapServerUrl field if non-nil, zero value otherwise. + +### GetLdapServerUrlOk + +`func (o *SAML) GetLdapServerUrlOk() (*string, bool)` + +GetLdapServerUrlOk returns a tuple with the LdapServerUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapServerUrl + +`func (o *SAML) SetLdapServerUrl(v string)` + +SetLdapServerUrl sets LdapServerUrl field to given value. + +### HasLdapServerUrl + +`func (o *SAML) HasLdapServerUrl() bool` + +HasLdapServerUrl returns a boolean if a field has been set. + +### GetLdapBaseDomainComponents + +`func (o *SAML) GetLdapBaseDomainComponents() string` + +GetLdapBaseDomainComponents returns the LdapBaseDomainComponents field if non-nil, zero value otherwise. + +### GetLdapBaseDomainComponentsOk + +`func (o *SAML) GetLdapBaseDomainComponentsOk() (*string, bool)` + +GetLdapBaseDomainComponentsOk returns a tuple with the LdapBaseDomainComponents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapBaseDomainComponents + +`func (o *SAML) SetLdapBaseDomainComponents(v string)` + +SetLdapBaseDomainComponents sets LdapBaseDomainComponents field to given value. + +### HasLdapBaseDomainComponents + +`func (o *SAML) HasLdapBaseDomainComponents() bool` + +HasLdapBaseDomainComponents returns a boolean if a field has been set. + +### GetLdapServerName + +`func (o *SAML) GetLdapServerName() string` + +GetLdapServerName returns the LdapServerName field if non-nil, zero value otherwise. + +### GetLdapServerNameOk + +`func (o *SAML) GetLdapServerNameOk() (*string, bool)` + +GetLdapServerNameOk returns a tuple with the LdapServerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapServerName + +`func (o *SAML) SetLdapServerName(v string)` + +SetLdapServerName sets LdapServerName field to given value. + +### HasLdapServerName + +`func (o *SAML) HasLdapServerName() bool` + +HasLdapServerName returns a boolean if a field has been set. + +### GetLdapServerKey + +`func (o *SAML) GetLdapServerKey() string` + +GetLdapServerKey returns the LdapServerKey field if non-nil, zero value otherwise. + +### GetLdapServerKeyOk + +`func (o *SAML) GetLdapServerKeyOk() (*string, bool)` + +GetLdapServerKeyOk returns a tuple with the LdapServerKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapServerKey + +`func (o *SAML) SetLdapServerKey(v string)` + +SetLdapServerKey sets LdapServerKey field to given value. + +### HasLdapServerKey + +`func (o *SAML) HasLdapServerKey() bool` + +HasLdapServerKey returns a boolean if a field has been set. + +### GetLdapServerCertificate + +`func (o *SAML) GetLdapServerCertificate() string` + +GetLdapServerCertificate returns the LdapServerCertificate field if non-nil, zero value otherwise. + +### GetLdapServerCertificateOk + +`func (o *SAML) GetLdapServerCertificateOk() (*string, bool)` + +GetLdapServerCertificateOk returns a tuple with the LdapServerCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLdapServerCertificate + +`func (o *SAML) SetLdapServerCertificate(v string)` + +SetLdapServerCertificate sets LdapServerCertificate field to given value. + +### HasLdapServerCertificate + +`func (o *SAML) HasLdapServerCertificate() bool` + +HasLdapServerCertificate returns a boolean if a field has been set. + +### GetJitEnabled + +`func (o *SAML) GetJitEnabled() bool` + +GetJitEnabled returns the JitEnabled field if non-nil, zero value otherwise. + +### GetJitEnabledOk + +`func (o *SAML) GetJitEnabledOk() (*bool, bool)` + +GetJitEnabledOk returns a tuple with the JitEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJitEnabled + +`func (o *SAML) SetJitEnabled(v bool)` + +SetJitEnabled sets JitEnabled field to given value. + + +### GetRestrictedDomain + +`func (o *SAML) GetRestrictedDomain() string` + +GetRestrictedDomain returns the RestrictedDomain field if non-nil, zero value otherwise. + +### GetRestrictedDomainOk + +`func (o *SAML) GetRestrictedDomainOk() (*string, bool)` + +GetRestrictedDomainOk returns a tuple with the RestrictedDomain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestrictedDomain + +`func (o *SAML) SetRestrictedDomain(v string)` + +SetRestrictedDomain sets RestrictedDomain field to given value. + +### HasRestrictedDomain + +`func (o *SAML) HasRestrictedDomain() bool` + +HasRestrictedDomain returns a boolean if a field has been set. + +### GetTriggerLoginAutomatically + +`func (o *SAML) GetTriggerLoginAutomatically() bool` + +GetTriggerLoginAutomatically returns the TriggerLoginAutomatically field if non-nil, zero value otherwise. + +### GetTriggerLoginAutomaticallyOk + +`func (o *SAML) GetTriggerLoginAutomaticallyOk() (*bool, bool)` + +GetTriggerLoginAutomaticallyOk returns a tuple with the TriggerLoginAutomatically field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerLoginAutomatically + +`func (o *SAML) SetTriggerLoginAutomatically(v bool)` + +SetTriggerLoginAutomatically sets TriggerLoginAutomatically field to given value. + + +### GetDisableEmailPasswordLogin + +`func (o *SAML) GetDisableEmailPasswordLogin() bool` + +GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field if non-nil, zero value otherwise. + +### GetDisableEmailPasswordLoginOk + +`func (o *SAML) GetDisableEmailPasswordLoginOk() (*bool, bool)` + +GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableEmailPasswordLogin + +`func (o *SAML) SetDisableEmailPasswordLogin(v bool)` + +SetDisableEmailPasswordLogin sets DisableEmailPasswordLogin field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SSOAPI.md b/internal/sdk/api/docs/SSOAPI.md index a74e17b..9b578f5 100644 --- a/internal/sdk/api/docs/SSOAPI.md +++ b/internal/sdk/api/docs/SSOAPI.md @@ -151,7 +151,7 @@ import ( ) func main() { - ssoConfigPostRequest := *openapiclient.NewSsoConfigPostRequest(openapiclient._sso_config_post_request_data{SsoConfigPostRequestDataOneOf: openapiclient.NewSsoConfigPostRequestDataOneOf("ConfigType_example", "GoogleClientId_example", "GoogleClientSecret_example", false)}) // SsoConfigPostRequest | (optional) + ssoConfigPostRequest := *openapiclient.NewSsoConfigPostRequest(openapiclient._sso_config_post_request_data{Google: openapiclient.NewGoogle("ConfigType_example", "GoogleClientId_example", "GoogleClientSecret_example", false)}) // SsoConfigPostRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/internal/sdk/api/docs/SourceControlAPI.md b/internal/sdk/api/docs/SourceControlAPI.md index d359134..fab345b 100644 --- a/internal/sdk/api/docs/SourceControlAPI.md +++ b/internal/sdk/api/docs/SourceControlAPI.md @@ -9,7 +9,19 @@ Method | HTTP request | Description [**SourceControlConfigPost**](SourceControlAPI.md#SourceControlConfigPost) | **Post** /source_control/config | Create source control configuration [**SourceControlConfigPut**](SourceControlAPI.md#SourceControlConfigPut) | **Put** /source_control/config | Set source control configuration [**SourceControlDeployPost**](SourceControlAPI.md#SourceControlDeployPost) | **Post** /source_control/deploy | Trigger deployment of latest changes -[**SourceControlDeploymentIdGet**](SourceControlAPI.md#SourceControlDeploymentIdGet) | **Get** /source_control/deployment/{id} | Get deployment by id +[**SourceControlDeploymentIdGet**](SourceControlAPI.md#SourceControlDeploymentIdGet) | **Get** /source_control/deployment/{id} | Get a deployment +[**SourceControlManifestsGet**](SourceControlAPI.md#SourceControlManifestsGet) | **Get** /source_control/manifests | Lists all release manifests +[**SourceControlManifestsManifestNameAppsAppUuidDeletePost**](SourceControlAPI.md#SourceControlManifestsManifestNameAppsAppUuidDeletePost) | **Post** /source_control/manifests/{manifestName}/apps/{appUuid}/delete | Delete the entry for an app from a release manifest +[**SourceControlManifestsManifestNameAppsAppUuidPut**](SourceControlAPI.md#SourceControlManifestsManifestNameAppsAppUuidPut) | **Put** /source_control/manifests/{manifestName}/apps/{appUuid} | Set release manifest +[**SourceControlManifestsManifestNameDeletePost**](SourceControlAPI.md#SourceControlManifestsManifestNameDeletePost) | **Post** /source_control/manifests/{manifestName}/delete | Delete a release manifest +[**SourceControlManifestsManifestNameElementUuidDeletePost**](SourceControlAPI.md#SourceControlManifestsManifestNameElementUuidDeletePost) | **Post** /source_control/manifests/{manifestName}/{elementUuid}/delete | Delete the entry for an app from a release manifest +[**SourceControlManifestsManifestNameElementUuidPut**](SourceControlAPI.md#SourceControlManifestsManifestNameElementUuidPut) | **Put** /source_control/manifests/{manifestName}/{elementUuid} | Set release manifest +[**SourceControlManifestsManifestNameGet**](SourceControlAPI.md#SourceControlManifestsManifestNameGet) | **Get** /source_control/manifests/{manifestName} | Get a specific release manifest +[**SourceControlManifestsManifestNamePut**](SourceControlAPI.md#SourceControlManifestsManifestNamePut) | **Put** /source_control/manifests/{manifestName} | Set release manifest +[**SourceControlReleasesAppsAppUuidGet**](SourceControlAPI.md#SourceControlReleasesAppsAppUuidGet) | **Get** /source_control/releases/apps/{appUuid} | Lists all available releases for the given app. +[**SourceControlReleasesAppsAppUuidPost**](SourceControlAPI.md#SourceControlReleasesAppsAppUuidPost) | **Post** /source_control/releases/apps/{appUuid} | Create a release artifact +[**SourceControlReleasesElementUuidGet**](SourceControlAPI.md#SourceControlReleasesElementUuidGet) | **Get** /source_control/releases/{elementUuid} | Lists all available releases for the given element. +[**SourceControlReleasesElementUuidPost**](SourceControlAPI.md#SourceControlReleasesElementUuidPost) | **Post** /source_control/releases/{elementUuid} | Create a release artifact [**SourceControlSettingsGet**](SourceControlAPI.md#SourceControlSettingsGet) | **Get** /source_control/settings | Get source control settings [**SourceControlSettingsPut**](SourceControlAPI.md#SourceControlSettingsPut) | **Put** /source_control/settings | Set source control settings [**SourceControlTestConnectionGet**](SourceControlAPI.md#SourceControlTestConnectionGet) | **Get** /source_control/test_connection | Tests source control connection @@ -158,7 +170,7 @@ import ( ) func main() { - sourceControlConfigPutRequest := *openapiclient.NewSourceControlConfigPutRequest(openapiclient._source_control_config_put_request_config{SourceControlConfigGet200ResponseDataOneOf: openapiclient.NewSourceControlConfigGet200ResponseDataOneOf(openapiclient._source_control_config_get_200_response_data_oneOf_config{SourceControlConfigGet200ResponseDataOneOfConfigOneOf: openapiclient.NewSourceControlConfigGet200ResponseDataOneOfConfigOneOf("Type_example", "AppId_example", "InstallationId_example", "PrivateKey_example")}, "Provider_example", "Org_example", "Repo_example", "DefaultBranch_example")}) // SourceControlConfigPutRequest | (optional) + sourceControlConfigPutRequest := *openapiclient.NewSourceControlConfigPutRequest(*openapiclient.NewSourceControlConfigPutRequestConfig(*openapiclient.NewAzureReposConfig("Url_example", "Project_example", "User_example", "PersonalAccessToken_example", false), "Provider_example", "Org_example", "Repo_example", "DefaultBranch_example")) // SourceControlConfigPutRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -224,7 +236,7 @@ import ( ) func main() { - sourceControlConfigPutRequest := *openapiclient.NewSourceControlConfigPutRequest(openapiclient._source_control_config_put_request_config{SourceControlConfigGet200ResponseDataOneOf: openapiclient.NewSourceControlConfigGet200ResponseDataOneOf(openapiclient._source_control_config_get_200_response_data_oneOf_config{SourceControlConfigGet200ResponseDataOneOfConfigOneOf: openapiclient.NewSourceControlConfigGet200ResponseDataOneOfConfigOneOf("Type_example", "AppId_example", "InstallationId_example", "PrivateKey_example")}, "Provider_example", "Org_example", "Repo_example", "DefaultBranch_example")}) // SourceControlConfigPutRequest | (optional) + sourceControlConfigPutRequest := *openapiclient.NewSourceControlConfigPutRequest(*openapiclient.NewSourceControlConfigPutRequestConfig(*openapiclient.NewAzureReposConfig("Url_example", "Project_example", "User_example", "PersonalAccessToken_example", false), "Provider_example", "Org_example", "Repo_example", "DefaultBranch_example")) // SourceControlConfigPutRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -334,7 +346,7 @@ Other parameters are passed through a pointer to a apiSourceControlDeployPostReq > SourceControlDeployPost200Response SourceControlDeploymentIdGet(ctx, id).Execute() -Get deployment by id +Get a deployment @@ -351,7 +363,7 @@ import ( ) func main() { - id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The deployment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -371,7 +383,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | The deployment ID | ### Other Parameters @@ -400,6 +412,873 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## SourceControlManifestsGet + +> SourceControlManifestsGet200Response SourceControlManifestsGet(ctx).Execute() + +Lists all release manifests + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlManifestsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlManifestsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlManifestsGet`: SourceControlManifestsGet200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlManifestsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlManifestsGetRequest struct via the builder pattern + + +### Return type + +[**SourceControlManifestsGet200Response**](SourceControlManifestsGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlManifestsManifestNameAppsAppUuidDeletePost + +> SourceControlManifestsManifestNamePut200Response SourceControlManifestsManifestNameAppsAppUuidDeletePost(ctx, appUuid, manifestName).SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest).Execute() + +Delete the entry for an app from a release manifest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + appUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid. + manifestName := "manifestName_example" // string | Identifier for the manifest of interest + sourceControlManifestsManifestNameDeletePostRequest := *openapiclient.NewSourceControlManifestsManifestNameDeletePostRequest() // SourceControlManifestsManifestNameDeletePostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlManifestsManifestNameAppsAppUuidDeletePost(context.Background(), appUuid, manifestName).SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlManifestsManifestNameAppsAppUuidDeletePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlManifestsManifestNameAppsAppUuidDeletePost`: SourceControlManifestsManifestNamePut200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlManifestsManifestNameAppsAppUuidDeletePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appUuid** | **string** | The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid. | +**manifestName** | **string** | Identifier for the manifest of interest | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlManifestsManifestNameAppsAppUuidDeletePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **sourceControlManifestsManifestNameDeletePostRequest** | [**SourceControlManifestsManifestNameDeletePostRequest**](SourceControlManifestsManifestNameDeletePostRequest.md) | | + +### Return type + +[**SourceControlManifestsManifestNamePut200Response**](SourceControlManifestsManifestNamePut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlManifestsManifestNameAppsAppUuidPut + +> SourceControlManifestsManifestNamePut200Response SourceControlManifestsManifestNameAppsAppUuidPut(ctx, appUuid, manifestName).SourceControlManifestsManifestNameAppsAppUuidPutRequest(sourceControlManifestsManifestNameAppsAppUuidPutRequest).Execute() + +Set release manifest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + appUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid. + manifestName := "manifestName_example" // string | Identifier for the manifest of interest + sourceControlManifestsManifestNameAppsAppUuidPutRequest := *openapiclient.NewSourceControlManifestsManifestNameAppsAppUuidPutRequest(*openapiclient.NewSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease()) // SourceControlManifestsManifestNameAppsAppUuidPutRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlManifestsManifestNameAppsAppUuidPut(context.Background(), appUuid, manifestName).SourceControlManifestsManifestNameAppsAppUuidPutRequest(sourceControlManifestsManifestNameAppsAppUuidPutRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlManifestsManifestNameAppsAppUuidPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlManifestsManifestNameAppsAppUuidPut`: SourceControlManifestsManifestNamePut200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlManifestsManifestNameAppsAppUuidPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appUuid** | **string** | The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid. | +**manifestName** | **string** | Identifier for the manifest of interest | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlManifestsManifestNameAppsAppUuidPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **sourceControlManifestsManifestNameAppsAppUuidPutRequest** | [**SourceControlManifestsManifestNameAppsAppUuidPutRequest**](SourceControlManifestsManifestNameAppsAppUuidPutRequest.md) | | + +### Return type + +[**SourceControlManifestsManifestNamePut200Response**](SourceControlManifestsManifestNamePut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlManifestsManifestNameDeletePost + +> SourceControlManifestsManifestNamePut200Response SourceControlManifestsManifestNameDeletePost(ctx, manifestName).SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest).Execute() + +Delete a release manifest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + manifestName := "manifestName_example" // string | Identifier for the manifest of interest + sourceControlManifestsManifestNameDeletePostRequest := *openapiclient.NewSourceControlManifestsManifestNameDeletePostRequest() // SourceControlManifestsManifestNameDeletePostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlManifestsManifestNameDeletePost(context.Background(), manifestName).SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlManifestsManifestNameDeletePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlManifestsManifestNameDeletePost`: SourceControlManifestsManifestNamePut200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlManifestsManifestNameDeletePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manifestName** | **string** | Identifier for the manifest of interest | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlManifestsManifestNameDeletePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sourceControlManifestsManifestNameDeletePostRequest** | [**SourceControlManifestsManifestNameDeletePostRequest**](SourceControlManifestsManifestNameDeletePostRequest.md) | | + +### Return type + +[**SourceControlManifestsManifestNamePut200Response**](SourceControlManifestsManifestNamePut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlManifestsManifestNameElementUuidDeletePost + +> SourceControlManifestsManifestNamePut200Response SourceControlManifestsManifestNameElementUuidDeletePost(ctx, elementUuid, manifestName).ElementType(elementType).SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest).Execute() + +Delete the entry for an app from a release manifest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + elementUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The uuid to specify an element of interest within the release manifest. + manifestName := "manifestName_example" // string | Identifier for the manifest of interest + elementType := "elementType_example" // string | The type of the element. + sourceControlManifestsManifestNameDeletePostRequest := *openapiclient.NewSourceControlManifestsManifestNameDeletePostRequest() // SourceControlManifestsManifestNameDeletePostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlManifestsManifestNameElementUuidDeletePost(context.Background(), elementUuid, manifestName).ElementType(elementType).SourceControlManifestsManifestNameDeletePostRequest(sourceControlManifestsManifestNameDeletePostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlManifestsManifestNameElementUuidDeletePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlManifestsManifestNameElementUuidDeletePost`: SourceControlManifestsManifestNamePut200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlManifestsManifestNameElementUuidDeletePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**elementUuid** | **string** | The uuid to specify an element of interest within the release manifest. | +**manifestName** | **string** | Identifier for the manifest of interest | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlManifestsManifestNameElementUuidDeletePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **elementType** | **string** | The type of the element. | + **sourceControlManifestsManifestNameDeletePostRequest** | [**SourceControlManifestsManifestNameDeletePostRequest**](SourceControlManifestsManifestNameDeletePostRequest.md) | | + +### Return type + +[**SourceControlManifestsManifestNamePut200Response**](SourceControlManifestsManifestNamePut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlManifestsManifestNameElementUuidPut + +> SourceControlManifestsManifestNamePut200Response SourceControlManifestsManifestNameElementUuidPut(ctx, elementUuid, manifestName).ElementType(elementType).SourceControlManifestsManifestNameAppsAppUuidPutRequest(sourceControlManifestsManifestNameAppsAppUuidPutRequest).Execute() + +Set release manifest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + elementUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The uuid to specify an element of interest within the release manifest. + manifestName := "manifestName_example" // string | Identifier for the manifest of interest + elementType := "elementType_example" // string | The type of the element. + sourceControlManifestsManifestNameAppsAppUuidPutRequest := *openapiclient.NewSourceControlManifestsManifestNameAppsAppUuidPutRequest(*openapiclient.NewSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease()) // SourceControlManifestsManifestNameAppsAppUuidPutRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlManifestsManifestNameElementUuidPut(context.Background(), elementUuid, manifestName).ElementType(elementType).SourceControlManifestsManifestNameAppsAppUuidPutRequest(sourceControlManifestsManifestNameAppsAppUuidPutRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlManifestsManifestNameElementUuidPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlManifestsManifestNameElementUuidPut`: SourceControlManifestsManifestNamePut200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlManifestsManifestNameElementUuidPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**elementUuid** | **string** | The uuid to specify an element of interest within the release manifest. | +**manifestName** | **string** | Identifier for the manifest of interest | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlManifestsManifestNameElementUuidPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **elementType** | **string** | The type of the element. | + **sourceControlManifestsManifestNameAppsAppUuidPutRequest** | [**SourceControlManifestsManifestNameAppsAppUuidPutRequest**](SourceControlManifestsManifestNameAppsAppUuidPutRequest.md) | | + +### Return type + +[**SourceControlManifestsManifestNamePut200Response**](SourceControlManifestsManifestNamePut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlManifestsManifestNameGet + +> SourceControlManifestsManifestNameGet200Response SourceControlManifestsManifestNameGet(ctx, manifestName).Execute() + +Get a specific release manifest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + manifestName := "manifestName_example" // string | Identifier for the manifest of interest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlManifestsManifestNameGet(context.Background(), manifestName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlManifestsManifestNameGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlManifestsManifestNameGet`: SourceControlManifestsManifestNameGet200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlManifestsManifestNameGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manifestName** | **string** | Identifier for the manifest of interest | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlManifestsManifestNameGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SourceControlManifestsManifestNameGet200Response**](SourceControlManifestsManifestNameGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlManifestsManifestNamePut + +> SourceControlManifestsManifestNamePut200Response SourceControlManifestsManifestNamePut(ctx, manifestName).SourceControlManifestsManifestNamePutRequest(sourceControlManifestsManifestNamePutRequest).Execute() + +Set release manifest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + manifestName := "manifestName_example" // string | Identifier for the manifest of interest + sourceControlManifestsManifestNamePutRequest := *openapiclient.NewSourceControlManifestsManifestNamePutRequest() // SourceControlManifestsManifestNamePutRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlManifestsManifestNamePut(context.Background(), manifestName).SourceControlManifestsManifestNamePutRequest(sourceControlManifestsManifestNamePutRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlManifestsManifestNamePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlManifestsManifestNamePut`: SourceControlManifestsManifestNamePut200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlManifestsManifestNamePut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manifestName** | **string** | Identifier for the manifest of interest | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlManifestsManifestNamePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sourceControlManifestsManifestNamePutRequest** | [**SourceControlManifestsManifestNamePutRequest**](SourceControlManifestsManifestNamePutRequest.md) | | + +### Return type + +[**SourceControlManifestsManifestNamePut200Response**](SourceControlManifestsManifestNamePut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlReleasesAppsAppUuidGet + +> SourceControlReleasesAppsAppUuidGet200Response SourceControlReleasesAppsAppUuidGet(ctx, appUuid).Execute() + +Lists all available releases for the given app. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + appUuid := "appUuid_example" // string | The uuid of the app. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlReleasesAppsAppUuidGet(context.Background(), appUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlReleasesAppsAppUuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlReleasesAppsAppUuidGet`: SourceControlReleasesAppsAppUuidGet200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlReleasesAppsAppUuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appUuid** | **string** | The uuid of the app. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlReleasesAppsAppUuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SourceControlReleasesAppsAppUuidGet200Response**](SourceControlReleasesAppsAppUuidGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlReleasesAppsAppUuidPost + +> SourceControlManifestsManifestNamePut200Response SourceControlReleasesAppsAppUuidPost(ctx, appUuid).SourceControlReleasesAppsAppUuidPostRequest(sourceControlReleasesAppsAppUuidPostRequest).Execute() + +Create a release artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + appUuid := "appUuid_example" // string | The uuid of the app. + sourceControlReleasesAppsAppUuidPostRequest := *openapiclient.NewSourceControlReleasesAppsAppUuidPostRequest("1.0.0") // SourceControlReleasesAppsAppUuidPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlReleasesAppsAppUuidPost(context.Background(), appUuid).SourceControlReleasesAppsAppUuidPostRequest(sourceControlReleasesAppsAppUuidPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlReleasesAppsAppUuidPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlReleasesAppsAppUuidPost`: SourceControlManifestsManifestNamePut200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlReleasesAppsAppUuidPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appUuid** | **string** | The uuid of the app. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlReleasesAppsAppUuidPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sourceControlReleasesAppsAppUuidPostRequest** | [**SourceControlReleasesAppsAppUuidPostRequest**](SourceControlReleasesAppsAppUuidPostRequest.md) | | + +### Return type + +[**SourceControlManifestsManifestNamePut200Response**](SourceControlManifestsManifestNamePut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlReleasesElementUuidGet + +> SourceControlReleasesAppsAppUuidGet200Response SourceControlReleasesElementUuidGet(ctx, elementUuid).ElementType(elementType).Execute() + +Lists all available releases for the given element. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + elementUuid := "elementUuid_example" // string | The uuid of the element. + elementType := "elementType_example" // string | The type of the element. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlReleasesElementUuidGet(context.Background(), elementUuid).ElementType(elementType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlReleasesElementUuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlReleasesElementUuidGet`: SourceControlReleasesAppsAppUuidGet200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlReleasesElementUuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**elementUuid** | **string** | The uuid of the element. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlReleasesElementUuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **elementType** | **string** | The type of the element. | + +### Return type + +[**SourceControlReleasesAppsAppUuidGet200Response**](SourceControlReleasesAppsAppUuidGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SourceControlReleasesElementUuidPost + +> SourceControlManifestsManifestNamePut200Response SourceControlReleasesElementUuidPost(ctx, elementUuid).ElementType(elementType).SourceControlReleasesAppsAppUuidPostRequest(sourceControlReleasesAppsAppUuidPostRequest).Execute() + +Create a release artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + elementUuid := "elementUuid_example" // string | The uuid of the element. + elementType := "elementType_example" // string | The type of the element. + sourceControlReleasesAppsAppUuidPostRequest := *openapiclient.NewSourceControlReleasesAppsAppUuidPostRequest("1.0.0") // SourceControlReleasesAppsAppUuidPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourceControlAPI.SourceControlReleasesElementUuidPost(context.Background(), elementUuid).ElementType(elementType).SourceControlReleasesAppsAppUuidPostRequest(sourceControlReleasesAppsAppUuidPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceControlAPI.SourceControlReleasesElementUuidPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SourceControlReleasesElementUuidPost`: SourceControlManifestsManifestNamePut200Response + fmt.Fprintf(os.Stdout, "Response from `SourceControlAPI.SourceControlReleasesElementUuidPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**elementUuid** | **string** | The uuid of the element. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSourceControlReleasesElementUuidPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **elementType** | **string** | The type of the element. | + **sourceControlReleasesAppsAppUuidPostRequest** | [**SourceControlReleasesAppsAppUuidPostRequest**](SourceControlReleasesAppsAppUuidPostRequest.md) | | + +### Return type + +[**SourceControlManifestsManifestNamePut200Response**](SourceControlManifestsManifestNamePut200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## SourceControlSettingsGet > SourceControlSettingsGet200Response SourceControlSettingsGet(ctx).Execute() diff --git a/internal/sdk/api/docs/SourceControlConfigGet200ResponseData.md b/internal/sdk/api/docs/SourceControlConfigGet200ResponseData.md index fc0a6f2..fbbd02a 100644 --- a/internal/sdk/api/docs/SourceControlConfigGet200ResponseData.md +++ b/internal/sdk/api/docs/SourceControlConfigGet200ResponseData.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Config** | [**SourceControlConfigGet200ResponseDataOneOf4Config**](SourceControlConfigGet200ResponseDataOneOf4Config.md) | | +**Config** | [**AzureReposConfig**](AzureReposConfig.md) | | **Provider** | **string** | | **Org** | **string** | The user or organization to which the repository belongs to. | **Repo** | **string** | The name of the repository you created to use with Retool. | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewSourceControlConfigGet200ResponseData -`func NewSourceControlConfigGet200ResponseData(config SourceControlConfigGet200ResponseDataOneOf4Config, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfigGet200ResponseData` +`func NewSourceControlConfigGet200ResponseData(config AzureReposConfig, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfigGet200ResponseData` NewSourceControlConfigGet200ResponseData instantiates a new SourceControlConfigGet200ResponseData object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetConfig -`func (o *SourceControlConfigGet200ResponseData) GetConfig() SourceControlConfigGet200ResponseDataOneOf4Config` +`func (o *SourceControlConfigGet200ResponseData) GetConfig() AzureReposConfig` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *SourceControlConfigGet200ResponseData) GetConfigOk() (*SourceControlConfigGet200ResponseDataOneOf4Config, bool)` +`func (o *SourceControlConfigGet200ResponseData) GetConfigOk() (*AzureReposConfig, bool)` GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfig -`func (o *SourceControlConfigGet200ResponseData) SetConfig(v SourceControlConfigGet200ResponseDataOneOf4Config)` +`func (o *SourceControlConfigGet200ResponseData) SetConfig(v AzureReposConfig)` SetConfig sets Config field to given value. diff --git a/internal/sdk/api/docs/SourceControlConfigPost200ResponseData.md b/internal/sdk/api/docs/SourceControlConfigPost200ResponseData.md index d3831cc..64eb175 100644 --- a/internal/sdk/api/docs/SourceControlConfigPost200ResponseData.md +++ b/internal/sdk/api/docs/SourceControlConfigPost200ResponseData.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Config** | [**SourceControlConfigGet200ResponseDataOneOf4Config**](SourceControlConfigGet200ResponseDataOneOf4Config.md) | | +**Config** | [**AzureReposConfig**](AzureReposConfig.md) | | **Provider** | **string** | | **Org** | **string** | The user or organization to which the repository belongs to. | **Repo** | **string** | The name of the repository you created to use with Retool. | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewSourceControlConfigPost200ResponseData -`func NewSourceControlConfigPost200ResponseData(config SourceControlConfigGet200ResponseDataOneOf4Config, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfigPost200ResponseData` +`func NewSourceControlConfigPost200ResponseData(config AzureReposConfig, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfigPost200ResponseData` NewSourceControlConfigPost200ResponseData instantiates a new SourceControlConfigPost200ResponseData object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetConfig -`func (o *SourceControlConfigPost200ResponseData) GetConfig() SourceControlConfigGet200ResponseDataOneOf4Config` +`func (o *SourceControlConfigPost200ResponseData) GetConfig() AzureReposConfig` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *SourceControlConfigPost200ResponseData) GetConfigOk() (*SourceControlConfigGet200ResponseDataOneOf4Config, bool)` +`func (o *SourceControlConfigPost200ResponseData) GetConfigOk() (*AzureReposConfig, bool)` GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfig -`func (o *SourceControlConfigPost200ResponseData) SetConfig(v SourceControlConfigGet200ResponseDataOneOf4Config)` +`func (o *SourceControlConfigPost200ResponseData) SetConfig(v AzureReposConfig)` SetConfig sets Config field to given value. diff --git a/internal/sdk/api/docs/SourceControlConfigPut200ResponseData.md b/internal/sdk/api/docs/SourceControlConfigPut200ResponseData.md index 78f029d..82eaa4c 100644 --- a/internal/sdk/api/docs/SourceControlConfigPut200ResponseData.md +++ b/internal/sdk/api/docs/SourceControlConfigPut200ResponseData.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Config** | [**SourceControlConfigGet200ResponseDataOneOf4Config**](SourceControlConfigGet200ResponseDataOneOf4Config.md) | | +**Config** | [**AzureReposConfig**](AzureReposConfig.md) | | **Provider** | **string** | | **Org** | **string** | The user or organization to which the repository belongs to. | **Repo** | **string** | The name of the repository you created to use with Retool. | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewSourceControlConfigPut200ResponseData -`func NewSourceControlConfigPut200ResponseData(config SourceControlConfigGet200ResponseDataOneOf4Config, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfigPut200ResponseData` +`func NewSourceControlConfigPut200ResponseData(config AzureReposConfig, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfigPut200ResponseData` NewSourceControlConfigPut200ResponseData instantiates a new SourceControlConfigPut200ResponseData object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetConfig -`func (o *SourceControlConfigPut200ResponseData) GetConfig() SourceControlConfigGet200ResponseDataOneOf4Config` +`func (o *SourceControlConfigPut200ResponseData) GetConfig() AzureReposConfig` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *SourceControlConfigPut200ResponseData) GetConfigOk() (*SourceControlConfigGet200ResponseDataOneOf4Config, bool)` +`func (o *SourceControlConfigPut200ResponseData) GetConfigOk() (*AzureReposConfig, bool)` GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfig -`func (o *SourceControlConfigPut200ResponseData) SetConfig(v SourceControlConfigGet200ResponseDataOneOf4Config)` +`func (o *SourceControlConfigPut200ResponseData) SetConfig(v AzureReposConfig)` SetConfig sets Config field to given value. diff --git a/internal/sdk/api/docs/SourceControlConfigPutRequestConfig.md b/internal/sdk/api/docs/SourceControlConfigPutRequestConfig.md index 478f00d..f2a6969 100644 --- a/internal/sdk/api/docs/SourceControlConfigPutRequestConfig.md +++ b/internal/sdk/api/docs/SourceControlConfigPutRequestConfig.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Config** | [**SourceControlConfigGet200ResponseDataOneOf4Config**](SourceControlConfigGet200ResponseDataOneOf4Config.md) | | +**Config** | [**AzureReposConfig**](AzureReposConfig.md) | | **Provider** | **string** | | **Org** | **string** | The user or organization to which the repository belongs to. | **Repo** | **string** | The name of the repository you created to use with Retool. | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewSourceControlConfigPutRequestConfig -`func NewSourceControlConfigPutRequestConfig(config SourceControlConfigGet200ResponseDataOneOf4Config, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfigPutRequestConfig` +`func NewSourceControlConfigPutRequestConfig(config AzureReposConfig, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfigPutRequestConfig` NewSourceControlConfigPutRequestConfig instantiates a new SourceControlConfigPutRequestConfig object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetConfig -`func (o *SourceControlConfigPutRequestConfig) GetConfig() SourceControlConfigGet200ResponseDataOneOf4Config` +`func (o *SourceControlConfigPutRequestConfig) GetConfig() AzureReposConfig` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *SourceControlConfigPutRequestConfig) GetConfigOk() (*SourceControlConfigGet200ResponseDataOneOf4Config, bool)` +`func (o *SourceControlConfigPutRequestConfig) GetConfigOk() (*AzureReposConfig, bool)` GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfig -`func (o *SourceControlConfigPutRequestConfig) SetConfig(v SourceControlConfigGet200ResponseDataOneOf4Config)` +`func (o *SourceControlConfigPutRequestConfig) SetConfig(v AzureReposConfig)` SetConfig sets Config field to given value. diff --git a/internal/sdk/api/docs/SourceControlConfiguration.md b/internal/sdk/api/docs/SourceControlConfiguration.md index 76be388..41da867 100644 --- a/internal/sdk/api/docs/SourceControlConfiguration.md +++ b/internal/sdk/api/docs/SourceControlConfiguration.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Config** | [**SourceControlConfigGet200ResponseDataOneOf4Config**](SourceControlConfigGet200ResponseDataOneOf4Config.md) | | +**Config** | [**AzureReposConfig**](AzureReposConfig.md) | | **Provider** | **string** | | **Org** | **string** | The user or organization to which the repository belongs to. | **Repo** | **string** | The name of the repository you created to use with Retool. | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewSourceControlConfiguration -`func NewSourceControlConfiguration(config SourceControlConfigGet200ResponseDataOneOf4Config, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfiguration` +`func NewSourceControlConfiguration(config AzureReposConfig, provider string, org string, repo string, defaultBranch string, ) *SourceControlConfiguration` NewSourceControlConfiguration instantiates a new SourceControlConfiguration object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetConfig -`func (o *SourceControlConfiguration) GetConfig() SourceControlConfigGet200ResponseDataOneOf4Config` +`func (o *SourceControlConfiguration) GetConfig() AzureReposConfig` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *SourceControlConfiguration) GetConfigOk() (*SourceControlConfigGet200ResponseDataOneOf4Config, bool)` +`func (o *SourceControlConfiguration) GetConfigOk() (*AzureReposConfig, bool)` GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfig -`func (o *SourceControlConfiguration) SetConfig(v SourceControlConfigGet200ResponseDataOneOf4Config)` +`func (o *SourceControlConfiguration) SetConfig(v AzureReposConfig)` SetConfig sets Config field to given value. diff --git a/internal/sdk/api/docs/SourceControlManifestsGet200Response.md b/internal/sdk/api/docs/SourceControlManifestsGet200Response.md new file mode 100644 index 0000000..7f1e974 --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsGet200Response.md @@ -0,0 +1,72 @@ +# SourceControlManifestsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**SourceControlManifestsGet200ResponseData**](SourceControlManifestsGet200ResponseData.md) | | + +## Methods + +### NewSourceControlManifestsGet200Response + +`func NewSourceControlManifestsGet200Response(success bool, data SourceControlManifestsGet200ResponseData, ) *SourceControlManifestsGet200Response` + +NewSourceControlManifestsGet200Response instantiates a new SourceControlManifestsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsGet200ResponseWithDefaults + +`func NewSourceControlManifestsGet200ResponseWithDefaults() *SourceControlManifestsGet200Response` + +NewSourceControlManifestsGet200ResponseWithDefaults instantiates a new SourceControlManifestsGet200Response 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 + +### GetSuccess + +`func (o *SourceControlManifestsGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *SourceControlManifestsGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *SourceControlManifestsGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *SourceControlManifestsGet200Response) GetData() SourceControlManifestsGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SourceControlManifestsGet200Response) GetDataOk() (*SourceControlManifestsGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SourceControlManifestsGet200Response) SetData(v SourceControlManifestsGet200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsGet200ResponseData.md b/internal/sdk/api/docs/SourceControlManifestsGet200ResponseData.md new file mode 100644 index 0000000..84a17be --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsGet200ResponseData.md @@ -0,0 +1,51 @@ +# SourceControlManifestsGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manifests** | [**[]SourceControlManifestsGet200ResponseDataManifestsInner**](SourceControlManifestsGet200ResponseDataManifestsInner.md) | Array of release manifests | + +## Methods + +### NewSourceControlManifestsGet200ResponseData + +`func NewSourceControlManifestsGet200ResponseData(manifests []SourceControlManifestsGet200ResponseDataManifestsInner, ) *SourceControlManifestsGet200ResponseData` + +NewSourceControlManifestsGet200ResponseData instantiates a new SourceControlManifestsGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsGet200ResponseDataWithDefaults + +`func NewSourceControlManifestsGet200ResponseDataWithDefaults() *SourceControlManifestsGet200ResponseData` + +NewSourceControlManifestsGet200ResponseDataWithDefaults instantiates a new SourceControlManifestsGet200ResponseData 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 + +### GetManifests + +`func (o *SourceControlManifestsGet200ResponseData) GetManifests() []SourceControlManifestsGet200ResponseDataManifestsInner` + +GetManifests returns the Manifests field if non-nil, zero value otherwise. + +### GetManifestsOk + +`func (o *SourceControlManifestsGet200ResponseData) GetManifestsOk() (*[]SourceControlManifestsGet200ResponseDataManifestsInner, bool)` + +GetManifestsOk returns a tuple with the Manifests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManifests + +`func (o *SourceControlManifestsGet200ResponseData) SetManifests(v []SourceControlManifestsGet200ResponseDataManifestsInner)` + +SetManifests sets Manifests field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInner.md b/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInner.md new file mode 100644 index 0000000..da40a06 --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInner.md @@ -0,0 +1,103 @@ +# SourceControlManifestsGet200ResponseDataManifestsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Apps** | Pointer to [**[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner**](SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md) | | [optional] +**Workflows** | Pointer to [**[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner**](SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md) | | [optional] + +## Methods + +### NewSourceControlManifestsGet200ResponseDataManifestsInner + +`func NewSourceControlManifestsGet200ResponseDataManifestsInner(name string, ) *SourceControlManifestsGet200ResponseDataManifestsInner` + +NewSourceControlManifestsGet200ResponseDataManifestsInner instantiates a new SourceControlManifestsGet200ResponseDataManifestsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsGet200ResponseDataManifestsInnerWithDefaults + +`func NewSourceControlManifestsGet200ResponseDataManifestsInnerWithDefaults() *SourceControlManifestsGet200ResponseDataManifestsInner` + +NewSourceControlManifestsGet200ResponseDataManifestsInnerWithDefaults instantiates a new SourceControlManifestsGet200ResponseDataManifestsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) SetName(v string)` + +SetName sets Name field to given value. + + +### GetApps + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetApps() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetAppsOk() (*[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) SetApps(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetWorkflows + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetWorkflows() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner` + +GetWorkflows returns the Workflows field if non-nil, zero value otherwise. + +### GetWorkflowsOk + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetWorkflowsOk() (*[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool)` + +GetWorkflowsOk returns a tuple with the Workflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflows + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) SetWorkflows(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner)` + +SetWorkflows sets Workflows field to given value. + +### HasWorkflows + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInner) HasWorkflows() bool` + +HasWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md b/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md new file mode 100644 index 0000000..524e2e0 --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md @@ -0,0 +1,72 @@ +# SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | **string** | | +**Release** | [**SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease**](SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease.md) | | + +## Methods + +### NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + +`func NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner(uuid string, release SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease, ) *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner` + +NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner instantiates a new SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerWithDefaults + +`func NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerWithDefaults() *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner` + +NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerWithDefaults instantiates a new SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner 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 + +### GetUuid + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + + +### GetRelease + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) GetRelease() SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease` + +GetRelease returns the Release field if non-nil, zero value otherwise. + +### GetReleaseOk + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) GetReleaseOk() (*SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease, bool)` + +GetReleaseOk returns a tuple with the Release field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelease + +`func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) SetRelease(v SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease)` + +SetRelease sets Release field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease.md b/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease.md new file mode 100644 index 0000000..d3d55b5 --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease.md @@ -0,0 +1,30 @@ +# SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease + +`func NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease() *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease` + +NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease instantiates a new SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerReleaseWithDefaults + +`func NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerReleaseWithDefaults() *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease` + +NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerReleaseWithDefaults instantiates a new SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease 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 + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNameAppsAppUuidPutRequest.md b/internal/sdk/api/docs/SourceControlManifestsManifestNameAppsAppUuidPutRequest.md new file mode 100644 index 0000000..7aada9d --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNameAppsAppUuidPutRequest.md @@ -0,0 +1,77 @@ +# SourceControlManifestsManifestNameAppsAppUuidPutRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Release** | [**SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease**](SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease.md) | | +**CommitMessage** | Pointer to **string** | Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used. | [optional] + +## Methods + +### NewSourceControlManifestsManifestNameAppsAppUuidPutRequest + +`func NewSourceControlManifestsManifestNameAppsAppUuidPutRequest(release SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease, ) *SourceControlManifestsManifestNameAppsAppUuidPutRequest` + +NewSourceControlManifestsManifestNameAppsAppUuidPutRequest instantiates a new SourceControlManifestsManifestNameAppsAppUuidPutRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNameAppsAppUuidPutRequestWithDefaults + +`func NewSourceControlManifestsManifestNameAppsAppUuidPutRequestWithDefaults() *SourceControlManifestsManifestNameAppsAppUuidPutRequest` + +NewSourceControlManifestsManifestNameAppsAppUuidPutRequestWithDefaults instantiates a new SourceControlManifestsManifestNameAppsAppUuidPutRequest 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 + +### GetRelease + +`func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) GetRelease() SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease` + +GetRelease returns the Release field if non-nil, zero value otherwise. + +### GetReleaseOk + +`func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) GetReleaseOk() (*SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease, bool)` + +GetReleaseOk returns a tuple with the Release field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelease + +`func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) SetRelease(v SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease)` + +SetRelease sets Release field to given value. + + +### GetCommitMessage + +`func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) GetCommitMessage() string` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) GetCommitMessageOk() (*string, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) SetCommitMessage(v string)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease.md b/internal/sdk/api/docs/SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease.md new file mode 100644 index 0000000..69f895b --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease.md @@ -0,0 +1,30 @@ +# SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease + +`func NewSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease() *SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease` + +NewSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease instantiates a new SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNameAppsAppUuidPutRequestReleaseWithDefaults + +`func NewSourceControlManifestsManifestNameAppsAppUuidPutRequestReleaseWithDefaults() *SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease` + +NewSourceControlManifestsManifestNameAppsAppUuidPutRequestReleaseWithDefaults instantiates a new SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease 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 + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNameDeletePostRequest.md b/internal/sdk/api/docs/SourceControlManifestsManifestNameDeletePostRequest.md new file mode 100644 index 0000000..f7cb18f --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNameDeletePostRequest.md @@ -0,0 +1,56 @@ +# SourceControlManifestsManifestNameDeletePostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommitMessage** | Pointer to **string** | Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used. | [optional] + +## Methods + +### NewSourceControlManifestsManifestNameDeletePostRequest + +`func NewSourceControlManifestsManifestNameDeletePostRequest() *SourceControlManifestsManifestNameDeletePostRequest` + +NewSourceControlManifestsManifestNameDeletePostRequest instantiates a new SourceControlManifestsManifestNameDeletePostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNameDeletePostRequestWithDefaults + +`func NewSourceControlManifestsManifestNameDeletePostRequestWithDefaults() *SourceControlManifestsManifestNameDeletePostRequest` + +NewSourceControlManifestsManifestNameDeletePostRequestWithDefaults instantiates a new SourceControlManifestsManifestNameDeletePostRequest 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 + +### GetCommitMessage + +`func (o *SourceControlManifestsManifestNameDeletePostRequest) GetCommitMessage() string` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *SourceControlManifestsManifestNameDeletePostRequest) GetCommitMessageOk() (*string, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *SourceControlManifestsManifestNameDeletePostRequest) SetCommitMessage(v string)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *SourceControlManifestsManifestNameDeletePostRequest) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200Response.md b/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200Response.md new file mode 100644 index 0000000..4377a18 --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200Response.md @@ -0,0 +1,72 @@ +# SourceControlManifestsManifestNameGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**SourceControlManifestsManifestNameGet200ResponseData**](SourceControlManifestsManifestNameGet200ResponseData.md) | | + +## Methods + +### NewSourceControlManifestsManifestNameGet200Response + +`func NewSourceControlManifestsManifestNameGet200Response(success bool, data SourceControlManifestsManifestNameGet200ResponseData, ) *SourceControlManifestsManifestNameGet200Response` + +NewSourceControlManifestsManifestNameGet200Response instantiates a new SourceControlManifestsManifestNameGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNameGet200ResponseWithDefaults + +`func NewSourceControlManifestsManifestNameGet200ResponseWithDefaults() *SourceControlManifestsManifestNameGet200Response` + +NewSourceControlManifestsManifestNameGet200ResponseWithDefaults instantiates a new SourceControlManifestsManifestNameGet200Response 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 + +### GetSuccess + +`func (o *SourceControlManifestsManifestNameGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *SourceControlManifestsManifestNameGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *SourceControlManifestsManifestNameGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *SourceControlManifestsManifestNameGet200Response) GetData() SourceControlManifestsManifestNameGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SourceControlManifestsManifestNameGet200Response) GetDataOk() (*SourceControlManifestsManifestNameGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SourceControlManifestsManifestNameGet200Response) SetData(v SourceControlManifestsManifestNameGet200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200ResponseData.md b/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200ResponseData.md new file mode 100644 index 0000000..8f82abf --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200ResponseData.md @@ -0,0 +1,51 @@ +# SourceControlManifestsManifestNameGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manifest** | [**SourceControlManifestsManifestNameGet200ResponseDataManifest**](SourceControlManifestsManifestNameGet200ResponseDataManifest.md) | | + +## Methods + +### NewSourceControlManifestsManifestNameGet200ResponseData + +`func NewSourceControlManifestsManifestNameGet200ResponseData(manifest SourceControlManifestsManifestNameGet200ResponseDataManifest, ) *SourceControlManifestsManifestNameGet200ResponseData` + +NewSourceControlManifestsManifestNameGet200ResponseData instantiates a new SourceControlManifestsManifestNameGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNameGet200ResponseDataWithDefaults + +`func NewSourceControlManifestsManifestNameGet200ResponseDataWithDefaults() *SourceControlManifestsManifestNameGet200ResponseData` + +NewSourceControlManifestsManifestNameGet200ResponseDataWithDefaults instantiates a new SourceControlManifestsManifestNameGet200ResponseData 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 + +### GetManifest + +`func (o *SourceControlManifestsManifestNameGet200ResponseData) GetManifest() SourceControlManifestsManifestNameGet200ResponseDataManifest` + +GetManifest returns the Manifest field if non-nil, zero value otherwise. + +### GetManifestOk + +`func (o *SourceControlManifestsManifestNameGet200ResponseData) GetManifestOk() (*SourceControlManifestsManifestNameGet200ResponseDataManifest, bool)` + +GetManifestOk returns a tuple with the Manifest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManifest + +`func (o *SourceControlManifestsManifestNameGet200ResponseData) SetManifest(v SourceControlManifestsManifestNameGet200ResponseDataManifest)` + +SetManifest sets Manifest field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200ResponseDataManifest.md b/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200ResponseDataManifest.md new file mode 100644 index 0000000..302938a --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNameGet200ResponseDataManifest.md @@ -0,0 +1,103 @@ +# SourceControlManifestsManifestNameGet200ResponseDataManifest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Apps** | Pointer to [**[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner**](SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md) | | [optional] +**Workflows** | Pointer to [**[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner**](SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md) | | [optional] + +## Methods + +### NewSourceControlManifestsManifestNameGet200ResponseDataManifest + +`func NewSourceControlManifestsManifestNameGet200ResponseDataManifest(name string, ) *SourceControlManifestsManifestNameGet200ResponseDataManifest` + +NewSourceControlManifestsManifestNameGet200ResponseDataManifest instantiates a new SourceControlManifestsManifestNameGet200ResponseDataManifest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNameGet200ResponseDataManifestWithDefaults + +`func NewSourceControlManifestsManifestNameGet200ResponseDataManifestWithDefaults() *SourceControlManifestsManifestNameGet200ResponseDataManifest` + +NewSourceControlManifestsManifestNameGet200ResponseDataManifestWithDefaults instantiates a new SourceControlManifestsManifestNameGet200ResponseDataManifest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetApps + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetApps() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetAppsOk() (*[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) SetApps(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetWorkflows + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetWorkflows() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner` + +GetWorkflows returns the Workflows field if non-nil, zero value otherwise. + +### GetWorkflowsOk + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetWorkflowsOk() (*[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool)` + +GetWorkflowsOk returns a tuple with the Workflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflows + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) SetWorkflows(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner)` + +SetWorkflows sets Workflows field to given value. + +### HasWorkflows + +`func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) HasWorkflows() bool` + +HasWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNamePut200Response.md b/internal/sdk/api/docs/SourceControlManifestsManifestNamePut200Response.md new file mode 100644 index 0000000..c15c12c --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNamePut200Response.md @@ -0,0 +1,72 @@ +# SourceControlManifestsManifestNamePut200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**SourceControlManifestsManifestNamePut200ResponseData**](SourceControlManifestsManifestNamePut200ResponseData.md) | | + +## Methods + +### NewSourceControlManifestsManifestNamePut200Response + +`func NewSourceControlManifestsManifestNamePut200Response(success bool, data SourceControlManifestsManifestNamePut200ResponseData, ) *SourceControlManifestsManifestNamePut200Response` + +NewSourceControlManifestsManifestNamePut200Response instantiates a new SourceControlManifestsManifestNamePut200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNamePut200ResponseWithDefaults + +`func NewSourceControlManifestsManifestNamePut200ResponseWithDefaults() *SourceControlManifestsManifestNamePut200Response` + +NewSourceControlManifestsManifestNamePut200ResponseWithDefaults instantiates a new SourceControlManifestsManifestNamePut200Response 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 + +### GetSuccess + +`func (o *SourceControlManifestsManifestNamePut200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *SourceControlManifestsManifestNamePut200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *SourceControlManifestsManifestNamePut200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *SourceControlManifestsManifestNamePut200Response) GetData() SourceControlManifestsManifestNamePut200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SourceControlManifestsManifestNamePut200Response) GetDataOk() (*SourceControlManifestsManifestNamePut200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SourceControlManifestsManifestNamePut200Response) SetData(v SourceControlManifestsManifestNamePut200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNamePut200ResponseData.md b/internal/sdk/api/docs/SourceControlManifestsManifestNamePut200ResponseData.md new file mode 100644 index 0000000..db26e58 --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNamePut200ResponseData.md @@ -0,0 +1,93 @@ +# SourceControlManifestsManifestNamePut200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommitSha** | **string** | The SHA1 hash for the git commit that the created branch points to | +**Url** | **string** | A URL to create a pull/merge request to merge the created branch into the default branch | +**BranchName** | **string** | The name for the created branch | + +## Methods + +### NewSourceControlManifestsManifestNamePut200ResponseData + +`func NewSourceControlManifestsManifestNamePut200ResponseData(commitSha string, url string, branchName string, ) *SourceControlManifestsManifestNamePut200ResponseData` + +NewSourceControlManifestsManifestNamePut200ResponseData instantiates a new SourceControlManifestsManifestNamePut200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNamePut200ResponseDataWithDefaults + +`func NewSourceControlManifestsManifestNamePut200ResponseDataWithDefaults() *SourceControlManifestsManifestNamePut200ResponseData` + +NewSourceControlManifestsManifestNamePut200ResponseDataWithDefaults instantiates a new SourceControlManifestsManifestNamePut200ResponseData 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 + +### GetCommitSha + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) GetCommitSha() string` + +GetCommitSha returns the CommitSha field if non-nil, zero value otherwise. + +### GetCommitShaOk + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) GetCommitShaOk() (*string, bool)` + +GetCommitShaOk returns a tuple with the CommitSha field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitSha + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) SetCommitSha(v string)` + +SetCommitSha sets CommitSha field to given value. + + +### GetUrl + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetBranchName + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) GetBranchName() string` + +GetBranchName returns the BranchName field if non-nil, zero value otherwise. + +### GetBranchNameOk + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) GetBranchNameOk() (*string, bool)` + +GetBranchNameOk returns a tuple with the BranchName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchName + +`func (o *SourceControlManifestsManifestNamePut200ResponseData) SetBranchName(v string)` + +SetBranchName sets BranchName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNamePutRequest.md b/internal/sdk/api/docs/SourceControlManifestsManifestNamePutRequest.md new file mode 100644 index 0000000..bbe8aa9 --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNamePutRequest.md @@ -0,0 +1,82 @@ +# SourceControlManifestsManifestNamePutRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manifest** | Pointer to [**SourceControlManifestsManifestNamePutRequestManifest**](SourceControlManifestsManifestNamePutRequestManifest.md) | | [optional] +**CommitMessage** | Pointer to **string** | Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used. | [optional] + +## Methods + +### NewSourceControlManifestsManifestNamePutRequest + +`func NewSourceControlManifestsManifestNamePutRequest() *SourceControlManifestsManifestNamePutRequest` + +NewSourceControlManifestsManifestNamePutRequest instantiates a new SourceControlManifestsManifestNamePutRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNamePutRequestWithDefaults + +`func NewSourceControlManifestsManifestNamePutRequestWithDefaults() *SourceControlManifestsManifestNamePutRequest` + +NewSourceControlManifestsManifestNamePutRequestWithDefaults instantiates a new SourceControlManifestsManifestNamePutRequest 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 + +### GetManifest + +`func (o *SourceControlManifestsManifestNamePutRequest) GetManifest() SourceControlManifestsManifestNamePutRequestManifest` + +GetManifest returns the Manifest field if non-nil, zero value otherwise. + +### GetManifestOk + +`func (o *SourceControlManifestsManifestNamePutRequest) GetManifestOk() (*SourceControlManifestsManifestNamePutRequestManifest, bool)` + +GetManifestOk returns a tuple with the Manifest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManifest + +`func (o *SourceControlManifestsManifestNamePutRequest) SetManifest(v SourceControlManifestsManifestNamePutRequestManifest)` + +SetManifest sets Manifest field to given value. + +### HasManifest + +`func (o *SourceControlManifestsManifestNamePutRequest) HasManifest() bool` + +HasManifest returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *SourceControlManifestsManifestNamePutRequest) GetCommitMessage() string` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *SourceControlManifestsManifestNamePutRequest) GetCommitMessageOk() (*string, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *SourceControlManifestsManifestNamePutRequest) SetCommitMessage(v string)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *SourceControlManifestsManifestNamePutRequest) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlManifestsManifestNamePutRequestManifest.md b/internal/sdk/api/docs/SourceControlManifestsManifestNamePutRequestManifest.md new file mode 100644 index 0000000..9623daf --- /dev/null +++ b/internal/sdk/api/docs/SourceControlManifestsManifestNamePutRequestManifest.md @@ -0,0 +1,56 @@ +# SourceControlManifestsManifestNamePutRequestManifest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apps** | Pointer to [**[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner**](SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner.md) | | [optional] + +## Methods + +### NewSourceControlManifestsManifestNamePutRequestManifest + +`func NewSourceControlManifestsManifestNamePutRequestManifest() *SourceControlManifestsManifestNamePutRequestManifest` + +NewSourceControlManifestsManifestNamePutRequestManifest instantiates a new SourceControlManifestsManifestNamePutRequestManifest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlManifestsManifestNamePutRequestManifestWithDefaults + +`func NewSourceControlManifestsManifestNamePutRequestManifestWithDefaults() *SourceControlManifestsManifestNamePutRequestManifest` + +NewSourceControlManifestsManifestNamePutRequestManifestWithDefaults instantiates a new SourceControlManifestsManifestNamePutRequestManifest 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 + +### GetApps + +`func (o *SourceControlManifestsManifestNamePutRequestManifest) GetApps() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *SourceControlManifestsManifestNamePutRequestManifest) GetAppsOk() (*[]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *SourceControlManifestsManifestNamePutRequestManifest) SetApps(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *SourceControlManifestsManifestNamePutRequestManifest) HasApps() bool` + +HasApps returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidGet200Response.md b/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidGet200Response.md new file mode 100644 index 0000000..1e4406f --- /dev/null +++ b/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidGet200Response.md @@ -0,0 +1,72 @@ +# SourceControlReleasesAppsAppUuidGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**[]SourceControlReleasesAppsAppUuidGet200ResponseDataInner**](SourceControlReleasesAppsAppUuidGet200ResponseDataInner.md) | | + +## Methods + +### NewSourceControlReleasesAppsAppUuidGet200Response + +`func NewSourceControlReleasesAppsAppUuidGet200Response(success bool, data []SourceControlReleasesAppsAppUuidGet200ResponseDataInner, ) *SourceControlReleasesAppsAppUuidGet200Response` + +NewSourceControlReleasesAppsAppUuidGet200Response instantiates a new SourceControlReleasesAppsAppUuidGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlReleasesAppsAppUuidGet200ResponseWithDefaults + +`func NewSourceControlReleasesAppsAppUuidGet200ResponseWithDefaults() *SourceControlReleasesAppsAppUuidGet200Response` + +NewSourceControlReleasesAppsAppUuidGet200ResponseWithDefaults instantiates a new SourceControlReleasesAppsAppUuidGet200Response 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 + +### GetSuccess + +`func (o *SourceControlReleasesAppsAppUuidGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *SourceControlReleasesAppsAppUuidGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *SourceControlReleasesAppsAppUuidGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *SourceControlReleasesAppsAppUuidGet200Response) GetData() []SourceControlReleasesAppsAppUuidGet200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SourceControlReleasesAppsAppUuidGet200Response) GetDataOk() (*[]SourceControlReleasesAppsAppUuidGet200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SourceControlReleasesAppsAppUuidGet200Response) SetData(v []SourceControlReleasesAppsAppUuidGet200ResponseDataInner)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidGet200ResponseDataInner.md b/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidGet200ResponseDataInner.md new file mode 100644 index 0000000..71bf3da --- /dev/null +++ b/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidGet200ResponseDataInner.md @@ -0,0 +1,98 @@ +# SourceControlReleasesAppsAppUuidGet200ResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReleaseVersion** | **string** | The version of the release. | +**ReleaseDescription** | Pointer to **string** | The description of the release. | [optional] +**CreatedAt** | **string** | The timestamp when the release was created. | + +## Methods + +### NewSourceControlReleasesAppsAppUuidGet200ResponseDataInner + +`func NewSourceControlReleasesAppsAppUuidGet200ResponseDataInner(releaseVersion string, createdAt string, ) *SourceControlReleasesAppsAppUuidGet200ResponseDataInner` + +NewSourceControlReleasesAppsAppUuidGet200ResponseDataInner instantiates a new SourceControlReleasesAppsAppUuidGet200ResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlReleasesAppsAppUuidGet200ResponseDataInnerWithDefaults + +`func NewSourceControlReleasesAppsAppUuidGet200ResponseDataInnerWithDefaults() *SourceControlReleasesAppsAppUuidGet200ResponseDataInner` + +NewSourceControlReleasesAppsAppUuidGet200ResponseDataInnerWithDefaults instantiates a new SourceControlReleasesAppsAppUuidGet200ResponseDataInner 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 + +### GetReleaseVersion + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetReleaseVersion() string` + +GetReleaseVersion returns the ReleaseVersion field if non-nil, zero value otherwise. + +### GetReleaseVersionOk + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetReleaseVersionOk() (*string, bool)` + +GetReleaseVersionOk returns a tuple with the ReleaseVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseVersion + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) SetReleaseVersion(v string)` + +SetReleaseVersion sets ReleaseVersion field to given value. + + +### GetReleaseDescription + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetReleaseDescription() string` + +GetReleaseDescription returns the ReleaseDescription field if non-nil, zero value otherwise. + +### GetReleaseDescriptionOk + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetReleaseDescriptionOk() (*string, bool)` + +GetReleaseDescriptionOk returns a tuple with the ReleaseDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseDescription + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) SetReleaseDescription(v string)` + +SetReleaseDescription sets ReleaseDescription field to given value. + +### HasReleaseDescription + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) HasReleaseDescription() bool` + +HasReleaseDescription returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidPostRequest.md b/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidPostRequest.md new file mode 100644 index 0000000..7d98e8e --- /dev/null +++ b/internal/sdk/api/docs/SourceControlReleasesAppsAppUuidPostRequest.md @@ -0,0 +1,103 @@ +# SourceControlReleasesAppsAppUuidPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReleaseVersion** | **string** | The version of the release. | +**ReleaseDescription** | Pointer to **string** | The description of the release. | [optional] +**CommitMessage** | Pointer to **string** | Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used. | [optional] + +## Methods + +### NewSourceControlReleasesAppsAppUuidPostRequest + +`func NewSourceControlReleasesAppsAppUuidPostRequest(releaseVersion string, ) *SourceControlReleasesAppsAppUuidPostRequest` + +NewSourceControlReleasesAppsAppUuidPostRequest instantiates a new SourceControlReleasesAppsAppUuidPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceControlReleasesAppsAppUuidPostRequestWithDefaults + +`func NewSourceControlReleasesAppsAppUuidPostRequestWithDefaults() *SourceControlReleasesAppsAppUuidPostRequest` + +NewSourceControlReleasesAppsAppUuidPostRequestWithDefaults instantiates a new SourceControlReleasesAppsAppUuidPostRequest 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 + +### GetReleaseVersion + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) GetReleaseVersion() string` + +GetReleaseVersion returns the ReleaseVersion field if non-nil, zero value otherwise. + +### GetReleaseVersionOk + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) GetReleaseVersionOk() (*string, bool)` + +GetReleaseVersionOk returns a tuple with the ReleaseVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseVersion + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) SetReleaseVersion(v string)` + +SetReleaseVersion sets ReleaseVersion field to given value. + + +### GetReleaseDescription + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) GetReleaseDescription() string` + +GetReleaseDescription returns the ReleaseDescription field if non-nil, zero value otherwise. + +### GetReleaseDescriptionOk + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) GetReleaseDescriptionOk() (*string, bool)` + +GetReleaseDescriptionOk returns a tuple with the ReleaseDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseDescription + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) SetReleaseDescription(v string)` + +SetReleaseDescription sets ReleaseDescription field to given value. + +### HasReleaseDescription + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) HasReleaseDescription() bool` + +HasReleaseDescription returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) GetCommitMessage() string` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) GetCommitMessageOk() (*string, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) SetCommitMessage(v string)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *SourceControlReleasesAppsAppUuidPostRequest) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/SourceControlSettings.md b/internal/sdk/api/docs/SourceControlSettings.md index aeaf2f8..367c653 100644 --- a/internal/sdk/api/docs/SourceControlSettings.md +++ b/internal/sdk/api/docs/SourceControlSettings.md @@ -9,12 +9,13 @@ Name | Type | Description | Notes **CustomPullRequestTemplate** | **string** | Pull requests created from Retool will use the template specified. | **VersionControlLocked** | **bool** | When set to true, creates a read-only instance of Retool, where app editing is disabled. Defaults to false. | **ForceUuidMapping** | **bool** | When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. | +**AutoCleanupBranchesEnabled** | **bool** | When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true. | ## Methods ### NewSourceControlSettings -`func NewSourceControlSettings(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, ) *SourceControlSettings` +`func NewSourceControlSettings(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, autoCleanupBranchesEnabled bool, ) *SourceControlSettings` NewSourceControlSettings instantiates a new SourceControlSettings object This constructor will assign default values to properties that have it defined, @@ -129,6 +130,26 @@ and a boolean to check if the value has been set. SetForceUuidMapping sets ForceUuidMapping field to given value. +### GetAutoCleanupBranchesEnabled + +`func (o *SourceControlSettings) GetAutoCleanupBranchesEnabled() bool` + +GetAutoCleanupBranchesEnabled returns the AutoCleanupBranchesEnabled field if non-nil, zero value otherwise. + +### GetAutoCleanupBranchesEnabledOk + +`func (o *SourceControlSettings) GetAutoCleanupBranchesEnabledOk() (*bool, bool)` + +GetAutoCleanupBranchesEnabledOk returns a tuple with the AutoCleanupBranchesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoCleanupBranchesEnabled + +`func (o *SourceControlSettings) SetAutoCleanupBranchesEnabled(v bool)` + +SetAutoCleanupBranchesEnabled sets AutoCleanupBranchesEnabled field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/SourceControlSettingsGet200ResponseData.md b/internal/sdk/api/docs/SourceControlSettingsGet200ResponseData.md index ed2c4bb..a3c30ad 100644 --- a/internal/sdk/api/docs/SourceControlSettingsGet200ResponseData.md +++ b/internal/sdk/api/docs/SourceControlSettingsGet200ResponseData.md @@ -9,12 +9,13 @@ Name | Type | Description | Notes **CustomPullRequestTemplate** | **string** | Pull requests created from Retool will use the template specified. | **VersionControlLocked** | **bool** | When set to true, creates a read-only instance of Retool, where app editing is disabled. Defaults to false. | **ForceUuidMapping** | **bool** | When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. | +**AutoCleanupBranchesEnabled** | **bool** | When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true. | ## Methods ### NewSourceControlSettingsGet200ResponseData -`func NewSourceControlSettingsGet200ResponseData(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, ) *SourceControlSettingsGet200ResponseData` +`func NewSourceControlSettingsGet200ResponseData(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, autoCleanupBranchesEnabled bool, ) *SourceControlSettingsGet200ResponseData` NewSourceControlSettingsGet200ResponseData instantiates a new SourceControlSettingsGet200ResponseData object This constructor will assign default values to properties that have it defined, @@ -129,6 +130,26 @@ and a boolean to check if the value has been set. SetForceUuidMapping sets ForceUuidMapping field to given value. +### GetAutoCleanupBranchesEnabled + +`func (o *SourceControlSettingsGet200ResponseData) GetAutoCleanupBranchesEnabled() bool` + +GetAutoCleanupBranchesEnabled returns the AutoCleanupBranchesEnabled field if non-nil, zero value otherwise. + +### GetAutoCleanupBranchesEnabledOk + +`func (o *SourceControlSettingsGet200ResponseData) GetAutoCleanupBranchesEnabledOk() (*bool, bool)` + +GetAutoCleanupBranchesEnabledOk returns a tuple with the AutoCleanupBranchesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoCleanupBranchesEnabled + +`func (o *SourceControlSettingsGet200ResponseData) SetAutoCleanupBranchesEnabled(v bool)` + +SetAutoCleanupBranchesEnabled sets AutoCleanupBranchesEnabled field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/SourceControlSettingsPut200ResponseData.md b/internal/sdk/api/docs/SourceControlSettingsPut200ResponseData.md index 1790bbe..8a4829c 100644 --- a/internal/sdk/api/docs/SourceControlSettingsPut200ResponseData.md +++ b/internal/sdk/api/docs/SourceControlSettingsPut200ResponseData.md @@ -9,12 +9,13 @@ Name | Type | Description | Notes **CustomPullRequestTemplate** | **string** | Pull requests created from Retool will use the template specified. | **VersionControlLocked** | **bool** | When set to true, creates a read-only instance of Retool, where app editing is disabled. Defaults to false. | **ForceUuidMapping** | **bool** | When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. | +**AutoCleanupBranchesEnabled** | **bool** | When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true. | ## Methods ### NewSourceControlSettingsPut200ResponseData -`func NewSourceControlSettingsPut200ResponseData(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, ) *SourceControlSettingsPut200ResponseData` +`func NewSourceControlSettingsPut200ResponseData(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, autoCleanupBranchesEnabled bool, ) *SourceControlSettingsPut200ResponseData` NewSourceControlSettingsPut200ResponseData instantiates a new SourceControlSettingsPut200ResponseData object This constructor will assign default values to properties that have it defined, @@ -129,6 +130,26 @@ and a boolean to check if the value has been set. SetForceUuidMapping sets ForceUuidMapping field to given value. +### GetAutoCleanupBranchesEnabled + +`func (o *SourceControlSettingsPut200ResponseData) GetAutoCleanupBranchesEnabled() bool` + +GetAutoCleanupBranchesEnabled returns the AutoCleanupBranchesEnabled field if non-nil, zero value otherwise. + +### GetAutoCleanupBranchesEnabledOk + +`func (o *SourceControlSettingsPut200ResponseData) GetAutoCleanupBranchesEnabledOk() (*bool, bool)` + +GetAutoCleanupBranchesEnabledOk returns a tuple with the AutoCleanupBranchesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoCleanupBranchesEnabled + +`func (o *SourceControlSettingsPut200ResponseData) SetAutoCleanupBranchesEnabled(v bool)` + +SetAutoCleanupBranchesEnabled sets AutoCleanupBranchesEnabled field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/SourceControlSettingsPutRequestSettings.md b/internal/sdk/api/docs/SourceControlSettingsPutRequestSettings.md index a67cfdf..49a3054 100644 --- a/internal/sdk/api/docs/SourceControlSettingsPutRequestSettings.md +++ b/internal/sdk/api/docs/SourceControlSettingsPutRequestSettings.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **CustomPullRequestTemplate** | Pointer to **string** | Pull requests created from Retool will use the template specified. | [optional] **VersionControlLocked** | Pointer to **bool** | When set to true, creates a read-only instance of Retool, where app editing is disabled. Defaults to false. | [optional] **ForceUuidMapping** | Pointer to **bool** | When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. | [optional] +**AutoCleanupBranchesEnabled** | Pointer to **bool** | When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true. | [optional] ## Methods @@ -154,6 +155,31 @@ SetForceUuidMapping sets ForceUuidMapping field to given value. HasForceUuidMapping returns a boolean if a field has been set. +### GetAutoCleanupBranchesEnabled + +`func (o *SourceControlSettingsPutRequestSettings) GetAutoCleanupBranchesEnabled() bool` + +GetAutoCleanupBranchesEnabled returns the AutoCleanupBranchesEnabled field if non-nil, zero value otherwise. + +### GetAutoCleanupBranchesEnabledOk + +`func (o *SourceControlSettingsPutRequestSettings) GetAutoCleanupBranchesEnabledOk() (*bool, bool)` + +GetAutoCleanupBranchesEnabledOk returns a tuple with the AutoCleanupBranchesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoCleanupBranchesEnabled + +`func (o *SourceControlSettingsPutRequestSettings) SetAutoCleanupBranchesEnabled(v bool)` + +SetAutoCleanupBranchesEnabled sets AutoCleanupBranchesEnabled field to given value. + +### HasAutoCleanupBranchesEnabled + +`func (o *SourceControlSettingsPutRequestSettings) HasAutoCleanupBranchesEnabled() bool` + +HasAutoCleanupBranchesEnabled returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/SourceControlTestDeployPostRequestDeployParams.md b/internal/sdk/api/docs/SourceControlTestDeployPostRequestDeployParams.md index c83ff7c..4e355c5 100644 --- a/internal/sdk/api/docs/SourceControlTestDeployPostRequestDeployParams.md +++ b/internal/sdk/api/docs/SourceControlTestDeployPostRequestDeployParams.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommitSha** | **string** | The commit SHA to dry deploy | +**CommitSha** | **string** | The full commit SHA to dry deploy | **IsFullSync** | Pointer to **bool** | | [optional] ## Methods diff --git a/internal/sdk/api/docs/SpacesAPI.md b/internal/sdk/api/docs/SpacesAPI.md index 6d2a012..7b3f353 100644 --- a/internal/sdk/api/docs/SpacesAPI.md +++ b/internal/sdk/api/docs/SpacesAPI.md @@ -4,7 +4,7 @@ All URIs are relative to *http://.* Method | HTTP request | Description ------------- | ------------- | ------------- -[**SpacesCopyElementsPost**](SpacesAPI.md#SpacesCopyElementsPost) | **Post** /spaces/copyElements | Copies apps, queries, resources, and workflows from one space to another +[**SpacesCopyElementsPost**](SpacesAPI.md#SpacesCopyElementsPost) | **Post** /spaces/copyElements | Copy elements to another space [**SpacesGet**](SpacesAPI.md#SpacesGet) | **Get** /spaces | List spaces [**SpacesPost**](SpacesAPI.md#SpacesPost) | **Post** /spaces | Create a space [**SpacesSpaceIdDelete**](SpacesAPI.md#SpacesSpaceIdDelete) | **Delete** /spaces/{spaceId} | Delete a space @@ -17,7 +17,7 @@ Method | HTTP request | Description > SpacesCopyElementsPost201Response SpacesCopyElementsPost(ctx).SpacesCopyElementsPostRequest(spacesCopyElementsPostRequest).Execute() -Copies apps, queries, resources, and workflows from one space to another +Copy elements to another space @@ -227,7 +227,7 @@ import ( ) func main() { - spaceId := "spaceId_example" // string | + spaceId := "spaceId_example" // string | The id of the space to delete. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -245,7 +245,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**spaceId** | **string** | | +**spaceId** | **string** | The id of the space to delete. | ### Other Parameters diff --git a/internal/sdk/api/docs/SpacesCopyElementsPostRequest.md b/internal/sdk/api/docs/SpacesCopyElementsPostRequest.md index 080fc35..2867f63 100644 --- a/internal/sdk/api/docs/SpacesCopyElementsPostRequest.md +++ b/internal/sdk/api/docs/SpacesCopyElementsPostRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ResourceIds** | [**[]SpacesCopyElementsPostRequestResourceIdsInner**](SpacesCopyElementsPostRequestResourceIdsInner.md) | List of resource uuids to copy to the new space. | +**ResourceIds** | [**[]SpacesCopyElementsPostRequestResourceIdsInner**](SpacesCopyElementsPostRequestResourceIdsInner.md) | List of resource configuration uuids to copy to the new space. | **QueryLibraryQueryIds** | **[]string** | List of query library query uuids to copy to the new space. | **AppIds** | **[]string** | List of app or module uuids to copy to the new space. | **WorkflowIds** | **[]string** | List of workflow ids to copy to the new space. | diff --git a/internal/sdk/api/docs/SsoConfigGet200ResponseData.md b/internal/sdk/api/docs/SsoConfigGet200ResponseData.md index a695ef8..b416613 100644 --- a/internal/sdk/api/docs/SsoConfigGet200ResponseData.md +++ b/internal/sdk/api/docs/SsoConfigGet200ResponseData.md @@ -5,29 +5,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConfigType** | **string** | | -**GoogleClientId** | Pointer to **string** | | [optional] -**GoogleClientSecret** | Pointer to **string** | | [optional] +**GoogleClientId** | **string** | | +**GoogleClientSecret** | **string** | | **DisableEmailPasswordLogin** | **bool** | | -**OidcClientId** | Pointer to **string** | | [optional] -**OidcClientSecret** | Pointer to **string** | | [optional] -**OidcScopes** | Pointer to **string** | | [optional] -**OidcAuthUrl** | Pointer to **string** | | [optional] -**OidcTokenUrl** | Pointer to **string** | | [optional] +**OidcClientId** | **string** | | +**OidcClientSecret** | **string** | | +**OidcScopes** | **string** | | +**OidcAuthUrl** | **string** | | +**OidcTokenUrl** | **string** | | **OidcUserinfoUrl** | Pointer to **string** | | [optional] **OidcAudience** | Pointer to **string** | | [optional] -**JwtEmailKey** | Pointer to **string** | | [optional] +**JwtEmailKey** | **string** | | **JwtRolesKey** | Pointer to **string** | | [optional] -**JwtFirstNameKey** | Pointer to **string** | | [optional] -**JwtLastNameKey** | Pointer to **string** | | [optional] +**JwtFirstNameKey** | **string** | | +**JwtLastNameKey** | **string** | | **RolesMapping** | Pointer to **string** | | [optional] -**JitEnabled** | Pointer to **bool** | | [optional] +**JitEnabled** | **bool** | | **RestrictedDomain** | Pointer to **string** | | [optional] -**TriggerLoginAutomatically** | Pointer to **bool** | | [optional] -**IdpMetadataXml** | Pointer to **string** | | [optional] -**SamlFirstNameAttribute** | Pointer to **string** | | [optional] -**SamlLastNameAttribute** | Pointer to **string** | | [optional] +**TriggerLoginAutomatically** | **bool** | | +**IdpMetadataXml** | **string** | | +**SamlFirstNameAttribute** | **string** | | +**SamlLastNameAttribute** | **string** | | **SamlGroupsAttribute** | Pointer to **string** | | [optional] -**SamlSyncGroupClaims** | Pointer to **bool** | | [optional] +**SamlSyncGroupClaims** | **bool** | | **LdapSyncGroupClaims** | Pointer to **bool** | | [optional] **LdapRoleMapping** | Pointer to **string** | | [optional] **LdapServerUrl** | Pointer to **string** | | [optional] @@ -40,7 +40,7 @@ Name | Type | Description | Notes ### NewSsoConfigGet200ResponseData -`func NewSsoConfigGet200ResponseData(configType string, disableEmailPasswordLogin bool, ) *SsoConfigGet200ResponseData` +`func NewSsoConfigGet200ResponseData(configType string, googleClientId string, googleClientSecret string, disableEmailPasswordLogin bool, oidcClientId string, oidcClientSecret string, oidcScopes string, oidcAuthUrl string, oidcTokenUrl string, jwtEmailKey string, jwtFirstNameKey string, jwtLastNameKey string, jitEnabled bool, triggerLoginAutomatically bool, idpMetadataXml string, samlFirstNameAttribute string, samlLastNameAttribute string, samlSyncGroupClaims bool, ) *SsoConfigGet200ResponseData` NewSsoConfigGet200ResponseData instantiates a new SsoConfigGet200ResponseData object This constructor will assign default values to properties that have it defined, @@ -94,11 +94,6 @@ and a boolean to check if the value has been set. SetGoogleClientId sets GoogleClientId field to given value. -### HasGoogleClientId - -`func (o *SsoConfigGet200ResponseData) HasGoogleClientId() bool` - -HasGoogleClientId returns a boolean if a field has been set. ### GetGoogleClientSecret @@ -119,11 +114,6 @@ and a boolean to check if the value has been set. SetGoogleClientSecret sets GoogleClientSecret field to given value. -### HasGoogleClientSecret - -`func (o *SsoConfigGet200ResponseData) HasGoogleClientSecret() bool` - -HasGoogleClientSecret returns a boolean if a field has been set. ### GetDisableEmailPasswordLogin @@ -164,11 +154,6 @@ and a boolean to check if the value has been set. SetOidcClientId sets OidcClientId field to given value. -### HasOidcClientId - -`func (o *SsoConfigGet200ResponseData) HasOidcClientId() bool` - -HasOidcClientId returns a boolean if a field has been set. ### GetOidcClientSecret @@ -189,11 +174,6 @@ and a boolean to check if the value has been set. SetOidcClientSecret sets OidcClientSecret field to given value. -### HasOidcClientSecret - -`func (o *SsoConfigGet200ResponseData) HasOidcClientSecret() bool` - -HasOidcClientSecret returns a boolean if a field has been set. ### GetOidcScopes @@ -214,11 +194,6 @@ and a boolean to check if the value has been set. SetOidcScopes sets OidcScopes field to given value. -### HasOidcScopes - -`func (o *SsoConfigGet200ResponseData) HasOidcScopes() bool` - -HasOidcScopes returns a boolean if a field has been set. ### GetOidcAuthUrl @@ -239,11 +214,6 @@ and a boolean to check if the value has been set. SetOidcAuthUrl sets OidcAuthUrl field to given value. -### HasOidcAuthUrl - -`func (o *SsoConfigGet200ResponseData) HasOidcAuthUrl() bool` - -HasOidcAuthUrl returns a boolean if a field has been set. ### GetOidcTokenUrl @@ -264,11 +234,6 @@ and a boolean to check if the value has been set. SetOidcTokenUrl sets OidcTokenUrl field to given value. -### HasOidcTokenUrl - -`func (o *SsoConfigGet200ResponseData) HasOidcTokenUrl() bool` - -HasOidcTokenUrl returns a boolean if a field has been set. ### GetOidcUserinfoUrl @@ -339,11 +304,6 @@ and a boolean to check if the value has been set. SetJwtEmailKey sets JwtEmailKey field to given value. -### HasJwtEmailKey - -`func (o *SsoConfigGet200ResponseData) HasJwtEmailKey() bool` - -HasJwtEmailKey returns a boolean if a field has been set. ### GetJwtRolesKey @@ -389,11 +349,6 @@ and a boolean to check if the value has been set. SetJwtFirstNameKey sets JwtFirstNameKey field to given value. -### HasJwtFirstNameKey - -`func (o *SsoConfigGet200ResponseData) HasJwtFirstNameKey() bool` - -HasJwtFirstNameKey returns a boolean if a field has been set. ### GetJwtLastNameKey @@ -414,11 +369,6 @@ and a boolean to check if the value has been set. SetJwtLastNameKey sets JwtLastNameKey field to given value. -### HasJwtLastNameKey - -`func (o *SsoConfigGet200ResponseData) HasJwtLastNameKey() bool` - -HasJwtLastNameKey returns a boolean if a field has been set. ### GetRolesMapping @@ -464,11 +414,6 @@ and a boolean to check if the value has been set. SetJitEnabled sets JitEnabled field to given value. -### HasJitEnabled - -`func (o *SsoConfigGet200ResponseData) HasJitEnabled() bool` - -HasJitEnabled returns a boolean if a field has been set. ### GetRestrictedDomain @@ -514,11 +459,6 @@ and a boolean to check if the value has been set. SetTriggerLoginAutomatically sets TriggerLoginAutomatically field to given value. -### HasTriggerLoginAutomatically - -`func (o *SsoConfigGet200ResponseData) HasTriggerLoginAutomatically() bool` - -HasTriggerLoginAutomatically returns a boolean if a field has been set. ### GetIdpMetadataXml @@ -539,11 +479,6 @@ and a boolean to check if the value has been set. SetIdpMetadataXml sets IdpMetadataXml field to given value. -### HasIdpMetadataXml - -`func (o *SsoConfigGet200ResponseData) HasIdpMetadataXml() bool` - -HasIdpMetadataXml returns a boolean if a field has been set. ### GetSamlFirstNameAttribute @@ -564,11 +499,6 @@ and a boolean to check if the value has been set. SetSamlFirstNameAttribute sets SamlFirstNameAttribute field to given value. -### HasSamlFirstNameAttribute - -`func (o *SsoConfigGet200ResponseData) HasSamlFirstNameAttribute() bool` - -HasSamlFirstNameAttribute returns a boolean if a field has been set. ### GetSamlLastNameAttribute @@ -589,11 +519,6 @@ and a boolean to check if the value has been set. SetSamlLastNameAttribute sets SamlLastNameAttribute field to given value. -### HasSamlLastNameAttribute - -`func (o *SsoConfigGet200ResponseData) HasSamlLastNameAttribute() bool` - -HasSamlLastNameAttribute returns a boolean if a field has been set. ### GetSamlGroupsAttribute @@ -639,11 +564,6 @@ and a boolean to check if the value has been set. SetSamlSyncGroupClaims sets SamlSyncGroupClaims field to given value. -### HasSamlSyncGroupClaims - -`func (o *SsoConfigGet200ResponseData) HasSamlSyncGroupClaims() bool` - -HasSamlSyncGroupClaims returns a boolean if a field has been set. ### GetLdapSyncGroupClaims diff --git a/internal/sdk/api/docs/SsoConfigPost200ResponseData.md b/internal/sdk/api/docs/SsoConfigPost200ResponseData.md index a58d0e9..205354a 100644 --- a/internal/sdk/api/docs/SsoConfigPost200ResponseData.md +++ b/internal/sdk/api/docs/SsoConfigPost200ResponseData.md @@ -5,29 +5,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConfigType** | **string** | | -**GoogleClientId** | Pointer to **string** | | [optional] -**GoogleClientSecret** | Pointer to **string** | | [optional] +**GoogleClientId** | **string** | | +**GoogleClientSecret** | **string** | | **DisableEmailPasswordLogin** | **bool** | | -**OidcClientId** | Pointer to **string** | | [optional] -**OidcClientSecret** | Pointer to **string** | | [optional] -**OidcScopes** | Pointer to **string** | | [optional] -**OidcAuthUrl** | Pointer to **string** | | [optional] -**OidcTokenUrl** | Pointer to **string** | | [optional] +**OidcClientId** | **string** | | +**OidcClientSecret** | **string** | | +**OidcScopes** | **string** | | +**OidcAuthUrl** | **string** | | +**OidcTokenUrl** | **string** | | **OidcUserinfoUrl** | Pointer to **string** | | [optional] **OidcAudience** | Pointer to **string** | | [optional] -**JwtEmailKey** | Pointer to **string** | | [optional] +**JwtEmailKey** | **string** | | **JwtRolesKey** | Pointer to **string** | | [optional] -**JwtFirstNameKey** | Pointer to **string** | | [optional] -**JwtLastNameKey** | Pointer to **string** | | [optional] +**JwtFirstNameKey** | **string** | | +**JwtLastNameKey** | **string** | | **RolesMapping** | Pointer to **string** | | [optional] -**JitEnabled** | Pointer to **bool** | | [optional] +**JitEnabled** | **bool** | | **RestrictedDomain** | Pointer to **string** | | [optional] -**TriggerLoginAutomatically** | Pointer to **bool** | | [optional] -**IdpMetadataXml** | Pointer to **string** | | [optional] -**SamlFirstNameAttribute** | Pointer to **string** | | [optional] -**SamlLastNameAttribute** | Pointer to **string** | | [optional] +**TriggerLoginAutomatically** | **bool** | | +**IdpMetadataXml** | **string** | | +**SamlFirstNameAttribute** | **string** | | +**SamlLastNameAttribute** | **string** | | **SamlGroupsAttribute** | Pointer to **string** | | [optional] -**SamlSyncGroupClaims** | Pointer to **bool** | | [optional] +**SamlSyncGroupClaims** | **bool** | | **LdapSyncGroupClaims** | Pointer to **bool** | | [optional] **LdapRoleMapping** | Pointer to **string** | | [optional] **LdapServerUrl** | Pointer to **string** | | [optional] @@ -40,7 +40,7 @@ Name | Type | Description | Notes ### NewSsoConfigPost200ResponseData -`func NewSsoConfigPost200ResponseData(configType string, disableEmailPasswordLogin bool, ) *SsoConfigPost200ResponseData` +`func NewSsoConfigPost200ResponseData(configType string, googleClientId string, googleClientSecret string, disableEmailPasswordLogin bool, oidcClientId string, oidcClientSecret string, oidcScopes string, oidcAuthUrl string, oidcTokenUrl string, jwtEmailKey string, jwtFirstNameKey string, jwtLastNameKey string, jitEnabled bool, triggerLoginAutomatically bool, idpMetadataXml string, samlFirstNameAttribute string, samlLastNameAttribute string, samlSyncGroupClaims bool, ) *SsoConfigPost200ResponseData` NewSsoConfigPost200ResponseData instantiates a new SsoConfigPost200ResponseData object This constructor will assign default values to properties that have it defined, @@ -94,11 +94,6 @@ and a boolean to check if the value has been set. SetGoogleClientId sets GoogleClientId field to given value. -### HasGoogleClientId - -`func (o *SsoConfigPost200ResponseData) HasGoogleClientId() bool` - -HasGoogleClientId returns a boolean if a field has been set. ### GetGoogleClientSecret @@ -119,11 +114,6 @@ and a boolean to check if the value has been set. SetGoogleClientSecret sets GoogleClientSecret field to given value. -### HasGoogleClientSecret - -`func (o *SsoConfigPost200ResponseData) HasGoogleClientSecret() bool` - -HasGoogleClientSecret returns a boolean if a field has been set. ### GetDisableEmailPasswordLogin @@ -164,11 +154,6 @@ and a boolean to check if the value has been set. SetOidcClientId sets OidcClientId field to given value. -### HasOidcClientId - -`func (o *SsoConfigPost200ResponseData) HasOidcClientId() bool` - -HasOidcClientId returns a boolean if a field has been set. ### GetOidcClientSecret @@ -189,11 +174,6 @@ and a boolean to check if the value has been set. SetOidcClientSecret sets OidcClientSecret field to given value. -### HasOidcClientSecret - -`func (o *SsoConfigPost200ResponseData) HasOidcClientSecret() bool` - -HasOidcClientSecret returns a boolean if a field has been set. ### GetOidcScopes @@ -214,11 +194,6 @@ and a boolean to check if the value has been set. SetOidcScopes sets OidcScopes field to given value. -### HasOidcScopes - -`func (o *SsoConfigPost200ResponseData) HasOidcScopes() bool` - -HasOidcScopes returns a boolean if a field has been set. ### GetOidcAuthUrl @@ -239,11 +214,6 @@ and a boolean to check if the value has been set. SetOidcAuthUrl sets OidcAuthUrl field to given value. -### HasOidcAuthUrl - -`func (o *SsoConfigPost200ResponseData) HasOidcAuthUrl() bool` - -HasOidcAuthUrl returns a boolean if a field has been set. ### GetOidcTokenUrl @@ -264,11 +234,6 @@ and a boolean to check if the value has been set. SetOidcTokenUrl sets OidcTokenUrl field to given value. -### HasOidcTokenUrl - -`func (o *SsoConfigPost200ResponseData) HasOidcTokenUrl() bool` - -HasOidcTokenUrl returns a boolean if a field has been set. ### GetOidcUserinfoUrl @@ -339,11 +304,6 @@ and a boolean to check if the value has been set. SetJwtEmailKey sets JwtEmailKey field to given value. -### HasJwtEmailKey - -`func (o *SsoConfigPost200ResponseData) HasJwtEmailKey() bool` - -HasJwtEmailKey returns a boolean if a field has been set. ### GetJwtRolesKey @@ -389,11 +349,6 @@ and a boolean to check if the value has been set. SetJwtFirstNameKey sets JwtFirstNameKey field to given value. -### HasJwtFirstNameKey - -`func (o *SsoConfigPost200ResponseData) HasJwtFirstNameKey() bool` - -HasJwtFirstNameKey returns a boolean if a field has been set. ### GetJwtLastNameKey @@ -414,11 +369,6 @@ and a boolean to check if the value has been set. SetJwtLastNameKey sets JwtLastNameKey field to given value. -### HasJwtLastNameKey - -`func (o *SsoConfigPost200ResponseData) HasJwtLastNameKey() bool` - -HasJwtLastNameKey returns a boolean if a field has been set. ### GetRolesMapping @@ -464,11 +414,6 @@ and a boolean to check if the value has been set. SetJitEnabled sets JitEnabled field to given value. -### HasJitEnabled - -`func (o *SsoConfigPost200ResponseData) HasJitEnabled() bool` - -HasJitEnabled returns a boolean if a field has been set. ### GetRestrictedDomain @@ -514,11 +459,6 @@ and a boolean to check if the value has been set. SetTriggerLoginAutomatically sets TriggerLoginAutomatically field to given value. -### HasTriggerLoginAutomatically - -`func (o *SsoConfigPost200ResponseData) HasTriggerLoginAutomatically() bool` - -HasTriggerLoginAutomatically returns a boolean if a field has been set. ### GetIdpMetadataXml @@ -539,11 +479,6 @@ and a boolean to check if the value has been set. SetIdpMetadataXml sets IdpMetadataXml field to given value. -### HasIdpMetadataXml - -`func (o *SsoConfigPost200ResponseData) HasIdpMetadataXml() bool` - -HasIdpMetadataXml returns a boolean if a field has been set. ### GetSamlFirstNameAttribute @@ -564,11 +499,6 @@ and a boolean to check if the value has been set. SetSamlFirstNameAttribute sets SamlFirstNameAttribute field to given value. -### HasSamlFirstNameAttribute - -`func (o *SsoConfigPost200ResponseData) HasSamlFirstNameAttribute() bool` - -HasSamlFirstNameAttribute returns a boolean if a field has been set. ### GetSamlLastNameAttribute @@ -589,11 +519,6 @@ and a boolean to check if the value has been set. SetSamlLastNameAttribute sets SamlLastNameAttribute field to given value. -### HasSamlLastNameAttribute - -`func (o *SsoConfigPost200ResponseData) HasSamlLastNameAttribute() bool` - -HasSamlLastNameAttribute returns a boolean if a field has been set. ### GetSamlGroupsAttribute @@ -639,11 +564,6 @@ and a boolean to check if the value has been set. SetSamlSyncGroupClaims sets SamlSyncGroupClaims field to given value. -### HasSamlSyncGroupClaims - -`func (o *SsoConfigPost200ResponseData) HasSamlSyncGroupClaims() bool` - -HasSamlSyncGroupClaims returns a boolean if a field has been set. ### GetLdapSyncGroupClaims diff --git a/internal/sdk/api/docs/TestOperation.md b/internal/sdk/api/docs/TestOperation.md new file mode 100644 index 0000000..58bdfcb --- /dev/null +++ b/internal/sdk/api/docs/TestOperation.md @@ -0,0 +1,108 @@ +# TestOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Op** | **string** | | +**Path** | **string** | | +**Value** | Pointer to **interface{}** | A JSON value | [optional] + +## Methods + +### NewTestOperation + +`func NewTestOperation(op string, path string, ) *TestOperation` + +NewTestOperation instantiates a new TestOperation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTestOperationWithDefaults + +`func NewTestOperationWithDefaults() *TestOperation` + +NewTestOperationWithDefaults instantiates a new TestOperation 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 + +### GetOp + +`func (o *TestOperation) GetOp() string` + +GetOp returns the Op field if non-nil, zero value otherwise. + +### GetOpOk + +`func (o *TestOperation) GetOpOk() (*string, bool)` + +GetOpOk returns a tuple with the Op field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOp + +`func (o *TestOperation) SetOp(v string)` + +SetOp sets Op field to given value. + + +### GetPath + +`func (o *TestOperation) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *TestOperation) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *TestOperation) SetPath(v string)` + +SetPath sets Path field to given value. + + +### GetValue + +`func (o *TestOperation) GetValue() interface{}` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TestOperation) GetValueOk() (*interface{}, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TestOperation) SetValue(v interface{})` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TestOperation) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *TestOperation) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *TestOperation) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UsageAPI.md b/internal/sdk/api/docs/UsageAPI.md index 1567a1d..51bdfe1 100644 --- a/internal/sdk/api/docs/UsageAPI.md +++ b/internal/sdk/api/docs/UsageAPI.md @@ -34,10 +34,10 @@ import ( ) func main() { - startDate := "2024-01-15" // string | - appName := "appName_example" // string | - orgIds := []string{"Inner_example"} // []string | (optional) - endDate := "2024-01-30" // string | (optional) + startDate := "2024-01-15" // string | The start date of the date range + appName := "appName_example" // string | The name of the app to retrieve usage data for + orgIds := "org_id1,org_id2" // string | A comma separated list of org ids to retrieve usage data for (optional) + endDate := "2024-01-30" // string | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -62,10 +62,10 @@ Other parameters are passed through a pointer to a apiUsageAppDetailsGetRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **startDate** | **string** | | - **appName** | **string** | | - **orgIds** | **[]string** | | - **endDate** | **string** | | + **startDate** | **string** | The start date of the date range | + **appName** | **string** | The name of the app to retrieve usage data for | + **orgIds** | **string** | A comma separated list of org ids to retrieve usage data for | + **endDate** | **string** | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. | ### Return type @@ -106,9 +106,9 @@ import ( ) func main() { - startDate := "2024-01-15" // string | - orgIds := []string{"Inner_example"} // []string | (optional) - endDate := "2024-01-30" // string | (optional) + startDate := "2024-01-15" // string | The start date of the date range + orgIds := "org_id1,org_id2" // string | A comma separated list of org ids to retrieve usage data for (optional) + endDate := "2024-01-30" // string | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -133,9 +133,9 @@ Other parameters are passed through a pointer to a apiUsageAppSummaryGetRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **startDate** | **string** | | - **orgIds** | **[]string** | | - **endDate** | **string** | | + **startDate** | **string** | The start date of the date range | + **orgIds** | **string** | A comma separated list of org ids to retrieve usage data for | + **endDate** | **string** | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. | ### Return type @@ -176,9 +176,9 @@ import ( ) func main() { - startDate := "2024-01-15" // string | - orgIds := []string{"Inner_example"} // []string | (optional) - endDate := "2024-01-30" // string | (optional) + startDate := "2024-01-15" // string | The start date of the date range + orgIds := "org_id1,org_id2" // string | A comma separated list of org ids to retrieve usage data for (optional) + endDate := "2024-01-30" // string | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -203,9 +203,9 @@ Other parameters are passed through a pointer to a apiUsageGetRequest struct via Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **startDate** | **string** | | - **orgIds** | **[]string** | | - **endDate** | **string** | | + **startDate** | **string** | The start date of the date range | + **orgIds** | **string** | A comma separated list of org ids to retrieve usage data for | + **endDate** | **string** | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. | ### Return type @@ -307,10 +307,10 @@ import ( ) func main() { - startDate := "2024-01-15" // string | - email := "email_example" // string | - orgIds := []string{"Inner_example"} // []string | (optional) - endDate := "2024-01-30" // string | (optional) + startDate := "2024-01-15" // string | The start date of the date range + email := "email_example" // string | The email of the user to retrieve usage data for + orgIds := "org_id1,org_id2" // string | A comma separated list of org ids to retrieve usage data for (optional) + endDate := "2024-01-30" // string | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -335,10 +335,10 @@ Other parameters are passed through a pointer to a apiUsageUserDetailsGetRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **startDate** | **string** | | - **email** | **string** | | - **orgIds** | **[]string** | | - **endDate** | **string** | | + **startDate** | **string** | The start date of the date range | + **email** | **string** | The email of the user to retrieve usage data for | + **orgIds** | **string** | A comma separated list of org ids to retrieve usage data for | + **endDate** | **string** | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. | ### Return type @@ -379,9 +379,9 @@ import ( ) func main() { - startDate := "2024-01-15" // string | - orgIds := []string{"Inner_example"} // []string | (optional) - endDate := "2024-01-30" // string | (optional) + startDate := "2024-01-15" // string | The start date of the date range + orgIds := "org_id1,org_id2" // string | A comma separated list of org ids to retrieve usage data for (optional) + endDate := "2024-01-30" // string | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -406,9 +406,9 @@ Other parameters are passed through a pointer to a apiUsageUserSummaryGetRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **startDate** | **string** | | - **orgIds** | **[]string** | | - **endDate** | **string** | | + **startDate** | **string** | The start date of the date range | + **orgIds** | **string** | A comma separated list of org ids to retrieve usage data for | + **endDate** | **string** | The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used. | ### Return type diff --git a/internal/sdk/api/docs/UsageAnalyticsOrganization.md b/internal/sdk/api/docs/UsageAnalyticsOrganization.md new file mode 100644 index 0000000..fb00a14 --- /dev/null +++ b/internal/sdk/api/docs/UsageAnalyticsOrganization.md @@ -0,0 +1,93 @@ +# UsageAnalyticsOrganization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **string** | The id of the organization | +**Host** | **string** | The host of the organization | +**LastActive** | **time.Time** | | + +## Methods + +### NewUsageAnalyticsOrganization + +`func NewUsageAnalyticsOrganization(orgId string, host string, lastActive time.Time, ) *UsageAnalyticsOrganization` + +NewUsageAnalyticsOrganization instantiates a new UsageAnalyticsOrganization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUsageAnalyticsOrganizationWithDefaults + +`func NewUsageAnalyticsOrganizationWithDefaults() *UsageAnalyticsOrganization` + +NewUsageAnalyticsOrganizationWithDefaults instantiates a new UsageAnalyticsOrganization 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 + +### GetOrgId + +`func (o *UsageAnalyticsOrganization) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *UsageAnalyticsOrganization) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *UsageAnalyticsOrganization) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + + +### GetHost + +`func (o *UsageAnalyticsOrganization) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *UsageAnalyticsOrganization) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *UsageAnalyticsOrganization) SetHost(v string)` + +SetHost sets Host field to given value. + + +### GetLastActive + +`func (o *UsageAnalyticsOrganization) GetLastActive() time.Time` + +GetLastActive returns the LastActive field if non-nil, zero value otherwise. + +### GetLastActiveOk + +`func (o *UsageAnalyticsOrganization) GetLastActiveOk() (*time.Time, bool)` + +GetLastActiveOk returns a tuple with the LastActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastActive + +`func (o *UsageAnalyticsOrganization) SetLastActive(v time.Time)` + +SetLastActive sets LastActive field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/User.md b/internal/sdk/api/docs/User.md index d5eccbf..ce99845 100644 --- a/internal/sdk/api/docs/User.md +++ b/internal/sdk/api/docs/User.md @@ -4,21 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | The id of the user | -**LegacyId** | **string** | The legacy id of the user | -**Email** | **string** | The email of the user | -**Active** | **bool** | Whether the user is active or not | -**CreatedAt** | **time.Time** | | -**LastActive** | **NullableTime** | | -**FirstName** | **NullableString** | The first name of the user | -**LastName** | **NullableString** | The last name of the user | -**Metadata** | **map[string]interface{}** | | [default to {}] +**Type** | **string** | | +**Id** | **string** | | ## Methods ### NewUser -`func NewUser(id string, legacyId string, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}, ) *User` +`func NewUser(type_ string, id string, ) *User` NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, @@ -33,214 +26,44 @@ NewUserWithDefaults instantiates a new User 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 -### GetId - -`func (o *User) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *User) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *User) SetId(v string)` - -SetId sets Id field to given value. - - -### GetLegacyId - -`func (o *User) GetLegacyId() string` - -GetLegacyId returns the LegacyId field if non-nil, zero value otherwise. - -### GetLegacyIdOk - -`func (o *User) GetLegacyIdOk() (*string, bool)` - -GetLegacyIdOk returns a tuple with the LegacyId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLegacyId +### GetType -`func (o *User) SetLegacyId(v string)` +`func (o *User) GetType() string` -SetLegacyId sets LegacyId field to given value. +GetType returns the Type field if non-nil, zero value otherwise. +### GetTypeOk -### GetEmail +`func (o *User) GetTypeOk() (*string, bool)` -`func (o *User) GetEmail() string` - -GetEmail returns the Email field if non-nil, zero value otherwise. - -### GetEmailOk - -`func (o *User) GetEmailOk() (*string, bool)` - -GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEmail - -`func (o *User) SetEmail(v string)` - -SetEmail sets Email field to given value. - - -### GetActive - -`func (o *User) GetActive() bool` - -GetActive returns the Active field if non-nil, zero value otherwise. - -### GetActiveOk - -`func (o *User) GetActiveOk() (*bool, bool)` - -GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetActive - -`func (o *User) SetActive(v bool)` - -SetActive sets Active field to given value. - - -### GetCreatedAt - -`func (o *User) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *User) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *User) SetCreatedAt(v time.Time)` +### SetType -SetCreatedAt sets CreatedAt field to given value. +`func (o *User) SetType(v string)` +SetType sets Type field to given value. -### GetLastActive -`func (o *User) GetLastActive() time.Time` - -GetLastActive returns the LastActive field if non-nil, zero value otherwise. - -### GetLastActiveOk - -`func (o *User) GetLastActiveOk() (*time.Time, bool)` - -GetLastActiveOk returns a tuple with the LastActive field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastActive - -`func (o *User) SetLastActive(v time.Time)` - -SetLastActive sets LastActive field to given value. - - -### SetLastActiveNil - -`func (o *User) SetLastActiveNil(b bool)` - - SetLastActiveNil sets the value for LastActive to be an explicit nil - -### UnsetLastActive -`func (o *User) UnsetLastActive()` - -UnsetLastActive ensures that no value is present for LastActive, not even an explicit nil -### GetFirstName - -`func (o *User) GetFirstName() string` - -GetFirstName returns the FirstName field if non-nil, zero value otherwise. - -### GetFirstNameOk - -`func (o *User) GetFirstNameOk() (*string, bool)` - -GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFirstName - -`func (o *User) SetFirstName(v string)` - -SetFirstName sets FirstName field to given value. - - -### SetFirstNameNil - -`func (o *User) SetFirstNameNil(b bool)` - - SetFirstNameNil sets the value for FirstName to be an explicit nil - -### UnsetFirstName -`func (o *User) UnsetFirstName()` - -UnsetFirstName ensures that no value is present for FirstName, not even an explicit nil -### GetLastName - -`func (o *User) GetLastName() string` - -GetLastName returns the LastName field if non-nil, zero value otherwise. - -### GetLastNameOk - -`func (o *User) GetLastNameOk() (*string, bool)` - -GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastName - -`func (o *User) SetLastName(v string)` - -SetLastName sets LastName field to given value. - - -### SetLastNameNil - -`func (o *User) SetLastNameNil(b bool)` - - SetLastNameNil sets the value for LastName to be an explicit nil - -### UnsetLastName -`func (o *User) UnsetLastName()` - -UnsetLastName ensures that no value is present for LastName, not even an explicit nil -### GetMetadata +### GetId -`func (o *User) GetMetadata() map[string]interface{}` +`func (o *User) GetId() string` -GetMetadata returns the Metadata field if non-nil, zero value otherwise. +GetId returns the Id field if non-nil, zero value otherwise. -### GetMetadataOk +### GetIdOk -`func (o *User) GetMetadataOk() (*map[string]interface{}, bool)` +`func (o *User) GetIdOk() (*string, bool)` -GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMetadata +### SetId -`func (o *User) SetMetadata(v map[string]interface{})` +`func (o *User) SetId(v string)` -SetMetadata sets Metadata field to given value. +SetId sets Id field to given value. diff --git a/internal/sdk/api/docs/UserAttributes.md b/internal/sdk/api/docs/UserAttributes.md index 0240aed..67cbd2d 100644 --- a/internal/sdk/api/docs/UserAttributes.md +++ b/internal/sdk/api/docs/UserAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **string** | The id of the user attribute | **Name** | **string** | The name of the user attribute | **Label** | **string** | The label of the user attribute | -**DataType** | **string** | The data type of the user attribute. One of types `string`, `number`, or `json` | +**DataType** | **string** | The data type of the user attribute. Valid types are `string`, `number`, or `json` | **DefaultValue** | **NullableString** | The default value of the user attribute, assigned to all users without the attribute set | **IntercomAttributeName** | **NullableString** | The name of the Intercom user attribute that this attribute should be mapped to | diff --git a/internal/sdk/api/docs/UserAttributesAPI.md b/internal/sdk/api/docs/UserAttributesAPI.md index 58a197b..2eca909 100644 --- a/internal/sdk/api/docs/UserAttributesAPI.md +++ b/internal/sdk/api/docs/UserAttributesAPI.md @@ -4,7 +4,10 @@ All URIs are relative to *http://.* Method | HTTP request | Description ------------- | ------------- | ------------- -[**UserAttributesGet**](UserAttributesAPI.md#UserAttributesGet) | **Get** /user_attributes | Get organization user attributes. +[**UserAttributesGet**](UserAttributesAPI.md#UserAttributesGet) | **Get** /user_attributes | Get organization user attributes +[**UserAttributesIdDelete**](UserAttributesAPI.md#UserAttributesIdDelete) | **Delete** /user_attributes/{id} | Delete an user attribute from the organization +[**UserAttributesIdPatch**](UserAttributesAPI.md#UserAttributesIdPatch) | **Patch** /user_attributes/{id} | Update organization user attribute +[**UserAttributesPost**](UserAttributesAPI.md#UserAttributesPost) | **Post** /user_attributes | Create a new user attribute for the organization @@ -12,7 +15,7 @@ Method | HTTP request | Description > UserAttributesGet200Response UserAttributesGet(ctx).Execute() -Get organization user attributes. +Get organization user attributes @@ -68,3 +71,211 @@ Other parameters are passed through a pointer to a apiUserAttributesGetRequest s [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## UserAttributesIdDelete + +> UserAttributesIdDelete(ctx, id).UpdateExistingUsers(updateExistingUsers).Execute() + +Delete an user attribute from the organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The id of the user attribute + updateExistingUsers := "updateExistingUsers_example" // string | Whether to update existing users with the deleted attribute (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UserAttributesAPI.UserAttributesIdDelete(context.Background(), id).UpdateExistingUsers(updateExistingUsers).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAttributesAPI.UserAttributesIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of the user attribute | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserAttributesIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateExistingUsers** | **string** | Whether to update existing users with the deleted attribute | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserAttributesIdPatch + +> UserAttributesIdPatch200Response UserAttributesIdPatch(ctx, id).UserAttributesIdPatchRequest(userAttributesIdPatchRequest).Execute() + +Update organization user attribute + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The id of the user attribute + userAttributesIdPatchRequest := *openapiclient.NewUserAttributesIdPatchRequest([]openapiclient.ReplaceOperation{*openapiclient.NewReplaceOperation("Op_example", "Path_example")}) // UserAttributesIdPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserAttributesAPI.UserAttributesIdPatch(context.Background(), id).UserAttributesIdPatchRequest(userAttributesIdPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAttributesAPI.UserAttributesIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserAttributesIdPatch`: UserAttributesIdPatch200Response + fmt.Fprintf(os.Stdout, "Response from `UserAttributesAPI.UserAttributesIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of the user attribute | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserAttributesIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **userAttributesIdPatchRequest** | [**UserAttributesIdPatchRequest**](UserAttributesIdPatchRequest.md) | | + +### Return type + +[**UserAttributesIdPatch200Response**](UserAttributesIdPatch200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserAttributesPost + +> UserAttributesPost200Response UserAttributesPost(ctx).UserAttributesPostRequest(userAttributesPostRequest).Execute() + +Create a new user attribute for the organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + userAttributesPostRequest := *openapiclient.NewUserAttributesPostRequest("Name_example", "Label_example", "DataType_example") // UserAttributesPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserAttributesAPI.UserAttributesPost(context.Background()).UserAttributesPostRequest(userAttributesPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAttributesAPI.UserAttributesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserAttributesPost`: UserAttributesPost200Response + fmt.Fprintf(os.Stdout, "Response from `UserAttributesAPI.UserAttributesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserAttributesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userAttributesPostRequest** | [**UserAttributesPostRequest**](UserAttributesPostRequest.md) | | + +### Return type + +[**UserAttributesPost200Response**](UserAttributesPost200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/UserAttributesGet200ResponseDataInner.md b/internal/sdk/api/docs/UserAttributesGet200ResponseDataInner.md index bf24b27..e04aa0e 100644 --- a/internal/sdk/api/docs/UserAttributesGet200ResponseDataInner.md +++ b/internal/sdk/api/docs/UserAttributesGet200ResponseDataInner.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **string** | The id of the user attribute | **Name** | **string** | The name of the user attribute | **Label** | **string** | The label of the user attribute | -**DataType** | **string** | The data type of the user attribute. One of types `string`, `number`, or `json` | +**DataType** | **string** | The data type of the user attribute. Valid types are `string`, `number`, or `json` | **DefaultValue** | **NullableString** | The default value of the user attribute, assigned to all users without the attribute set | **IntercomAttributeName** | **NullableString** | The name of the Intercom user attribute that this attribute should be mapped to | diff --git a/internal/sdk/api/docs/UserAttributesIdPatch200Response.md b/internal/sdk/api/docs/UserAttributesIdPatch200Response.md new file mode 100644 index 0000000..9691fcf --- /dev/null +++ b/internal/sdk/api/docs/UserAttributesIdPatch200Response.md @@ -0,0 +1,72 @@ +# UserAttributesIdPatch200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**UserAttributesIdPatch200ResponseData**](UserAttributesIdPatch200ResponseData.md) | | + +## Methods + +### NewUserAttributesIdPatch200Response + +`func NewUserAttributesIdPatch200Response(success bool, data UserAttributesIdPatch200ResponseData, ) *UserAttributesIdPatch200Response` + +NewUserAttributesIdPatch200Response instantiates a new UserAttributesIdPatch200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserAttributesIdPatch200ResponseWithDefaults + +`func NewUserAttributesIdPatch200ResponseWithDefaults() *UserAttributesIdPatch200Response` + +NewUserAttributesIdPatch200ResponseWithDefaults instantiates a new UserAttributesIdPatch200Response 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 + +### GetSuccess + +`func (o *UserAttributesIdPatch200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *UserAttributesIdPatch200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *UserAttributesIdPatch200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *UserAttributesIdPatch200Response) GetData() UserAttributesIdPatch200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *UserAttributesIdPatch200Response) GetDataOk() (*UserAttributesIdPatch200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *UserAttributesIdPatch200Response) SetData(v UserAttributesIdPatch200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserAttributesIdPatch200ResponseData.md b/internal/sdk/api/docs/UserAttributesIdPatch200ResponseData.md new file mode 100644 index 0000000..df8996b --- /dev/null +++ b/internal/sdk/api/docs/UserAttributesIdPatch200ResponseData.md @@ -0,0 +1,176 @@ +# UserAttributesIdPatch200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the user attribute | +**Name** | **string** | The name of the user attribute | +**Label** | **string** | The label of the user attribute | +**DataType** | **string** | The data type of the user attribute. Valid types are `string`, `number`, or `json` | +**DefaultValue** | **NullableString** | The default value of the user attribute, assigned to all users without the attribute set | +**IntercomAttributeName** | **NullableString** | The name of the Intercom user attribute that this attribute should be mapped to | + +## Methods + +### NewUserAttributesIdPatch200ResponseData + +`func NewUserAttributesIdPatch200ResponseData(id string, name string, label string, dataType string, defaultValue NullableString, intercomAttributeName NullableString, ) *UserAttributesIdPatch200ResponseData` + +NewUserAttributesIdPatch200ResponseData instantiates a new UserAttributesIdPatch200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserAttributesIdPatch200ResponseDataWithDefaults + +`func NewUserAttributesIdPatch200ResponseDataWithDefaults() *UserAttributesIdPatch200ResponseData` + +NewUserAttributesIdPatch200ResponseDataWithDefaults instantiates a new UserAttributesIdPatch200ResponseData 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 + +### GetId + +`func (o *UserAttributesIdPatch200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserAttributesIdPatch200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *UserAttributesIdPatch200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *UserAttributesIdPatch200ResponseData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UserAttributesIdPatch200ResponseData) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UserAttributesIdPatch200ResponseData) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLabel + +`func (o *UserAttributesIdPatch200ResponseData) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *UserAttributesIdPatch200ResponseData) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *UserAttributesIdPatch200ResponseData) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDataType + +`func (o *UserAttributesIdPatch200ResponseData) GetDataType() string` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *UserAttributesIdPatch200ResponseData) GetDataTypeOk() (*string, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *UserAttributesIdPatch200ResponseData) SetDataType(v string)` + +SetDataType sets DataType field to given value. + + +### GetDefaultValue + +`func (o *UserAttributesIdPatch200ResponseData) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *UserAttributesIdPatch200ResponseData) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *UserAttributesIdPatch200ResponseData) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + + +### SetDefaultValueNil + +`func (o *UserAttributesIdPatch200ResponseData) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *UserAttributesIdPatch200ResponseData) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetIntercomAttributeName + +`func (o *UserAttributesIdPatch200ResponseData) GetIntercomAttributeName() string` + +GetIntercomAttributeName returns the IntercomAttributeName field if non-nil, zero value otherwise. + +### GetIntercomAttributeNameOk + +`func (o *UserAttributesIdPatch200ResponseData) GetIntercomAttributeNameOk() (*string, bool)` + +GetIntercomAttributeNameOk returns a tuple with the IntercomAttributeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntercomAttributeName + +`func (o *UserAttributesIdPatch200ResponseData) SetIntercomAttributeName(v string)` + +SetIntercomAttributeName sets IntercomAttributeName field to given value. + + +### SetIntercomAttributeNameNil + +`func (o *UserAttributesIdPatch200ResponseData) SetIntercomAttributeNameNil(b bool)` + + SetIntercomAttributeNameNil sets the value for IntercomAttributeName to be an explicit nil + +### UnsetIntercomAttributeName +`func (o *UserAttributesIdPatch200ResponseData) UnsetIntercomAttributeName()` + +UnsetIntercomAttributeName ensures that no value is present for IntercomAttributeName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserAttributesIdPatchRequest.md b/internal/sdk/api/docs/UserAttributesIdPatchRequest.md new file mode 100644 index 0000000..37737b4 --- /dev/null +++ b/internal/sdk/api/docs/UserAttributesIdPatchRequest.md @@ -0,0 +1,77 @@ +# UserAttributesIdPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Operations** | [**[]ReplaceOperation**](ReplaceOperation.md) | A list of operations to apply to the user attribute. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. | +**UpdateExisting** | Pointer to **bool** | Whether to update existing users with the deleted attribute | [optional] + +## Methods + +### NewUserAttributesIdPatchRequest + +`func NewUserAttributesIdPatchRequest(operations []ReplaceOperation, ) *UserAttributesIdPatchRequest` + +NewUserAttributesIdPatchRequest instantiates a new UserAttributesIdPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserAttributesIdPatchRequestWithDefaults + +`func NewUserAttributesIdPatchRequestWithDefaults() *UserAttributesIdPatchRequest` + +NewUserAttributesIdPatchRequestWithDefaults instantiates a new UserAttributesIdPatchRequest 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 + +### GetOperations + +`func (o *UserAttributesIdPatchRequest) GetOperations() []ReplaceOperation` + +GetOperations returns the Operations field if non-nil, zero value otherwise. + +### GetOperationsOk + +`func (o *UserAttributesIdPatchRequest) GetOperationsOk() (*[]ReplaceOperation, bool)` + +GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperations + +`func (o *UserAttributesIdPatchRequest) SetOperations(v []ReplaceOperation)` + +SetOperations sets Operations field to given value. + + +### GetUpdateExisting + +`func (o *UserAttributesIdPatchRequest) GetUpdateExisting() bool` + +GetUpdateExisting returns the UpdateExisting field if non-nil, zero value otherwise. + +### GetUpdateExistingOk + +`func (o *UserAttributesIdPatchRequest) GetUpdateExistingOk() (*bool, bool)` + +GetUpdateExistingOk returns a tuple with the UpdateExisting field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateExisting + +`func (o *UserAttributesIdPatchRequest) SetUpdateExisting(v bool)` + +SetUpdateExisting sets UpdateExisting field to given value. + +### HasUpdateExisting + +`func (o *UserAttributesIdPatchRequest) HasUpdateExisting() bool` + +HasUpdateExisting returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserAttributesPost200Response.md b/internal/sdk/api/docs/UserAttributesPost200Response.md new file mode 100644 index 0000000..911bb0e --- /dev/null +++ b/internal/sdk/api/docs/UserAttributesPost200Response.md @@ -0,0 +1,72 @@ +# UserAttributesPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**UserAttributesPost200ResponseData**](UserAttributesPost200ResponseData.md) | | + +## Methods + +### NewUserAttributesPost200Response + +`func NewUserAttributesPost200Response(success bool, data UserAttributesPost200ResponseData, ) *UserAttributesPost200Response` + +NewUserAttributesPost200Response instantiates a new UserAttributesPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserAttributesPost200ResponseWithDefaults + +`func NewUserAttributesPost200ResponseWithDefaults() *UserAttributesPost200Response` + +NewUserAttributesPost200ResponseWithDefaults instantiates a new UserAttributesPost200Response 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 + +### GetSuccess + +`func (o *UserAttributesPost200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *UserAttributesPost200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *UserAttributesPost200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *UserAttributesPost200Response) GetData() UserAttributesPost200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *UserAttributesPost200Response) GetDataOk() (*UserAttributesPost200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *UserAttributesPost200Response) SetData(v UserAttributesPost200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserAttributesPost200ResponseData.md b/internal/sdk/api/docs/UserAttributesPost200ResponseData.md new file mode 100644 index 0000000..5a26e63 --- /dev/null +++ b/internal/sdk/api/docs/UserAttributesPost200ResponseData.md @@ -0,0 +1,176 @@ +# UserAttributesPost200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the user attribute | +**Name** | **string** | The name of the user attribute | +**Label** | **string** | The label of the user attribute | +**DataType** | **string** | The data type of the user attribute. Valid types are `string`, `number`, or `json` | +**DefaultValue** | **NullableString** | The default value of the user attribute, assigned to all users without the attribute set | +**IntercomAttributeName** | **NullableString** | The name of the Intercom user attribute that this attribute should be mapped to | + +## Methods + +### NewUserAttributesPost200ResponseData + +`func NewUserAttributesPost200ResponseData(id string, name string, label string, dataType string, defaultValue NullableString, intercomAttributeName NullableString, ) *UserAttributesPost200ResponseData` + +NewUserAttributesPost200ResponseData instantiates a new UserAttributesPost200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserAttributesPost200ResponseDataWithDefaults + +`func NewUserAttributesPost200ResponseDataWithDefaults() *UserAttributesPost200ResponseData` + +NewUserAttributesPost200ResponseDataWithDefaults instantiates a new UserAttributesPost200ResponseData 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 + +### GetId + +`func (o *UserAttributesPost200ResponseData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserAttributesPost200ResponseData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *UserAttributesPost200ResponseData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *UserAttributesPost200ResponseData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UserAttributesPost200ResponseData) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UserAttributesPost200ResponseData) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLabel + +`func (o *UserAttributesPost200ResponseData) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *UserAttributesPost200ResponseData) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *UserAttributesPost200ResponseData) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDataType + +`func (o *UserAttributesPost200ResponseData) GetDataType() string` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *UserAttributesPost200ResponseData) GetDataTypeOk() (*string, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *UserAttributesPost200ResponseData) SetDataType(v string)` + +SetDataType sets DataType field to given value. + + +### GetDefaultValue + +`func (o *UserAttributesPost200ResponseData) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *UserAttributesPost200ResponseData) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *UserAttributesPost200ResponseData) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + + +### SetDefaultValueNil + +`func (o *UserAttributesPost200ResponseData) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *UserAttributesPost200ResponseData) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetIntercomAttributeName + +`func (o *UserAttributesPost200ResponseData) GetIntercomAttributeName() string` + +GetIntercomAttributeName returns the IntercomAttributeName field if non-nil, zero value otherwise. + +### GetIntercomAttributeNameOk + +`func (o *UserAttributesPost200ResponseData) GetIntercomAttributeNameOk() (*string, bool)` + +GetIntercomAttributeNameOk returns a tuple with the IntercomAttributeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntercomAttributeName + +`func (o *UserAttributesPost200ResponseData) SetIntercomAttributeName(v string)` + +SetIntercomAttributeName sets IntercomAttributeName field to given value. + + +### SetIntercomAttributeNameNil + +`func (o *UserAttributesPost200ResponseData) SetIntercomAttributeNameNil(b bool)` + + SetIntercomAttributeNameNil sets the value for IntercomAttributeName to be an explicit nil + +### UnsetIntercomAttributeName +`func (o *UserAttributesPost200ResponseData) UnsetIntercomAttributeName()` + +UnsetIntercomAttributeName ensures that no value is present for IntercomAttributeName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserAttributesPostRequest.md b/internal/sdk/api/docs/UserAttributesPostRequest.md new file mode 100644 index 0000000..834a5da --- /dev/null +++ b/internal/sdk/api/docs/UserAttributesPostRequest.md @@ -0,0 +1,129 @@ +# UserAttributesPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the user attribute. Must be alphanumeric and without spaces. | +**Label** | **string** | A short description of the user attribute. | +**DataType** | **string** | The data type of the attribute, can be one of string | json | number. | +**DefaultValue** | Pointer to **NullableString** | A default value to apply to users that don't have an attribute set. | [optional] + +## Methods + +### NewUserAttributesPostRequest + +`func NewUserAttributesPostRequest(name string, label string, dataType string, ) *UserAttributesPostRequest` + +NewUserAttributesPostRequest instantiates a new UserAttributesPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserAttributesPostRequestWithDefaults + +`func NewUserAttributesPostRequestWithDefaults() *UserAttributesPostRequest` + +NewUserAttributesPostRequestWithDefaults instantiates a new UserAttributesPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *UserAttributesPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UserAttributesPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UserAttributesPostRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLabel + +`func (o *UserAttributesPostRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *UserAttributesPostRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *UserAttributesPostRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDataType + +`func (o *UserAttributesPostRequest) GetDataType() string` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *UserAttributesPostRequest) GetDataTypeOk() (*string, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *UserAttributesPostRequest) SetDataType(v string)` + +SetDataType sets DataType field to given value. + + +### GetDefaultValue + +`func (o *UserAttributesPostRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *UserAttributesPostRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *UserAttributesPostRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *UserAttributesPostRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *UserAttributesPostRequest) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *UserAttributesPostRequest) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserInvite.md b/internal/sdk/api/docs/UserInvite.md index 9a359c7..035b805 100644 --- a/internal/sdk/api/docs/UserInvite.md +++ b/internal/sdk/api/docs/UserInvite.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **UserType** | **NullableString** | | **Metadata** | **map[string]interface{}** | | [default to {}] **CreatedAt** | **string** | | -**InviteLink** | Pointer to **string** | | [optional] +**InviteLink** | Pointer to **string** | User invite link expires 7 days after generation. | [optional] ## Methods diff --git a/internal/sdk/api/docs/UserInviteAPI.md b/internal/sdk/api/docs/UserInviteAPI.md index c18f47e..9dbe208 100644 --- a/internal/sdk/api/docs/UserInviteAPI.md +++ b/internal/sdk/api/docs/UserInviteAPI.md @@ -161,7 +161,7 @@ import ( ) func main() { - userInviteId := "userInviteId_example" // string | + userInviteId := "userInviteId_example" // string | The user invite's ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -179,7 +179,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**userInviteId** | **string** | | +**userInviteId** | **string** | The user invite's ID | ### Other Parameters @@ -229,7 +229,7 @@ import ( ) func main() { - userInviteId := "userInviteId_example" // string | + userInviteId := "userInviteId_example" // string | The user invite's ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -249,7 +249,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**userInviteId** | **string** | | +**userInviteId** | **string** | The user invite's ID | ### Other Parameters @@ -299,7 +299,7 @@ import ( ) func main() { - userInviteId := "userInviteId_example" // string | + userInviteId := "userInviteId_example" // string | The user invite's ID attributeName := "attributeName_example" // string | configuration := openapiclient.NewConfiguration() @@ -320,7 +320,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**userInviteId** | **string** | | +**userInviteId** | **string** | The user invite's ID | **attributeName** | **string** | | ### Other Parameters @@ -372,7 +372,7 @@ import ( ) func main() { - userInviteId := "userInviteId_example" // string | + userInviteId := "userInviteId_example" // string | The user invite's ID userInvitesUserInviteIdUserAttributesPostRequest := *openapiclient.NewUserInvitesUserInviteIdUserAttributesPostRequest("Name_example", "Value_example") // UserInvitesUserInviteIdUserAttributesPostRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -393,7 +393,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**userInviteId** | **string** | | +**userInviteId** | **string** | The user invite's ID | ### Other Parameters diff --git a/internal/sdk/api/docs/UserInvitesPost200ResponseData.md b/internal/sdk/api/docs/UserInvitesPost200ResponseData.md index e106c90..b2fc451 100644 --- a/internal/sdk/api/docs/UserInvitesPost200ResponseData.md +++ b/internal/sdk/api/docs/UserInvitesPost200ResponseData.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **UserType** | **NullableString** | | **Metadata** | **map[string]interface{}** | | [default to {}] **CreatedAt** | **string** | | -**InviteLink** | Pointer to **string** | | [optional] +**InviteLink** | Pointer to **string** | User invite link expires 7 days after generation. | [optional] ## Methods diff --git a/internal/sdk/api/docs/UserTask.md b/internal/sdk/api/docs/UserTask.md new file mode 100644 index 0000000..bcad1e6 --- /dev/null +++ b/internal/sdk/api/docs/UserTask.md @@ -0,0 +1,359 @@ +# UserTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the user task. | +**WorkflowId** | **string** | The ID of the workflow this task belongs to. | +**WorkflowName** | **string** | The name of the workflow. | +**WorkflowRunId** | **string** | The ID of the workflow run. | +**TaskName** | **string** | The name of the task. | +**Status** | **string** | The current status of the task. | +**Context** | **map[string]interface{}** | Additional context for the task. | +**CreatedAt** | **string** | The creation date time of the task. | +**CompletedAt** | **NullableString** | The completion date time of the task. | +**TaskUrl** | **[]string** | URL links to apps associated with the task. | +**Assignees** | [**[]UserTasksGet200ResponseDataInnerAssigneesInner**](UserTasksGet200ResponseDataInnerAssigneesInner.md) | The groups or users assigned to this task. | +**WorkflowRelease** | **NullableString** | The workflow release version, if any. | +**ExpiresAt** | **NullableString** | The expiration date time of the task, if set. | +**Output** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewUserTask + +`func NewUserTask(id string, workflowId string, workflowName string, workflowRunId string, taskName string, status string, context map[string]interface{}, createdAt string, completedAt NullableString, taskUrl []string, assignees []UserTasksGet200ResponseDataInnerAssigneesInner, workflowRelease NullableString, expiresAt NullableString, ) *UserTask` + +NewUserTask instantiates a new UserTask object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTaskWithDefaults + +`func NewUserTaskWithDefaults() *UserTask` + +NewUserTaskWithDefaults instantiates a new UserTask 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 + +### GetId + +`func (o *UserTask) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserTask) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *UserTask) SetId(v string)` + +SetId sets Id field to given value. + + +### GetWorkflowId + +`func (o *UserTask) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *UserTask) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *UserTask) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + + +### GetWorkflowName + +`func (o *UserTask) GetWorkflowName() string` + +GetWorkflowName returns the WorkflowName field if non-nil, zero value otherwise. + +### GetWorkflowNameOk + +`func (o *UserTask) GetWorkflowNameOk() (*string, bool)` + +GetWorkflowNameOk returns a tuple with the WorkflowName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowName + +`func (o *UserTask) SetWorkflowName(v string)` + +SetWorkflowName sets WorkflowName field to given value. + + +### GetWorkflowRunId + +`func (o *UserTask) GetWorkflowRunId() string` + +GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise. + +### GetWorkflowRunIdOk + +`func (o *UserTask) GetWorkflowRunIdOk() (*string, bool)` + +GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRunId + +`func (o *UserTask) SetWorkflowRunId(v string)` + +SetWorkflowRunId sets WorkflowRunId field to given value. + + +### GetTaskName + +`func (o *UserTask) GetTaskName() string` + +GetTaskName returns the TaskName field if non-nil, zero value otherwise. + +### GetTaskNameOk + +`func (o *UserTask) GetTaskNameOk() (*string, bool)` + +GetTaskNameOk returns a tuple with the TaskName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskName + +`func (o *UserTask) SetTaskName(v string)` + +SetTaskName sets TaskName field to given value. + + +### GetStatus + +`func (o *UserTask) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UserTask) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UserTask) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetContext + +`func (o *UserTask) GetContext() map[string]interface{}` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *UserTask) GetContextOk() (*map[string]interface{}, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *UserTask) SetContext(v map[string]interface{})` + +SetContext sets Context field to given value. + + +### GetCreatedAt + +`func (o *UserTask) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *UserTask) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *UserTask) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetCompletedAt + +`func (o *UserTask) GetCompletedAt() string` + +GetCompletedAt returns the CompletedAt field if non-nil, zero value otherwise. + +### GetCompletedAtOk + +`func (o *UserTask) GetCompletedAtOk() (*string, bool)` + +GetCompletedAtOk returns a tuple with the CompletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedAt + +`func (o *UserTask) SetCompletedAt(v string)` + +SetCompletedAt sets CompletedAt field to given value. + + +### SetCompletedAtNil + +`func (o *UserTask) SetCompletedAtNil(b bool)` + + SetCompletedAtNil sets the value for CompletedAt to be an explicit nil + +### UnsetCompletedAt +`func (o *UserTask) UnsetCompletedAt()` + +UnsetCompletedAt ensures that no value is present for CompletedAt, not even an explicit nil +### GetTaskUrl + +`func (o *UserTask) GetTaskUrl() []string` + +GetTaskUrl returns the TaskUrl field if non-nil, zero value otherwise. + +### GetTaskUrlOk + +`func (o *UserTask) GetTaskUrlOk() (*[]string, bool)` + +GetTaskUrlOk returns a tuple with the TaskUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskUrl + +`func (o *UserTask) SetTaskUrl(v []string)` + +SetTaskUrl sets TaskUrl field to given value. + + +### GetAssignees + +`func (o *UserTask) GetAssignees() []UserTasksGet200ResponseDataInnerAssigneesInner` + +GetAssignees returns the Assignees field if non-nil, zero value otherwise. + +### GetAssigneesOk + +`func (o *UserTask) GetAssigneesOk() (*[]UserTasksGet200ResponseDataInnerAssigneesInner, bool)` + +GetAssigneesOk returns a tuple with the Assignees field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignees + +`func (o *UserTask) SetAssignees(v []UserTasksGet200ResponseDataInnerAssigneesInner)` + +SetAssignees sets Assignees field to given value. + + +### GetWorkflowRelease + +`func (o *UserTask) GetWorkflowRelease() string` + +GetWorkflowRelease returns the WorkflowRelease field if non-nil, zero value otherwise. + +### GetWorkflowReleaseOk + +`func (o *UserTask) GetWorkflowReleaseOk() (*string, bool)` + +GetWorkflowReleaseOk returns a tuple with the WorkflowRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRelease + +`func (o *UserTask) SetWorkflowRelease(v string)` + +SetWorkflowRelease sets WorkflowRelease field to given value. + + +### SetWorkflowReleaseNil + +`func (o *UserTask) SetWorkflowReleaseNil(b bool)` + + SetWorkflowReleaseNil sets the value for WorkflowRelease to be an explicit nil + +### UnsetWorkflowRelease +`func (o *UserTask) UnsetWorkflowRelease()` + +UnsetWorkflowRelease ensures that no value is present for WorkflowRelease, not even an explicit nil +### GetExpiresAt + +`func (o *UserTask) GetExpiresAt() string` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *UserTask) GetExpiresAtOk() (*string, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *UserTask) SetExpiresAt(v string)` + +SetExpiresAt sets ExpiresAt field to given value. + + +### SetExpiresAtNil + +`func (o *UserTask) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *UserTask) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetOutput + +`func (o *UserTask) GetOutput() map[string]interface{}` + +GetOutput returns the Output field if non-nil, zero value otherwise. + +### GetOutputOk + +`func (o *UserTask) GetOutputOk() (*map[string]interface{}, bool)` + +GetOutputOk returns a tuple with the Output field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutput + +`func (o *UserTask) SetOutput(v map[string]interface{})` + +SetOutput sets Output field to given value. + +### HasOutput + +`func (o *UserTask) HasOutput() bool` + +HasOutput returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksAPI.md b/internal/sdk/api/docs/UserTasksAPI.md new file mode 100644 index 0000000..a81d8b2 --- /dev/null +++ b/internal/sdk/api/docs/UserTasksAPI.md @@ -0,0 +1,306 @@ +# \UserTasksAPI + +All URIs are relative to *http://.* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UserTasksGet**](UserTasksAPI.md#UserTasksGet) | **Get** /user_tasks | List User Tasks +[**UserTasksTaskIdCancelPatch**](UserTasksAPI.md#UserTasksTaskIdCancelPatch) | **Patch** /user_tasks/{taskId}/cancel | Cancels a user task. +[**UserTasksTaskIdReassignPatch**](UserTasksAPI.md#UserTasksTaskIdReassignPatch) | **Patch** /user_tasks/{taskId}/reassign | Reassign a user task to a group or a user. +[**UserTasksTaskIdSubmitPatch**](UserTasksAPI.md#UserTasksTaskIdSubmitPatch) | **Patch** /user_tasks/{taskId}/submit | Submits a user task. + + + +## UserTasksGet + +> UserTasksGet200Response UserTasksGet(ctx).AssignedToUsers(assignedToUsers).Statuses(statuses).WorkflowIds(workflowIds).Limit(limit).NextToken(nextToken).StartingAfter(startingAfter).EndingBefore(endingBefore).Execute() + +List User Tasks + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + assignedToUsers := *openapiclient.NewUserTasksGetAssignedToUsersParameter() // UserTasksGetAssignedToUsersParameter | Filter tasks by assignment. Provide one or more user ids. If not provided, returns all accessible tasks. (optional) + statuses := "statuses_example" // string | A comma-separated list of statuses. (optional) + workflowIds := "workflowIds_example" // string | A comma-separated list of workflow IDs. (optional) + limit := "limit_example" // string | The maximum number of tasks to include in the response. (optional) + nextToken := "nextToken_example" // string | The next token from the previous API response. This is used for paginating through an arbitrary number of tasks. (optional) + startingAfter := "startingAfter_example" // string | The ID of the task following which the response will include subsequent tasks. (optional) + endingBefore := "endingBefore_example" // string | The ID of the task before which the response will include preceding tasks. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserTasksAPI.UserTasksGet(context.Background()).AssignedToUsers(assignedToUsers).Statuses(statuses).WorkflowIds(workflowIds).Limit(limit).NextToken(nextToken).StartingAfter(startingAfter).EndingBefore(endingBefore).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserTasksAPI.UserTasksGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserTasksGet`: UserTasksGet200Response + fmt.Fprintf(os.Stdout, "Response from `UserTasksAPI.UserTasksGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserTasksGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **assignedToUsers** | [**UserTasksGetAssignedToUsersParameter**](UserTasksGetAssignedToUsersParameter.md) | Filter tasks by assignment. Provide one or more user ids. If not provided, returns all accessible tasks. | + **statuses** | **string** | A comma-separated list of statuses. | + **workflowIds** | **string** | A comma-separated list of workflow IDs. | + **limit** | **string** | The maximum number of tasks to include in the response. | + **nextToken** | **string** | The next token from the previous API response. This is used for paginating through an arbitrary number of tasks. | + **startingAfter** | **string** | The ID of the task following which the response will include subsequent tasks. | + **endingBefore** | **string** | The ID of the task before which the response will include preceding tasks. | + +### Return type + +[**UserTasksGet200Response**](UserTasksGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserTasksTaskIdCancelPatch + +> UserTasksTaskIdSubmitPatch200Response UserTasksTaskIdCancelPatch(ctx, taskId).UserTasksTaskIdCancelPatchRequest(userTasksTaskIdCancelPatchRequest).Execute() + +Cancels a user task. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + taskId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the user task. + userTasksTaskIdCancelPatchRequest := *openapiclient.NewUserTasksTaskIdCancelPatchRequest("Email_example") // UserTasksTaskIdCancelPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserTasksAPI.UserTasksTaskIdCancelPatch(context.Background(), taskId).UserTasksTaskIdCancelPatchRequest(userTasksTaskIdCancelPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserTasksAPI.UserTasksTaskIdCancelPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserTasksTaskIdCancelPatch`: UserTasksTaskIdSubmitPatch200Response + fmt.Fprintf(os.Stdout, "Response from `UserTasksAPI.UserTasksTaskIdCancelPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**taskId** | **string** | The ID of the user task. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserTasksTaskIdCancelPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **userTasksTaskIdCancelPatchRequest** | [**UserTasksTaskIdCancelPatchRequest**](UserTasksTaskIdCancelPatchRequest.md) | | + +### Return type + +[**UserTasksTaskIdSubmitPatch200Response**](UserTasksTaskIdSubmitPatch200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserTasksTaskIdReassignPatch + +> UserTasksTaskIdSubmitPatch200Response UserTasksTaskIdReassignPatch(ctx, taskId).UserTasksTaskIdReassignPatchRequest(userTasksTaskIdReassignPatchRequest).Execute() + +Reassign a user task to a group or a user. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + taskId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the user task. + userTasksTaskIdReassignPatchRequest := *openapiclient.NewUserTasksTaskIdReassignPatchRequest("Email_example", []openapiclient.UserTasksTaskIdReassignPatchRequestAssigneesInner{*openapiclient.NewUserTasksTaskIdReassignPatchRequestAssigneesInner("Type_example", "Id_example")}) // UserTasksTaskIdReassignPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserTasksAPI.UserTasksTaskIdReassignPatch(context.Background(), taskId).UserTasksTaskIdReassignPatchRequest(userTasksTaskIdReassignPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserTasksAPI.UserTasksTaskIdReassignPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserTasksTaskIdReassignPatch`: UserTasksTaskIdSubmitPatch200Response + fmt.Fprintf(os.Stdout, "Response from `UserTasksAPI.UserTasksTaskIdReassignPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**taskId** | **string** | The ID of the user task. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserTasksTaskIdReassignPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **userTasksTaskIdReassignPatchRequest** | [**UserTasksTaskIdReassignPatchRequest**](UserTasksTaskIdReassignPatchRequest.md) | | + +### Return type + +[**UserTasksTaskIdSubmitPatch200Response**](UserTasksTaskIdSubmitPatch200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserTasksTaskIdSubmitPatch + +> UserTasksTaskIdSubmitPatch200Response UserTasksTaskIdSubmitPatch(ctx, taskId).UserTasksTaskIdSubmitPatchRequest(userTasksTaskIdSubmitPatchRequest).Execute() + +Submits a user task. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + taskId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the user task. + userTasksTaskIdSubmitPatchRequest := *openapiclient.NewUserTasksTaskIdSubmitPatchRequest("Email_example", map[string]interface{}{"key": interface{}(123)}) // UserTasksTaskIdSubmitPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserTasksAPI.UserTasksTaskIdSubmitPatch(context.Background(), taskId).UserTasksTaskIdSubmitPatchRequest(userTasksTaskIdSubmitPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserTasksAPI.UserTasksTaskIdSubmitPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserTasksTaskIdSubmitPatch`: UserTasksTaskIdSubmitPatch200Response + fmt.Fprintf(os.Stdout, "Response from `UserTasksAPI.UserTasksTaskIdSubmitPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**taskId** | **string** | The ID of the user task. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserTasksTaskIdSubmitPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **userTasksTaskIdSubmitPatchRequest** | [**UserTasksTaskIdSubmitPatchRequest**](UserTasksTaskIdSubmitPatchRequest.md) | | + +### Return type + +[**UserTasksTaskIdSubmitPatch200Response**](UserTasksTaskIdSubmitPatch200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/UserTasksGet200Response.md b/internal/sdk/api/docs/UserTasksGet200Response.md new file mode 100644 index 0000000..2756fec --- /dev/null +++ b/internal/sdk/api/docs/UserTasksGet200Response.md @@ -0,0 +1,145 @@ +# UserTasksGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**[]UserTasksGet200ResponseDataInner**](UserTasksGet200ResponseDataInner.md) | An array of requested items | +**TotalCount** | **float32** | Total number of items in the response | +**NextToken** | **NullableString** | A token to retrieve the next page of items in the collection | +**HasMore** | **bool** | Whether there are more items in the collection | + +## Methods + +### NewUserTasksGet200Response + +`func NewUserTasksGet200Response(success bool, data []UserTasksGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool, ) *UserTasksGet200Response` + +NewUserTasksGet200Response instantiates a new UserTasksGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksGet200ResponseWithDefaults + +`func NewUserTasksGet200ResponseWithDefaults() *UserTasksGet200Response` + +NewUserTasksGet200ResponseWithDefaults instantiates a new UserTasksGet200Response 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 + +### GetSuccess + +`func (o *UserTasksGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *UserTasksGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *UserTasksGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *UserTasksGet200Response) GetData() []UserTasksGet200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *UserTasksGet200Response) GetDataOk() (*[]UserTasksGet200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *UserTasksGet200Response) SetData(v []UserTasksGet200ResponseDataInner)` + +SetData sets Data field to given value. + + +### GetTotalCount + +`func (o *UserTasksGet200Response) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *UserTasksGet200Response) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *UserTasksGet200Response) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + + +### GetNextToken + +`func (o *UserTasksGet200Response) GetNextToken() string` + +GetNextToken returns the NextToken field if non-nil, zero value otherwise. + +### GetNextTokenOk + +`func (o *UserTasksGet200Response) GetNextTokenOk() (*string, bool)` + +GetNextTokenOk returns a tuple with the NextToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextToken + +`func (o *UserTasksGet200Response) SetNextToken(v string)` + +SetNextToken sets NextToken field to given value. + + +### SetNextTokenNil + +`func (o *UserTasksGet200Response) SetNextTokenNil(b bool)` + + SetNextTokenNil sets the value for NextToken to be an explicit nil + +### UnsetNextToken +`func (o *UserTasksGet200Response) UnsetNextToken()` + +UnsetNextToken ensures that no value is present for NextToken, not even an explicit nil +### GetHasMore + +`func (o *UserTasksGet200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *UserTasksGet200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *UserTasksGet200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksGet200ResponseDataInner.md b/internal/sdk/api/docs/UserTasksGet200ResponseDataInner.md new file mode 100644 index 0000000..09c61f6 --- /dev/null +++ b/internal/sdk/api/docs/UserTasksGet200ResponseDataInner.md @@ -0,0 +1,359 @@ +# UserTasksGet200ResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the user task. | +**WorkflowId** | **string** | The ID of the workflow this task belongs to. | +**WorkflowName** | **string** | The name of the workflow. | +**WorkflowRunId** | **string** | The ID of the workflow run. | +**TaskName** | **string** | The name of the task. | +**Status** | **string** | The current status of the task. | +**Context** | **map[string]interface{}** | Additional context for the task. | +**CreatedAt** | **string** | The creation date time of the task. | +**CompletedAt** | **NullableString** | The completion date time of the task. | +**TaskUrl** | **[]string** | URL links to apps associated with the task. | +**Assignees** | [**[]UserTasksGet200ResponseDataInnerAssigneesInner**](UserTasksGet200ResponseDataInnerAssigneesInner.md) | The groups or users assigned to this task. | +**WorkflowRelease** | **NullableString** | The workflow release version, if any. | +**ExpiresAt** | **NullableString** | The expiration date time of the task, if set. | +**Output** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewUserTasksGet200ResponseDataInner + +`func NewUserTasksGet200ResponseDataInner(id string, workflowId string, workflowName string, workflowRunId string, taskName string, status string, context map[string]interface{}, createdAt string, completedAt NullableString, taskUrl []string, assignees []UserTasksGet200ResponseDataInnerAssigneesInner, workflowRelease NullableString, expiresAt NullableString, ) *UserTasksGet200ResponseDataInner` + +NewUserTasksGet200ResponseDataInner instantiates a new UserTasksGet200ResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksGet200ResponseDataInnerWithDefaults + +`func NewUserTasksGet200ResponseDataInnerWithDefaults() *UserTasksGet200ResponseDataInner` + +NewUserTasksGet200ResponseDataInnerWithDefaults instantiates a new UserTasksGet200ResponseDataInner 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 + +### GetId + +`func (o *UserTasksGet200ResponseDataInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserTasksGet200ResponseDataInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *UserTasksGet200ResponseDataInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetWorkflowId + +`func (o *UserTasksGet200ResponseDataInner) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *UserTasksGet200ResponseDataInner) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *UserTasksGet200ResponseDataInner) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + + +### GetWorkflowName + +`func (o *UserTasksGet200ResponseDataInner) GetWorkflowName() string` + +GetWorkflowName returns the WorkflowName field if non-nil, zero value otherwise. + +### GetWorkflowNameOk + +`func (o *UserTasksGet200ResponseDataInner) GetWorkflowNameOk() (*string, bool)` + +GetWorkflowNameOk returns a tuple with the WorkflowName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowName + +`func (o *UserTasksGet200ResponseDataInner) SetWorkflowName(v string)` + +SetWorkflowName sets WorkflowName field to given value. + + +### GetWorkflowRunId + +`func (o *UserTasksGet200ResponseDataInner) GetWorkflowRunId() string` + +GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise. + +### GetWorkflowRunIdOk + +`func (o *UserTasksGet200ResponseDataInner) GetWorkflowRunIdOk() (*string, bool)` + +GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRunId + +`func (o *UserTasksGet200ResponseDataInner) SetWorkflowRunId(v string)` + +SetWorkflowRunId sets WorkflowRunId field to given value. + + +### GetTaskName + +`func (o *UserTasksGet200ResponseDataInner) GetTaskName() string` + +GetTaskName returns the TaskName field if non-nil, zero value otherwise. + +### GetTaskNameOk + +`func (o *UserTasksGet200ResponseDataInner) GetTaskNameOk() (*string, bool)` + +GetTaskNameOk returns a tuple with the TaskName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskName + +`func (o *UserTasksGet200ResponseDataInner) SetTaskName(v string)` + +SetTaskName sets TaskName field to given value. + + +### GetStatus + +`func (o *UserTasksGet200ResponseDataInner) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UserTasksGet200ResponseDataInner) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UserTasksGet200ResponseDataInner) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetContext + +`func (o *UserTasksGet200ResponseDataInner) GetContext() map[string]interface{}` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *UserTasksGet200ResponseDataInner) GetContextOk() (*map[string]interface{}, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *UserTasksGet200ResponseDataInner) SetContext(v map[string]interface{})` + +SetContext sets Context field to given value. + + +### GetCreatedAt + +`func (o *UserTasksGet200ResponseDataInner) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *UserTasksGet200ResponseDataInner) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *UserTasksGet200ResponseDataInner) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetCompletedAt + +`func (o *UserTasksGet200ResponseDataInner) GetCompletedAt() string` + +GetCompletedAt returns the CompletedAt field if non-nil, zero value otherwise. + +### GetCompletedAtOk + +`func (o *UserTasksGet200ResponseDataInner) GetCompletedAtOk() (*string, bool)` + +GetCompletedAtOk returns a tuple with the CompletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedAt + +`func (o *UserTasksGet200ResponseDataInner) SetCompletedAt(v string)` + +SetCompletedAt sets CompletedAt field to given value. + + +### SetCompletedAtNil + +`func (o *UserTasksGet200ResponseDataInner) SetCompletedAtNil(b bool)` + + SetCompletedAtNil sets the value for CompletedAt to be an explicit nil + +### UnsetCompletedAt +`func (o *UserTasksGet200ResponseDataInner) UnsetCompletedAt()` + +UnsetCompletedAt ensures that no value is present for CompletedAt, not even an explicit nil +### GetTaskUrl + +`func (o *UserTasksGet200ResponseDataInner) GetTaskUrl() []string` + +GetTaskUrl returns the TaskUrl field if non-nil, zero value otherwise. + +### GetTaskUrlOk + +`func (o *UserTasksGet200ResponseDataInner) GetTaskUrlOk() (*[]string, bool)` + +GetTaskUrlOk returns a tuple with the TaskUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskUrl + +`func (o *UserTasksGet200ResponseDataInner) SetTaskUrl(v []string)` + +SetTaskUrl sets TaskUrl field to given value. + + +### GetAssignees + +`func (o *UserTasksGet200ResponseDataInner) GetAssignees() []UserTasksGet200ResponseDataInnerAssigneesInner` + +GetAssignees returns the Assignees field if non-nil, zero value otherwise. + +### GetAssigneesOk + +`func (o *UserTasksGet200ResponseDataInner) GetAssigneesOk() (*[]UserTasksGet200ResponseDataInnerAssigneesInner, bool)` + +GetAssigneesOk returns a tuple with the Assignees field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignees + +`func (o *UserTasksGet200ResponseDataInner) SetAssignees(v []UserTasksGet200ResponseDataInnerAssigneesInner)` + +SetAssignees sets Assignees field to given value. + + +### GetWorkflowRelease + +`func (o *UserTasksGet200ResponseDataInner) GetWorkflowRelease() string` + +GetWorkflowRelease returns the WorkflowRelease field if non-nil, zero value otherwise. + +### GetWorkflowReleaseOk + +`func (o *UserTasksGet200ResponseDataInner) GetWorkflowReleaseOk() (*string, bool)` + +GetWorkflowReleaseOk returns a tuple with the WorkflowRelease field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRelease + +`func (o *UserTasksGet200ResponseDataInner) SetWorkflowRelease(v string)` + +SetWorkflowRelease sets WorkflowRelease field to given value. + + +### SetWorkflowReleaseNil + +`func (o *UserTasksGet200ResponseDataInner) SetWorkflowReleaseNil(b bool)` + + SetWorkflowReleaseNil sets the value for WorkflowRelease to be an explicit nil + +### UnsetWorkflowRelease +`func (o *UserTasksGet200ResponseDataInner) UnsetWorkflowRelease()` + +UnsetWorkflowRelease ensures that no value is present for WorkflowRelease, not even an explicit nil +### GetExpiresAt + +`func (o *UserTasksGet200ResponseDataInner) GetExpiresAt() string` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *UserTasksGet200ResponseDataInner) GetExpiresAtOk() (*string, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *UserTasksGet200ResponseDataInner) SetExpiresAt(v string)` + +SetExpiresAt sets ExpiresAt field to given value. + + +### SetExpiresAtNil + +`func (o *UserTasksGet200ResponseDataInner) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *UserTasksGet200ResponseDataInner) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetOutput + +`func (o *UserTasksGet200ResponseDataInner) GetOutput() map[string]interface{}` + +GetOutput returns the Output field if non-nil, zero value otherwise. + +### GetOutputOk + +`func (o *UserTasksGet200ResponseDataInner) GetOutputOk() (*map[string]interface{}, bool)` + +GetOutputOk returns a tuple with the Output field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutput + +`func (o *UserTasksGet200ResponseDataInner) SetOutput(v map[string]interface{})` + +SetOutput sets Output field to given value. + +### HasOutput + +`func (o *UserTasksGet200ResponseDataInner) HasOutput() bool` + +HasOutput returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksGet200ResponseDataInnerAssigneesInner.md b/internal/sdk/api/docs/UserTasksGet200ResponseDataInnerAssigneesInner.md new file mode 100644 index 0000000..82240f2 --- /dev/null +++ b/internal/sdk/api/docs/UserTasksGet200ResponseDataInnerAssigneesInner.md @@ -0,0 +1,93 @@ +# UserTasksGet200ResponseDataInnerAssigneesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **float32** | | +**Name** | **string** | | + +## Methods + +### NewUserTasksGet200ResponseDataInnerAssigneesInner + +`func NewUserTasksGet200ResponseDataInnerAssigneesInner(type_ string, id float32, name string, ) *UserTasksGet200ResponseDataInnerAssigneesInner` + +NewUserTasksGet200ResponseDataInnerAssigneesInner instantiates a new UserTasksGet200ResponseDataInnerAssigneesInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksGet200ResponseDataInnerAssigneesInnerWithDefaults + +`func NewUserTasksGet200ResponseDataInnerAssigneesInnerWithDefaults() *UserTasksGet200ResponseDataInnerAssigneesInner` + +NewUserTasksGet200ResponseDataInnerAssigneesInnerWithDefaults instantiates a new UserTasksGet200ResponseDataInnerAssigneesInner 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 + +### GetType + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetId() float32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetIdOk() (*float32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) SetId(v float32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UserTasksGet200ResponseDataInnerAssigneesInner) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksGetAssignedToUsersParameter.md b/internal/sdk/api/docs/UserTasksGetAssignedToUsersParameter.md new file mode 100644 index 0000000..71f0771 --- /dev/null +++ b/internal/sdk/api/docs/UserTasksGetAssignedToUsersParameter.md @@ -0,0 +1,30 @@ +# UserTasksGetAssignedToUsersParameter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewUserTasksGetAssignedToUsersParameter + +`func NewUserTasksGetAssignedToUsersParameter() *UserTasksGetAssignedToUsersParameter` + +NewUserTasksGetAssignedToUsersParameter instantiates a new UserTasksGetAssignedToUsersParameter object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksGetAssignedToUsersParameterWithDefaults + +`func NewUserTasksGetAssignedToUsersParameterWithDefaults() *UserTasksGetAssignedToUsersParameter` + +NewUserTasksGetAssignedToUsersParameterWithDefaults instantiates a new UserTasksGetAssignedToUsersParameter 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 + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksTaskIdCancelPatchRequest.md b/internal/sdk/api/docs/UserTasksTaskIdCancelPatchRequest.md new file mode 100644 index 0000000..623685b --- /dev/null +++ b/internal/sdk/api/docs/UserTasksTaskIdCancelPatchRequest.md @@ -0,0 +1,77 @@ +# UserTasksTaskIdCancelPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | Email of user cancelling the task. | +**Output** | Pointer to **map[string]interface{}** | Assignee-defined output required for a task to be cancelled. | [optional] + +## Methods + +### NewUserTasksTaskIdCancelPatchRequest + +`func NewUserTasksTaskIdCancelPatchRequest(email string, ) *UserTasksTaskIdCancelPatchRequest` + +NewUserTasksTaskIdCancelPatchRequest instantiates a new UserTasksTaskIdCancelPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksTaskIdCancelPatchRequestWithDefaults + +`func NewUserTasksTaskIdCancelPatchRequestWithDefaults() *UserTasksTaskIdCancelPatchRequest` + +NewUserTasksTaskIdCancelPatchRequestWithDefaults instantiates a new UserTasksTaskIdCancelPatchRequest 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 + +### GetEmail + +`func (o *UserTasksTaskIdCancelPatchRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UserTasksTaskIdCancelPatchRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UserTasksTaskIdCancelPatchRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetOutput + +`func (o *UserTasksTaskIdCancelPatchRequest) GetOutput() map[string]interface{}` + +GetOutput returns the Output field if non-nil, zero value otherwise. + +### GetOutputOk + +`func (o *UserTasksTaskIdCancelPatchRequest) GetOutputOk() (*map[string]interface{}, bool)` + +GetOutputOk returns a tuple with the Output field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutput + +`func (o *UserTasksTaskIdCancelPatchRequest) SetOutput(v map[string]interface{})` + +SetOutput sets Output field to given value. + +### HasOutput + +`func (o *UserTasksTaskIdCancelPatchRequest) HasOutput() bool` + +HasOutput returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequest.md b/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequest.md new file mode 100644 index 0000000..eeb67cb --- /dev/null +++ b/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequest.md @@ -0,0 +1,72 @@ +# UserTasksTaskIdReassignPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | Email of user reassigning the task. | +**Assignees** | [**[]UserTasksTaskIdReassignPatchRequestAssigneesInner**](UserTasksTaskIdReassignPatchRequestAssigneesInner.md) | An array of assignees the user task should be reassigned to. Can include both groups and users. | + +## Methods + +### NewUserTasksTaskIdReassignPatchRequest + +`func NewUserTasksTaskIdReassignPatchRequest(email string, assignees []UserTasksTaskIdReassignPatchRequestAssigneesInner, ) *UserTasksTaskIdReassignPatchRequest` + +NewUserTasksTaskIdReassignPatchRequest instantiates a new UserTasksTaskIdReassignPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksTaskIdReassignPatchRequestWithDefaults + +`func NewUserTasksTaskIdReassignPatchRequestWithDefaults() *UserTasksTaskIdReassignPatchRequest` + +NewUserTasksTaskIdReassignPatchRequestWithDefaults instantiates a new UserTasksTaskIdReassignPatchRequest 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 + +### GetEmail + +`func (o *UserTasksTaskIdReassignPatchRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UserTasksTaskIdReassignPatchRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UserTasksTaskIdReassignPatchRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetAssignees + +`func (o *UserTasksTaskIdReassignPatchRequest) GetAssignees() []UserTasksTaskIdReassignPatchRequestAssigneesInner` + +GetAssignees returns the Assignees field if non-nil, zero value otherwise. + +### GetAssigneesOk + +`func (o *UserTasksTaskIdReassignPatchRequest) GetAssigneesOk() (*[]UserTasksTaskIdReassignPatchRequestAssigneesInner, bool)` + +GetAssigneesOk returns a tuple with the Assignees field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignees + +`func (o *UserTasksTaskIdReassignPatchRequest) SetAssignees(v []UserTasksTaskIdReassignPatchRequestAssigneesInner)` + +SetAssignees sets Assignees field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInner.md b/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInner.md new file mode 100644 index 0000000..148f2ac --- /dev/null +++ b/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInner.md @@ -0,0 +1,72 @@ +# UserTasksTaskIdReassignPatchRequestAssigneesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **string** | | + +## Methods + +### NewUserTasksTaskIdReassignPatchRequestAssigneesInner + +`func NewUserTasksTaskIdReassignPatchRequestAssigneesInner(type_ string, id string, ) *UserTasksTaskIdReassignPatchRequestAssigneesInner` + +NewUserTasksTaskIdReassignPatchRequestAssigneesInner instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksTaskIdReassignPatchRequestAssigneesInnerWithDefaults + +`func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerWithDefaults() *UserTasksTaskIdReassignPatchRequestAssigneesInner` + +NewUserTasksTaskIdReassignPatchRequestAssigneesInnerWithDefaults instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInner 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 + +### GetType + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInner) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInner) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf.md b/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf.md new file mode 100644 index 0000000..477b7e7 --- /dev/null +++ b/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf.md @@ -0,0 +1,72 @@ +# UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **float32** | | + +## Methods + +### NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf + +`func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf(type_ string, id float32, ) *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf` + +NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOfWithDefaults + +`func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOfWithDefaults() *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf` + +NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOfWithDefaults instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf 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 + +### GetType + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) GetId() float32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) GetIdOk() (*float32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) SetId(v float32)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1.md b/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1.md new file mode 100644 index 0000000..7ca4186 --- /dev/null +++ b/internal/sdk/api/docs/UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1.md @@ -0,0 +1,72 @@ +# UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Id** | **string** | | + +## Methods + +### NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 + +`func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1(type_ string, id string, ) *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1` + +NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1WithDefaults + +`func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1WithDefaults() *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1` + +NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1WithDefaults instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 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 + +### GetType + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) SetType(v string)` + +SetType sets Type field to given value. + + +### GetId + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksTaskIdSubmitPatch200Response.md b/internal/sdk/api/docs/UserTasksTaskIdSubmitPatch200Response.md new file mode 100644 index 0000000..0f2fa12 --- /dev/null +++ b/internal/sdk/api/docs/UserTasksTaskIdSubmitPatch200Response.md @@ -0,0 +1,72 @@ +# UserTasksTaskIdSubmitPatch200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | | +**Data** | [**UserTasksTaskIdSubmitPatch200ResponseData**](UserTasksTaskIdSubmitPatch200ResponseData.md) | | + +## Methods + +### NewUserTasksTaskIdSubmitPatch200Response + +`func NewUserTasksTaskIdSubmitPatch200Response(success bool, data UserTasksTaskIdSubmitPatch200ResponseData, ) *UserTasksTaskIdSubmitPatch200Response` + +NewUserTasksTaskIdSubmitPatch200Response instantiates a new UserTasksTaskIdSubmitPatch200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksTaskIdSubmitPatch200ResponseWithDefaults + +`func NewUserTasksTaskIdSubmitPatch200ResponseWithDefaults() *UserTasksTaskIdSubmitPatch200Response` + +NewUserTasksTaskIdSubmitPatch200ResponseWithDefaults instantiates a new UserTasksTaskIdSubmitPatch200Response 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 + +### GetSuccess + +`func (o *UserTasksTaskIdSubmitPatch200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *UserTasksTaskIdSubmitPatch200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *UserTasksTaskIdSubmitPatch200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *UserTasksTaskIdSubmitPatch200Response) GetData() UserTasksTaskIdSubmitPatch200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *UserTasksTaskIdSubmitPatch200Response) GetDataOk() (*UserTasksTaskIdSubmitPatch200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *UserTasksTaskIdSubmitPatch200Response) SetData(v UserTasksTaskIdSubmitPatch200ResponseData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksTaskIdSubmitPatch200ResponseData.md b/internal/sdk/api/docs/UserTasksTaskIdSubmitPatch200ResponseData.md new file mode 100644 index 0000000..d2b75cf --- /dev/null +++ b/internal/sdk/api/docs/UserTasksTaskIdSubmitPatch200ResponseData.md @@ -0,0 +1,51 @@ +# UserTasksTaskIdSubmitPatch200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserTask** | [**UserTasksGet200ResponseDataInner**](UserTasksGet200ResponseDataInner.md) | | + +## Methods + +### NewUserTasksTaskIdSubmitPatch200ResponseData + +`func NewUserTasksTaskIdSubmitPatch200ResponseData(userTask UserTasksGet200ResponseDataInner, ) *UserTasksTaskIdSubmitPatch200ResponseData` + +NewUserTasksTaskIdSubmitPatch200ResponseData instantiates a new UserTasksTaskIdSubmitPatch200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksTaskIdSubmitPatch200ResponseDataWithDefaults + +`func NewUserTasksTaskIdSubmitPatch200ResponseDataWithDefaults() *UserTasksTaskIdSubmitPatch200ResponseData` + +NewUserTasksTaskIdSubmitPatch200ResponseDataWithDefaults instantiates a new UserTasksTaskIdSubmitPatch200ResponseData 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 + +### GetUserTask + +`func (o *UserTasksTaskIdSubmitPatch200ResponseData) GetUserTask() UserTasksGet200ResponseDataInner` + +GetUserTask returns the UserTask field if non-nil, zero value otherwise. + +### GetUserTaskOk + +`func (o *UserTasksTaskIdSubmitPatch200ResponseData) GetUserTaskOk() (*UserTasksGet200ResponseDataInner, bool)` + +GetUserTaskOk returns a tuple with the UserTask field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserTask + +`func (o *UserTasksTaskIdSubmitPatch200ResponseData) SetUserTask(v UserTasksGet200ResponseDataInner)` + +SetUserTask sets UserTask field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UserTasksTaskIdSubmitPatchRequest.md b/internal/sdk/api/docs/UserTasksTaskIdSubmitPatchRequest.md new file mode 100644 index 0000000..d6c78cb --- /dev/null +++ b/internal/sdk/api/docs/UserTasksTaskIdSubmitPatchRequest.md @@ -0,0 +1,72 @@ +# UserTasksTaskIdSubmitPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | Email of user completing the task. | +**Output** | **map[string]interface{}** | Assignee-defined output required for a task to be submitted. | + +## Methods + +### NewUserTasksTaskIdSubmitPatchRequest + +`func NewUserTasksTaskIdSubmitPatchRequest(email string, output map[string]interface{}, ) *UserTasksTaskIdSubmitPatchRequest` + +NewUserTasksTaskIdSubmitPatchRequest instantiates a new UserTasksTaskIdSubmitPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserTasksTaskIdSubmitPatchRequestWithDefaults + +`func NewUserTasksTaskIdSubmitPatchRequestWithDefaults() *UserTasksTaskIdSubmitPatchRequest` + +NewUserTasksTaskIdSubmitPatchRequestWithDefaults instantiates a new UserTasksTaskIdSubmitPatchRequest 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 + +### GetEmail + +`func (o *UserTasksTaskIdSubmitPatchRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UserTasksTaskIdSubmitPatchRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UserTasksTaskIdSubmitPatchRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetOutput + +`func (o *UserTasksTaskIdSubmitPatchRequest) GetOutput() map[string]interface{}` + +GetOutput returns the Output field if non-nil, zero value otherwise. + +### GetOutputOk + +`func (o *UserTasksTaskIdSubmitPatchRequest) GetOutputOk() (*map[string]interface{}, bool)` + +GetOutputOk returns a tuple with the Output field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutput + +`func (o *UserTasksTaskIdSubmitPatchRequest) SetOutput(v map[string]interface{})` + +SetOutput sets Output field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/UsersAPI.md b/internal/sdk/api/docs/UsersAPI.md index 73da168..dba4307 100644 --- a/internal/sdk/api/docs/UsersAPI.md +++ b/internal/sdk/api/docs/UsersAPI.md @@ -6,17 +6,18 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**UsersGet**](UsersAPI.md#UsersGet) | **Get** /users | List users [**UsersPost**](UsersAPI.md#UsersPost) | **Post** /users | Create user +[**UsersReset2faUserIdPut**](UsersAPI.md#UsersReset2faUserIdPut) | **Put** /users/reset2fa/{userId} | Resets a user's existing two factor authentication setting [**UsersUserIdDelete**](UsersAPI.md#UsersUserIdDelete) | **Delete** /users/{userId} | Delete a user -[**UsersUserIdGet**](UsersAPI.md#UsersUserIdGet) | **Get** /users/{userId} | Get user +[**UsersUserIdGet**](UsersAPI.md#UsersUserIdGet) | **Get** /users/{userId} | Get a user [**UsersUserIdPatch**](UsersAPI.md#UsersUserIdPatch) | **Patch** /users/{userId} | Update a user -[**UsersUserIdUserAttributesAttributeNameDelete**](UsersAPI.md#UsersUserIdUserAttributesAttributeNameDelete) | **Delete** /users/{userId}/user_attributes/{attributeName} | Delete a user attribute. +[**UsersUserIdUserAttributesAttributeNameDelete**](UsersAPI.md#UsersUserIdUserAttributesAttributeNameDelete) | **Delete** /users/{userId}/user_attributes/{attributeName} | Delete a user attribute [**UsersUserIdUserAttributesPost**](UsersAPI.md#UsersUserIdUserAttributesPost) | **Post** /users/{userId}/user_attributes | Add or update a user attribute ## UsersGet -> UsersGet200Response UsersGet(ctx).Execute() +> UsersGet200Response UsersGet(ctx).Email(email).FirstName(firstName).LastName(lastName).Execute() List users @@ -35,10 +36,13 @@ import ( ) func main() { + email := "email_example" // string | Email address of user (optional) + firstName := "firstName_example" // string | First name of user (optional) + lastName := "lastName_example" // string | Last name of user (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersGet(context.Background()).Execute() + resp, r, err := apiClient.UsersAPI.UsersGet(context.Background()).Email(email).FirstName(firstName).LastName(lastName).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -50,13 +54,19 @@ func main() { ### Path Parameters -This endpoint does not need any parameter. + ### Other Parameters Other parameters are passed through a pointer to a apiUsersGetRequest struct via the builder pattern +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **string** | Email address of user | + **firstName** | **string** | First name of user | + **lastName** | **string** | Last name of user | + ### Return type [**UsersGet200Response**](UsersGet200Response.md) @@ -141,6 +151,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## UsersReset2faUserIdPut + +> UsersReset2faUserIdPut(ctx, userId).Execute() + +Resets a user's existing two factor authentication setting + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + userId := "userId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.UsersAPI.UsersReset2faUserIdPut(context.Background(), userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersReset2faUserIdPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUsersReset2faUserIdPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## UsersUserIdDelete > UsersUserIdDelete(ctx, userId).Execute() @@ -213,7 +291,7 @@ Name | Type | Description | Notes > UsersUserIdGet200Response UsersUserIdGet(ctx, userId).Execute() -Get user +Get a user @@ -355,7 +433,7 @@ Name | Type | Description | Notes > UsersUserIdUserAttributesAttributeNameDelete200Response UsersUserIdUserAttributesAttributeNameDelete(ctx, userId, attributeName).Execute() -Delete a user attribute. +Delete a user attribute @@ -373,7 +451,7 @@ import ( func main() { userId := "userId_example" // string | - attributeName := "attributeName_example" // string | + attributeName := "attributeName_example" // string | The name of the user attribute to delete configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -394,7 +472,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **userId** | **string** | | -**attributeName** | **string** | | +**attributeName** | **string** | The name of the user attribute to delete | ### Other Parameters diff --git a/internal/sdk/api/docs/UsersPost200ResponseData.md b/internal/sdk/api/docs/UsersPost200ResponseData.md index 14b3226..9b42c40 100644 --- a/internal/sdk/api/docs/UsersPost200ResponseData.md +++ b/internal/sdk/api/docs/UsersPost200ResponseData.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | The id of the user | -**LegacyId** | **string** | The legacy id of the user | +**LegacyId** | **float32** | The legacy id of the user | **Email** | **string** | The email of the user | **Active** | **bool** | Whether the user is active or not | **CreatedAt** | **time.Time** | | @@ -13,12 +13,15 @@ Name | Type | Description | Notes **FirstName** | **NullableString** | The first name of the user | **LastName** | **NullableString** | The last name of the user | **Metadata** | **map[string]interface{}** | | [default to {}] +**IsAdmin** | **bool** | Whether the user is an admin or not | +**UserType** | **string** | The user type | +**TwoFactorAuthEnabled** | **bool** | Whether two factor authentication is enabled for this user | ## Methods ### NewUsersPost200ResponseData -`func NewUsersPost200ResponseData(id string, legacyId string, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}, ) *UsersPost200ResponseData` +`func NewUsersPost200ResponseData(id string, legacyId float32, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}, isAdmin bool, userType string, twoFactorAuthEnabled bool, ) *UsersPost200ResponseData` NewUsersPost200ResponseData instantiates a new UsersPost200ResponseData object This constructor will assign default values to properties that have it defined, @@ -55,20 +58,20 @@ SetId sets Id field to given value. ### GetLegacyId -`func (o *UsersPost200ResponseData) GetLegacyId() string` +`func (o *UsersPost200ResponseData) GetLegacyId() float32` GetLegacyId returns the LegacyId field if non-nil, zero value otherwise. ### GetLegacyIdOk -`func (o *UsersPost200ResponseData) GetLegacyIdOk() (*string, bool)` +`func (o *UsersPost200ResponseData) GetLegacyIdOk() (*float32, bool)` GetLegacyIdOk returns a tuple with the LegacyId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLegacyId -`func (o *UsersPost200ResponseData) SetLegacyId(v string)` +`func (o *UsersPost200ResponseData) SetLegacyId(v float32)` SetLegacyId sets LegacyId field to given value. @@ -243,6 +246,66 @@ and a boolean to check if the value has been set. SetMetadata sets Metadata field to given value. +### GetIsAdmin + +`func (o *UsersPost200ResponseData) GetIsAdmin() bool` + +GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise. + +### GetIsAdminOk + +`func (o *UsersPost200ResponseData) GetIsAdminOk() (*bool, bool)` + +GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsAdmin + +`func (o *UsersPost200ResponseData) SetIsAdmin(v bool)` + +SetIsAdmin sets IsAdmin field to given value. + + +### GetUserType + +`func (o *UsersPost200ResponseData) GetUserType() string` + +GetUserType returns the UserType field if non-nil, zero value otherwise. + +### GetUserTypeOk + +`func (o *UsersPost200ResponseData) GetUserTypeOk() (*string, bool)` + +GetUserTypeOk returns a tuple with the UserType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserType + +`func (o *UsersPost200ResponseData) SetUserType(v string)` + +SetUserType sets UserType field to given value. + + +### GetTwoFactorAuthEnabled + +`func (o *UsersPost200ResponseData) GetTwoFactorAuthEnabled() bool` + +GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field if non-nil, zero value otherwise. + +### GetTwoFactorAuthEnabledOk + +`func (o *UsersPost200ResponseData) GetTwoFactorAuthEnabledOk() (*bool, bool)` + +GetTwoFactorAuthEnabledOk returns a tuple with the TwoFactorAuthEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwoFactorAuthEnabled + +`func (o *UsersPost200ResponseData) SetTwoFactorAuthEnabled(v bool)` + +SetTwoFactorAuthEnabled sets TwoFactorAuthEnabled field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/UsersPostRequest.md b/internal/sdk/api/docs/UsersPostRequest.md index ef5092a..d35142f 100644 --- a/internal/sdk/api/docs/UsersPostRequest.md +++ b/internal/sdk/api/docs/UsersPostRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **LastName** | **string** | The last name of the user | **Active** | Pointer to **bool** | Whether the user is enabled or not | [optional] [default to true] **Metadata** | Pointer to **map[string]interface{}** | | [optional] [default to {}] +**UserType** | Pointer to **string** | The user type | [optional] ## Methods @@ -139,6 +140,31 @@ SetMetadata sets Metadata field to given value. HasMetadata returns a boolean if a field has been set. +### GetUserType + +`func (o *UsersPostRequest) GetUserType() string` + +GetUserType returns the UserType field if non-nil, zero value otherwise. + +### GetUserTypeOk + +`func (o *UsersPostRequest) GetUserTypeOk() (*string, bool)` + +GetUserTypeOk returns a tuple with the UserType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserType + +`func (o *UsersPostRequest) SetUserType(v string)` + +SetUserType sets UserType field to given value. + +### HasUserType + +`func (o *UsersPostRequest) HasUserType() bool` + +HasUserType returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/UsersUserIdGet200ResponseData.md b/internal/sdk/api/docs/UsersUserIdGet200ResponseData.md index ebc41ed..8c72683 100644 --- a/internal/sdk/api/docs/UsersUserIdGet200ResponseData.md +++ b/internal/sdk/api/docs/UsersUserIdGet200ResponseData.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | The id of the user | -**LegacyId** | **string** | The legacy id of the user | +**LegacyId** | **float32** | The legacy id of the user | **Email** | **string** | The email of the user | **Active** | **bool** | Whether the user is active or not | **CreatedAt** | **time.Time** | | @@ -13,12 +13,15 @@ Name | Type | Description | Notes **FirstName** | **NullableString** | The first name of the user | **LastName** | **NullableString** | The last name of the user | **Metadata** | **map[string]interface{}** | | [default to {}] +**IsAdmin** | **bool** | Whether the user is an admin or not | +**UserType** | **string** | The user type | +**TwoFactorAuthEnabled** | **bool** | Whether two factor authentication is enabled for this user | ## Methods ### NewUsersUserIdGet200ResponseData -`func NewUsersUserIdGet200ResponseData(id string, legacyId string, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}, ) *UsersUserIdGet200ResponseData` +`func NewUsersUserIdGet200ResponseData(id string, legacyId float32, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}, isAdmin bool, userType string, twoFactorAuthEnabled bool, ) *UsersUserIdGet200ResponseData` NewUsersUserIdGet200ResponseData instantiates a new UsersUserIdGet200ResponseData object This constructor will assign default values to properties that have it defined, @@ -55,20 +58,20 @@ SetId sets Id field to given value. ### GetLegacyId -`func (o *UsersUserIdGet200ResponseData) GetLegacyId() string` +`func (o *UsersUserIdGet200ResponseData) GetLegacyId() float32` GetLegacyId returns the LegacyId field if non-nil, zero value otherwise. ### GetLegacyIdOk -`func (o *UsersUserIdGet200ResponseData) GetLegacyIdOk() (*string, bool)` +`func (o *UsersUserIdGet200ResponseData) GetLegacyIdOk() (*float32, bool)` GetLegacyIdOk returns a tuple with the LegacyId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLegacyId -`func (o *UsersUserIdGet200ResponseData) SetLegacyId(v string)` +`func (o *UsersUserIdGet200ResponseData) SetLegacyId(v float32)` SetLegacyId sets LegacyId field to given value. @@ -243,6 +246,66 @@ and a boolean to check if the value has been set. SetMetadata sets Metadata field to given value. +### GetIsAdmin + +`func (o *UsersUserIdGet200ResponseData) GetIsAdmin() bool` + +GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise. + +### GetIsAdminOk + +`func (o *UsersUserIdGet200ResponseData) GetIsAdminOk() (*bool, bool)` + +GetIsAdminOk returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsAdmin + +`func (o *UsersUserIdGet200ResponseData) SetIsAdmin(v bool)` + +SetIsAdmin sets IsAdmin field to given value. + + +### GetUserType + +`func (o *UsersUserIdGet200ResponseData) GetUserType() string` + +GetUserType returns the UserType field if non-nil, zero value otherwise. + +### GetUserTypeOk + +`func (o *UsersUserIdGet200ResponseData) GetUserTypeOk() (*string, bool)` + +GetUserTypeOk returns a tuple with the UserType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserType + +`func (o *UsersUserIdGet200ResponseData) SetUserType(v string)` + +SetUserType sets UserType field to given value. + + +### GetTwoFactorAuthEnabled + +`func (o *UsersUserIdGet200ResponseData) GetTwoFactorAuthEnabled() bool` + +GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field if non-nil, zero value otherwise. + +### GetTwoFactorAuthEnabledOk + +`func (o *UsersUserIdGet200ResponseData) GetTwoFactorAuthEnabledOk() (*bool, bool)` + +GetTwoFactorAuthEnabledOk returns a tuple with the TwoFactorAuthEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwoFactorAuthEnabled + +`func (o *UsersUserIdGet200ResponseData) SetTwoFactorAuthEnabled(v bool)` + +SetTwoFactorAuthEnabled sets TwoFactorAuthEnabled field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/internal/sdk/api/docs/Workflow.md b/internal/sdk/api/docs/Workflow.md new file mode 100644 index 0000000..6da9854 --- /dev/null +++ b/internal/sdk/api/docs/Workflow.md @@ -0,0 +1,301 @@ +# Workflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The Workflow ID. | +**Name** | **string** | The name of the Workflow | +**Description** | **NullableString** | The description of the Workflow | +**Crontab** | **NullableString** | The cron tab of the Workflow | +**Timezone** | **NullableString** | The timezone of the Workflow | +**IsEnabled** | **bool** | Whether the Workflow is enabled | +**FolderId** | **string** | The folder ID of the Workflow | +**Protected** | **bool** | Whether the Workflow is protected | +**CreatedBy** | **NullableFloat32** | The user ID of the creator of the Workflow | +**CreatedAt** | **time.Time** | | +**UpdatedAt** | **time.Time** | | + +## Methods + +### NewWorkflow + +`func NewWorkflow(id string, name string, description NullableString, crontab NullableString, timezone NullableString, isEnabled bool, folderId string, protected bool, createdBy NullableFloat32, createdAt time.Time, updatedAt time.Time, ) *Workflow` + +NewWorkflow instantiates a new Workflow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowWithDefaults + +`func NewWorkflowWithDefaults() *Workflow` + +NewWorkflowWithDefaults instantiates a new Workflow 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 + +### GetId + +`func (o *Workflow) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Workflow) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Workflow) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *Workflow) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Workflow) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Workflow) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *Workflow) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Workflow) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Workflow) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *Workflow) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *Workflow) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetCrontab + +`func (o *Workflow) GetCrontab() string` + +GetCrontab returns the Crontab field if non-nil, zero value otherwise. + +### GetCrontabOk + +`func (o *Workflow) GetCrontabOk() (*string, bool)` + +GetCrontabOk returns a tuple with the Crontab field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCrontab + +`func (o *Workflow) SetCrontab(v string)` + +SetCrontab sets Crontab field to given value. + + +### SetCrontabNil + +`func (o *Workflow) SetCrontabNil(b bool)` + + SetCrontabNil sets the value for Crontab to be an explicit nil + +### UnsetCrontab +`func (o *Workflow) UnsetCrontab()` + +UnsetCrontab ensures that no value is present for Crontab, not even an explicit nil +### GetTimezone + +`func (o *Workflow) GetTimezone() string` + +GetTimezone returns the Timezone field if non-nil, zero value otherwise. + +### GetTimezoneOk + +`func (o *Workflow) GetTimezoneOk() (*string, bool)` + +GetTimezoneOk returns a tuple with the Timezone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimezone + +`func (o *Workflow) SetTimezone(v string)` + +SetTimezone sets Timezone field to given value. + + +### SetTimezoneNil + +`func (o *Workflow) SetTimezoneNil(b bool)` + + SetTimezoneNil sets the value for Timezone to be an explicit nil + +### UnsetTimezone +`func (o *Workflow) UnsetTimezone()` + +UnsetTimezone ensures that no value is present for Timezone, not even an explicit nil +### GetIsEnabled + +`func (o *Workflow) GetIsEnabled() bool` + +GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise. + +### GetIsEnabledOk + +`func (o *Workflow) GetIsEnabledOk() (*bool, bool)` + +GetIsEnabledOk returns a tuple with the IsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEnabled + +`func (o *Workflow) SetIsEnabled(v bool)` + +SetIsEnabled sets IsEnabled field to given value. + + +### GetFolderId + +`func (o *Workflow) GetFolderId() string` + +GetFolderId returns the FolderId field if non-nil, zero value otherwise. + +### GetFolderIdOk + +`func (o *Workflow) GetFolderIdOk() (*string, bool)` + +GetFolderIdOk returns a tuple with the FolderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFolderId + +`func (o *Workflow) SetFolderId(v string)` + +SetFolderId sets FolderId field to given value. + + +### GetProtected + +`func (o *Workflow) GetProtected() bool` + +GetProtected returns the Protected field if non-nil, zero value otherwise. + +### GetProtectedOk + +`func (o *Workflow) GetProtectedOk() (*bool, bool)` + +GetProtectedOk returns a tuple with the Protected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtected + +`func (o *Workflow) SetProtected(v bool)` + +SetProtected sets Protected field to given value. + + +### GetCreatedBy + +`func (o *Workflow) GetCreatedBy() float32` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *Workflow) GetCreatedByOk() (*float32, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *Workflow) SetCreatedBy(v float32)` + +SetCreatedBy sets CreatedBy field to given value. + + +### SetCreatedByNil + +`func (o *Workflow) SetCreatedByNil(b bool)` + + SetCreatedByNil sets the value for CreatedBy to be an explicit nil + +### UnsetCreatedBy +`func (o *Workflow) UnsetCreatedBy()` + +UnsetCreatedBy ensures that no value is present for CreatedBy, not even an explicit nil +### GetCreatedAt + +`func (o *Workflow) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Workflow) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Workflow) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *Workflow) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Workflow) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Workflow) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/WorkflowRunAPI.md b/internal/sdk/api/docs/WorkflowRunAPI.md new file mode 100644 index 0000000..271e2a1 --- /dev/null +++ b/internal/sdk/api/docs/WorkflowRunAPI.md @@ -0,0 +1,79 @@ +# \WorkflowRunAPI + +All URIs are relative to *http://.* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**WorkflowRunIdGet**](WorkflowRunAPI.md#WorkflowRunIdGet) | **Get** /workflow_run/{id} | Get Workflow Run Details + + + +## WorkflowRunIdGet + +> WorkflowRunIdGet200Response WorkflowRunIdGet(ctx, id).Execute() + +Get Workflow Run Details + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the workflow run. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowRunAPI.WorkflowRunIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowRunAPI.WorkflowRunIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowRunIdGet`: WorkflowRunIdGet200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowRunAPI.WorkflowRunIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of the workflow run. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowRunIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**WorkflowRunIdGet200Response**](WorkflowRunIdGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/WorkflowRunIdGet200Response.md b/internal/sdk/api/docs/WorkflowRunIdGet200Response.md new file mode 100644 index 0000000..f929336 --- /dev/null +++ b/internal/sdk/api/docs/WorkflowRunIdGet200Response.md @@ -0,0 +1,182 @@ +# WorkflowRunIdGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The status of the workflow run. | +**WorkflowId** | **string** | The ID of the workflow. | +**Id** | **string** | The ID of the workflow run. | +**TriggerType** | **string** | The type of trigger that started the workflow. | +**TriggerId** | **string** | The ID of the trigger. | +**CreatedAt** | **string** | The creation date time of the workflow run. | +**UserTasks** | Pointer to [**[]UserTasksGet200ResponseDataInner**](UserTasksGet200ResponseDataInner.md) | List of user tasks of the workfow run. | [optional] + +## Methods + +### NewWorkflowRunIdGet200Response + +`func NewWorkflowRunIdGet200Response(status string, workflowId string, id string, triggerType string, triggerId string, createdAt string, ) *WorkflowRunIdGet200Response` + +NewWorkflowRunIdGet200Response instantiates a new WorkflowRunIdGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowRunIdGet200ResponseWithDefaults + +`func NewWorkflowRunIdGet200ResponseWithDefaults() *WorkflowRunIdGet200Response` + +NewWorkflowRunIdGet200ResponseWithDefaults instantiates a new WorkflowRunIdGet200Response 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 + +### GetStatus + +`func (o *WorkflowRunIdGet200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *WorkflowRunIdGet200Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *WorkflowRunIdGet200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetWorkflowId + +`func (o *WorkflowRunIdGet200Response) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *WorkflowRunIdGet200Response) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *WorkflowRunIdGet200Response) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + + +### GetId + +`func (o *WorkflowRunIdGet200Response) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowRunIdGet200Response) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowRunIdGet200Response) SetId(v string)` + +SetId sets Id field to given value. + + +### GetTriggerType + +`func (o *WorkflowRunIdGet200Response) GetTriggerType() string` + +GetTriggerType returns the TriggerType field if non-nil, zero value otherwise. + +### GetTriggerTypeOk + +`func (o *WorkflowRunIdGet200Response) GetTriggerTypeOk() (*string, bool)` + +GetTriggerTypeOk returns a tuple with the TriggerType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerType + +`func (o *WorkflowRunIdGet200Response) SetTriggerType(v string)` + +SetTriggerType sets TriggerType field to given value. + + +### GetTriggerId + +`func (o *WorkflowRunIdGet200Response) GetTriggerId() string` + +GetTriggerId returns the TriggerId field if non-nil, zero value otherwise. + +### GetTriggerIdOk + +`func (o *WorkflowRunIdGet200Response) GetTriggerIdOk() (*string, bool)` + +GetTriggerIdOk returns a tuple with the TriggerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerId + +`func (o *WorkflowRunIdGet200Response) SetTriggerId(v string)` + +SetTriggerId sets TriggerId field to given value. + + +### GetCreatedAt + +`func (o *WorkflowRunIdGet200Response) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *WorkflowRunIdGet200Response) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *WorkflowRunIdGet200Response) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUserTasks + +`func (o *WorkflowRunIdGet200Response) GetUserTasks() []UserTasksGet200ResponseDataInner` + +GetUserTasks returns the UserTasks field if non-nil, zero value otherwise. + +### GetUserTasksOk + +`func (o *WorkflowRunIdGet200Response) GetUserTasksOk() (*[]UserTasksGet200ResponseDataInner, bool)` + +GetUserTasksOk returns a tuple with the UserTasks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserTasks + +`func (o *WorkflowRunIdGet200Response) SetUserTasks(v []UserTasksGet200ResponseDataInner)` + +SetUserTasks sets UserTasks field to given value. + +### HasUserTasks + +`func (o *WorkflowRunIdGet200Response) HasUserTasks() bool` + +HasUserTasks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/WorkflowRunWithUserTask.md b/internal/sdk/api/docs/WorkflowRunWithUserTask.md new file mode 100644 index 0000000..adefae5 --- /dev/null +++ b/internal/sdk/api/docs/WorkflowRunWithUserTask.md @@ -0,0 +1,182 @@ +# WorkflowRunWithUserTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The status of the workflow run. | +**WorkflowId** | **string** | The ID of the workflow. | +**Id** | **string** | The ID of the workflow run. | +**TriggerType** | **string** | The type of trigger that started the workflow. | +**TriggerId** | **string** | The ID of the trigger. | +**CreatedAt** | **string** | The creation date time of the workflow run. | +**UserTasks** | Pointer to [**[]UserTasksGet200ResponseDataInner**](UserTasksGet200ResponseDataInner.md) | List of user tasks of the workfow run. | [optional] + +## Methods + +### NewWorkflowRunWithUserTask + +`func NewWorkflowRunWithUserTask(status string, workflowId string, id string, triggerType string, triggerId string, createdAt string, ) *WorkflowRunWithUserTask` + +NewWorkflowRunWithUserTask instantiates a new WorkflowRunWithUserTask object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowRunWithUserTaskWithDefaults + +`func NewWorkflowRunWithUserTaskWithDefaults() *WorkflowRunWithUserTask` + +NewWorkflowRunWithUserTaskWithDefaults instantiates a new WorkflowRunWithUserTask 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 + +### GetStatus + +`func (o *WorkflowRunWithUserTask) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *WorkflowRunWithUserTask) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *WorkflowRunWithUserTask) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetWorkflowId + +`func (o *WorkflowRunWithUserTask) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *WorkflowRunWithUserTask) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *WorkflowRunWithUserTask) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + + +### GetId + +`func (o *WorkflowRunWithUserTask) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowRunWithUserTask) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowRunWithUserTask) SetId(v string)` + +SetId sets Id field to given value. + + +### GetTriggerType + +`func (o *WorkflowRunWithUserTask) GetTriggerType() string` + +GetTriggerType returns the TriggerType field if non-nil, zero value otherwise. + +### GetTriggerTypeOk + +`func (o *WorkflowRunWithUserTask) GetTriggerTypeOk() (*string, bool)` + +GetTriggerTypeOk returns a tuple with the TriggerType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerType + +`func (o *WorkflowRunWithUserTask) SetTriggerType(v string)` + +SetTriggerType sets TriggerType field to given value. + + +### GetTriggerId + +`func (o *WorkflowRunWithUserTask) GetTriggerId() string` + +GetTriggerId returns the TriggerId field if non-nil, zero value otherwise. + +### GetTriggerIdOk + +`func (o *WorkflowRunWithUserTask) GetTriggerIdOk() (*string, bool)` + +GetTriggerIdOk returns a tuple with the TriggerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerId + +`func (o *WorkflowRunWithUserTask) SetTriggerId(v string)` + +SetTriggerId sets TriggerId field to given value. + + +### GetCreatedAt + +`func (o *WorkflowRunWithUserTask) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *WorkflowRunWithUserTask) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *WorkflowRunWithUserTask) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUserTasks + +`func (o *WorkflowRunWithUserTask) GetUserTasks() []UserTasksGet200ResponseDataInner` + +GetUserTasks returns the UserTasks field if non-nil, zero value otherwise. + +### GetUserTasksOk + +`func (o *WorkflowRunWithUserTask) GetUserTasksOk() (*[]UserTasksGet200ResponseDataInner, bool)` + +GetUserTasksOk returns a tuple with the UserTasks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserTasks + +`func (o *WorkflowRunWithUserTask) SetUserTasks(v []UserTasksGet200ResponseDataInner)` + +SetUserTasks sets UserTasks field to given value. + +### HasUserTasks + +`func (o *WorkflowRunWithUserTask) HasUserTasks() bool` + +HasUserTasks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/WorkflowsAPI.md b/internal/sdk/api/docs/WorkflowsAPI.md new file mode 100644 index 0000000..f26d1ae --- /dev/null +++ b/internal/sdk/api/docs/WorkflowsAPI.md @@ -0,0 +1,141 @@ +# \WorkflowsAPI + +All URIs are relative to *http://.* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**WorkflowsGet**](WorkflowsAPI.md#WorkflowsGet) | **Get** /workflows | Get all workflows +[**WorkflowsWorkflowIdGet**](WorkflowsAPI.md#WorkflowsWorkflowIdGet) | **Get** /workflows/{workflowId} | Get a workflow + + + +## WorkflowsGet + +> WorkflowsGet200Response WorkflowsGet(ctx).Execute() + +Get all workflows + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.WorkflowsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.WorkflowsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowsGet`: WorkflowsGet200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.WorkflowsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowsGetRequest struct via the builder pattern + + +### Return type + +[**WorkflowsGet200Response**](WorkflowsGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowsWorkflowIdGet + +> WorkflowsWorkflowIdGet200Response WorkflowsWorkflowIdGet(ctx, workflowId).Execute() + +Get a workflow + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + workflowId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow ID. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowsAPI.WorkflowsWorkflowIdGet(context.Background(), workflowId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.WorkflowsWorkflowIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowsWorkflowIdGet`: WorkflowsWorkflowIdGet200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.WorkflowsWorkflowIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workflowId** | **string** | The Workflow ID. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowsWorkflowIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**WorkflowsWorkflowIdGet200Response**](WorkflowsWorkflowIdGet200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/internal/sdk/api/docs/WorkflowsGet200Response.md b/internal/sdk/api/docs/WorkflowsGet200Response.md new file mode 100644 index 0000000..91987aa --- /dev/null +++ b/internal/sdk/api/docs/WorkflowsGet200Response.md @@ -0,0 +1,145 @@ +# WorkflowsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**[]WorkflowsGet200ResponseDataInner**](WorkflowsGet200ResponseDataInner.md) | An array of requested items | +**TotalCount** | **float32** | Total number of items in the response | +**NextToken** | **NullableString** | A token to retrieve the next page of items in the collection | +**HasMore** | **bool** | Whether there are more items in the collection | + +## Methods + +### NewWorkflowsGet200Response + +`func NewWorkflowsGet200Response(success bool, data []WorkflowsGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool, ) *WorkflowsGet200Response` + +NewWorkflowsGet200Response instantiates a new WorkflowsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsGet200ResponseWithDefaults + +`func NewWorkflowsGet200ResponseWithDefaults() *WorkflowsGet200Response` + +NewWorkflowsGet200ResponseWithDefaults instantiates a new WorkflowsGet200Response 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 + +### GetSuccess + +`func (o *WorkflowsGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *WorkflowsGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *WorkflowsGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *WorkflowsGet200Response) GetData() []WorkflowsGet200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *WorkflowsGet200Response) GetDataOk() (*[]WorkflowsGet200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *WorkflowsGet200Response) SetData(v []WorkflowsGet200ResponseDataInner)` + +SetData sets Data field to given value. + + +### GetTotalCount + +`func (o *WorkflowsGet200Response) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *WorkflowsGet200Response) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *WorkflowsGet200Response) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + + +### GetNextToken + +`func (o *WorkflowsGet200Response) GetNextToken() string` + +GetNextToken returns the NextToken field if non-nil, zero value otherwise. + +### GetNextTokenOk + +`func (o *WorkflowsGet200Response) GetNextTokenOk() (*string, bool)` + +GetNextTokenOk returns a tuple with the NextToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextToken + +`func (o *WorkflowsGet200Response) SetNextToken(v string)` + +SetNextToken sets NextToken field to given value. + + +### SetNextTokenNil + +`func (o *WorkflowsGet200Response) SetNextTokenNil(b bool)` + + SetNextTokenNil sets the value for NextToken to be an explicit nil + +### UnsetNextToken +`func (o *WorkflowsGet200Response) UnsetNextToken()` + +UnsetNextToken ensures that no value is present for NextToken, not even an explicit nil +### GetHasMore + +`func (o *WorkflowsGet200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *WorkflowsGet200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *WorkflowsGet200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/WorkflowsGet200ResponseDataInner.md b/internal/sdk/api/docs/WorkflowsGet200ResponseDataInner.md new file mode 100644 index 0000000..94342ac --- /dev/null +++ b/internal/sdk/api/docs/WorkflowsGet200ResponseDataInner.md @@ -0,0 +1,301 @@ +# WorkflowsGet200ResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The Workflow ID. | +**Name** | **string** | The name of the Workflow | +**Description** | **NullableString** | The description of the Workflow | +**Crontab** | **NullableString** | The cron tab of the Workflow | +**Timezone** | **NullableString** | The timezone of the Workflow | +**IsEnabled** | **bool** | Whether the Workflow is enabled | +**FolderId** | **string** | The folder ID of the Workflow | +**Protected** | **bool** | Whether the Workflow is protected | +**CreatedBy** | **NullableFloat32** | The user ID of the creator of the Workflow | +**CreatedAt** | **time.Time** | | +**UpdatedAt** | **time.Time** | | + +## Methods + +### NewWorkflowsGet200ResponseDataInner + +`func NewWorkflowsGet200ResponseDataInner(id string, name string, description NullableString, crontab NullableString, timezone NullableString, isEnabled bool, folderId string, protected bool, createdBy NullableFloat32, createdAt time.Time, updatedAt time.Time, ) *WorkflowsGet200ResponseDataInner` + +NewWorkflowsGet200ResponseDataInner instantiates a new WorkflowsGet200ResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsGet200ResponseDataInnerWithDefaults + +`func NewWorkflowsGet200ResponseDataInnerWithDefaults() *WorkflowsGet200ResponseDataInner` + +NewWorkflowsGet200ResponseDataInnerWithDefaults instantiates a new WorkflowsGet200ResponseDataInner 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 + +### GetId + +`func (o *WorkflowsGet200ResponseDataInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowsGet200ResponseDataInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowsGet200ResponseDataInner) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *WorkflowsGet200ResponseDataInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WorkflowsGet200ResponseDataInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *WorkflowsGet200ResponseDataInner) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *WorkflowsGet200ResponseDataInner) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WorkflowsGet200ResponseDataInner) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *WorkflowsGet200ResponseDataInner) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### SetDescriptionNil + +`func (o *WorkflowsGet200ResponseDataInner) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *WorkflowsGet200ResponseDataInner) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetCrontab + +`func (o *WorkflowsGet200ResponseDataInner) GetCrontab() string` + +GetCrontab returns the Crontab field if non-nil, zero value otherwise. + +### GetCrontabOk + +`func (o *WorkflowsGet200ResponseDataInner) GetCrontabOk() (*string, bool)` + +GetCrontabOk returns a tuple with the Crontab field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCrontab + +`func (o *WorkflowsGet200ResponseDataInner) SetCrontab(v string)` + +SetCrontab sets Crontab field to given value. + + +### SetCrontabNil + +`func (o *WorkflowsGet200ResponseDataInner) SetCrontabNil(b bool)` + + SetCrontabNil sets the value for Crontab to be an explicit nil + +### UnsetCrontab +`func (o *WorkflowsGet200ResponseDataInner) UnsetCrontab()` + +UnsetCrontab ensures that no value is present for Crontab, not even an explicit nil +### GetTimezone + +`func (o *WorkflowsGet200ResponseDataInner) GetTimezone() string` + +GetTimezone returns the Timezone field if non-nil, zero value otherwise. + +### GetTimezoneOk + +`func (o *WorkflowsGet200ResponseDataInner) GetTimezoneOk() (*string, bool)` + +GetTimezoneOk returns a tuple with the Timezone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimezone + +`func (o *WorkflowsGet200ResponseDataInner) SetTimezone(v string)` + +SetTimezone sets Timezone field to given value. + + +### SetTimezoneNil + +`func (o *WorkflowsGet200ResponseDataInner) SetTimezoneNil(b bool)` + + SetTimezoneNil sets the value for Timezone to be an explicit nil + +### UnsetTimezone +`func (o *WorkflowsGet200ResponseDataInner) UnsetTimezone()` + +UnsetTimezone ensures that no value is present for Timezone, not even an explicit nil +### GetIsEnabled + +`func (o *WorkflowsGet200ResponseDataInner) GetIsEnabled() bool` + +GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise. + +### GetIsEnabledOk + +`func (o *WorkflowsGet200ResponseDataInner) GetIsEnabledOk() (*bool, bool)` + +GetIsEnabledOk returns a tuple with the IsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEnabled + +`func (o *WorkflowsGet200ResponseDataInner) SetIsEnabled(v bool)` + +SetIsEnabled sets IsEnabled field to given value. + + +### GetFolderId + +`func (o *WorkflowsGet200ResponseDataInner) GetFolderId() string` + +GetFolderId returns the FolderId field if non-nil, zero value otherwise. + +### GetFolderIdOk + +`func (o *WorkflowsGet200ResponseDataInner) GetFolderIdOk() (*string, bool)` + +GetFolderIdOk returns a tuple with the FolderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFolderId + +`func (o *WorkflowsGet200ResponseDataInner) SetFolderId(v string)` + +SetFolderId sets FolderId field to given value. + + +### GetProtected + +`func (o *WorkflowsGet200ResponseDataInner) GetProtected() bool` + +GetProtected returns the Protected field if non-nil, zero value otherwise. + +### GetProtectedOk + +`func (o *WorkflowsGet200ResponseDataInner) GetProtectedOk() (*bool, bool)` + +GetProtectedOk returns a tuple with the Protected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtected + +`func (o *WorkflowsGet200ResponseDataInner) SetProtected(v bool)` + +SetProtected sets Protected field to given value. + + +### GetCreatedBy + +`func (o *WorkflowsGet200ResponseDataInner) GetCreatedBy() float32` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *WorkflowsGet200ResponseDataInner) GetCreatedByOk() (*float32, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *WorkflowsGet200ResponseDataInner) SetCreatedBy(v float32)` + +SetCreatedBy sets CreatedBy field to given value. + + +### SetCreatedByNil + +`func (o *WorkflowsGet200ResponseDataInner) SetCreatedByNil(b bool)` + + SetCreatedByNil sets the value for CreatedBy to be an explicit nil + +### UnsetCreatedBy +`func (o *WorkflowsGet200ResponseDataInner) UnsetCreatedBy()` + +UnsetCreatedBy ensures that no value is present for CreatedBy, not even an explicit nil +### GetCreatedAt + +`func (o *WorkflowsGet200ResponseDataInner) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *WorkflowsGet200ResponseDataInner) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *WorkflowsGet200ResponseDataInner) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *WorkflowsGet200ResponseDataInner) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *WorkflowsGet200ResponseDataInner) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *WorkflowsGet200ResponseDataInner) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/WorkflowsGet403Response.md b/internal/sdk/api/docs/WorkflowsGet403Response.md new file mode 100644 index 0000000..2c38e2c --- /dev/null +++ b/internal/sdk/api/docs/WorkflowsGet403Response.md @@ -0,0 +1,72 @@ +# WorkflowsGet403Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | | +**Message** | **string** | | + +## Methods + +### NewWorkflowsGet403Response + +`func NewWorkflowsGet403Response(success bool, message string, ) *WorkflowsGet403Response` + +NewWorkflowsGet403Response instantiates a new WorkflowsGet403Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsGet403ResponseWithDefaults + +`func NewWorkflowsGet403ResponseWithDefaults() *WorkflowsGet403Response` + +NewWorkflowsGet403ResponseWithDefaults instantiates a new WorkflowsGet403Response 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 + +### GetSuccess + +`func (o *WorkflowsGet403Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *WorkflowsGet403Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *WorkflowsGet403Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetMessage + +`func (o *WorkflowsGet403Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *WorkflowsGet403Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *WorkflowsGet403Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/docs/WorkflowsWorkflowIdGet200Response.md b/internal/sdk/api/docs/WorkflowsWorkflowIdGet200Response.md new file mode 100644 index 0000000..a7f0a8e --- /dev/null +++ b/internal/sdk/api/docs/WorkflowsWorkflowIdGet200Response.md @@ -0,0 +1,72 @@ +# WorkflowsWorkflowIdGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | **bool** | API request succeeded | +**Data** | [**WorkflowsGet200ResponseDataInner**](WorkflowsGet200ResponseDataInner.md) | | + +## Methods + +### NewWorkflowsWorkflowIdGet200Response + +`func NewWorkflowsWorkflowIdGet200Response(success bool, data WorkflowsGet200ResponseDataInner, ) *WorkflowsWorkflowIdGet200Response` + +NewWorkflowsWorkflowIdGet200Response instantiates a new WorkflowsWorkflowIdGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsWorkflowIdGet200ResponseWithDefaults + +`func NewWorkflowsWorkflowIdGet200ResponseWithDefaults() *WorkflowsWorkflowIdGet200Response` + +NewWorkflowsWorkflowIdGet200ResponseWithDefaults instantiates a new WorkflowsWorkflowIdGet200Response 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 + +### GetSuccess + +`func (o *WorkflowsWorkflowIdGet200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *WorkflowsWorkflowIdGet200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *WorkflowsWorkflowIdGet200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + + +### GetData + +`func (o *WorkflowsWorkflowIdGet200Response) GetData() WorkflowsGet200ResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *WorkflowsWorkflowIdGet200Response) GetDataOk() (*WorkflowsGet200ResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *WorkflowsWorkflowIdGet200Response) SetData(v WorkflowsGet200ResponseDataInner)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/internal/sdk/api/model__access_requests__access_request_id__get_200_response.go b/internal/sdk/api/model__access_requests__access_request_id__get_200_response.go index 7956c77..5e1e565 100644 --- a/internal/sdk/api/model__access_requests__access_request_id__get_200_response.go +++ b/internal/sdk/api/model__access_requests__access_request_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__access_requests__access_request_id__patch_200_response.go b/internal/sdk/api/model__access_requests__access_request_id__patch_200_response.go index 25d900b..41905ad 100644 --- a/internal/sdk/api/model__access_requests__access_request_id__patch_200_response.go +++ b/internal/sdk/api/model__access_requests__access_request_id__patch_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__access_requests__access_request_id__patch_request.go b/internal/sdk/api/model__access_requests__access_request_id__patch_request.go index 1ac83e8..e50487a 100644 --- a/internal/sdk/api/model__access_requests__access_request_id__patch_request.go +++ b/internal/sdk/api/model__access_requests__access_request_id__patch_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,7 @@ var _ MappedNullable = &AccessRequestsAccessRequestIdPatchRequest{} // AccessRequestsAccessRequestIdPatchRequest The body of a request to update an access request's status. type AccessRequestsAccessRequestIdPatchRequest struct { // A list of operations to apply to the access request. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. - Operations []UsersUserIdPatchRequestOperationsInnerAnyOf2 `json:"operations"` + Operations []ReplaceOperation `json:"operations"` } type _AccessRequestsAccessRequestIdPatchRequest AccessRequestsAccessRequestIdPatchRequest @@ -31,7 +31,7 @@ type _AccessRequestsAccessRequestIdPatchRequest AccessRequestsAccessRequestIdPat // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAccessRequestsAccessRequestIdPatchRequest(operations []UsersUserIdPatchRequestOperationsInnerAnyOf2) *AccessRequestsAccessRequestIdPatchRequest { +func NewAccessRequestsAccessRequestIdPatchRequest(operations []ReplaceOperation) *AccessRequestsAccessRequestIdPatchRequest { this := AccessRequestsAccessRequestIdPatchRequest{} this.Operations = operations return &this @@ -46,9 +46,9 @@ func NewAccessRequestsAccessRequestIdPatchRequestWithDefaults() *AccessRequestsA } // GetOperations returns the Operations field value -func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperations() []UsersUserIdPatchRequestOperationsInnerAnyOf2 { +func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperations() []ReplaceOperation { if o == nil { - var ret []UsersUserIdPatchRequestOperationsInnerAnyOf2 + var ret []ReplaceOperation return ret } @@ -57,7 +57,7 @@ func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperations() []UsersUserI // GetOperationsOk returns a tuple with the Operations field value // and a boolean to check if the value has been set. -func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperationsOk() ([]UsersUserIdPatchRequestOperationsInnerAnyOf2, bool) { +func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperationsOk() ([]ReplaceOperation, bool) { if o == nil { return nil, false } @@ -65,7 +65,7 @@ func (o *AccessRequestsAccessRequestIdPatchRequest) GetOperationsOk() ([]UsersUs } // SetOperations sets field value -func (o *AccessRequestsAccessRequestIdPatchRequest) SetOperations(v []UsersUserIdPatchRequestOperationsInnerAnyOf2) { +func (o *AccessRequestsAccessRequestIdPatchRequest) SetOperations(v []ReplaceOperation) { o.Operations = v } diff --git a/internal/sdk/api/model__access_requests_get_200_response.go b/internal/sdk/api/model__access_requests_get_200_response.go index 2726967..3a26638 100644 --- a/internal/sdk/api/model__access_requests_get_200_response.go +++ b/internal/sdk/api/model__access_requests_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__access_requests_get_200_response_data_inner.go b/internal/sdk/api/model__access_requests_get_200_response_data_inner.go index 8fb0f2b..eec7aee 100644 --- a/internal/sdk/api/model__access_requests_get_200_response_data_inner.go +++ b/internal/sdk/api/model__access_requests_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package api import ( "encoding/json" + "time" "fmt" ) @@ -25,6 +26,8 @@ type AccessRequestsGet200ResponseDataInner struct { LegacyId float32 `json:"legacy_id"` RequestingEmail string `json:"requesting_email"` UpdatedById NullableString `json:"updated_by_id"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` AdditionalProperties map[string]interface{} } @@ -34,13 +37,15 @@ type _AccessRequestsGet200ResponseDataInner AccessRequestsGet200ResponseDataInne // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAccessRequestsGet200ResponseDataInner(id float32, status string, legacyId float32, requestingEmail string, updatedById NullableString) *AccessRequestsGet200ResponseDataInner { +func NewAccessRequestsGet200ResponseDataInner(id float32, status string, legacyId float32, requestingEmail string, updatedById NullableString, createdAt time.Time, updatedAt time.Time) *AccessRequestsGet200ResponseDataInner { this := AccessRequestsGet200ResponseDataInner{} this.Id = id this.Status = status this.LegacyId = legacyId this.RequestingEmail = requestingEmail this.UpdatedById = updatedById + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt return &this } @@ -174,6 +179,54 @@ func (o *AccessRequestsGet200ResponseDataInner) SetUpdatedById(v string) { o.UpdatedById.Set(&v) } +// GetCreatedAt returns the CreatedAt field value +func (o *AccessRequestsGet200ResponseDataInner) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessRequestsGet200ResponseDataInner) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AccessRequestsGet200ResponseDataInner) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AccessRequestsGet200ResponseDataInner) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessRequestsGet200ResponseDataInner) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AccessRequestsGet200ResponseDataInner) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + func (o AccessRequestsGet200ResponseDataInner) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -189,6 +242,8 @@ func (o AccessRequestsGet200ResponseDataInner) ToMap() (map[string]interface{}, toSerialize["legacy_id"] = o.LegacyId toSerialize["requesting_email"] = o.RequestingEmail toSerialize["updated_by_id"] = o.UpdatedById.Get() + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -207,6 +262,8 @@ func (o *AccessRequestsGet200ResponseDataInner) UnmarshalJSON(data []byte) (err "legacy_id", "requesting_email", "updated_by_id", + "created_at", + "updated_at", } allProperties := make(map[string]interface{}) @@ -241,6 +298,8 @@ func (o *AccessRequestsGet200ResponseDataInner) UnmarshalJSON(data []byte) (err delete(additionalProperties, "legacy_id") delete(additionalProperties, "requesting_email") delete(additionalProperties, "updated_by_id") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model__access_tokens__access_token_id_get_200_response.go b/internal/sdk/api/model__access_tokens__access_token_id_get_200_response.go new file mode 100644 index 0000000..87f5999 --- /dev/null +++ b/internal/sdk/api/model__access_tokens__access_token_id_get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the AccessTokensAccessTokenIdGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokensAccessTokenIdGet200Response{} + +// AccessTokensAccessTokenIdGet200Response struct for AccessTokensAccessTokenIdGet200Response +type AccessTokensAccessTokenIdGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data AccessTokensAccessTokenIdGet200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _AccessTokensAccessTokenIdGet200Response AccessTokensAccessTokenIdGet200Response + +// NewAccessTokensAccessTokenIdGet200Response instantiates a new AccessTokensAccessTokenIdGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessTokensAccessTokenIdGet200Response(success bool, data AccessTokensAccessTokenIdGet200ResponseData) *AccessTokensAccessTokenIdGet200Response { + this := AccessTokensAccessTokenIdGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewAccessTokensAccessTokenIdGet200ResponseWithDefaults instantiates a new AccessTokensAccessTokenIdGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokensAccessTokenIdGet200ResponseWithDefaults() *AccessTokensAccessTokenIdGet200Response { + this := AccessTokensAccessTokenIdGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *AccessTokensAccessTokenIdGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *AccessTokensAccessTokenIdGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *AccessTokensAccessTokenIdGet200Response) GetData() AccessTokensAccessTokenIdGet200ResponseData { + if o == nil { + var ret AccessTokensAccessTokenIdGet200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200Response) GetDataOk() (*AccessTokensAccessTokenIdGet200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AccessTokensAccessTokenIdGet200Response) SetData(v AccessTokensAccessTokenIdGet200ResponseData) { + o.Data = v +} + +func (o AccessTokensAccessTokenIdGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokensAccessTokenIdGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AccessTokensAccessTokenIdGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varAccessTokensAccessTokenIdGet200Response := _AccessTokensAccessTokenIdGet200Response{} + + err = json.Unmarshal(data, &varAccessTokensAccessTokenIdGet200Response) + + if err != nil { + return err + } + + *o = AccessTokensAccessTokenIdGet200Response(varAccessTokensAccessTokenIdGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAccessTokensAccessTokenIdGet200Response struct { + value *AccessTokensAccessTokenIdGet200Response + isSet bool +} + +func (v NullableAccessTokensAccessTokenIdGet200Response) Get() *AccessTokensAccessTokenIdGet200Response { + return v.value +} + +func (v *NullableAccessTokensAccessTokenIdGet200Response) Set(val *AccessTokensAccessTokenIdGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokensAccessTokenIdGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokensAccessTokenIdGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokensAccessTokenIdGet200Response(val *AccessTokensAccessTokenIdGet200Response) *NullableAccessTokensAccessTokenIdGet200Response { + return &NullableAccessTokensAccessTokenIdGet200Response{value: val, isSet: true} +} + +func (v NullableAccessTokensAccessTokenIdGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokensAccessTokenIdGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__access_tokens__access_token_id_get_200_response_data.go b/internal/sdk/api/model__access_tokens__access_token_id_get_200_response_data.go new file mode 100644 index 0000000..ad37dcf --- /dev/null +++ b/internal/sdk/api/model__access_tokens__access_token_id_get_200_response_data.go @@ -0,0 +1,362 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the AccessTokensAccessTokenIdGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokensAccessTokenIdGet200ResponseData{} + +// AccessTokensAccessTokenIdGet200ResponseData The requested access token. +type AccessTokensAccessTokenIdGet200ResponseData struct { + // The uuid of the access token. + Id string `json:"id"` + // The name of the access token. + Label string `json:"label"` + // The description of the access token. + Description NullableString `json:"description"` + // Last 4 characters of the access token secret + Last4 string `json:"last4"` + // The legacy id of the user that created the token + OwnerLegacyId float32 `json:"owner_legacy_id"` + Scopes []string `json:"scopes"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` +} + +type _AccessTokensAccessTokenIdGet200ResponseData AccessTokensAccessTokenIdGet200ResponseData + +// NewAccessTokensAccessTokenIdGet200ResponseData instantiates a new AccessTokensAccessTokenIdGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessTokensAccessTokenIdGet200ResponseData(id string, label string, description NullableString, last4 string, ownerLegacyId float32, scopes []string, createdAt time.Time, updatedAt time.Time) *AccessTokensAccessTokenIdGet200ResponseData { + this := AccessTokensAccessTokenIdGet200ResponseData{} + this.Id = id + this.Label = label + this.Description = description + this.Last4 = last4 + this.OwnerLegacyId = ownerLegacyId + this.Scopes = scopes + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewAccessTokensAccessTokenIdGet200ResponseDataWithDefaults instantiates a new AccessTokensAccessTokenIdGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokensAccessTokenIdGet200ResponseDataWithDefaults() *AccessTokensAccessTokenIdGet200ResponseData { + this := AccessTokensAccessTokenIdGet200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) SetId(v string) { + o.Id = v +} + +// GetLabel returns the Label field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) SetLabel(v string) { + o.Label = v +} + +// GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetDescription() string { + if o == nil || o.Description.Get() == nil { + var ret string + return ret + } + + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// SetDescription sets field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) SetDescription(v string) { + o.Description.Set(&v) +} + +// GetLast4 returns the Last4 field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetLast4() string { + if o == nil { + var ret string + return ret + } + + return o.Last4 +} + +// GetLast4Ok returns a tuple with the Last4 field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetLast4Ok() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Last4, true +} + +// SetLast4 sets field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) SetLast4(v string) { + o.Last4 = v +} + +// GetOwnerLegacyId returns the OwnerLegacyId field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetOwnerLegacyId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.OwnerLegacyId +} + +// GetOwnerLegacyIdOk returns a tuple with the OwnerLegacyId field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetOwnerLegacyIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.OwnerLegacyId, true +} + +// SetOwnerLegacyId sets field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) SetOwnerLegacyId(v float32) { + o.OwnerLegacyId = v +} + +// GetScopes returns the Scopes field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Scopes, true +} + +// SetScopes sets field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) SetScopes(v []string) { + o.Scopes = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessTokensAccessTokenIdGet200ResponseData) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AccessTokensAccessTokenIdGet200ResponseData) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o AccessTokensAccessTokenIdGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokensAccessTokenIdGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["label"] = o.Label + toSerialize["description"] = o.Description.Get() + toSerialize["last4"] = o.Last4 + toSerialize["owner_legacy_id"] = o.OwnerLegacyId + toSerialize["scopes"] = o.Scopes + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *AccessTokensAccessTokenIdGet200ResponseData) 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{ + "id", + "label", + "description", + "last4", + "owner_legacy_id", + "scopes", + "created_at", + "updated_at", + } + + 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) + } + } + + varAccessTokensAccessTokenIdGet200ResponseData := _AccessTokensAccessTokenIdGet200ResponseData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessTokensAccessTokenIdGet200ResponseData) + + if err != nil { + return err + } + + *o = AccessTokensAccessTokenIdGet200ResponseData(varAccessTokensAccessTokenIdGet200ResponseData) + + return err +} + +type NullableAccessTokensAccessTokenIdGet200ResponseData struct { + value *AccessTokensAccessTokenIdGet200ResponseData + isSet bool +} + +func (v NullableAccessTokensAccessTokenIdGet200ResponseData) Get() *AccessTokensAccessTokenIdGet200ResponseData { + return v.value +} + +func (v *NullableAccessTokensAccessTokenIdGet200ResponseData) Set(val *AccessTokensAccessTokenIdGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokensAccessTokenIdGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokensAccessTokenIdGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokensAccessTokenIdGet200ResponseData(val *AccessTokensAccessTokenIdGet200ResponseData) *NullableAccessTokensAccessTokenIdGet200ResponseData { + return &NullableAccessTokensAccessTokenIdGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAccessTokensAccessTokenIdGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokensAccessTokenIdGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__access_tokens_get_200_response.go b/internal/sdk/api/model__access_tokens_get_200_response.go new file mode 100644 index 0000000..32b1cae --- /dev/null +++ b/internal/sdk/api/model__access_tokens_get_200_response.go @@ -0,0 +1,291 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the AccessTokensGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokensGet200Response{} + +// AccessTokensGet200Response struct for AccessTokensGet200Response +type AccessTokensGet200Response struct { + // API request succeeded + Success bool `json:"success"` + // An array of requested items + Data []AccessTokensGet200ResponseDataInner `json:"data"` + // Total number of items in the response + TotalCount float32 `json:"total_count"` + // A token to retrieve the next page of items in the collection + NextToken NullableString `json:"next_token"` + // Whether there are more items in the collection + HasMore bool `json:"has_more"` + AdditionalProperties map[string]interface{} +} + +type _AccessTokensGet200Response AccessTokensGet200Response + +// NewAccessTokensGet200Response instantiates a new AccessTokensGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessTokensGet200Response(success bool, data []AccessTokensGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool) *AccessTokensGet200Response { + this := AccessTokensGet200Response{} + this.Success = success + this.Data = data + this.TotalCount = totalCount + this.NextToken = nextToken + this.HasMore = hasMore + return &this +} + +// NewAccessTokensGet200ResponseWithDefaults instantiates a new AccessTokensGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokensGet200ResponseWithDefaults() *AccessTokensGet200Response { + this := AccessTokensGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *AccessTokensGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *AccessTokensGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *AccessTokensGet200Response) GetData() []AccessTokensGet200ResponseDataInner { + if o == nil { + var ret []AccessTokensGet200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200Response) GetDataOk() ([]AccessTokensGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *AccessTokensGet200Response) SetData(v []AccessTokensGet200ResponseDataInner) { + o.Data = v +} + +// GetTotalCount returns the TotalCount field value +func (o *AccessTokensGet200Response) GetTotalCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200Response) GetTotalCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *AccessTokensGet200Response) SetTotalCount(v float32) { + o.TotalCount = v +} + +// GetNextToken returns the NextToken field value +// If the value is explicit nil, the zero value for string will be returned +func (o *AccessTokensGet200Response) GetNextToken() string { + if o == nil || o.NextToken.Get() == nil { + var ret string + return ret + } + + return *o.NextToken.Get() +} + +// GetNextTokenOk returns a tuple with the NextToken field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessTokensGet200Response) GetNextTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextToken.Get(), o.NextToken.IsSet() +} + +// SetNextToken sets field value +func (o *AccessTokensGet200Response) SetNextToken(v string) { + o.NextToken.Set(&v) +} + +// GetHasMore returns the HasMore field value +func (o *AccessTokensGet200Response) GetHasMore() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200Response) GetHasMoreOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasMore, true +} + +// SetHasMore sets field value +func (o *AccessTokensGet200Response) SetHasMore(v bool) { + o.HasMore = v +} + +func (o AccessTokensGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokensGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + toSerialize["total_count"] = o.TotalCount + toSerialize["next_token"] = o.NextToken.Get() + toSerialize["has_more"] = o.HasMore + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AccessTokensGet200Response) 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{ + "success", + "data", + "total_count", + "next_token", + "has_more", + } + + 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) + } + } + + varAccessTokensGet200Response := _AccessTokensGet200Response{} + + err = json.Unmarshal(data, &varAccessTokensGet200Response) + + if err != nil { + return err + } + + *o = AccessTokensGet200Response(varAccessTokensGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + delete(additionalProperties, "total_count") + delete(additionalProperties, "next_token") + delete(additionalProperties, "has_more") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAccessTokensGet200Response struct { + value *AccessTokensGet200Response + isSet bool +} + +func (v NullableAccessTokensGet200Response) Get() *AccessTokensGet200Response { + return v.value +} + +func (v *NullableAccessTokensGet200Response) Set(val *AccessTokensGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokensGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokensGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokensGet200Response(val *AccessTokensGet200Response) *NullableAccessTokensGet200Response { + return &NullableAccessTokensGet200Response{value: val, isSet: true} +} + +func (v NullableAccessTokensGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokensGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__access_tokens_get_200_response_data_inner.go b/internal/sdk/api/model__access_tokens_get_200_response_data_inner.go new file mode 100644 index 0000000..f8a5a73 --- /dev/null +++ b/internal/sdk/api/model__access_tokens_get_200_response_data_inner.go @@ -0,0 +1,362 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the AccessTokensGet200ResponseDataInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokensGet200ResponseDataInner{} + +// AccessTokensGet200ResponseDataInner List of access tokens +type AccessTokensGet200ResponseDataInner struct { + // The uuid of the access token. + Id string `json:"id"` + // The name of the access token. + Label string `json:"label"` + // The description of the access token. + Description NullableString `json:"description"` + // Last 4 characters of the access token secret + Last4 string `json:"last4"` + // The legacy id of the user that created the token + OwnerLegacyId float32 `json:"owner_legacy_id"` + Scopes []string `json:"scopes"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` +} + +type _AccessTokensGet200ResponseDataInner AccessTokensGet200ResponseDataInner + +// NewAccessTokensGet200ResponseDataInner instantiates a new AccessTokensGet200ResponseDataInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessTokensGet200ResponseDataInner(id string, label string, description NullableString, last4 string, ownerLegacyId float32, scopes []string, createdAt time.Time, updatedAt time.Time) *AccessTokensGet200ResponseDataInner { + this := AccessTokensGet200ResponseDataInner{} + this.Id = id + this.Label = label + this.Description = description + this.Last4 = last4 + this.OwnerLegacyId = ownerLegacyId + this.Scopes = scopes + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewAccessTokensGet200ResponseDataInnerWithDefaults instantiates a new AccessTokensGet200ResponseDataInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokensGet200ResponseDataInnerWithDefaults() *AccessTokensGet200ResponseDataInner { + this := AccessTokensGet200ResponseDataInner{} + return &this +} + +// GetId returns the Id field value +func (o *AccessTokensGet200ResponseDataInner) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200ResponseDataInner) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AccessTokensGet200ResponseDataInner) SetId(v string) { + o.Id = v +} + +// GetLabel returns the Label field value +func (o *AccessTokensGet200ResponseDataInner) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200ResponseDataInner) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *AccessTokensGet200ResponseDataInner) SetLabel(v string) { + o.Label = v +} + +// GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned +func (o *AccessTokensGet200ResponseDataInner) GetDescription() string { + if o == nil || o.Description.Get() == nil { + var ret string + return ret + } + + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessTokensGet200ResponseDataInner) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// SetDescription sets field value +func (o *AccessTokensGet200ResponseDataInner) SetDescription(v string) { + o.Description.Set(&v) +} + +// GetLast4 returns the Last4 field value +func (o *AccessTokensGet200ResponseDataInner) GetLast4() string { + if o == nil { + var ret string + return ret + } + + return o.Last4 +} + +// GetLast4Ok returns a tuple with the Last4 field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200ResponseDataInner) GetLast4Ok() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Last4, true +} + +// SetLast4 sets field value +func (o *AccessTokensGet200ResponseDataInner) SetLast4(v string) { + o.Last4 = v +} + +// GetOwnerLegacyId returns the OwnerLegacyId field value +func (o *AccessTokensGet200ResponseDataInner) GetOwnerLegacyId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.OwnerLegacyId +} + +// GetOwnerLegacyIdOk returns a tuple with the OwnerLegacyId field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200ResponseDataInner) GetOwnerLegacyIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.OwnerLegacyId, true +} + +// SetOwnerLegacyId sets field value +func (o *AccessTokensGet200ResponseDataInner) SetOwnerLegacyId(v float32) { + o.OwnerLegacyId = v +} + +// GetScopes returns the Scopes field value +func (o *AccessTokensGet200ResponseDataInner) GetScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200ResponseDataInner) GetScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Scopes, true +} + +// SetScopes sets field value +func (o *AccessTokensGet200ResponseDataInner) SetScopes(v []string) { + o.Scopes = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AccessTokensGet200ResponseDataInner) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200ResponseDataInner) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AccessTokensGet200ResponseDataInner) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AccessTokensGet200ResponseDataInner) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessTokensGet200ResponseDataInner) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AccessTokensGet200ResponseDataInner) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o AccessTokensGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokensGet200ResponseDataInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["label"] = o.Label + toSerialize["description"] = o.Description.Get() + toSerialize["last4"] = o.Last4 + toSerialize["owner_legacy_id"] = o.OwnerLegacyId + toSerialize["scopes"] = o.Scopes + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *AccessTokensGet200ResponseDataInner) 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{ + "id", + "label", + "description", + "last4", + "owner_legacy_id", + "scopes", + "created_at", + "updated_at", + } + + 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) + } + } + + varAccessTokensGet200ResponseDataInner := _AccessTokensGet200ResponseDataInner{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessTokensGet200ResponseDataInner) + + if err != nil { + return err + } + + *o = AccessTokensGet200ResponseDataInner(varAccessTokensGet200ResponseDataInner) + + return err +} + +type NullableAccessTokensGet200ResponseDataInner struct { + value *AccessTokensGet200ResponseDataInner + isSet bool +} + +func (v NullableAccessTokensGet200ResponseDataInner) Get() *AccessTokensGet200ResponseDataInner { + return v.value +} + +func (v *NullableAccessTokensGet200ResponseDataInner) Set(val *AccessTokensGet200ResponseDataInner) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokensGet200ResponseDataInner) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokensGet200ResponseDataInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokensGet200ResponseDataInner(val *AccessTokensGet200ResponseDataInner) *NullableAccessTokensGet200ResponseDataInner { + return &NullableAccessTokensGet200ResponseDataInner{value: val, isSet: true} +} + +func (v NullableAccessTokensGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokensGet200ResponseDataInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__access_tokens_post_200_response.go b/internal/sdk/api/model__access_tokens_post_200_response.go new file mode 100644 index 0000000..d914357 --- /dev/null +++ b/internal/sdk/api/model__access_tokens_post_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the AccessTokensPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokensPost200Response{} + +// AccessTokensPost200Response struct for AccessTokensPost200Response +type AccessTokensPost200Response struct { + // API request succeeded + Success bool `json:"success"` + Data AccessTokensPost200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _AccessTokensPost200Response AccessTokensPost200Response + +// NewAccessTokensPost200Response instantiates a new AccessTokensPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessTokensPost200Response(success bool, data AccessTokensPost200ResponseData) *AccessTokensPost200Response { + this := AccessTokensPost200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewAccessTokensPost200ResponseWithDefaults instantiates a new AccessTokensPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokensPost200ResponseWithDefaults() *AccessTokensPost200Response { + this := AccessTokensPost200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *AccessTokensPost200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *AccessTokensPost200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *AccessTokensPost200Response) GetData() AccessTokensPost200ResponseData { + if o == nil { + var ret AccessTokensPost200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200Response) GetDataOk() (*AccessTokensPost200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AccessTokensPost200Response) SetData(v AccessTokensPost200ResponseData) { + o.Data = v +} + +func (o AccessTokensPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokensPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AccessTokensPost200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varAccessTokensPost200Response := _AccessTokensPost200Response{} + + err = json.Unmarshal(data, &varAccessTokensPost200Response) + + if err != nil { + return err + } + + *o = AccessTokensPost200Response(varAccessTokensPost200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAccessTokensPost200Response struct { + value *AccessTokensPost200Response + isSet bool +} + +func (v NullableAccessTokensPost200Response) Get() *AccessTokensPost200Response { + return v.value +} + +func (v *NullableAccessTokensPost200Response) Set(val *AccessTokensPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokensPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokensPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokensPost200Response(val *AccessTokensPost200Response) *NullableAccessTokensPost200Response { + return &NullableAccessTokensPost200Response{value: val, isSet: true} +} + +func (v NullableAccessTokensPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokensPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__access_tokens_post_200_response_data.go b/internal/sdk/api/model__access_tokens_post_200_response_data.go new file mode 100644 index 0000000..8e7f2a0 --- /dev/null +++ b/internal/sdk/api/model__access_tokens_post_200_response_data.go @@ -0,0 +1,409 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the AccessTokensPost200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokensPost200ResponseData{} + +// AccessTokensPost200ResponseData The created access token. +type AccessTokensPost200ResponseData struct { + // The uuid of the access token. + Id string `json:"id"` + // The name of the access token. + Label string `json:"label"` + // The description of the access token. + Description NullableString `json:"description"` + // Last 4 characters of the access token secret + Last4 string `json:"last4"` + // The legacy id of the user that created the token + OwnerLegacyId float32 `json:"owner_legacy_id"` + Scopes []string `json:"scopes"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + // Secret token for API access. Please note this as it will only be visible once. + AccessToken string `json:"access_token"` + AdditionalProperties map[string]interface{} +} + +type _AccessTokensPost200ResponseData AccessTokensPost200ResponseData + +// NewAccessTokensPost200ResponseData instantiates a new AccessTokensPost200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessTokensPost200ResponseData(id string, label string, description NullableString, last4 string, ownerLegacyId float32, scopes []string, createdAt time.Time, updatedAt time.Time, accessToken string) *AccessTokensPost200ResponseData { + this := AccessTokensPost200ResponseData{} + this.Id = id + this.Label = label + this.Description = description + this.Last4 = last4 + this.OwnerLegacyId = ownerLegacyId + this.Scopes = scopes + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + this.AccessToken = accessToken + return &this +} + +// NewAccessTokensPost200ResponseDataWithDefaults instantiates a new AccessTokensPost200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokensPost200ResponseDataWithDefaults() *AccessTokensPost200ResponseData { + this := AccessTokensPost200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *AccessTokensPost200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AccessTokensPost200ResponseData) SetId(v string) { + o.Id = v +} + +// GetLabel returns the Label field value +func (o *AccessTokensPost200ResponseData) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200ResponseData) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *AccessTokensPost200ResponseData) SetLabel(v string) { + o.Label = v +} + +// GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned +func (o *AccessTokensPost200ResponseData) GetDescription() string { + if o == nil || o.Description.Get() == nil { + var ret string + return ret + } + + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessTokensPost200ResponseData) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// SetDescription sets field value +func (o *AccessTokensPost200ResponseData) SetDescription(v string) { + o.Description.Set(&v) +} + +// GetLast4 returns the Last4 field value +func (o *AccessTokensPost200ResponseData) GetLast4() string { + if o == nil { + var ret string + return ret + } + + return o.Last4 +} + +// GetLast4Ok returns a tuple with the Last4 field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200ResponseData) GetLast4Ok() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Last4, true +} + +// SetLast4 sets field value +func (o *AccessTokensPost200ResponseData) SetLast4(v string) { + o.Last4 = v +} + +// GetOwnerLegacyId returns the OwnerLegacyId field value +func (o *AccessTokensPost200ResponseData) GetOwnerLegacyId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.OwnerLegacyId +} + +// GetOwnerLegacyIdOk returns a tuple with the OwnerLegacyId field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200ResponseData) GetOwnerLegacyIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.OwnerLegacyId, true +} + +// SetOwnerLegacyId sets field value +func (o *AccessTokensPost200ResponseData) SetOwnerLegacyId(v float32) { + o.OwnerLegacyId = v +} + +// GetScopes returns the Scopes field value +func (o *AccessTokensPost200ResponseData) GetScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200ResponseData) GetScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Scopes, true +} + +// SetScopes sets field value +func (o *AccessTokensPost200ResponseData) SetScopes(v []string) { + o.Scopes = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AccessTokensPost200ResponseData) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200ResponseData) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AccessTokensPost200ResponseData) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AccessTokensPost200ResponseData) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200ResponseData) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AccessTokensPost200ResponseData) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +// GetAccessToken returns the AccessToken field value +func (o *AccessTokensPost200ResponseData) GetAccessToken() string { + if o == nil { + var ret string + return ret + } + + return o.AccessToken +} + +// GetAccessTokenOk returns a tuple with the AccessToken field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPost200ResponseData) GetAccessTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessToken, true +} + +// SetAccessToken sets field value +func (o *AccessTokensPost200ResponseData) SetAccessToken(v string) { + o.AccessToken = v +} + +func (o AccessTokensPost200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokensPost200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["label"] = o.Label + toSerialize["description"] = o.Description.Get() + toSerialize["last4"] = o.Last4 + toSerialize["owner_legacy_id"] = o.OwnerLegacyId + toSerialize["scopes"] = o.Scopes + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + toSerialize["access_token"] = o.AccessToken + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AccessTokensPost200ResponseData) 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{ + "id", + "label", + "description", + "last4", + "owner_legacy_id", + "scopes", + "created_at", + "updated_at", + "access_token", + } + + 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) + } + } + + varAccessTokensPost200ResponseData := _AccessTokensPost200ResponseData{} + + err = json.Unmarshal(data, &varAccessTokensPost200ResponseData) + + if err != nil { + return err + } + + *o = AccessTokensPost200ResponseData(varAccessTokensPost200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "label") + delete(additionalProperties, "description") + delete(additionalProperties, "last4") + delete(additionalProperties, "owner_legacy_id") + delete(additionalProperties, "scopes") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "access_token") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAccessTokensPost200ResponseData struct { + value *AccessTokensPost200ResponseData + isSet bool +} + +func (v NullableAccessTokensPost200ResponseData) Get() *AccessTokensPost200ResponseData { + return v.value +} + +func (v *NullableAccessTokensPost200ResponseData) Set(val *AccessTokensPost200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokensPost200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokensPost200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokensPost200ResponseData(val *AccessTokensPost200ResponseData) *NullableAccessTokensPost200ResponseData { + return &NullableAccessTokensPost200ResponseData{value: val, isSet: true} +} + +func (v NullableAccessTokensPost200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokensPost200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__access_tokens_post_request.go b/internal/sdk/api/model__access_tokens_post_request.go new file mode 100644 index 0000000..96a3b07 --- /dev/null +++ b/internal/sdk/api/model__access_tokens_post_request.go @@ -0,0 +1,247 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the AccessTokensPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessTokensPostRequest{} + +// AccessTokensPostRequest struct for AccessTokensPostRequest +type AccessTokensPostRequest struct { + // The name of the access token. + Label string `json:"label"` + // A short, user-facing description of the access token. + Description NullableString `json:"description,omitempty"` + // Scopes to include in the access token. All valid scopes can be found in the [documentation](https://docs.retool.com/reference/api/v2). Any invalid scopes are ignored. + Scopes []string `json:"scopes"` + AdditionalProperties map[string]interface{} +} + +type _AccessTokensPostRequest AccessTokensPostRequest + +// NewAccessTokensPostRequest instantiates a new AccessTokensPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessTokensPostRequest(label string, scopes []string) *AccessTokensPostRequest { + this := AccessTokensPostRequest{} + this.Label = label + this.Scopes = scopes + return &this +} + +// NewAccessTokensPostRequestWithDefaults instantiates a new AccessTokensPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokensPostRequestWithDefaults() *AccessTokensPostRequest { + this := AccessTokensPostRequest{} + return &this +} + +// GetLabel returns the Label field value +func (o *AccessTokensPostRequest) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPostRequest) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *AccessTokensPostRequest) SetLabel(v string) { + o.Label = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AccessTokensPostRequest) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessTokensPostRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *AccessTokensPostRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *AccessTokensPostRequest) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *AccessTokensPostRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *AccessTokensPostRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetScopes returns the Scopes field value +func (o *AccessTokensPostRequest) GetScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value +// and a boolean to check if the value has been set. +func (o *AccessTokensPostRequest) GetScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Scopes, true +} + +// SetScopes sets field value +func (o *AccessTokensPostRequest) SetScopes(v []string) { + o.Scopes = v +} + +func (o AccessTokensPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessTokensPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["label"] = o.Label + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + toSerialize["scopes"] = o.Scopes + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AccessTokensPostRequest) 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{ + "label", + "scopes", + } + + 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) + } + } + + varAccessTokensPostRequest := _AccessTokensPostRequest{} + + err = json.Unmarshal(data, &varAccessTokensPostRequest) + + if err != nil { + return err + } + + *o = AccessTokensPostRequest(varAccessTokensPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "label") + delete(additionalProperties, "description") + delete(additionalProperties, "scopes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAccessTokensPostRequest struct { + value *AccessTokensPostRequest + isSet bool +} + +func (v NullableAccessTokensPostRequest) Get() *AccessTokensPostRequest { + return v.value +} + +func (v *NullableAccessTokensPostRequest) Set(val *AccessTokensPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokensPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokensPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokensPostRequest(val *AccessTokensPostRequest) *NullableAccessTokensPostRequest { + return &NullableAccessTokensPostRequest{value: val, isSet: true} +} + +func (v NullableAccessTokensPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokensPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__app_themes__id__get_200_response.go b/internal/sdk/api/model__app_themes__id__get_200_response.go index 429d9e1..48f93d5 100644 --- a/internal/sdk/api/model__app_themes__id__get_200_response.go +++ b/internal/sdk/api/model__app_themes__id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__app_themes__id__get_200_response_data.go b/internal/sdk/api/model__app_themes__id__get_200_response_data.go index 289127c..b9ed150 100644 --- a/internal/sdk/api/model__app_themes__id__get_200_response_data.go +++ b/internal/sdk/api/model__app_themes__id__get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package api import ( "encoding/json" + "time" "fmt" ) @@ -26,6 +27,10 @@ type AppThemesIdGet200ResponseData struct { Name string `json:"name"` // The theme object. Theme map[string]interface{} `json:"theme"` + // Date and time when the app theme was created. + CreatedAt time.Time `json:"created_at"` + // Date and time when the app theme was last updated. + UpdatedAt time.Time `json:"updated_at"` AdditionalProperties map[string]interface{} } @@ -35,12 +40,14 @@ type _AppThemesIdGet200ResponseData AppThemesIdGet200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAppThemesIdGet200ResponseData(id float32, legacyId float32, name string, theme map[string]interface{}) *AppThemesIdGet200ResponseData { +func NewAppThemesIdGet200ResponseData(id float32, legacyId float32, name string, theme map[string]interface{}, createdAt time.Time, updatedAt time.Time) *AppThemesIdGet200ResponseData { this := AppThemesIdGet200ResponseData{} this.Id = id this.LegacyId = legacyId this.Name = name this.Theme = theme + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt return &this } @@ -148,6 +155,54 @@ func (o *AppThemesIdGet200ResponseData) SetTheme(v map[string]interface{}) { o.Theme = v } +// GetCreatedAt returns the CreatedAt field value +func (o *AppThemesIdGet200ResponseData) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AppThemesIdGet200ResponseData) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AppThemesIdGet200ResponseData) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AppThemesIdGet200ResponseData) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AppThemesIdGet200ResponseData) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AppThemesIdGet200ResponseData) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + func (o AppThemesIdGet200ResponseData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -162,6 +217,8 @@ func (o AppThemesIdGet200ResponseData) ToMap() (map[string]interface{}, error) { toSerialize["legacy_id"] = o.LegacyId toSerialize["name"] = o.Name toSerialize["theme"] = o.Theme + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -179,6 +236,8 @@ func (o *AppThemesIdGet200ResponseData) UnmarshalJSON(data []byte) (err error) { "legacy_id", "name", "theme", + "created_at", + "updated_at", } allProperties := make(map[string]interface{}) @@ -212,6 +271,8 @@ func (o *AppThemesIdGet200ResponseData) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "legacy_id") delete(additionalProperties, "name") delete(additionalProperties, "theme") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model__app_themes_get_200_response.go b/internal/sdk/api/model__app_themes_get_200_response.go new file mode 100644 index 0000000..0025d88 --- /dev/null +++ b/internal/sdk/api/model__app_themes_get_200_response.go @@ -0,0 +1,291 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the AppThemesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppThemesGet200Response{} + +// AppThemesGet200Response A list of all app themes in the organization +type AppThemesGet200Response struct { + // API request succeeded + Success bool `json:"success"` + // An array of requested items + Data []AppThemesGet200ResponseDataInner `json:"data"` + // Total number of items in the response + TotalCount float32 `json:"total_count"` + // A token to retrieve the next page of items in the collection + NextToken NullableString `json:"next_token"` + // Whether there are more items in the collection + HasMore bool `json:"has_more"` + AdditionalProperties map[string]interface{} +} + +type _AppThemesGet200Response AppThemesGet200Response + +// NewAppThemesGet200Response instantiates a new AppThemesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppThemesGet200Response(success bool, data []AppThemesGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool) *AppThemesGet200Response { + this := AppThemesGet200Response{} + this.Success = success + this.Data = data + this.TotalCount = totalCount + this.NextToken = nextToken + this.HasMore = hasMore + return &this +} + +// NewAppThemesGet200ResponseWithDefaults instantiates a new AppThemesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppThemesGet200ResponseWithDefaults() *AppThemesGet200Response { + this := AppThemesGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *AppThemesGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *AppThemesGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *AppThemesGet200Response) GetData() []AppThemesGet200ResponseDataInner { + if o == nil { + var ret []AppThemesGet200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200Response) GetDataOk() ([]AppThemesGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *AppThemesGet200Response) SetData(v []AppThemesGet200ResponseDataInner) { + o.Data = v +} + +// GetTotalCount returns the TotalCount field value +func (o *AppThemesGet200Response) GetTotalCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200Response) GetTotalCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *AppThemesGet200Response) SetTotalCount(v float32) { + o.TotalCount = v +} + +// GetNextToken returns the NextToken field value +// If the value is explicit nil, the zero value for string will be returned +func (o *AppThemesGet200Response) GetNextToken() string { + if o == nil || o.NextToken.Get() == nil { + var ret string + return ret + } + + return *o.NextToken.Get() +} + +// GetNextTokenOk returns a tuple with the NextToken field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppThemesGet200Response) GetNextTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextToken.Get(), o.NextToken.IsSet() +} + +// SetNextToken sets field value +func (o *AppThemesGet200Response) SetNextToken(v string) { + o.NextToken.Set(&v) +} + +// GetHasMore returns the HasMore field value +func (o *AppThemesGet200Response) GetHasMore() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200Response) GetHasMoreOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasMore, true +} + +// SetHasMore sets field value +func (o *AppThemesGet200Response) SetHasMore(v bool) { + o.HasMore = v +} + +func (o AppThemesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppThemesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + toSerialize["total_count"] = o.TotalCount + toSerialize["next_token"] = o.NextToken.Get() + toSerialize["has_more"] = o.HasMore + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AppThemesGet200Response) 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{ + "success", + "data", + "total_count", + "next_token", + "has_more", + } + + 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) + } + } + + varAppThemesGet200Response := _AppThemesGet200Response{} + + err = json.Unmarshal(data, &varAppThemesGet200Response) + + if err != nil { + return err + } + + *o = AppThemesGet200Response(varAppThemesGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + delete(additionalProperties, "total_count") + delete(additionalProperties, "next_token") + delete(additionalProperties, "has_more") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAppThemesGet200Response struct { + value *AppThemesGet200Response + isSet bool +} + +func (v NullableAppThemesGet200Response) Get() *AppThemesGet200Response { + return v.value +} + +func (v *NullableAppThemesGet200Response) Set(val *AppThemesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAppThemesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAppThemesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppThemesGet200Response(val *AppThemesGet200Response) *NullableAppThemesGet200Response { + return &NullableAppThemesGet200Response{value: val, isSet: true} +} + +func (v NullableAppThemesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppThemesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__app_themes_get_200_response_data_inner.go b/internal/sdk/api/model__app_themes_get_200_response_data_inner.go new file mode 100644 index 0000000..a691921 --- /dev/null +++ b/internal/sdk/api/model__app_themes_get_200_response_data_inner.go @@ -0,0 +1,318 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the AppThemesGet200ResponseDataInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppThemesGet200ResponseDataInner{} + +// AppThemesGet200ResponseDataInner This object represents an app theme. App themes allow you to customize the look of your app. See https://docs.retool.com/apps/web/concepts/themes for more information. +type AppThemesGet200ResponseDataInner struct { + Id float32 `json:"id"` + LegacyId float32 `json:"legacy_id"` + // The name of the app theme. + Name string `json:"name"` + // The theme object. + Theme map[string]interface{} `json:"theme"` + // Date and time when the app theme was created. + CreatedAt time.Time `json:"created_at"` + // Date and time when the app theme was last updated. + UpdatedAt time.Time `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _AppThemesGet200ResponseDataInner AppThemesGet200ResponseDataInner + +// NewAppThemesGet200ResponseDataInner instantiates a new AppThemesGet200ResponseDataInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppThemesGet200ResponseDataInner(id float32, legacyId float32, name string, theme map[string]interface{}, createdAt time.Time, updatedAt time.Time) *AppThemesGet200ResponseDataInner { + this := AppThemesGet200ResponseDataInner{} + this.Id = id + this.LegacyId = legacyId + this.Name = name + this.Theme = theme + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewAppThemesGet200ResponseDataInnerWithDefaults instantiates a new AppThemesGet200ResponseDataInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppThemesGet200ResponseDataInnerWithDefaults() *AppThemesGet200ResponseDataInner { + this := AppThemesGet200ResponseDataInner{} + return &this +} + +// GetId returns the Id field value +func (o *AppThemesGet200ResponseDataInner) GetId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200ResponseDataInner) GetIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AppThemesGet200ResponseDataInner) SetId(v float32) { + o.Id = v +} + +// GetLegacyId returns the LegacyId field value +func (o *AppThemesGet200ResponseDataInner) GetLegacyId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.LegacyId +} + +// GetLegacyIdOk returns a tuple with the LegacyId field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200ResponseDataInner) GetLegacyIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.LegacyId, true +} + +// SetLegacyId sets field value +func (o *AppThemesGet200ResponseDataInner) SetLegacyId(v float32) { + o.LegacyId = v +} + +// GetName returns the Name field value +func (o *AppThemesGet200ResponseDataInner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200ResponseDataInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AppThemesGet200ResponseDataInner) SetName(v string) { + o.Name = v +} + +// GetTheme returns the Theme field value +func (o *AppThemesGet200ResponseDataInner) GetTheme() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Theme +} + +// GetThemeOk returns a tuple with the Theme field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200ResponseDataInner) GetThemeOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Theme, true +} + +// SetTheme sets field value +func (o *AppThemesGet200ResponseDataInner) SetTheme(v map[string]interface{}) { + o.Theme = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AppThemesGet200ResponseDataInner) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200ResponseDataInner) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AppThemesGet200ResponseDataInner) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AppThemesGet200ResponseDataInner) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AppThemesGet200ResponseDataInner) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AppThemesGet200ResponseDataInner) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o AppThemesGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppThemesGet200ResponseDataInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["legacy_id"] = o.LegacyId + toSerialize["name"] = o.Name + toSerialize["theme"] = o.Theme + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AppThemesGet200ResponseDataInner) 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{ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at", + } + + 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) + } + } + + varAppThemesGet200ResponseDataInner := _AppThemesGet200ResponseDataInner{} + + err = json.Unmarshal(data, &varAppThemesGet200ResponseDataInner) + + if err != nil { + return err + } + + *o = AppThemesGet200ResponseDataInner(varAppThemesGet200ResponseDataInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "legacy_id") + delete(additionalProperties, "name") + delete(additionalProperties, "theme") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAppThemesGet200ResponseDataInner struct { + value *AppThemesGet200ResponseDataInner + isSet bool +} + +func (v NullableAppThemesGet200ResponseDataInner) Get() *AppThemesGet200ResponseDataInner { + return v.value +} + +func (v *NullableAppThemesGet200ResponseDataInner) Set(val *AppThemesGet200ResponseDataInner) { + v.value = val + v.isSet = true +} + +func (v NullableAppThemesGet200ResponseDataInner) IsSet() bool { + return v.isSet +} + +func (v *NullableAppThemesGet200ResponseDataInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppThemesGet200ResponseDataInner(val *AppThemesGet200ResponseDataInner) *NullableAppThemesGet200ResponseDataInner { + return &NullableAppThemesGet200ResponseDataInner{value: val, isSet: true} +} + +func (v NullableAppThemesGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppThemesGet200ResponseDataInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__app_themes_put_200_response.go b/internal/sdk/api/model__app_themes_put_200_response.go index d2702ce..db1b1e3 100644 --- a/internal/sdk/api/model__app_themes_put_200_response.go +++ b/internal/sdk/api/model__app_themes_put_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__app_themes_put_200_response_data.go b/internal/sdk/api/model__app_themes_put_200_response_data.go index 65f899b..4b5a3d8 100644 --- a/internal/sdk/api/model__app_themes_put_200_response_data.go +++ b/internal/sdk/api/model__app_themes_put_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package api import ( "encoding/json" + "time" "fmt" ) @@ -26,6 +27,10 @@ type AppThemesPut200ResponseData struct { Name string `json:"name"` // The theme object. Theme map[string]interface{} `json:"theme"` + // Date and time when the app theme was created. + CreatedAt time.Time `json:"created_at"` + // Date and time when the app theme was last updated. + UpdatedAt time.Time `json:"updated_at"` AdditionalProperties map[string]interface{} } @@ -35,12 +40,14 @@ type _AppThemesPut200ResponseData AppThemesPut200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAppThemesPut200ResponseData(id float32, legacyId float32, name string, theme map[string]interface{}) *AppThemesPut200ResponseData { +func NewAppThemesPut200ResponseData(id float32, legacyId float32, name string, theme map[string]interface{}, createdAt time.Time, updatedAt time.Time) *AppThemesPut200ResponseData { this := AppThemesPut200ResponseData{} this.Id = id this.LegacyId = legacyId this.Name = name this.Theme = theme + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt return &this } @@ -148,6 +155,54 @@ func (o *AppThemesPut200ResponseData) SetTheme(v map[string]interface{}) { o.Theme = v } +// GetCreatedAt returns the CreatedAt field value +func (o *AppThemesPut200ResponseData) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AppThemesPut200ResponseData) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AppThemesPut200ResponseData) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AppThemesPut200ResponseData) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AppThemesPut200ResponseData) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AppThemesPut200ResponseData) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + func (o AppThemesPut200ResponseData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -162,6 +217,8 @@ func (o AppThemesPut200ResponseData) ToMap() (map[string]interface{}, error) { toSerialize["legacy_id"] = o.LegacyId toSerialize["name"] = o.Name toSerialize["theme"] = o.Theme + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -179,6 +236,8 @@ func (o *AppThemesPut200ResponseData) UnmarshalJSON(data []byte) (err error) { "legacy_id", "name", "theme", + "created_at", + "updated_at", } allProperties := make(map[string]interface{}) @@ -212,6 +271,8 @@ func (o *AppThemesPut200ResponseData) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "legacy_id") delete(additionalProperties, "name") delete(additionalProperties, "theme") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model__apps__app_id__get_200_response.go b/internal/sdk/api/model__apps__app_id__get_200_response.go index 252cb1b..10a559a 100644 --- a/internal/sdk/api/model__apps__app_id__get_200_response.go +++ b/internal/sdk/api/model__apps__app_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__apps__app_id__get_200_response_data.go b/internal/sdk/api/model__apps__app_id__get_200_response_data.go index 401356c..530b870 100644 --- a/internal/sdk/api/model__apps__app_id__get_200_response_data.go +++ b/internal/sdk/api/model__apps__app_id__get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -38,6 +38,10 @@ type AppsAppIdGet200ResponseData struct { IsModule bool `json:"is_module"` // Whether the App is a mobile app IsMobileApp bool `json:"is_mobile_app"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` + // The live release version of the app. 'latest' if releases are disabled or the app has no live release yet + ReleaseVersion string `json:"release_version"` AdditionalProperties map[string]interface{} } @@ -47,7 +51,7 @@ type _AppsAppIdGet200ResponseData AppsAppIdGet200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAppsAppIdGet200ResponseData(id string, name string, description NullableString, folderId string, protected bool, synced bool, shortlink NullableString, isModule bool, isMobileApp bool) *AppsAppIdGet200ResponseData { +func NewAppsAppIdGet200ResponseData(id string, name string, description NullableString, folderId string, protected bool, synced bool, shortlink NullableString, isModule bool, isMobileApp bool, createdAt string, updatedAt string, releaseVersion string) *AppsAppIdGet200ResponseData { this := AppsAppIdGet200ResponseData{} this.Id = id this.Name = name @@ -58,6 +62,9 @@ func NewAppsAppIdGet200ResponseData(id string, name string, description Nullable this.Shortlink = shortlink this.IsModule = isModule this.IsMobileApp = isMobileApp + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + this.ReleaseVersion = releaseVersion return &this } @@ -289,6 +296,78 @@ func (o *AppsAppIdGet200ResponseData) SetIsMobileApp(v bool) { o.IsMobileApp = v } +// GetCreatedAt returns the CreatedAt field value +func (o *AppsAppIdGet200ResponseData) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AppsAppIdGet200ResponseData) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AppsAppIdGet200ResponseData) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AppsAppIdGet200ResponseData) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AppsAppIdGet200ResponseData) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AppsAppIdGet200ResponseData) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +// GetReleaseVersion returns the ReleaseVersion field value +func (o *AppsAppIdGet200ResponseData) GetReleaseVersion() string { + if o == nil { + var ret string + return ret + } + + return o.ReleaseVersion +} + +// GetReleaseVersionOk returns a tuple with the ReleaseVersion field value +// and a boolean to check if the value has been set. +func (o *AppsAppIdGet200ResponseData) GetReleaseVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReleaseVersion, true +} + +// SetReleaseVersion sets field value +func (o *AppsAppIdGet200ResponseData) SetReleaseVersion(v string) { + o.ReleaseVersion = v +} + func (o AppsAppIdGet200ResponseData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -308,6 +387,9 @@ func (o AppsAppIdGet200ResponseData) ToMap() (map[string]interface{}, error) { toSerialize["shortlink"] = o.Shortlink.Get() toSerialize["is_module"] = o.IsModule toSerialize["is_mobile_app"] = o.IsMobileApp + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + toSerialize["release_version"] = o.ReleaseVersion for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -330,6 +412,9 @@ func (o *AppsAppIdGet200ResponseData) UnmarshalJSON(data []byte) (err error) { "shortlink", "is_module", "is_mobile_app", + "created_at", + "updated_at", + "release_version", } allProperties := make(map[string]interface{}) @@ -368,6 +453,9 @@ func (o *AppsAppIdGet200ResponseData) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "shortlink") delete(additionalProperties, "is_module") delete(additionalProperties, "is_mobile_app") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "release_version") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model__apps_clone_app_post_request.go b/internal/sdk/api/model__apps_clone_app_post_request.go new file mode 100644 index 0000000..5755b46 --- /dev/null +++ b/internal/sdk/api/model__apps_clone_app_post_request.go @@ -0,0 +1,225 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AppsCloneAppPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppsCloneAppPostRequest{} + +// AppsCloneAppPostRequest struct for AppsCloneAppPostRequest +type AppsCloneAppPostRequest struct { + // The app ID. + AppId string `json:"app_id"` + // The name of the new app + NewAppName string `json:"new_app_name"` + // The id of the folder + FolderId *string `json:"folder_id,omitempty"` +} + +type _AppsCloneAppPostRequest AppsCloneAppPostRequest + +// NewAppsCloneAppPostRequest instantiates a new AppsCloneAppPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppsCloneAppPostRequest(appId string, newAppName string) *AppsCloneAppPostRequest { + this := AppsCloneAppPostRequest{} + this.AppId = appId + this.NewAppName = newAppName + return &this +} + +// NewAppsCloneAppPostRequestWithDefaults instantiates a new AppsCloneAppPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppsCloneAppPostRequestWithDefaults() *AppsCloneAppPostRequest { + this := AppsCloneAppPostRequest{} + return &this +} + +// GetAppId returns the AppId field value +func (o *AppsCloneAppPostRequest) GetAppId() string { + if o == nil { + var ret string + return ret + } + + return o.AppId +} + +// GetAppIdOk returns a tuple with the AppId field value +// and a boolean to check if the value has been set. +func (o *AppsCloneAppPostRequest) GetAppIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AppId, true +} + +// SetAppId sets field value +func (o *AppsCloneAppPostRequest) SetAppId(v string) { + o.AppId = v +} + +// GetNewAppName returns the NewAppName field value +func (o *AppsCloneAppPostRequest) GetNewAppName() string { + if o == nil { + var ret string + return ret + } + + return o.NewAppName +} + +// GetNewAppNameOk returns a tuple with the NewAppName field value +// and a boolean to check if the value has been set. +func (o *AppsCloneAppPostRequest) GetNewAppNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NewAppName, true +} + +// SetNewAppName sets field value +func (o *AppsCloneAppPostRequest) SetNewAppName(v string) { + o.NewAppName = v +} + +// GetFolderId returns the FolderId field value if set, zero value otherwise. +func (o *AppsCloneAppPostRequest) GetFolderId() string { + if o == nil || IsNil(o.FolderId) { + var ret string + return ret + } + return *o.FolderId +} + +// GetFolderIdOk returns a tuple with the FolderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppsCloneAppPostRequest) GetFolderIdOk() (*string, bool) { + if o == nil || IsNil(o.FolderId) { + return nil, false + } + return o.FolderId, true +} + +// HasFolderId returns a boolean if a field has been set. +func (o *AppsCloneAppPostRequest) HasFolderId() bool { + if o != nil && !IsNil(o.FolderId) { + return true + } + + return false +} + +// SetFolderId gets a reference to the given string and assigns it to the FolderId field. +func (o *AppsCloneAppPostRequest) SetFolderId(v string) { + o.FolderId = &v +} + +func (o AppsCloneAppPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppsCloneAppPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["app_id"] = o.AppId + toSerialize["new_app_name"] = o.NewAppName + if !IsNil(o.FolderId) { + toSerialize["folder_id"] = o.FolderId + } + return toSerialize, nil +} + +func (o *AppsCloneAppPostRequest) 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{ + "app_id", + "new_app_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) + } + } + + varAppsCloneAppPostRequest := _AppsCloneAppPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAppsCloneAppPostRequest) + + if err != nil { + return err + } + + *o = AppsCloneAppPostRequest(varAppsCloneAppPostRequest) + + return err +} + +type NullableAppsCloneAppPostRequest struct { + value *AppsCloneAppPostRequest + isSet bool +} + +func (v NullableAppsCloneAppPostRequest) Get() *AppsCloneAppPostRequest { + return v.value +} + +func (v *NullableAppsCloneAppPostRequest) Set(val *AppsCloneAppPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAppsCloneAppPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAppsCloneAppPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppsCloneAppPostRequest(val *AppsCloneAppPostRequest) *NullableAppsCloneAppPostRequest { + return &NullableAppsCloneAppPostRequest{value: val, isSet: true} +} + +func (v NullableAppsCloneAppPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppsCloneAppPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__apps_get_200_response.go b/internal/sdk/api/model__apps_get_200_response.go index 3f8a784..6ef4a7f 100644 --- a/internal/sdk/api/model__apps_get_200_response.go +++ b/internal/sdk/api/model__apps_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,7 +18,7 @@ import ( // checks if the AppsGet200Response type satisfies the MappedNullable interface at compile time var _ MappedNullable = &AppsGet200Response{} -// AppsGet200Response A dictionary with a `data` property that contains an array of groups +// AppsGet200Response A list of all apps in the organization type AppsGet200Response struct { // API request succeeded Success bool `json:"success"` diff --git a/internal/sdk/api/model__configuration_variables_get_200_response.go b/internal/sdk/api/model__configuration_variables_get_200_response.go index fa50b80..24db881 100644 --- a/internal/sdk/api/model__configuration_variables_get_200_response.go +++ b/internal/sdk/api/model__configuration_variables_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__configuration_variables_get_200_response_data_inner.go b/internal/sdk/api/model__configuration_variables_get_200_response_data_inner.go index 87ea4b3..baf084a 100644 --- a/internal/sdk/api/model__configuration_variables_get_200_response_data_inner.go +++ b/internal/sdk/api/model__configuration_variables_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__configuration_variables_get_200_response_data_inner_values_inner.go b/internal/sdk/api/model__configuration_variables_get_200_response_data_inner_values_inner.go index c650ea3..09155c7 100644 --- a/internal/sdk/api/model__configuration_variables_get_200_response_data_inner_values_inner.go +++ b/internal/sdk/api/model__configuration_variables_get_200_response_data_inner_values_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__configuration_variables_post_200_response.go b/internal/sdk/api/model__configuration_variables_post_200_response.go index 8a07e41..a82462f 100644 --- a/internal/sdk/api/model__configuration_variables_post_200_response.go +++ b/internal/sdk/api/model__configuration_variables_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__configuration_variables_post_request.go b/internal/sdk/api/model__configuration_variables_post_request.go index ebfed25..c3f4c45 100644 --- a/internal/sdk/api/model__configuration_variables_post_request.go +++ b/internal/sdk/api/model__configuration_variables_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries__library_id__get_200_response.go b/internal/sdk/api/model__custom_component_libraries__library_id__get_200_response.go index 07c8d22..75189e4 100644 --- a/internal/sdk/api/model__custom_component_libraries__library_id__get_200_response.go +++ b/internal/sdk/api/model__custom_component_libraries__library_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries__library_id__get_200_response_data.go b/internal/sdk/api/model__custom_component_libraries__library_id__get_200_response_data.go index 5e96407..0b7d085 100644 --- a/internal/sdk/api/model__custom_component_libraries__library_id__get_200_response_data.go +++ b/internal/sdk/api/model__custom_component_libraries__library_id__get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries__library_id__revisions__revision_id__files_get_200_response.go b/internal/sdk/api/model__custom_component_libraries__library_id__revisions__revision_id__files_get_200_response.go index 60d7abd..1886076 100644 --- a/internal/sdk/api/model__custom_component_libraries__library_id__revisions__revision_id__files_get_200_response.go +++ b/internal/sdk/api/model__custom_component_libraries__library_id__revisions__revision_id__files_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries__library_id__revisions__revision_id__files_get_200_response_data_inner.go b/internal/sdk/api/model__custom_component_libraries__library_id__revisions__revision_id__files_get_200_response_data_inner.go index e1121db..c6d77b3 100644 --- a/internal/sdk/api/model__custom_component_libraries__library_id__revisions__revision_id__files_get_200_response_data_inner.go +++ b/internal/sdk/api/model__custom_component_libraries__library_id__revisions__revision_id__files_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries__library_id__revisions_get_200_response.go b/internal/sdk/api/model__custom_component_libraries__library_id__revisions_get_200_response.go index c2ecc6c..6d9dcbf 100644 --- a/internal/sdk/api/model__custom_component_libraries__library_id__revisions_get_200_response.go +++ b/internal/sdk/api/model__custom_component_libraries__library_id__revisions_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries__library_id__revisions_get_200_response_data_inner.go b/internal/sdk/api/model__custom_component_libraries__library_id__revisions_get_200_response_data_inner.go index c4db67e..0beb4f4 100644 --- a/internal/sdk/api/model__custom_component_libraries__library_id__revisions_get_200_response_data_inner.go +++ b/internal/sdk/api/model__custom_component_libraries__library_id__revisions_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries__library_id__revisions_post_200_response.go b/internal/sdk/api/model__custom_component_libraries__library_id__revisions_post_200_response.go index f1b070d..bf06ffc 100644 --- a/internal/sdk/api/model__custom_component_libraries__library_id__revisions_post_200_response.go +++ b/internal/sdk/api/model__custom_component_libraries__library_id__revisions_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries_get_200_response.go b/internal/sdk/api/model__custom_component_libraries_get_200_response.go index c3e0048..420ca68 100644 --- a/internal/sdk/api/model__custom_component_libraries_get_200_response.go +++ b/internal/sdk/api/model__custom_component_libraries_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries_post_200_response.go b/internal/sdk/api/model__custom_component_libraries_post_200_response.go index 13a9991..c357bc5 100644 --- a/internal/sdk/api/model__custom_component_libraries_post_200_response.go +++ b/internal/sdk/api/model__custom_component_libraries_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__custom_component_libraries_post_request.go b/internal/sdk/api/model__custom_component_libraries_post_request.go index 4ed52e6..b9b1d7b 100644 --- a/internal/sdk/api/model__custom_component_libraries_post_request.go +++ b/internal/sdk/api/model__custom_component_libraries_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__environments__environment_id__get_200_response.go b/internal/sdk/api/model__environments__environment_id__get_200_response.go index c4c94e7..233e1f0 100644 --- a/internal/sdk/api/model__environments__environment_id__get_200_response.go +++ b/internal/sdk/api/model__environments__environment_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__environments__environment_id__get_200_response_data.go b/internal/sdk/api/model__environments__environment_id__get_200_response_data.go index 40852e7..4c6f778 100644 --- a/internal/sdk/api/model__environments__environment_id__get_200_response_data.go +++ b/internal/sdk/api/model__environments__environment_id__get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__environments__environment_id__patch_200_response.go b/internal/sdk/api/model__environments__environment_id__patch_200_response.go new file mode 100644 index 0000000..a7799de --- /dev/null +++ b/internal/sdk/api/model__environments__environment_id__patch_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentsEnvironmentIdPatch200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentsEnvironmentIdPatch200Response{} + +// EnvironmentsEnvironmentIdPatch200Response struct for EnvironmentsEnvironmentIdPatch200Response +type EnvironmentsEnvironmentIdPatch200Response struct { + // API request succeeded + Success bool `json:"success"` + Data EnvironmentsEnvironmentIdPatch200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentsEnvironmentIdPatch200Response EnvironmentsEnvironmentIdPatch200Response + +// NewEnvironmentsEnvironmentIdPatch200Response instantiates a new EnvironmentsEnvironmentIdPatch200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentsEnvironmentIdPatch200Response(success bool, data EnvironmentsEnvironmentIdPatch200ResponseData) *EnvironmentsEnvironmentIdPatch200Response { + this := EnvironmentsEnvironmentIdPatch200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewEnvironmentsEnvironmentIdPatch200ResponseWithDefaults instantiates a new EnvironmentsEnvironmentIdPatch200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentsEnvironmentIdPatch200ResponseWithDefaults() *EnvironmentsEnvironmentIdPatch200Response { + this := EnvironmentsEnvironmentIdPatch200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *EnvironmentsEnvironmentIdPatch200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatch200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *EnvironmentsEnvironmentIdPatch200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *EnvironmentsEnvironmentIdPatch200Response) GetData() EnvironmentsEnvironmentIdPatch200ResponseData { + if o == nil { + var ret EnvironmentsEnvironmentIdPatch200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatch200Response) GetDataOk() (*EnvironmentsEnvironmentIdPatch200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *EnvironmentsEnvironmentIdPatch200Response) SetData(v EnvironmentsEnvironmentIdPatch200ResponseData) { + o.Data = v +} + +func (o EnvironmentsEnvironmentIdPatch200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentsEnvironmentIdPatch200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentsEnvironmentIdPatch200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varEnvironmentsEnvironmentIdPatch200Response := _EnvironmentsEnvironmentIdPatch200Response{} + + err = json.Unmarshal(data, &varEnvironmentsEnvironmentIdPatch200Response) + + if err != nil { + return err + } + + *o = EnvironmentsEnvironmentIdPatch200Response(varEnvironmentsEnvironmentIdPatch200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentsEnvironmentIdPatch200Response struct { + value *EnvironmentsEnvironmentIdPatch200Response + isSet bool +} + +func (v NullableEnvironmentsEnvironmentIdPatch200Response) Get() *EnvironmentsEnvironmentIdPatch200Response { + return v.value +} + +func (v *NullableEnvironmentsEnvironmentIdPatch200Response) Set(val *EnvironmentsEnvironmentIdPatch200Response) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentsEnvironmentIdPatch200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentsEnvironmentIdPatch200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentsEnvironmentIdPatch200Response(val *EnvironmentsEnvironmentIdPatch200Response) *NullableEnvironmentsEnvironmentIdPatch200Response { + return &NullableEnvironmentsEnvironmentIdPatch200Response{value: val, isSet: true} +} + +func (v NullableEnvironmentsEnvironmentIdPatch200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentsEnvironmentIdPatch200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__environments__environment_id__patch_200_response_data.go b/internal/sdk/api/model__environments__environment_id__patch_200_response_data.go new file mode 100644 index 0000000..e54d8e4 --- /dev/null +++ b/internal/sdk/api/model__environments__environment_id__patch_200_response_data.go @@ -0,0 +1,344 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentsEnvironmentIdPatch200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentsEnvironmentIdPatch200ResponseData{} + +// EnvironmentsEnvironmentIdPatch200ResponseData The updated environment. +type EnvironmentsEnvironmentIdPatch200ResponseData struct { + Id string `json:"id"` + Name string `json:"name"` + Description NullableString `json:"description"` + Color string `json:"color"` + Default bool `json:"default"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentsEnvironmentIdPatch200ResponseData EnvironmentsEnvironmentIdPatch200ResponseData + +// NewEnvironmentsEnvironmentIdPatch200ResponseData instantiates a new EnvironmentsEnvironmentIdPatch200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentsEnvironmentIdPatch200ResponseData(id string, name string, description NullableString, color string, default_ bool, createdAt string, updatedAt string) *EnvironmentsEnvironmentIdPatch200ResponseData { + this := EnvironmentsEnvironmentIdPatch200ResponseData{} + this.Id = id + this.Name = name + this.Description = description + this.Color = color + this.Default = default_ + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewEnvironmentsEnvironmentIdPatch200ResponseDataWithDefaults instantiates a new EnvironmentsEnvironmentIdPatch200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentsEnvironmentIdPatch200ResponseDataWithDefaults() *EnvironmentsEnvironmentIdPatch200ResponseData { + this := EnvironmentsEnvironmentIdPatch200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetDescription() string { + if o == nil || o.Description.Get() == nil { + var ret string + return ret + } + + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// SetDescription sets field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetDescription(v string) { + o.Description.Set(&v) +} + +// GetColor returns the Color field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetColor() string { + if o == nil { + var ret string + return ret + } + + return o.Color +} + +// GetColorOk returns a tuple with the Color field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetColorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Color, true +} + +// SetColor sets field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetColor(v string) { + o.Color = v +} + +// GetDefault returns the Default field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetDefault() bool { + if o == nil { + var ret bool + return ret + } + + return o.Default +} + +// GetDefaultOk returns a tuple with the Default field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetDefaultOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Default, true +} + +// SetDefault sets field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetDefault(v bool) { + o.Default = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +func (o EnvironmentsEnvironmentIdPatch200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentsEnvironmentIdPatch200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description.Get() + toSerialize["color"] = o.Color + toSerialize["default"] = o.Default + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentsEnvironmentIdPatch200ResponseData) 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{ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at", + } + + 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) + } + } + + varEnvironmentsEnvironmentIdPatch200ResponseData := _EnvironmentsEnvironmentIdPatch200ResponseData{} + + err = json.Unmarshal(data, &varEnvironmentsEnvironmentIdPatch200ResponseData) + + if err != nil { + return err + } + + *o = EnvironmentsEnvironmentIdPatch200ResponseData(varEnvironmentsEnvironmentIdPatch200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "color") + delete(additionalProperties, "default") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentsEnvironmentIdPatch200ResponseData struct { + value *EnvironmentsEnvironmentIdPatch200ResponseData + isSet bool +} + +func (v NullableEnvironmentsEnvironmentIdPatch200ResponseData) Get() *EnvironmentsEnvironmentIdPatch200ResponseData { + return v.value +} + +func (v *NullableEnvironmentsEnvironmentIdPatch200ResponseData) Set(val *EnvironmentsEnvironmentIdPatch200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentsEnvironmentIdPatch200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentsEnvironmentIdPatch200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentsEnvironmentIdPatch200ResponseData(val *EnvironmentsEnvironmentIdPatch200ResponseData) *NullableEnvironmentsEnvironmentIdPatch200ResponseData { + return &NullableEnvironmentsEnvironmentIdPatch200ResponseData{value: val, isSet: true} +} + +func (v NullableEnvironmentsEnvironmentIdPatch200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentsEnvironmentIdPatch200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__environments__environment_id__patch_request.go b/internal/sdk/api/model__environments__environment_id__patch_request.go new file mode 100644 index 0000000..c157314 --- /dev/null +++ b/internal/sdk/api/model__environments__environment_id__patch_request.go @@ -0,0 +1,159 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the EnvironmentsEnvironmentIdPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentsEnvironmentIdPatchRequest{} + +// EnvironmentsEnvironmentIdPatchRequest The body of a request to update an environment. +type EnvironmentsEnvironmentIdPatchRequest struct { + // A list of operations to apply to the environment. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. + Operations []ReplaceOperation `json:"operations"` +} + +type _EnvironmentsEnvironmentIdPatchRequest EnvironmentsEnvironmentIdPatchRequest + +// NewEnvironmentsEnvironmentIdPatchRequest instantiates a new EnvironmentsEnvironmentIdPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentsEnvironmentIdPatchRequest(operations []ReplaceOperation) *EnvironmentsEnvironmentIdPatchRequest { + this := EnvironmentsEnvironmentIdPatchRequest{} + this.Operations = operations + return &this +} + +// NewEnvironmentsEnvironmentIdPatchRequestWithDefaults instantiates a new EnvironmentsEnvironmentIdPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentsEnvironmentIdPatchRequestWithDefaults() *EnvironmentsEnvironmentIdPatchRequest { + this := EnvironmentsEnvironmentIdPatchRequest{} + return &this +} + +// GetOperations returns the Operations field value +func (o *EnvironmentsEnvironmentIdPatchRequest) GetOperations() []ReplaceOperation { + if o == nil { + var ret []ReplaceOperation + return ret + } + + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsEnvironmentIdPatchRequest) GetOperationsOk() ([]ReplaceOperation, bool) { + if o == nil { + return nil, false + } + return o.Operations, true +} + +// SetOperations sets field value +func (o *EnvironmentsEnvironmentIdPatchRequest) SetOperations(v []ReplaceOperation) { + o.Operations = v +} + +func (o EnvironmentsEnvironmentIdPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentsEnvironmentIdPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["operations"] = o.Operations + return toSerialize, nil +} + +func (o *EnvironmentsEnvironmentIdPatchRequest) 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{ + "operations", + } + + 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) + } + } + + varEnvironmentsEnvironmentIdPatchRequest := _EnvironmentsEnvironmentIdPatchRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEnvironmentsEnvironmentIdPatchRequest) + + if err != nil { + return err + } + + *o = EnvironmentsEnvironmentIdPatchRequest(varEnvironmentsEnvironmentIdPatchRequest) + + return err +} + +type NullableEnvironmentsEnvironmentIdPatchRequest struct { + value *EnvironmentsEnvironmentIdPatchRequest + isSet bool +} + +func (v NullableEnvironmentsEnvironmentIdPatchRequest) Get() *EnvironmentsEnvironmentIdPatchRequest { + return v.value +} + +func (v *NullableEnvironmentsEnvironmentIdPatchRequest) Set(val *EnvironmentsEnvironmentIdPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentsEnvironmentIdPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentsEnvironmentIdPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentsEnvironmentIdPatchRequest(val *EnvironmentsEnvironmentIdPatchRequest) *NullableEnvironmentsEnvironmentIdPatchRequest { + return &NullableEnvironmentsEnvironmentIdPatchRequest{value: val, isSet: true} +} + +func (v NullableEnvironmentsEnvironmentIdPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentsEnvironmentIdPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__environments_get_200_response.go b/internal/sdk/api/model__environments_get_200_response.go index fbc9479..33367bc 100644 --- a/internal/sdk/api/model__environments_get_200_response.go +++ b/internal/sdk/api/model__environments_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__environments_post_200_response.go b/internal/sdk/api/model__environments_post_200_response.go new file mode 100644 index 0000000..98ceb4f --- /dev/null +++ b/internal/sdk/api/model__environments_post_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentsPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentsPost200Response{} + +// EnvironmentsPost200Response struct for EnvironmentsPost200Response +type EnvironmentsPost200Response struct { + // API request succeeded + Success bool `json:"success"` + Data EnvironmentsPost200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentsPost200Response EnvironmentsPost200Response + +// NewEnvironmentsPost200Response instantiates a new EnvironmentsPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentsPost200Response(success bool, data EnvironmentsPost200ResponseData) *EnvironmentsPost200Response { + this := EnvironmentsPost200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewEnvironmentsPost200ResponseWithDefaults instantiates a new EnvironmentsPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentsPost200ResponseWithDefaults() *EnvironmentsPost200Response { + this := EnvironmentsPost200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *EnvironmentsPost200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPost200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *EnvironmentsPost200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *EnvironmentsPost200Response) GetData() EnvironmentsPost200ResponseData { + if o == nil { + var ret EnvironmentsPost200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPost200Response) GetDataOk() (*EnvironmentsPost200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *EnvironmentsPost200Response) SetData(v EnvironmentsPost200ResponseData) { + o.Data = v +} + +func (o EnvironmentsPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentsPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentsPost200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varEnvironmentsPost200Response := _EnvironmentsPost200Response{} + + err = json.Unmarshal(data, &varEnvironmentsPost200Response) + + if err != nil { + return err + } + + *o = EnvironmentsPost200Response(varEnvironmentsPost200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentsPost200Response struct { + value *EnvironmentsPost200Response + isSet bool +} + +func (v NullableEnvironmentsPost200Response) Get() *EnvironmentsPost200Response { + return v.value +} + +func (v *NullableEnvironmentsPost200Response) Set(val *EnvironmentsPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentsPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentsPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentsPost200Response(val *EnvironmentsPost200Response) *NullableEnvironmentsPost200Response { + return &NullableEnvironmentsPost200Response{value: val, isSet: true} +} + +func (v NullableEnvironmentsPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentsPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__environments_post_200_response_data.go b/internal/sdk/api/model__environments_post_200_response_data.go new file mode 100644 index 0000000..42972c9 --- /dev/null +++ b/internal/sdk/api/model__environments_post_200_response_data.go @@ -0,0 +1,344 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentsPost200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentsPost200ResponseData{} + +// EnvironmentsPost200ResponseData The created environment +type EnvironmentsPost200ResponseData struct { + Id string `json:"id"` + Name string `json:"name"` + Description NullableString `json:"description"` + Color string `json:"color"` + Default bool `json:"default"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentsPost200ResponseData EnvironmentsPost200ResponseData + +// NewEnvironmentsPost200ResponseData instantiates a new EnvironmentsPost200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentsPost200ResponseData(id string, name string, description NullableString, color string, default_ bool, createdAt string, updatedAt string) *EnvironmentsPost200ResponseData { + this := EnvironmentsPost200ResponseData{} + this.Id = id + this.Name = name + this.Description = description + this.Color = color + this.Default = default_ + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewEnvironmentsPost200ResponseDataWithDefaults instantiates a new EnvironmentsPost200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentsPost200ResponseDataWithDefaults() *EnvironmentsPost200ResponseData { + this := EnvironmentsPost200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *EnvironmentsPost200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPost200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *EnvironmentsPost200ResponseData) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *EnvironmentsPost200ResponseData) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPost200ResponseData) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *EnvironmentsPost200ResponseData) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned +func (o *EnvironmentsPost200ResponseData) GetDescription() string { + if o == nil || o.Description.Get() == nil { + var ret string + return ret + } + + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnvironmentsPost200ResponseData) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// SetDescription sets field value +func (o *EnvironmentsPost200ResponseData) SetDescription(v string) { + o.Description.Set(&v) +} + +// GetColor returns the Color field value +func (o *EnvironmentsPost200ResponseData) GetColor() string { + if o == nil { + var ret string + return ret + } + + return o.Color +} + +// GetColorOk returns a tuple with the Color field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPost200ResponseData) GetColorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Color, true +} + +// SetColor sets field value +func (o *EnvironmentsPost200ResponseData) SetColor(v string) { + o.Color = v +} + +// GetDefault returns the Default field value +func (o *EnvironmentsPost200ResponseData) GetDefault() bool { + if o == nil { + var ret bool + return ret + } + + return o.Default +} + +// GetDefaultOk returns a tuple with the Default field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPost200ResponseData) GetDefaultOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Default, true +} + +// SetDefault sets field value +func (o *EnvironmentsPost200ResponseData) SetDefault(v bool) { + o.Default = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *EnvironmentsPost200ResponseData) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPost200ResponseData) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *EnvironmentsPost200ResponseData) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *EnvironmentsPost200ResponseData) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPost200ResponseData) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *EnvironmentsPost200ResponseData) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +func (o EnvironmentsPost200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentsPost200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description.Get() + toSerialize["color"] = o.Color + toSerialize["default"] = o.Default + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentsPost200ResponseData) 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{ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at", + } + + 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) + } + } + + varEnvironmentsPost200ResponseData := _EnvironmentsPost200ResponseData{} + + err = json.Unmarshal(data, &varEnvironmentsPost200ResponseData) + + if err != nil { + return err + } + + *o = EnvironmentsPost200ResponseData(varEnvironmentsPost200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "color") + delete(additionalProperties, "default") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentsPost200ResponseData struct { + value *EnvironmentsPost200ResponseData + isSet bool +} + +func (v NullableEnvironmentsPost200ResponseData) Get() *EnvironmentsPost200ResponseData { + return v.value +} + +func (v *NullableEnvironmentsPost200ResponseData) Set(val *EnvironmentsPost200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentsPost200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentsPost200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentsPost200ResponseData(val *EnvironmentsPost200ResponseData) *NullableEnvironmentsPost200ResponseData { + return &NullableEnvironmentsPost200ResponseData{value: val, isSet: true} +} + +func (v NullableEnvironmentsPost200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentsPost200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__environments_post_request.go b/internal/sdk/api/model__environments_post_request.go new file mode 100644 index 0000000..25daf91 --- /dev/null +++ b/internal/sdk/api/model__environments_post_request.go @@ -0,0 +1,237 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentsPostRequest{} + +// EnvironmentsPostRequest struct for EnvironmentsPostRequest +type EnvironmentsPostRequest struct { + // The name of the environment. + Name string `json:"name"` + // A description for the environment. + Description *string `json:"description,omitempty"` + // The (hexadecimal) color of the environment. + Color string `json:"color"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentsPostRequest EnvironmentsPostRequest + +// NewEnvironmentsPostRequest instantiates a new EnvironmentsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentsPostRequest(name string, color string) *EnvironmentsPostRequest { + this := EnvironmentsPostRequest{} + this.Name = name + this.Color = color + return &this +} + +// NewEnvironmentsPostRequestWithDefaults instantiates a new EnvironmentsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentsPostRequestWithDefaults() *EnvironmentsPostRequest { + this := EnvironmentsPostRequest{} + return &this +} + +// GetName returns the Name field value +func (o *EnvironmentsPostRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPostRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *EnvironmentsPostRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *EnvironmentsPostRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentsPostRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *EnvironmentsPostRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *EnvironmentsPostRequest) SetDescription(v string) { + o.Description = &v +} + +// GetColor returns the Color field value +func (o *EnvironmentsPostRequest) GetColor() string { + if o == nil { + var ret string + return ret + } + + return o.Color +} + +// GetColorOk returns a tuple with the Color field value +// and a boolean to check if the value has been set. +func (o *EnvironmentsPostRequest) GetColorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Color, true +} + +// SetColor sets field value +func (o *EnvironmentsPostRequest) SetColor(v string) { + o.Color = v +} + +func (o EnvironmentsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["color"] = o.Color + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentsPostRequest) 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", + "color", + } + + 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) + } + } + + varEnvironmentsPostRequest := _EnvironmentsPostRequest{} + + err = json.Unmarshal(data, &varEnvironmentsPostRequest) + + if err != nil { + return err + } + + *o = EnvironmentsPostRequest(varEnvironmentsPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "color") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentsPostRequest struct { + value *EnvironmentsPostRequest + isSet bool +} + +func (v NullableEnvironmentsPostRequest) Get() *EnvironmentsPostRequest { + return v.value +} + +func (v *NullableEnvironmentsPostRequest) Set(val *EnvironmentsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentsPostRequest(val *EnvironmentsPostRequest) *NullableEnvironmentsPostRequest { + return &NullableEnvironmentsPostRequest{value: val, isSet: true} +} + +func (v NullableEnvironmentsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__folders__folder_id__get_200_response.go b/internal/sdk/api/model__folders__folder_id__get_200_response.go index ca2a93d..b0c25ed 100644 --- a/internal/sdk/api/model__folders__folder_id__get_200_response.go +++ b/internal/sdk/api/model__folders__folder_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders__folder_id__get_200_response_data.go b/internal/sdk/api/model__folders__folder_id__get_200_response_data.go index 37fa474..60c5ba4 100644 --- a/internal/sdk/api/model__folders__folder_id__get_200_response_data.go +++ b/internal/sdk/api/model__folders__folder_id__get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders__folder_id__patch_200_response.go b/internal/sdk/api/model__folders__folder_id__patch_200_response.go index 566253a..b0dcbef 100644 --- a/internal/sdk/api/model__folders__folder_id__patch_200_response.go +++ b/internal/sdk/api/model__folders__folder_id__patch_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders__folder_id__patch_200_response_data.go b/internal/sdk/api/model__folders__folder_id__patch_200_response_data.go index 86f458c..2a46740 100644 --- a/internal/sdk/api/model__folders__folder_id__patch_200_response_data.go +++ b/internal/sdk/api/model__folders__folder_id__patch_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders__folder_id__patch_request.go b/internal/sdk/api/model__folders__folder_id__patch_request.go index e9fb522..adff041 100644 --- a/internal/sdk/api/model__folders__folder_id__patch_request.go +++ b/internal/sdk/api/model__folders__folder_id__patch_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders__folder_id__patch_request_operations_inner.go b/internal/sdk/api/model__folders__folder_id__patch_request_operations_inner.go index dff6686..a508875 100644 --- a/internal/sdk/api/model__folders__folder_id__patch_request_operations_inner.go +++ b/internal/sdk/api/model__folders__folder_id__patch_request_operations_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,122 +17,122 @@ import ( // FoldersFolderIdPatchRequestOperationsInner struct for FoldersFolderIdPatchRequestOperationsInner type FoldersFolderIdPatchRequestOperationsInner struct { - FoldersFolderIdPatchRequestOperationsInnerAnyOf *FoldersFolderIdPatchRequestOperationsInnerAnyOf - FoldersFolderIdPatchRequestOperationsInnerAnyOf1 *FoldersFolderIdPatchRequestOperationsInnerAnyOf1 - FoldersFolderIdPatchRequestOperationsInnerAnyOf2 *FoldersFolderIdPatchRequestOperationsInnerAnyOf2 - UsersUserIdPatchRequestOperationsInnerAnyOf *UsersUserIdPatchRequestOperationsInnerAnyOf - UsersUserIdPatchRequestOperationsInnerAnyOf1 *UsersUserIdPatchRequestOperationsInnerAnyOf1 - UsersUserIdPatchRequestOperationsInnerAnyOf2 *UsersUserIdPatchRequestOperationsInnerAnyOf2 + AddOperation *AddOperation + CopyOperation *CopyOperation + MoveOperation *MoveOperation + RemoveOperation *RemoveOperation + ReplaceOperation *ReplaceOperation + TestOperation *TestOperation } // Unmarshal JSON data into any of the pointers in the struct func (dst *FoldersFolderIdPatchRequestOperationsInner) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into FoldersFolderIdPatchRequestOperationsInnerAnyOf - err = json.Unmarshal(data, &dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf); + // try to unmarshal JSON data into AddOperation + err = json.Unmarshal(data, &dst.AddOperation); if err == nil { - jsonFoldersFolderIdPatchRequestOperationsInnerAnyOf, _ := json.Marshal(dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf) - if string(jsonFoldersFolderIdPatchRequestOperationsInnerAnyOf) == "{}" { // empty struct - dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf = nil + jsonAddOperation, _ := json.Marshal(dst.AddOperation) + if string(jsonAddOperation) == "{}" { // empty struct + dst.AddOperation = nil } else { - return nil // data stored in dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf, return on the first match + return nil // data stored in dst.AddOperation, return on the first match } } else { - dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf = nil + dst.AddOperation = nil } - // try to unmarshal JSON data into FoldersFolderIdPatchRequestOperationsInnerAnyOf1 - err = json.Unmarshal(data, &dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf1); + // try to unmarshal JSON data into CopyOperation + err = json.Unmarshal(data, &dst.CopyOperation); if err == nil { - jsonFoldersFolderIdPatchRequestOperationsInnerAnyOf1, _ := json.Marshal(dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf1) - if string(jsonFoldersFolderIdPatchRequestOperationsInnerAnyOf1) == "{}" { // empty struct - dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf1 = nil + jsonCopyOperation, _ := json.Marshal(dst.CopyOperation) + if string(jsonCopyOperation) == "{}" { // empty struct + dst.CopyOperation = nil } else { - return nil // data stored in dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf1, return on the first match + return nil // data stored in dst.CopyOperation, return on the first match } } else { - dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf1 = nil + dst.CopyOperation = nil } - // try to unmarshal JSON data into FoldersFolderIdPatchRequestOperationsInnerAnyOf2 - err = json.Unmarshal(data, &dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf2); + // try to unmarshal JSON data into MoveOperation + err = json.Unmarshal(data, &dst.MoveOperation); if err == nil { - jsonFoldersFolderIdPatchRequestOperationsInnerAnyOf2, _ := json.Marshal(dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf2) - if string(jsonFoldersFolderIdPatchRequestOperationsInnerAnyOf2) == "{}" { // empty struct - dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf2 = nil + jsonMoveOperation, _ := json.Marshal(dst.MoveOperation) + if string(jsonMoveOperation) == "{}" { // empty struct + dst.MoveOperation = nil } else { - return nil // data stored in dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf2, return on the first match + return nil // data stored in dst.MoveOperation, return on the first match } } else { - dst.FoldersFolderIdPatchRequestOperationsInnerAnyOf2 = nil + dst.MoveOperation = nil } - // try to unmarshal JSON data into UsersUserIdPatchRequestOperationsInnerAnyOf - err = json.Unmarshal(data, &dst.UsersUserIdPatchRequestOperationsInnerAnyOf); + // try to unmarshal JSON data into RemoveOperation + err = json.Unmarshal(data, &dst.RemoveOperation); if err == nil { - jsonUsersUserIdPatchRequestOperationsInnerAnyOf, _ := json.Marshal(dst.UsersUserIdPatchRequestOperationsInnerAnyOf) - if string(jsonUsersUserIdPatchRequestOperationsInnerAnyOf) == "{}" { // empty struct - dst.UsersUserIdPatchRequestOperationsInnerAnyOf = nil + jsonRemoveOperation, _ := json.Marshal(dst.RemoveOperation) + if string(jsonRemoveOperation) == "{}" { // empty struct + dst.RemoveOperation = nil } else { - return nil // data stored in dst.UsersUserIdPatchRequestOperationsInnerAnyOf, return on the first match + return nil // data stored in dst.RemoveOperation, return on the first match } } else { - dst.UsersUserIdPatchRequestOperationsInnerAnyOf = nil + dst.RemoveOperation = nil } - // try to unmarshal JSON data into UsersUserIdPatchRequestOperationsInnerAnyOf1 - err = json.Unmarshal(data, &dst.UsersUserIdPatchRequestOperationsInnerAnyOf1); + // try to unmarshal JSON data into ReplaceOperation + err = json.Unmarshal(data, &dst.ReplaceOperation); if err == nil { - jsonUsersUserIdPatchRequestOperationsInnerAnyOf1, _ := json.Marshal(dst.UsersUserIdPatchRequestOperationsInnerAnyOf1) - if string(jsonUsersUserIdPatchRequestOperationsInnerAnyOf1) == "{}" { // empty struct - dst.UsersUserIdPatchRequestOperationsInnerAnyOf1 = nil + jsonReplaceOperation, _ := json.Marshal(dst.ReplaceOperation) + if string(jsonReplaceOperation) == "{}" { // empty struct + dst.ReplaceOperation = nil } else { - return nil // data stored in dst.UsersUserIdPatchRequestOperationsInnerAnyOf1, return on the first match + return nil // data stored in dst.ReplaceOperation, return on the first match } } else { - dst.UsersUserIdPatchRequestOperationsInnerAnyOf1 = nil + dst.ReplaceOperation = nil } - // try to unmarshal JSON data into UsersUserIdPatchRequestOperationsInnerAnyOf2 - err = json.Unmarshal(data, &dst.UsersUserIdPatchRequestOperationsInnerAnyOf2); + // try to unmarshal JSON data into TestOperation + err = json.Unmarshal(data, &dst.TestOperation); if err == nil { - jsonUsersUserIdPatchRequestOperationsInnerAnyOf2, _ := json.Marshal(dst.UsersUserIdPatchRequestOperationsInnerAnyOf2) - if string(jsonUsersUserIdPatchRequestOperationsInnerAnyOf2) == "{}" { // empty struct - dst.UsersUserIdPatchRequestOperationsInnerAnyOf2 = nil + jsonTestOperation, _ := json.Marshal(dst.TestOperation) + if string(jsonTestOperation) == "{}" { // empty struct + dst.TestOperation = nil } else { - return nil // data stored in dst.UsersUserIdPatchRequestOperationsInnerAnyOf2, return on the first match + return nil // data stored in dst.TestOperation, return on the first match } } else { - dst.UsersUserIdPatchRequestOperationsInnerAnyOf2 = nil + dst.TestOperation = nil } return fmt.Errorf("data failed to match schemas in anyOf(FoldersFolderIdPatchRequestOperationsInner)") } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *FoldersFolderIdPatchRequestOperationsInner) MarshalJSON() ([]byte, error) { - if src.FoldersFolderIdPatchRequestOperationsInnerAnyOf != nil { - return json.Marshal(&src.FoldersFolderIdPatchRequestOperationsInnerAnyOf) +func (src FoldersFolderIdPatchRequestOperationsInner) MarshalJSON() ([]byte, error) { + if src.AddOperation != nil { + return json.Marshal(src.AddOperation) } - if src.FoldersFolderIdPatchRequestOperationsInnerAnyOf1 != nil { - return json.Marshal(&src.FoldersFolderIdPatchRequestOperationsInnerAnyOf1) + if src.CopyOperation != nil { + return json.Marshal(src.CopyOperation) } - if src.FoldersFolderIdPatchRequestOperationsInnerAnyOf2 != nil { - return json.Marshal(&src.FoldersFolderIdPatchRequestOperationsInnerAnyOf2) + if src.MoveOperation != nil { + return json.Marshal(src.MoveOperation) } - if src.UsersUserIdPatchRequestOperationsInnerAnyOf != nil { - return json.Marshal(&src.UsersUserIdPatchRequestOperationsInnerAnyOf) + if src.RemoveOperation != nil { + return json.Marshal(src.RemoveOperation) } - if src.UsersUserIdPatchRequestOperationsInnerAnyOf1 != nil { - return json.Marshal(&src.UsersUserIdPatchRequestOperationsInnerAnyOf1) + if src.ReplaceOperation != nil { + return json.Marshal(src.ReplaceOperation) } - if src.UsersUserIdPatchRequestOperationsInnerAnyOf2 != nil { - return json.Marshal(&src.UsersUserIdPatchRequestOperationsInnerAnyOf2) + if src.TestOperation != nil { + return json.Marshal(src.TestOperation) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__folders_get_200_response.go b/internal/sdk/api/model__folders_get_200_response.go index 4c7e844..0d0d305 100644 --- a/internal/sdk/api/model__folders_get_200_response.go +++ b/internal/sdk/api/model__folders_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders_get_200_response_data_inner.go b/internal/sdk/api/model__folders_get_200_response_data_inner.go index fa24fe3..231a1ad 100644 --- a/internal/sdk/api/model__folders_get_200_response_data_inner.go +++ b/internal/sdk/api/model__folders_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders_post_200_response.go b/internal/sdk/api/model__folders_post_200_response.go index dcb4150..2ea6881 100644 --- a/internal/sdk/api/model__folders_post_200_response.go +++ b/internal/sdk/api/model__folders_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders_post_200_response_data.go b/internal/sdk/api/model__folders_post_200_response_data.go index 0e5b9e0..fe764bd 100644 --- a/internal/sdk/api/model__folders_post_200_response_data.go +++ b/internal/sdk/api/model__folders_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders_post_409_response.go b/internal/sdk/api/model__folders_post_409_response.go index 35e9be7..6884a3a 100644 --- a/internal/sdk/api/model__folders_post_409_response.go +++ b/internal/sdk/api/model__folders_post_409_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__folders_post_request.go b/internal/sdk/api/model__folders_post_request.go index 5e2d63e..756d49f 100644 --- a/internal/sdk/api/model__folders_post_request.go +++ b/internal/sdk/api/model__folders_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__groups__group_id__get_200_response.go b/internal/sdk/api/model__groups__group_id__get_200_response.go index dc0d5f1..a3b3fc7 100644 --- a/internal/sdk/api/model__groups__group_id__get_200_response.go +++ b/internal/sdk/api/model__groups__group_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__groups__group_id__get_200_response_data.go b/internal/sdk/api/model__groups__group_id__get_200_response_data.go index 76fa78e..75ae566 100644 --- a/internal/sdk/api/model__groups__group_id__get_200_response_data.go +++ b/internal/sdk/api/model__groups__group_id__get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -46,6 +46,8 @@ type GroupsGroupIdGet200ResponseData struct { UnpublishedReleaseAccess bool `json:"unpublished_release_access"` // Whether the group has access to usage analytics UsageAnalyticsAccess bool `json:"usage_analytics_access"` + // Whether the group has access to edit themes + ThemeAccess bool `json:"theme_access"` // Whether the group has access to account details AccountDetailsAccess bool `json:"account_details_access"` // The app ID of the landing page @@ -61,7 +63,7 @@ type _GroupsGroupIdGet200ResponseData GroupsGroupIdGet200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGroupsGroupIdGet200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *GroupsGroupIdGet200ResponseData { +func NewGroupsGroupIdGet200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, themeAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *GroupsGroupIdGet200ResponseData { this := GroupsGroupIdGet200ResponseData{} this.Id = id this.LegacyId = legacyId @@ -76,6 +78,7 @@ func NewGroupsGroupIdGet200ResponseData(id NullableFloat32, legacyId NullableFlo this.AuditLogAccess = auditLogAccess this.UnpublishedReleaseAccess = unpublishedReleaseAccess this.UsageAnalyticsAccess = usageAnalyticsAccess + this.ThemeAccess = themeAccess this.AccountDetailsAccess = accountDetailsAccess this.LandingPageAppId = landingPageAppId this.CreatedAt = createdAt @@ -407,6 +410,30 @@ func (o *GroupsGroupIdGet200ResponseData) SetUsageAnalyticsAccess(v bool) { o.UsageAnalyticsAccess = v } +// GetThemeAccess returns the ThemeAccess field value +func (o *GroupsGroupIdGet200ResponseData) GetThemeAccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.ThemeAccess +} + +// GetThemeAccessOk returns a tuple with the ThemeAccess field value +// and a boolean to check if the value has been set. +func (o *GroupsGroupIdGet200ResponseData) GetThemeAccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ThemeAccess, true +} + +// SetThemeAccess sets field value +func (o *GroupsGroupIdGet200ResponseData) SetThemeAccess(v bool) { + o.ThemeAccess = v +} + // GetAccountDetailsAccess returns the AccountDetailsAccess field value func (o *GroupsGroupIdGet200ResponseData) GetAccountDetailsAccess() bool { if o == nil { @@ -528,6 +555,7 @@ func (o GroupsGroupIdGet200ResponseData) ToMap() (map[string]interface{}, error) toSerialize["audit_log_access"] = o.AuditLogAccess toSerialize["unpublished_release_access"] = o.UnpublishedReleaseAccess toSerialize["usage_analytics_access"] = o.UsageAnalyticsAccess + toSerialize["theme_access"] = o.ThemeAccess toSerialize["account_details_access"] = o.AccountDetailsAccess toSerialize["landing_page_app_id"] = o.LandingPageAppId.Get() toSerialize["created_at"] = o.CreatedAt @@ -558,6 +586,7 @@ func (o *GroupsGroupIdGet200ResponseData) UnmarshalJSON(data []byte) (err error) "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -604,6 +633,7 @@ func (o *GroupsGroupIdGet200ResponseData) UnmarshalJSON(data []byte) (err error) delete(additionalProperties, "audit_log_access") delete(additionalProperties, "unpublished_release_access") delete(additionalProperties, "usage_analytics_access") + delete(additionalProperties, "theme_access") delete(additionalProperties, "account_details_access") delete(additionalProperties, "landing_page_app_id") delete(additionalProperties, "created_at") diff --git a/internal/sdk/api/model__groups__group_id__get_200_response_data_members_inner.go b/internal/sdk/api/model__groups__group_id__get_200_response_data_members_inner.go index e665a25..487dba6 100644 --- a/internal/sdk/api/model__groups__group_id__get_200_response_data_members_inner.go +++ b/internal/sdk/api/model__groups__group_id__get_200_response_data_members_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__groups__group_id__get_200_response_data_user_invites_inner.go b/internal/sdk/api/model__groups__group_id__get_200_response_data_user_invites_inner.go index e035a88..565490c 100644 --- a/internal/sdk/api/model__groups__group_id__get_200_response_data_user_invites_inner.go +++ b/internal/sdk/api/model__groups__group_id__get_200_response_data_user_invites_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,7 @@ type GroupsGroupIdGet200ResponseDataUserInvitesInner struct { UserType NullableString `json:"user_type"` Metadata map[string]interface{} `json:"metadata"` CreatedAt string `json:"created_at"` + // User invite link expires 7 days after generation. InviteLink *string `json:"invite_link,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/internal/sdk/api/model__groups__group_id__members_post_request.go b/internal/sdk/api/model__groups__group_id__members_post_request.go index 4188214..818763a 100644 --- a/internal/sdk/api/model__groups__group_id__members_post_request.go +++ b/internal/sdk/api/model__groups__group_id__members_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &GroupsGroupIdMembersPostRequest{} // GroupsGroupIdMembersPostRequest struct for GroupsGroupIdMembersPostRequest type GroupsGroupIdMembersPostRequest struct { - // Users to add to the group. Pass in an empty list to create a group with no members. + // Users to add to the group. Members []GroupsGroupIdPutRequestMembersInner `json:"members"` AdditionalProperties map[string]interface{} } diff --git a/internal/sdk/api/model__groups__group_id__patch_request.go b/internal/sdk/api/model__groups__group_id__patch_request.go index f54ce9e..99c6290 100644 --- a/internal/sdk/api/model__groups__group_id__patch_request.go +++ b/internal/sdk/api/model__groups__group_id__patch_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,7 @@ var _ MappedNullable = &GroupsGroupIdPatchRequest{} // GroupsGroupIdPatchRequest The body of a request to update a group. type GroupsGroupIdPatchRequest struct { // A list of operations to apply to the group. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. - Operations []GroupsGroupIdPatchRequestOperationsInner `json:"operations"` + Operations []UsersUserIdPatchRequestOperationsInner `json:"operations"` } type _GroupsGroupIdPatchRequest GroupsGroupIdPatchRequest @@ -31,7 +31,7 @@ type _GroupsGroupIdPatchRequest GroupsGroupIdPatchRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGroupsGroupIdPatchRequest(operations []GroupsGroupIdPatchRequestOperationsInner) *GroupsGroupIdPatchRequest { +func NewGroupsGroupIdPatchRequest(operations []UsersUserIdPatchRequestOperationsInner) *GroupsGroupIdPatchRequest { this := GroupsGroupIdPatchRequest{} this.Operations = operations return &this @@ -46,9 +46,9 @@ func NewGroupsGroupIdPatchRequestWithDefaults() *GroupsGroupIdPatchRequest { } // GetOperations returns the Operations field value -func (o *GroupsGroupIdPatchRequest) GetOperations() []GroupsGroupIdPatchRequestOperationsInner { +func (o *GroupsGroupIdPatchRequest) GetOperations() []UsersUserIdPatchRequestOperationsInner { if o == nil { - var ret []GroupsGroupIdPatchRequestOperationsInner + var ret []UsersUserIdPatchRequestOperationsInner return ret } @@ -57,7 +57,7 @@ func (o *GroupsGroupIdPatchRequest) GetOperations() []GroupsGroupIdPatchRequestO // GetOperationsOk returns a tuple with the Operations field value // and a boolean to check if the value has been set. -func (o *GroupsGroupIdPatchRequest) GetOperationsOk() ([]GroupsGroupIdPatchRequestOperationsInner, bool) { +func (o *GroupsGroupIdPatchRequest) GetOperationsOk() ([]UsersUserIdPatchRequestOperationsInner, bool) { if o == nil { return nil, false } @@ -65,7 +65,7 @@ func (o *GroupsGroupIdPatchRequest) GetOperationsOk() ([]GroupsGroupIdPatchReque } // SetOperations sets field value -func (o *GroupsGroupIdPatchRequest) SetOperations(v []GroupsGroupIdPatchRequestOperationsInner) { +func (o *GroupsGroupIdPatchRequest) SetOperations(v []UsersUserIdPatchRequestOperationsInner) { o.Operations = v } diff --git a/internal/sdk/api/model__groups__group_id__patch_request_operations_inner.go b/internal/sdk/api/model__groups__group_id__patch_request_operations_inner.go index e8443ba..9c704c5 100644 --- a/internal/sdk/api/model__groups__group_id__patch_request_operations_inner.go +++ b/internal/sdk/api/model__groups__group_id__patch_request_operations_inner.go @@ -68,17 +68,17 @@ func (dst *GroupsGroupIdPatchRequestOperationsInner) UnmarshalJSON(data []byte) } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *GroupsGroupIdPatchRequestOperationsInner) MarshalJSON() ([]byte, error) { +func (src GroupsGroupIdPatchRequestOperationsInner) MarshalJSON() ([]byte, error) { if src.AddOperation != nil { - return json.Marshal(&src.AddOperation) + return json.Marshal(src.AddOperation) } if src.RemoveOperation != nil { - return json.Marshal(&src.RemoveOperation) + return json.Marshal(src.RemoveOperation) } if src.ReplaceOperation != nil { - return json.Marshal(&src.ReplaceOperation) + return json.Marshal(src.ReplaceOperation) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__groups__group_id__put_200_response.go b/internal/sdk/api/model__groups__group_id__put_200_response.go index a02b266..0a0a02c 100644 --- a/internal/sdk/api/model__groups__group_id__put_200_response.go +++ b/internal/sdk/api/model__groups__group_id__put_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__groups__group_id__put_200_response_data.go b/internal/sdk/api/model__groups__group_id__put_200_response_data.go index fd4c92f..c8dcc2a 100644 --- a/internal/sdk/api/model__groups__group_id__put_200_response_data.go +++ b/internal/sdk/api/model__groups__group_id__put_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -46,6 +46,8 @@ type GroupsGroupIdPut200ResponseData struct { UnpublishedReleaseAccess bool `json:"unpublished_release_access"` // Whether the group has access to usage analytics UsageAnalyticsAccess bool `json:"usage_analytics_access"` + // Whether the group has access to edit themes + ThemeAccess bool `json:"theme_access"` // Whether the group has access to account details AccountDetailsAccess bool `json:"account_details_access"` // The app ID of the landing page @@ -61,7 +63,7 @@ type _GroupsGroupIdPut200ResponseData GroupsGroupIdPut200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGroupsGroupIdPut200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *GroupsGroupIdPut200ResponseData { +func NewGroupsGroupIdPut200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, themeAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *GroupsGroupIdPut200ResponseData { this := GroupsGroupIdPut200ResponseData{} this.Id = id this.LegacyId = legacyId @@ -76,6 +78,7 @@ func NewGroupsGroupIdPut200ResponseData(id NullableFloat32, legacyId NullableFlo this.AuditLogAccess = auditLogAccess this.UnpublishedReleaseAccess = unpublishedReleaseAccess this.UsageAnalyticsAccess = usageAnalyticsAccess + this.ThemeAccess = themeAccess this.AccountDetailsAccess = accountDetailsAccess this.LandingPageAppId = landingPageAppId this.CreatedAt = createdAt @@ -407,6 +410,30 @@ func (o *GroupsGroupIdPut200ResponseData) SetUsageAnalyticsAccess(v bool) { o.UsageAnalyticsAccess = v } +// GetThemeAccess returns the ThemeAccess field value +func (o *GroupsGroupIdPut200ResponseData) GetThemeAccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.ThemeAccess +} + +// GetThemeAccessOk returns a tuple with the ThemeAccess field value +// and a boolean to check if the value has been set. +func (o *GroupsGroupIdPut200ResponseData) GetThemeAccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ThemeAccess, true +} + +// SetThemeAccess sets field value +func (o *GroupsGroupIdPut200ResponseData) SetThemeAccess(v bool) { + o.ThemeAccess = v +} + // GetAccountDetailsAccess returns the AccountDetailsAccess field value func (o *GroupsGroupIdPut200ResponseData) GetAccountDetailsAccess() bool { if o == nil { @@ -528,6 +555,7 @@ func (o GroupsGroupIdPut200ResponseData) ToMap() (map[string]interface{}, error) toSerialize["audit_log_access"] = o.AuditLogAccess toSerialize["unpublished_release_access"] = o.UnpublishedReleaseAccess toSerialize["usage_analytics_access"] = o.UsageAnalyticsAccess + toSerialize["theme_access"] = o.ThemeAccess toSerialize["account_details_access"] = o.AccountDetailsAccess toSerialize["landing_page_app_id"] = o.LandingPageAppId.Get() toSerialize["created_at"] = o.CreatedAt @@ -558,6 +586,7 @@ func (o *GroupsGroupIdPut200ResponseData) UnmarshalJSON(data []byte) (err error) "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -604,6 +633,7 @@ func (o *GroupsGroupIdPut200ResponseData) UnmarshalJSON(data []byte) (err error) delete(additionalProperties, "audit_log_access") delete(additionalProperties, "unpublished_release_access") delete(additionalProperties, "usage_analytics_access") + delete(additionalProperties, "theme_access") delete(additionalProperties, "account_details_access") delete(additionalProperties, "landing_page_app_id") delete(additionalProperties, "created_at") diff --git a/internal/sdk/api/model__groups__group_id__put_request.go b/internal/sdk/api/model__groups__group_id__put_request.go index e5b554a..3a4fb08 100644 --- a/internal/sdk/api/model__groups__group_id__put_request.go +++ b/internal/sdk/api/model__groups__group_id__put_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ var _ MappedNullable = &GroupsGroupIdPutRequest{} type GroupsGroupIdPutRequest struct { // The name of the group. Name *string `json:"name,omitempty"` - // Users to add to the group. Pass in an empty list to create a group with no members. + // Users to add to the group. Members []GroupsGroupIdPutRequestMembersInner `json:"members,omitempty"` // The universal app access level for the group. This denotes the access level that this group has for all apps. UniversalAppAccess *string `json:"universal_app_access,omitempty"` @@ -41,6 +41,8 @@ type GroupsGroupIdPutRequest struct { UnpublishedReleaseAccess *bool `json:"unpublished_release_access,omitempty"` // Whether the group has access to usage analytics UsageAnalyticsAccess *bool `json:"usage_analytics_access,omitempty"` + // Whether the group has access to edit themes + ThemeAccess *bool `json:"theme_access,omitempty"` // Whether the group has access to account details AccountDetailsAccess *bool `json:"account_details_access,omitempty"` // The app ID of the landing page @@ -421,6 +423,38 @@ func (o *GroupsGroupIdPutRequest) SetUsageAnalyticsAccess(v bool) { o.UsageAnalyticsAccess = &v } +// GetThemeAccess returns the ThemeAccess field value if set, zero value otherwise. +func (o *GroupsGroupIdPutRequest) GetThemeAccess() bool { + if o == nil || IsNil(o.ThemeAccess) { + var ret bool + return ret + } + return *o.ThemeAccess +} + +// GetThemeAccessOk returns a tuple with the ThemeAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupsGroupIdPutRequest) GetThemeAccessOk() (*bool, bool) { + if o == nil || IsNil(o.ThemeAccess) { + return nil, false + } + return o.ThemeAccess, true +} + +// HasThemeAccess returns a boolean if a field has been set. +func (o *GroupsGroupIdPutRequest) HasThemeAccess() bool { + if o != nil && !IsNil(o.ThemeAccess) { + return true + } + + return false +} + +// SetThemeAccess gets a reference to the given bool and assigns it to the ThemeAccess field. +func (o *GroupsGroupIdPutRequest) SetThemeAccess(v bool) { + o.ThemeAccess = &v +} + // GetAccountDetailsAccess returns the AccountDetailsAccess field value if set, zero value otherwise. func (o *GroupsGroupIdPutRequest) GetAccountDetailsAccess() bool { if o == nil || IsNil(o.AccountDetailsAccess) { @@ -602,6 +636,9 @@ func (o GroupsGroupIdPutRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.UsageAnalyticsAccess) { toSerialize["usage_analytics_access"] = o.UsageAnalyticsAccess } + if !IsNil(o.ThemeAccess) { + toSerialize["theme_access"] = o.ThemeAccess + } if !IsNil(o.AccountDetailsAccess) { toSerialize["account_details_access"] = o.AccountDetailsAccess } @@ -647,6 +684,7 @@ func (o *GroupsGroupIdPutRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "audit_log_access") delete(additionalProperties, "unpublished_release_access") delete(additionalProperties, "usage_analytics_access") + delete(additionalProperties, "theme_access") delete(additionalProperties, "account_details_access") delete(additionalProperties, "landing_page_app_id") delete(additionalProperties, "created_at") diff --git a/internal/sdk/api/model__groups__group_id__put_request_members_inner.go b/internal/sdk/api/model__groups__group_id__put_request_members_inner.go index ad93b5d..2c31d53 100644 --- a/internal/sdk/api/model__groups__group_id__put_request_members_inner.go +++ b/internal/sdk/api/model__groups__group_id__put_request_members_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__groups__group_id__user_invites_post_request.go b/internal/sdk/api/model__groups__group_id__user_invites_post_request.go index 83eb2dc..d3df31b 100644 --- a/internal/sdk/api/model__groups__group_id__user_invites_post_request.go +++ b/internal/sdk/api/model__groups__group_id__user_invites_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__groups_get_200_response.go b/internal/sdk/api/model__groups_get_200_response.go index 4bc17e5..9e203cc 100644 --- a/internal/sdk/api/model__groups_get_200_response.go +++ b/internal/sdk/api/model__groups_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__groups_get_200_response_data_inner.go b/internal/sdk/api/model__groups_get_200_response_data_inner.go index 53c614b..c3c1040 100644 --- a/internal/sdk/api/model__groups_get_200_response_data_inner.go +++ b/internal/sdk/api/model__groups_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -46,6 +46,8 @@ type GroupsGet200ResponseDataInner struct { UnpublishedReleaseAccess bool `json:"unpublished_release_access"` // Whether the group has access to usage analytics UsageAnalyticsAccess bool `json:"usage_analytics_access"` + // Whether the group has access to edit themes + ThemeAccess bool `json:"theme_access"` // Whether the group has access to account details AccountDetailsAccess bool `json:"account_details_access"` // The app ID of the landing page @@ -61,7 +63,7 @@ type _GroupsGet200ResponseDataInner GroupsGet200ResponseDataInner // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGroupsGet200ResponseDataInner(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *GroupsGet200ResponseDataInner { +func NewGroupsGet200ResponseDataInner(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, themeAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *GroupsGet200ResponseDataInner { this := GroupsGet200ResponseDataInner{} this.Id = id this.LegacyId = legacyId @@ -76,6 +78,7 @@ func NewGroupsGet200ResponseDataInner(id NullableFloat32, legacyId NullableFloat this.AuditLogAccess = auditLogAccess this.UnpublishedReleaseAccess = unpublishedReleaseAccess this.UsageAnalyticsAccess = usageAnalyticsAccess + this.ThemeAccess = themeAccess this.AccountDetailsAccess = accountDetailsAccess this.LandingPageAppId = landingPageAppId this.CreatedAt = createdAt @@ -407,6 +410,30 @@ func (o *GroupsGet200ResponseDataInner) SetUsageAnalyticsAccess(v bool) { o.UsageAnalyticsAccess = v } +// GetThemeAccess returns the ThemeAccess field value +func (o *GroupsGet200ResponseDataInner) GetThemeAccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.ThemeAccess +} + +// GetThemeAccessOk returns a tuple with the ThemeAccess field value +// and a boolean to check if the value has been set. +func (o *GroupsGet200ResponseDataInner) GetThemeAccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ThemeAccess, true +} + +// SetThemeAccess sets field value +func (o *GroupsGet200ResponseDataInner) SetThemeAccess(v bool) { + o.ThemeAccess = v +} + // GetAccountDetailsAccess returns the AccountDetailsAccess field value func (o *GroupsGet200ResponseDataInner) GetAccountDetailsAccess() bool { if o == nil { @@ -528,6 +555,7 @@ func (o GroupsGet200ResponseDataInner) ToMap() (map[string]interface{}, error) { toSerialize["audit_log_access"] = o.AuditLogAccess toSerialize["unpublished_release_access"] = o.UnpublishedReleaseAccess toSerialize["usage_analytics_access"] = o.UsageAnalyticsAccess + toSerialize["theme_access"] = o.ThemeAccess toSerialize["account_details_access"] = o.AccountDetailsAccess toSerialize["landing_page_app_id"] = o.LandingPageAppId.Get() toSerialize["created_at"] = o.CreatedAt @@ -558,6 +586,7 @@ func (o *GroupsGet200ResponseDataInner) UnmarshalJSON(data []byte) (err error) { "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -604,6 +633,7 @@ func (o *GroupsGet200ResponseDataInner) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "audit_log_access") delete(additionalProperties, "unpublished_release_access") delete(additionalProperties, "usage_analytics_access") + delete(additionalProperties, "theme_access") delete(additionalProperties, "account_details_access") delete(additionalProperties, "landing_page_app_id") delete(additionalProperties, "created_at") diff --git a/internal/sdk/api/model__groups_post_200_response.go b/internal/sdk/api/model__groups_post_200_response.go index fd3602d..f0ee1c4 100644 --- a/internal/sdk/api/model__groups_post_200_response.go +++ b/internal/sdk/api/model__groups_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__groups_post_200_response_data.go b/internal/sdk/api/model__groups_post_200_response_data.go index eb2810c..c180da3 100644 --- a/internal/sdk/api/model__groups_post_200_response_data.go +++ b/internal/sdk/api/model__groups_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -46,6 +46,8 @@ type GroupsPost200ResponseData struct { UnpublishedReleaseAccess bool `json:"unpublished_release_access"` // Whether the group has access to usage analytics UsageAnalyticsAccess bool `json:"usage_analytics_access"` + // Whether the group has access to edit themes + ThemeAccess bool `json:"theme_access"` // Whether the group has access to account details AccountDetailsAccess bool `json:"account_details_access"` // The app ID of the landing page @@ -61,7 +63,7 @@ type _GroupsPost200ResponseData GroupsPost200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGroupsPost200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *GroupsPost200ResponseData { +func NewGroupsPost200ResponseData(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, universalQueryLibraryAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, themeAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *GroupsPost200ResponseData { this := GroupsPost200ResponseData{} this.Id = id this.LegacyId = legacyId @@ -76,6 +78,7 @@ func NewGroupsPost200ResponseData(id NullableFloat32, legacyId NullableFloat32, this.AuditLogAccess = auditLogAccess this.UnpublishedReleaseAccess = unpublishedReleaseAccess this.UsageAnalyticsAccess = usageAnalyticsAccess + this.ThemeAccess = themeAccess this.AccountDetailsAccess = accountDetailsAccess this.LandingPageAppId = landingPageAppId this.CreatedAt = createdAt @@ -407,6 +410,30 @@ func (o *GroupsPost200ResponseData) SetUsageAnalyticsAccess(v bool) { o.UsageAnalyticsAccess = v } +// GetThemeAccess returns the ThemeAccess field value +func (o *GroupsPost200ResponseData) GetThemeAccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.ThemeAccess +} + +// GetThemeAccessOk returns a tuple with the ThemeAccess field value +// and a boolean to check if the value has been set. +func (o *GroupsPost200ResponseData) GetThemeAccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ThemeAccess, true +} + +// SetThemeAccess sets field value +func (o *GroupsPost200ResponseData) SetThemeAccess(v bool) { + o.ThemeAccess = v +} + // GetAccountDetailsAccess returns the AccountDetailsAccess field value func (o *GroupsPost200ResponseData) GetAccountDetailsAccess() bool { if o == nil { @@ -528,6 +555,7 @@ func (o GroupsPost200ResponseData) ToMap() (map[string]interface{}, error) { toSerialize["audit_log_access"] = o.AuditLogAccess toSerialize["unpublished_release_access"] = o.UnpublishedReleaseAccess toSerialize["usage_analytics_access"] = o.UsageAnalyticsAccess + toSerialize["theme_access"] = o.ThemeAccess toSerialize["account_details_access"] = o.AccountDetailsAccess toSerialize["landing_page_app_id"] = o.LandingPageAppId.Get() toSerialize["created_at"] = o.CreatedAt @@ -558,6 +586,7 @@ func (o *GroupsPost200ResponseData) UnmarshalJSON(data []byte) (err error) { "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -604,6 +633,7 @@ func (o *GroupsPost200ResponseData) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "audit_log_access") delete(additionalProperties, "unpublished_release_access") delete(additionalProperties, "usage_analytics_access") + delete(additionalProperties, "theme_access") delete(additionalProperties, "account_details_access") delete(additionalProperties, "landing_page_app_id") delete(additionalProperties, "created_at") diff --git a/internal/sdk/api/model__groups_post_request.go b/internal/sdk/api/model__groups_post_request.go index e079274..09a3ea3 100644 --- a/internal/sdk/api/model__groups_post_request.go +++ b/internal/sdk/api/model__groups_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,7 @@ var _ MappedNullable = &GroupsPostRequest{} type GroupsPostRequest struct { // The name of the group. Name string `json:"name"` - // Users to add to the group. Pass in an empty list to create a group with no members. + // Users to add to the group. Members []GroupsGroupIdPutRequestMembersInner `json:"members,omitempty"` // The universal app access level for the group. This denotes the access level that this group has for all apps. UniversalAppAccess *string `json:"universal_app_access,omitempty"` @@ -42,6 +42,8 @@ type GroupsPostRequest struct { UnpublishedReleaseAccess *bool `json:"unpublished_release_access,omitempty"` // Whether the group has access to usage analytics UsageAnalyticsAccess *bool `json:"usage_analytics_access,omitempty"` + // Whether the group has access to edit themes + ThemeAccess *bool `json:"theme_access,omitempty"` // Whether the group has access to account details AccountDetailsAccess *bool `json:"account_details_access,omitempty"` // The app ID of the landing page @@ -415,6 +417,38 @@ func (o *GroupsPostRequest) SetUsageAnalyticsAccess(v bool) { o.UsageAnalyticsAccess = &v } +// GetThemeAccess returns the ThemeAccess field value if set, zero value otherwise. +func (o *GroupsPostRequest) GetThemeAccess() bool { + if o == nil || IsNil(o.ThemeAccess) { + var ret bool + return ret + } + return *o.ThemeAccess +} + +// GetThemeAccessOk returns a tuple with the ThemeAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupsPostRequest) GetThemeAccessOk() (*bool, bool) { + if o == nil || IsNil(o.ThemeAccess) { + return nil, false + } + return o.ThemeAccess, true +} + +// HasThemeAccess returns a boolean if a field has been set. +func (o *GroupsPostRequest) HasThemeAccess() bool { + if o != nil && !IsNil(o.ThemeAccess) { + return true + } + + return false +} + +// SetThemeAccess gets a reference to the given bool and assigns it to the ThemeAccess field. +func (o *GroupsPostRequest) SetThemeAccess(v bool) { + o.ThemeAccess = &v +} + // GetAccountDetailsAccess returns the AccountDetailsAccess field value if set, zero value otherwise. func (o *GroupsPostRequest) GetAccountDetailsAccess() bool { if o == nil || IsNil(o.AccountDetailsAccess) { @@ -594,6 +628,9 @@ func (o GroupsPostRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.UsageAnalyticsAccess) { toSerialize["usage_analytics_access"] = o.UsageAnalyticsAccess } + if !IsNil(o.ThemeAccess) { + toSerialize["theme_access"] = o.ThemeAccess + } if !IsNil(o.AccountDetailsAccess) { toSerialize["account_details_access"] = o.AccountDetailsAccess } @@ -660,6 +697,7 @@ func (o *GroupsPostRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "audit_log_access") delete(additionalProperties, "unpublished_release_access") delete(additionalProperties, "usage_analytics_access") + delete(additionalProperties, "theme_access") delete(additionalProperties, "account_details_access") delete(additionalProperties, "landing_page_app_id") delete(additionalProperties, "created_at") diff --git a/internal/sdk/api/model__info_ip_allowlist_get_200_response.go b/internal/sdk/api/model__info_ip_allowlist_get_200_response.go new file mode 100644 index 0000000..48c63ef --- /dev/null +++ b/internal/sdk/api/model__info_ip_allowlist_get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the InfoIpAllowlistGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfoIpAllowlistGet200Response{} + +// InfoIpAllowlistGet200Response Response schema for retrieving the Retool IP allowlist by region. +type InfoIpAllowlistGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data InfoIpAllowlistGet200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _InfoIpAllowlistGet200Response InfoIpAllowlistGet200Response + +// NewInfoIpAllowlistGet200Response instantiates a new InfoIpAllowlistGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInfoIpAllowlistGet200Response(success bool, data InfoIpAllowlistGet200ResponseData) *InfoIpAllowlistGet200Response { + this := InfoIpAllowlistGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewInfoIpAllowlistGet200ResponseWithDefaults instantiates a new InfoIpAllowlistGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInfoIpAllowlistGet200ResponseWithDefaults() *InfoIpAllowlistGet200Response { + this := InfoIpAllowlistGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *InfoIpAllowlistGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *InfoIpAllowlistGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *InfoIpAllowlistGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *InfoIpAllowlistGet200Response) GetData() InfoIpAllowlistGet200ResponseData { + if o == nil { + var ret InfoIpAllowlistGet200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *InfoIpAllowlistGet200Response) GetDataOk() (*InfoIpAllowlistGet200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *InfoIpAllowlistGet200Response) SetData(v InfoIpAllowlistGet200ResponseData) { + o.Data = v +} + +func (o InfoIpAllowlistGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InfoIpAllowlistGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InfoIpAllowlistGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varInfoIpAllowlistGet200Response := _InfoIpAllowlistGet200Response{} + + err = json.Unmarshal(data, &varInfoIpAllowlistGet200Response) + + if err != nil { + return err + } + + *o = InfoIpAllowlistGet200Response(varInfoIpAllowlistGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInfoIpAllowlistGet200Response struct { + value *InfoIpAllowlistGet200Response + isSet bool +} + +func (v NullableInfoIpAllowlistGet200Response) Get() *InfoIpAllowlistGet200Response { + return v.value +} + +func (v *NullableInfoIpAllowlistGet200Response) Set(val *InfoIpAllowlistGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableInfoIpAllowlistGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInfoIpAllowlistGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInfoIpAllowlistGet200Response(val *InfoIpAllowlistGet200Response) *NullableInfoIpAllowlistGet200Response { + return &NullableInfoIpAllowlistGet200Response{value: val, isSet: true} +} + +func (v NullableInfoIpAllowlistGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInfoIpAllowlistGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__info_ip_allowlist_get_200_response_data.go b/internal/sdk/api/model__info_ip_allowlist_get_200_response_data.go new file mode 100644 index 0000000..faf617b --- /dev/null +++ b/internal/sdk/api/model__info_ip_allowlist_get_200_response_data.go @@ -0,0 +1,158 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the InfoIpAllowlistGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfoIpAllowlistGet200ResponseData{} + +// InfoIpAllowlistGet200ResponseData struct for InfoIpAllowlistGet200ResponseData +type InfoIpAllowlistGet200ResponseData struct { + IpAddresses InfoIpAllowlistGet200ResponseDataIpAddresses `json:"ipAddresses"` +} + +type _InfoIpAllowlistGet200ResponseData InfoIpAllowlistGet200ResponseData + +// NewInfoIpAllowlistGet200ResponseData instantiates a new InfoIpAllowlistGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInfoIpAllowlistGet200ResponseData(ipAddresses InfoIpAllowlistGet200ResponseDataIpAddresses) *InfoIpAllowlistGet200ResponseData { + this := InfoIpAllowlistGet200ResponseData{} + this.IpAddresses = ipAddresses + return &this +} + +// NewInfoIpAllowlistGet200ResponseDataWithDefaults instantiates a new InfoIpAllowlistGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInfoIpAllowlistGet200ResponseDataWithDefaults() *InfoIpAllowlistGet200ResponseData { + this := InfoIpAllowlistGet200ResponseData{} + return &this +} + +// GetIpAddresses returns the IpAddresses field value +func (o *InfoIpAllowlistGet200ResponseData) GetIpAddresses() InfoIpAllowlistGet200ResponseDataIpAddresses { + if o == nil { + var ret InfoIpAllowlistGet200ResponseDataIpAddresses + return ret + } + + return o.IpAddresses +} + +// GetIpAddressesOk returns a tuple with the IpAddresses field value +// and a boolean to check if the value has been set. +func (o *InfoIpAllowlistGet200ResponseData) GetIpAddressesOk() (*InfoIpAllowlistGet200ResponseDataIpAddresses, bool) { + if o == nil { + return nil, false + } + return &o.IpAddresses, true +} + +// SetIpAddresses sets field value +func (o *InfoIpAllowlistGet200ResponseData) SetIpAddresses(v InfoIpAllowlistGet200ResponseDataIpAddresses) { + o.IpAddresses = v +} + +func (o InfoIpAllowlistGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InfoIpAllowlistGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ipAddresses"] = o.IpAddresses + return toSerialize, nil +} + +func (o *InfoIpAllowlistGet200ResponseData) 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{ + "ipAddresses", + } + + 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) + } + } + + varInfoIpAllowlistGet200ResponseData := _InfoIpAllowlistGet200ResponseData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInfoIpAllowlistGet200ResponseData) + + if err != nil { + return err + } + + *o = InfoIpAllowlistGet200ResponseData(varInfoIpAllowlistGet200ResponseData) + + return err +} + +type NullableInfoIpAllowlistGet200ResponseData struct { + value *InfoIpAllowlistGet200ResponseData + isSet bool +} + +func (v NullableInfoIpAllowlistGet200ResponseData) Get() *InfoIpAllowlistGet200ResponseData { + return v.value +} + +func (v *NullableInfoIpAllowlistGet200ResponseData) Set(val *InfoIpAllowlistGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableInfoIpAllowlistGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableInfoIpAllowlistGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInfoIpAllowlistGet200ResponseData(val *InfoIpAllowlistGet200ResponseData) *NullableInfoIpAllowlistGet200ResponseData { + return &NullableInfoIpAllowlistGet200ResponseData{value: val, isSet: true} +} + +func (v NullableInfoIpAllowlistGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInfoIpAllowlistGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__info_ip_allowlist_get_200_response_data_ip_addresses.go b/internal/sdk/api/model__info_ip_allowlist_get_200_response_data_ip_addresses.go new file mode 100644 index 0000000..5d48a5a --- /dev/null +++ b/internal/sdk/api/model__info_ip_allowlist_get_200_response_data_ip_addresses.go @@ -0,0 +1,226 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the InfoIpAllowlistGet200ResponseDataIpAddresses type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfoIpAllowlistGet200ResponseDataIpAddresses{} + +// InfoIpAllowlistGet200ResponseDataIpAddresses struct for InfoIpAllowlistGet200ResponseDataIpAddresses +type InfoIpAllowlistGet200ResponseDataIpAddresses struct { + UsWest2 string `json:"us-west-2"` + EuCentral1 string `json:"eu-central-1"` + ApSoutheast1 string `json:"ap-southeast-1"` + AdditionalProperties map[string]interface{} +} + +type _InfoIpAllowlistGet200ResponseDataIpAddresses InfoIpAllowlistGet200ResponseDataIpAddresses + +// NewInfoIpAllowlistGet200ResponseDataIpAddresses instantiates a new InfoIpAllowlistGet200ResponseDataIpAddresses object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInfoIpAllowlistGet200ResponseDataIpAddresses(usWest2 string, euCentral1 string, apSoutheast1 string) *InfoIpAllowlistGet200ResponseDataIpAddresses { + this := InfoIpAllowlistGet200ResponseDataIpAddresses{} + this.UsWest2 = usWest2 + this.EuCentral1 = euCentral1 + this.ApSoutheast1 = apSoutheast1 + return &this +} + +// NewInfoIpAllowlistGet200ResponseDataIpAddressesWithDefaults instantiates a new InfoIpAllowlistGet200ResponseDataIpAddresses object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInfoIpAllowlistGet200ResponseDataIpAddressesWithDefaults() *InfoIpAllowlistGet200ResponseDataIpAddresses { + this := InfoIpAllowlistGet200ResponseDataIpAddresses{} + return &this +} + +// GetUsWest2 returns the UsWest2 field value +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetUsWest2() string { + if o == nil { + var ret string + return ret + } + + return o.UsWest2 +} + +// GetUsWest2Ok returns a tuple with the UsWest2 field value +// and a boolean to check if the value has been set. +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetUsWest2Ok() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UsWest2, true +} + +// SetUsWest2 sets field value +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) SetUsWest2(v string) { + o.UsWest2 = v +} + +// GetEuCentral1 returns the EuCentral1 field value +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetEuCentral1() string { + if o == nil { + var ret string + return ret + } + + return o.EuCentral1 +} + +// GetEuCentral1Ok returns a tuple with the EuCentral1 field value +// and a boolean to check if the value has been set. +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetEuCentral1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EuCentral1, true +} + +// SetEuCentral1 sets field value +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) SetEuCentral1(v string) { + o.EuCentral1 = v +} + +// GetApSoutheast1 returns the ApSoutheast1 field value +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetApSoutheast1() string { + if o == nil { + var ret string + return ret + } + + return o.ApSoutheast1 +} + +// GetApSoutheast1Ok returns a tuple with the ApSoutheast1 field value +// and a boolean to check if the value has been set. +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) GetApSoutheast1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApSoutheast1, true +} + +// SetApSoutheast1 sets field value +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) SetApSoutheast1(v string) { + o.ApSoutheast1 = v +} + +func (o InfoIpAllowlistGet200ResponseDataIpAddresses) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InfoIpAllowlistGet200ResponseDataIpAddresses) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["us-west-2"] = o.UsWest2 + toSerialize["eu-central-1"] = o.EuCentral1 + toSerialize["ap-southeast-1"] = o.ApSoutheast1 + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InfoIpAllowlistGet200ResponseDataIpAddresses) 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{ + "us-west-2", + "eu-central-1", + "ap-southeast-1", + } + + 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) + } + } + + varInfoIpAllowlistGet200ResponseDataIpAddresses := _InfoIpAllowlistGet200ResponseDataIpAddresses{} + + err = json.Unmarshal(data, &varInfoIpAllowlistGet200ResponseDataIpAddresses) + + if err != nil { + return err + } + + *o = InfoIpAllowlistGet200ResponseDataIpAddresses(varInfoIpAllowlistGet200ResponseDataIpAddresses) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "us-west-2") + delete(additionalProperties, "eu-central-1") + delete(additionalProperties, "ap-southeast-1") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInfoIpAllowlistGet200ResponseDataIpAddresses struct { + value *InfoIpAllowlistGet200ResponseDataIpAddresses + isSet bool +} + +func (v NullableInfoIpAllowlistGet200ResponseDataIpAddresses) Get() *InfoIpAllowlistGet200ResponseDataIpAddresses { + return v.value +} + +func (v *NullableInfoIpAllowlistGet200ResponseDataIpAddresses) Set(val *InfoIpAllowlistGet200ResponseDataIpAddresses) { + v.value = val + v.isSet = true +} + +func (v NullableInfoIpAllowlistGet200ResponseDataIpAddresses) IsSet() bool { + return v.isSet +} + +func (v *NullableInfoIpAllowlistGet200ResponseDataIpAddresses) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInfoIpAllowlistGet200ResponseDataIpAddresses(val *InfoIpAllowlistGet200ResponseDataIpAddresses) *NullableInfoIpAllowlistGet200ResponseDataIpAddresses { + return &NullableInfoIpAllowlistGet200ResponseDataIpAddresses{value: val, isSet: true} +} + +func (v NullableInfoIpAllowlistGet200ResponseDataIpAddresses) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInfoIpAllowlistGet200ResponseDataIpAddresses) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__observability_config__config_id__put_200_response.go b/internal/sdk/api/model__observability_config__config_id__put_200_response.go index 658060e..bc5a12c 100644 --- a/internal/sdk/api/model__observability_config__config_id__put_200_response.go +++ b/internal/sdk/api/model__observability_config__config_id__put_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_config__config_id__put_200_response_data.go b/internal/sdk/api/model__observability_config__config_id__put_200_response_data.go index e63b2df..c03f1c4 100644 --- a/internal/sdk/api/model__observability_config__config_id__put_200_response_data.go +++ b/internal/sdk/api/model__observability_config__config_id__put_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_config__config_id__put_request.go b/internal/sdk/api/model__observability_config__config_id__put_request.go index d8574e3..a7ef84d 100644 --- a/internal/sdk/api/model__observability_config__config_id__put_request.go +++ b/internal/sdk/api/model__observability_config__config_id__put_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_config_get_200_response.go b/internal/sdk/api/model__observability_config_get_200_response.go index 176ba76..08f3ac9 100644 --- a/internal/sdk/api/model__observability_config_get_200_response.go +++ b/internal/sdk/api/model__observability_config_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_config_get_200_response_data_inner.go b/internal/sdk/api/model__observability_config_get_200_response_data_inner.go index 21419cd..032279a 100644 --- a/internal/sdk/api/model__observability_config_get_200_response_data_inner.go +++ b/internal/sdk/api/model__observability_config_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_config_get_200_response_data_inner_config.go b/internal/sdk/api/model__observability_config_get_200_response_data_inner_config.go index 370ad33..c491c4c 100644 --- a/internal/sdk/api/model__observability_config_get_200_response_data_inner_config.go +++ b/internal/sdk/api/model__observability_config_get_200_response_data_inner_config.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -82,11 +82,11 @@ func (dst *ObservabilityConfigGet200ResponseDataInnerConfig) UnmarshalJSON(data // Marshal data from the first non-nil pointers in the struct to JSON func (src ObservabilityConfigGet200ResponseDataInnerConfig) MarshalJSON() ([]byte, error) { if src.ObservabilityConfigGet200ResponseDataInnerConfigOneOf != nil { - return json.Marshal(&src.ObservabilityConfigGet200ResponseDataInnerConfigOneOf) + return json.Marshal(src.ObservabilityConfigGet200ResponseDataInnerConfigOneOf) } if src.ObservabilityConfigGet200ResponseDataInnerConfigOneOf1 != nil { - return json.Marshal(&src.ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) + return json.Marshal(src.ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) } return nil, nil // no data in oneOf schemas diff --git a/internal/sdk/api/model__observability_config_get_200_response_data_inner_config_one_of.go b/internal/sdk/api/model__observability_config_get_200_response_data_inner_config_one_of.go index 7944e7d..72f2a45 100644 --- a/internal/sdk/api/model__observability_config_get_200_response_data_inner_config_one_of.go +++ b/internal/sdk/api/model__observability_config_get_200_response_data_inner_config_one_of.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,8 @@ type ObservabilityConfigGet200ResponseDataInnerConfigOneOf struct { Provider string `json:"provider"` // This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions. Dsn string `json:"dsn"` + // This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient + CaCerts []string `json:"ca_certs,omitempty"` AdditionalProperties map[string]interface{} } @@ -96,6 +98,38 @@ func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) SetDsn(v string) o.Dsn = v } +// GetCaCerts returns the CaCerts field value if set, zero value otherwise. +func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) GetCaCerts() []string { + if o == nil || IsNil(o.CaCerts) { + var ret []string + return ret + } + return o.CaCerts +} + +// GetCaCertsOk returns a tuple with the CaCerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) GetCaCertsOk() ([]string, bool) { + if o == nil || IsNil(o.CaCerts) { + return nil, false + } + return o.CaCerts, true +} + +// HasCaCerts returns a boolean if a field has been set. +func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) HasCaCerts() bool { + if o != nil && !IsNil(o.CaCerts) { + return true + } + + return false +} + +// SetCaCerts gets a reference to the given []string and assigns it to the CaCerts field. +func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) SetCaCerts(v []string) { + o.CaCerts = v +} + func (o ObservabilityConfigGet200ResponseDataInnerConfigOneOf) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -108,6 +142,9 @@ func (o ObservabilityConfigGet200ResponseDataInnerConfigOneOf) ToMap() (map[stri toSerialize := map[string]interface{}{} toSerialize["provider"] = o.Provider toSerialize["dsn"] = o.Dsn + if !IsNil(o.CaCerts) { + toSerialize["ca_certs"] = o.CaCerts + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -154,6 +191,7 @@ func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf) UnmarshalJSON(da if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "provider") delete(additionalProperties, "dsn") + delete(additionalProperties, "ca_certs") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model__observability_config_get_200_response_data_inner_config_one_of_1.go b/internal/sdk/api/model__observability_config_get_200_response_data_inner_config_one_of_1.go index f714320..906d6c9 100644 --- a/internal/sdk/api/model__observability_config_get_200_response_data_inner_config_one_of_1.go +++ b/internal/sdk/api/model__observability_config_get_200_response_data_inner_config_one_of_1.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,8 @@ type ObservabilityConfigGet200ResponseDataInnerConfigOneOf1 struct { Provider string `json:"provider"` // This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API. ApiKey string `json:"api_key"` + // This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com. + Site string `json:"site"` AdditionalProperties map[string]interface{} } @@ -33,10 +35,11 @@ type _ObservabilityConfigGet200ResponseDataInnerConfigOneOf1 ObservabilityConfig // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewObservabilityConfigGet200ResponseDataInnerConfigOneOf1(provider string, apiKey string) *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1 { +func NewObservabilityConfigGet200ResponseDataInnerConfigOneOf1(provider string, apiKey string, site string) *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1 { this := ObservabilityConfigGet200ResponseDataInnerConfigOneOf1{} this.Provider = provider this.ApiKey = apiKey + this.Site = site return &this } @@ -45,6 +48,8 @@ func NewObservabilityConfigGet200ResponseDataInnerConfigOneOf1(provider string, // but it doesn't guarantee that properties required by API are set func NewObservabilityConfigGet200ResponseDataInnerConfigOneOf1WithDefaults() *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1 { this := ObservabilityConfigGet200ResponseDataInnerConfigOneOf1{} + var site string = "US1" + this.Site = site return &this } @@ -96,6 +101,30 @@ func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) SetApiKey(v str o.ApiKey = v } +// GetSite returns the Site field value +func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) GetSite() string { + if o == nil { + var ret string + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) GetSiteOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) SetSite(v string) { + o.Site = v +} + func (o ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -108,6 +137,7 @@ func (o ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) ToMap() (map[str toSerialize := map[string]interface{}{} toSerialize["provider"] = o.Provider toSerialize["api_key"] = o.ApiKey + toSerialize["site"] = o.Site for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -123,6 +153,7 @@ func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) UnmarshalJSON(d requiredProperties := []string{ "provider", "api_key", + "site", } allProperties := make(map[string]interface{}) @@ -154,6 +185,7 @@ func (o *ObservabilityConfigGet200ResponseDataInnerConfigOneOf1) UnmarshalJSON(d if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "provider") delete(additionalProperties, "api_key") + delete(additionalProperties, "site") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model__observability_config_post_200_response.go b/internal/sdk/api/model__observability_config_post_200_response.go index 1551673..f2ccffa 100644 --- a/internal/sdk/api/model__observability_config_post_200_response.go +++ b/internal/sdk/api/model__observability_config_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_config_post_200_response_data.go b/internal/sdk/api/model__observability_config_post_200_response_data.go index d08a132..b6c3dfd 100644 --- a/internal/sdk/api/model__observability_config_post_200_response_data.go +++ b/internal/sdk/api/model__observability_config_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_config_post_request.go b/internal/sdk/api/model__observability_config_post_request.go index 172f056..269c2b4 100644 --- a/internal/sdk/api/model__observability_config_post_request.go +++ b/internal/sdk/api/model__observability_config_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_provider__provider__test_post_200_response.go b/internal/sdk/api/model__observability_provider__provider__test_post_200_response.go index ed83569..e4d5f65 100644 --- a/internal/sdk/api/model__observability_provider__provider__test_post_200_response.go +++ b/internal/sdk/api/model__observability_provider__provider__test_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data.go b/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data.go index db61c92..cbeaa64 100644 --- a/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data.go +++ b/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,55 +15,98 @@ import ( "fmt" ) -// ObservabilityProviderProviderTestPost200ResponseData Send test error response +// ObservabilityProviderProviderTestPost200ResponseData - Send test error response type ObservabilityProviderProviderTestPost200ResponseData struct { - ObservabilityProviderProviderTestPost200ResponseDataAnyOf *ObservabilityProviderProviderTestPost200ResponseDataAnyOf - ObservabilityProviderProviderTestPost200ResponseDataAnyOf1 *ObservabilityProviderProviderTestPost200ResponseDataAnyOf1 + ObservabilityProviderProviderTestPost200ResponseDataOneOf *ObservabilityProviderProviderTestPost200ResponseDataOneOf + ObservabilityProviderProviderTestPost200ResponseDataOneOf1 *ObservabilityProviderProviderTestPost200ResponseDataOneOf1 } -// Unmarshal JSON data into any of the pointers in the struct +// ObservabilityProviderProviderTestPost200ResponseDataOneOfAsObservabilityProviderProviderTestPost200ResponseData is a convenience function that returns ObservabilityProviderProviderTestPost200ResponseDataOneOf wrapped in ObservabilityProviderProviderTestPost200ResponseData +func ObservabilityProviderProviderTestPost200ResponseDataOneOfAsObservabilityProviderProviderTestPost200ResponseData(v *ObservabilityProviderProviderTestPost200ResponseDataOneOf) ObservabilityProviderProviderTestPost200ResponseData { + return ObservabilityProviderProviderTestPost200ResponseData{ + ObservabilityProviderProviderTestPost200ResponseDataOneOf: v, + } +} + +// ObservabilityProviderProviderTestPost200ResponseDataOneOf1AsObservabilityProviderProviderTestPost200ResponseData is a convenience function that returns ObservabilityProviderProviderTestPost200ResponseDataOneOf1 wrapped in ObservabilityProviderProviderTestPost200ResponseData +func ObservabilityProviderProviderTestPost200ResponseDataOneOf1AsObservabilityProviderProviderTestPost200ResponseData(v *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) ObservabilityProviderProviderTestPost200ResponseData { + return ObservabilityProviderProviderTestPost200ResponseData{ + ObservabilityProviderProviderTestPost200ResponseDataOneOf1: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct func (dst *ObservabilityProviderProviderTestPost200ResponseData) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into ObservabilityProviderProviderTestPost200ResponseDataAnyOf - err = json.Unmarshal(data, &dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf); + match := 0 + // try to unmarshal data into ObservabilityProviderProviderTestPost200ResponseDataOneOf + err = newStrictDecoder(data).Decode(&dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf) if err == nil { - jsonObservabilityProviderProviderTestPost200ResponseDataAnyOf, _ := json.Marshal(dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf) - if string(jsonObservabilityProviderProviderTestPost200ResponseDataAnyOf) == "{}" { // empty struct - dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf = nil + jsonObservabilityProviderProviderTestPost200ResponseDataOneOf, _ := json.Marshal(dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf) + if string(jsonObservabilityProviderProviderTestPost200ResponseDataOneOf) == "{}" { // empty struct + dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf = nil } else { - return nil // data stored in dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf, return on the first match + match++ } } else { - dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf = nil + dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf = nil } - // try to unmarshal JSON data into ObservabilityProviderProviderTestPost200ResponseDataAnyOf1 - err = json.Unmarshal(data, &dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf1); + // try to unmarshal data into ObservabilityProviderProviderTestPost200ResponseDataOneOf1 + err = newStrictDecoder(data).Decode(&dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf1) if err == nil { - jsonObservabilityProviderProviderTestPost200ResponseDataAnyOf1, _ := json.Marshal(dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf1) - if string(jsonObservabilityProviderProviderTestPost200ResponseDataAnyOf1) == "{}" { // empty struct - dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf1 = nil + jsonObservabilityProviderProviderTestPost200ResponseDataOneOf1, _ := json.Marshal(dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf1) + if string(jsonObservabilityProviderProviderTestPost200ResponseDataOneOf1) == "{}" { // empty struct + dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf1 = nil } else { - return nil // data stored in dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf1, return on the first match + match++ } } else { - dst.ObservabilityProviderProviderTestPost200ResponseDataAnyOf1 = nil + dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf1 = nil } - return fmt.Errorf("data failed to match schemas in anyOf(ObservabilityProviderProviderTestPost200ResponseData)") + if match > 1 { // more than 1 match + // reset to nil + dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf = nil + dst.ObservabilityProviderProviderTestPost200ResponseDataOneOf1 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(ObservabilityProviderProviderTestPost200ResponseData)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(ObservabilityProviderProviderTestPost200ResponseData)") + } } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *ObservabilityProviderProviderTestPost200ResponseData) MarshalJSON() ([]byte, error) { - if src.ObservabilityProviderProviderTestPost200ResponseDataAnyOf != nil { - return json.Marshal(&src.ObservabilityProviderProviderTestPost200ResponseDataAnyOf) +func (src ObservabilityProviderProviderTestPost200ResponseData) MarshalJSON() ([]byte, error) { + if src.ObservabilityProviderProviderTestPost200ResponseDataOneOf != nil { + return json.Marshal(src.ObservabilityProviderProviderTestPost200ResponseDataOneOf) + } + + if src.ObservabilityProviderProviderTestPost200ResponseDataOneOf1 != nil { + return json.Marshal(src.ObservabilityProviderProviderTestPost200ResponseDataOneOf1) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ObservabilityProviderProviderTestPost200ResponseData) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.ObservabilityProviderProviderTestPost200ResponseDataOneOf != nil { + return obj.ObservabilityProviderProviderTestPost200ResponseDataOneOf } - if src.ObservabilityProviderProviderTestPost200ResponseDataAnyOf1 != nil { - return json.Marshal(&src.ObservabilityProviderProviderTestPost200ResponseDataAnyOf1) + if obj.ObservabilityProviderProviderTestPost200ResponseDataOneOf1 != nil { + return obj.ObservabilityProviderProviderTestPost200ResponseDataOneOf1 } - return nil, nil // no data in anyOf schemas + // all schemas are nil + return nil } type NullableObservabilityProviderProviderTestPost200ResponseData struct { diff --git a/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data_one_of.go b/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data_one_of.go new file mode 100644 index 0000000..8aa099b --- /dev/null +++ b/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data_one_of.go @@ -0,0 +1,199 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the ObservabilityProviderProviderTestPost200ResponseDataOneOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ObservabilityProviderProviderTestPost200ResponseDataOneOf{} + +// ObservabilityProviderProviderTestPost200ResponseDataOneOf struct for ObservabilityProviderProviderTestPost200ResponseDataOneOf +type ObservabilityProviderProviderTestPost200ResponseDataOneOf struct { + // Send test error failed + Success bool `json:"success"` + // Error message + Message string `json:"message"` + AdditionalProperties map[string]interface{} +} + +type _ObservabilityProviderProviderTestPost200ResponseDataOneOf ObservabilityProviderProviderTestPost200ResponseDataOneOf + +// NewObservabilityProviderProviderTestPost200ResponseDataOneOf instantiates a new ObservabilityProviderProviderTestPost200ResponseDataOneOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewObservabilityProviderProviderTestPost200ResponseDataOneOf(success bool, message string) *ObservabilityProviderProviderTestPost200ResponseDataOneOf { + this := ObservabilityProviderProviderTestPost200ResponseDataOneOf{} + this.Success = success + this.Message = message + return &this +} + +// NewObservabilityProviderProviderTestPost200ResponseDataOneOfWithDefaults instantiates a new ObservabilityProviderProviderTestPost200ResponseDataOneOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewObservabilityProviderProviderTestPost200ResponseDataOneOfWithDefaults() *ObservabilityProviderProviderTestPost200ResponseDataOneOf { + this := ObservabilityProviderProviderTestPost200ResponseDataOneOf{} + return &this +} + +// GetSuccess returns the Success field value +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) SetSuccess(v bool) { + o.Success = v +} + +// GetMessage returns the Message field value +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) SetMessage(v string) { + o.Message = v +} + +func (o ObservabilityProviderProviderTestPost200ResponseDataOneOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ObservabilityProviderProviderTestPost200ResponseDataOneOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["message"] = o.Message + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf) 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{ + "success", + "message", + } + + 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) + } + } + + varObservabilityProviderProviderTestPost200ResponseDataOneOf := _ObservabilityProviderProviderTestPost200ResponseDataOneOf{} + + err = json.Unmarshal(data, &varObservabilityProviderProviderTestPost200ResponseDataOneOf) + + if err != nil { + return err + } + + *o = ObservabilityProviderProviderTestPost200ResponseDataOneOf(varObservabilityProviderProviderTestPost200ResponseDataOneOf) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableObservabilityProviderProviderTestPost200ResponseDataOneOf struct { + value *ObservabilityProviderProviderTestPost200ResponseDataOneOf + isSet bool +} + +func (v NullableObservabilityProviderProviderTestPost200ResponseDataOneOf) Get() *ObservabilityProviderProviderTestPost200ResponseDataOneOf { + return v.value +} + +func (v *NullableObservabilityProviderProviderTestPost200ResponseDataOneOf) Set(val *ObservabilityProviderProviderTestPost200ResponseDataOneOf) { + v.value = val + v.isSet = true +} + +func (v NullableObservabilityProviderProviderTestPost200ResponseDataOneOf) IsSet() bool { + return v.isSet +} + +func (v *NullableObservabilityProviderProviderTestPost200ResponseDataOneOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObservabilityProviderProviderTestPost200ResponseDataOneOf(val *ObservabilityProviderProviderTestPost200ResponseDataOneOf) *NullableObservabilityProviderProviderTestPost200ResponseDataOneOf { + return &NullableObservabilityProviderProviderTestPost200ResponseDataOneOf{value: val, isSet: true} +} + +func (v NullableObservabilityProviderProviderTestPost200ResponseDataOneOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObservabilityProviderProviderTestPost200ResponseDataOneOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data_one_of_1.go b/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data_one_of_1.go new file mode 100644 index 0000000..419598a --- /dev/null +++ b/internal/sdk/api/model__observability_provider__provider__test_post_200_response_data_one_of_1.go @@ -0,0 +1,169 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the ObservabilityProviderProviderTestPost200ResponseDataOneOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ObservabilityProviderProviderTestPost200ResponseDataOneOf1{} + +// ObservabilityProviderProviderTestPost200ResponseDataOneOf1 struct for ObservabilityProviderProviderTestPost200ResponseDataOneOf1 +type ObservabilityProviderProviderTestPost200ResponseDataOneOf1 struct { + // Send test error succeeded + Success bool `json:"success"` + AdditionalProperties map[string]interface{} +} + +type _ObservabilityProviderProviderTestPost200ResponseDataOneOf1 ObservabilityProviderProviderTestPost200ResponseDataOneOf1 + +// NewObservabilityProviderProviderTestPost200ResponseDataOneOf1 instantiates a new ObservabilityProviderProviderTestPost200ResponseDataOneOf1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewObservabilityProviderProviderTestPost200ResponseDataOneOf1(success bool) *ObservabilityProviderProviderTestPost200ResponseDataOneOf1 { + this := ObservabilityProviderProviderTestPost200ResponseDataOneOf1{} + this.Success = success + return &this +} + +// NewObservabilityProviderProviderTestPost200ResponseDataOneOf1WithDefaults instantiates a new ObservabilityProviderProviderTestPost200ResponseDataOneOf1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewObservabilityProviderProviderTestPost200ResponseDataOneOf1WithDefaults() *ObservabilityProviderProviderTestPost200ResponseDataOneOf1 { + this := ObservabilityProviderProviderTestPost200ResponseDataOneOf1{} + return &this +} + +// GetSuccess returns the Success field value +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) SetSuccess(v bool) { + o.Success = v +} + +func (o ObservabilityProviderProviderTestPost200ResponseDataOneOf1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ObservabilityProviderProviderTestPost200ResponseDataOneOf1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) 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{ + "success", + } + + 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) + } + } + + varObservabilityProviderProviderTestPost200ResponseDataOneOf1 := _ObservabilityProviderProviderTestPost200ResponseDataOneOf1{} + + err = json.Unmarshal(data, &varObservabilityProviderProviderTestPost200ResponseDataOneOf1) + + if err != nil { + return err + } + + *o = ObservabilityProviderProviderTestPost200ResponseDataOneOf1(varObservabilityProviderProviderTestPost200ResponseDataOneOf1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1 struct { + value *ObservabilityProviderProviderTestPost200ResponseDataOneOf1 + isSet bool +} + +func (v NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1) Get() *ObservabilityProviderProviderTestPost200ResponseDataOneOf1 { + return v.value +} + +func (v *NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1) Set(val *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) { + v.value = val + v.isSet = true +} + +func (v NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1) IsSet() bool { + return v.isSet +} + +func (v *NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObservabilityProviderProviderTestPost200ResponseDataOneOf1(val *ObservabilityProviderProviderTestPost200ResponseDataOneOf1) *NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1 { + return &NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1{value: val, isSet: true} +} + +func (v NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObservabilityProviderProviderTestPost200ResponseDataOneOf1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__observability_provider__provider__test_post_provider_parameter.go b/internal/sdk/api/model__observability_provider__provider__test_post_provider_parameter.go index d92082a..0b18d4a 100644 --- a/internal/sdk/api/model__observability_provider__provider__test_post_provider_parameter.go +++ b/internal/sdk/api/model__observability_provider__provider__test_post_provider_parameter.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,9 +40,9 @@ func (dst *ObservabilityProviderProviderTestPostProviderParameter) UnmarshalJSON } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *ObservabilityProviderProviderTestPostProviderParameter) MarshalJSON() ([]byte, error) { +func (src ObservabilityProviderProviderTestPostProviderParameter) MarshalJSON() ([]byte, error) { if src.string != nil { - return json.Marshal(&src.string) + return json.Marshal(src.string) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__organization__get_200_response.go b/internal/sdk/api/model__organization__get_200_response.go new file mode 100644 index 0000000..6e45a9e --- /dev/null +++ b/internal/sdk/api/model__organization__get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationGet200Response{} + +// OrganizationGet200Response The current organization's advanced settings +type OrganizationGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data OrganizationGet200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationGet200Response OrganizationGet200Response + +// NewOrganizationGet200Response instantiates a new OrganizationGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationGet200Response(success bool, data OrganizationGet200ResponseData) *OrganizationGet200Response { + this := OrganizationGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewOrganizationGet200ResponseWithDefaults instantiates a new OrganizationGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationGet200ResponseWithDefaults() *OrganizationGet200Response { + this := OrganizationGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *OrganizationGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *OrganizationGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *OrganizationGet200Response) GetData() OrganizationGet200ResponseData { + if o == nil { + var ret OrganizationGet200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200Response) GetDataOk() (*OrganizationGet200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *OrganizationGet200Response) SetData(v OrganizationGet200ResponseData) { + o.Data = v +} + +func (o OrganizationGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varOrganizationGet200Response := _OrganizationGet200Response{} + + err = json.Unmarshal(data, &varOrganizationGet200Response) + + if err != nil { + return err + } + + *o = OrganizationGet200Response(varOrganizationGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationGet200Response struct { + value *OrganizationGet200Response + isSet bool +} + +func (v NullableOrganizationGet200Response) Get() *OrganizationGet200Response { + return v.value +} + +func (v *NullableOrganizationGet200Response) Set(val *OrganizationGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationGet200Response(val *OrganizationGet200Response) *NullableOrganizationGet200Response { + return &NullableOrganizationGet200Response{value: val, isSet: true} +} + +func (v NullableOrganizationGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization__get_200_response_data.go b/internal/sdk/api/model__organization__get_200_response_data.go new file mode 100644 index 0000000..08ffbce --- /dev/null +++ b/internal/sdk/api/model__organization__get_200_response_data.go @@ -0,0 +1,572 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the OrganizationGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationGet200ResponseData{} + +// OrganizationGet200ResponseData This object represents the advanced settings configured on an organization. +type OrganizationGet200ResponseData struct { + // The id of the organization. + Id string `json:"id"` + // Whether users can request access to join the organization. + RequestAccessEnabled bool `json:"request_access_enabled"` + // Whether the AI support bot is disabled. + AiSupportBotDisabled bool `json:"ai_support_bot_disabled"` + // Whether Retool forms are disabled. + RetoolFormsDisabled bool `json:"retool_forms_disabled"` + // Whether versions and releases on apps are disabled. + ReleaseManagementEnabled bool `json:"release_management_enabled"` + CacheQueriesPerUser NullableBool `json:"cache_queries_per_user"` + // Whether preloaded CSS is applied to the Retool homepage. + ApplyPreloadedCssToHomepage bool `json:"apply_preloaded_css_to_homepage"` + // Custom CSS rules to apply across Retool. + PreloadedCss NullableString `json:"preloaded_css"` + // Preloaded JavaScript that will apply to every Retool app. + PreloadedJavascript NullableString `json:"preloaded_javascript"` + // List of custom JavaScript libraries to load in every app. + JavascriptLinks []string `json:"javascript_links"` + // Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem) + WorkflowRunRetentionPeriodMins float32 `json:"workflow_run_retention_period_mins"` + // Whether app owners can manage permissions for their apps directly. + AppOwnersPermissionsManagement bool `json:"app_owners_permissions_management"` + // Whether two-factor authentication is required for all users in the organization. + TwoFactorAuthRequired bool `json:"two_factor_auth_required"` + // Required 2FA type, applies to the whole organization + TwoFactorAuthType NullableString `json:"two_factor_auth_type"` + // Whether notification emails for logins from new IPs are disabled. + DisableNewLoginIpNotificationEmail bool `json:"disable_new_login_ip_notification_email"` +} + +type _OrganizationGet200ResponseData OrganizationGet200ResponseData + +// NewOrganizationGet200ResponseData instantiates a new OrganizationGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationGet200ResponseData(id string, requestAccessEnabled bool, aiSupportBotDisabled bool, retoolFormsDisabled bool, releaseManagementEnabled bool, cacheQueriesPerUser NullableBool, applyPreloadedCssToHomepage bool, preloadedCss NullableString, preloadedJavascript NullableString, javascriptLinks []string, workflowRunRetentionPeriodMins float32, appOwnersPermissionsManagement bool, twoFactorAuthRequired bool, twoFactorAuthType NullableString, disableNewLoginIpNotificationEmail bool) *OrganizationGet200ResponseData { + this := OrganizationGet200ResponseData{} + this.Id = id + this.RequestAccessEnabled = requestAccessEnabled + this.AiSupportBotDisabled = aiSupportBotDisabled + this.RetoolFormsDisabled = retoolFormsDisabled + this.ReleaseManagementEnabled = releaseManagementEnabled + this.CacheQueriesPerUser = cacheQueriesPerUser + this.ApplyPreloadedCssToHomepage = applyPreloadedCssToHomepage + this.PreloadedCss = preloadedCss + this.PreloadedJavascript = preloadedJavascript + this.JavascriptLinks = javascriptLinks + this.WorkflowRunRetentionPeriodMins = workflowRunRetentionPeriodMins + this.AppOwnersPermissionsManagement = appOwnersPermissionsManagement + this.TwoFactorAuthRequired = twoFactorAuthRequired + this.TwoFactorAuthType = twoFactorAuthType + this.DisableNewLoginIpNotificationEmail = disableNewLoginIpNotificationEmail + return &this +} + +// NewOrganizationGet200ResponseDataWithDefaults instantiates a new OrganizationGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationGet200ResponseDataWithDefaults() *OrganizationGet200ResponseData { + this := OrganizationGet200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *OrganizationGet200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *OrganizationGet200ResponseData) SetId(v string) { + o.Id = v +} + +// GetRequestAccessEnabled returns the RequestAccessEnabled field value +func (o *OrganizationGet200ResponseData) GetRequestAccessEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.RequestAccessEnabled +} + +// GetRequestAccessEnabledOk returns a tuple with the RequestAccessEnabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetRequestAccessEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RequestAccessEnabled, true +} + +// SetRequestAccessEnabled sets field value +func (o *OrganizationGet200ResponseData) SetRequestAccessEnabled(v bool) { + o.RequestAccessEnabled = v +} + +// GetAiSupportBotDisabled returns the AiSupportBotDisabled field value +func (o *OrganizationGet200ResponseData) GetAiSupportBotDisabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AiSupportBotDisabled +} + +// GetAiSupportBotDisabledOk returns a tuple with the AiSupportBotDisabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetAiSupportBotDisabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AiSupportBotDisabled, true +} + +// SetAiSupportBotDisabled sets field value +func (o *OrganizationGet200ResponseData) SetAiSupportBotDisabled(v bool) { + o.AiSupportBotDisabled = v +} + +// GetRetoolFormsDisabled returns the RetoolFormsDisabled field value +func (o *OrganizationGet200ResponseData) GetRetoolFormsDisabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.RetoolFormsDisabled +} + +// GetRetoolFormsDisabledOk returns a tuple with the RetoolFormsDisabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetRetoolFormsDisabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RetoolFormsDisabled, true +} + +// SetRetoolFormsDisabled sets field value +func (o *OrganizationGet200ResponseData) SetRetoolFormsDisabled(v bool) { + o.RetoolFormsDisabled = v +} + +// GetReleaseManagementEnabled returns the ReleaseManagementEnabled field value +func (o *OrganizationGet200ResponseData) GetReleaseManagementEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.ReleaseManagementEnabled +} + +// GetReleaseManagementEnabledOk returns a tuple with the ReleaseManagementEnabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetReleaseManagementEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ReleaseManagementEnabled, true +} + +// SetReleaseManagementEnabled sets field value +func (o *OrganizationGet200ResponseData) SetReleaseManagementEnabled(v bool) { + o.ReleaseManagementEnabled = v +} + +// GetCacheQueriesPerUser returns the CacheQueriesPerUser field value +// If the value is explicit nil, the zero value for bool will be returned +func (o *OrganizationGet200ResponseData) GetCacheQueriesPerUser() bool { + if o == nil || o.CacheQueriesPerUser.Get() == nil { + var ret bool + return ret + } + + return *o.CacheQueriesPerUser.Get() +} + +// GetCacheQueriesPerUserOk returns a tuple with the CacheQueriesPerUser field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationGet200ResponseData) GetCacheQueriesPerUserOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.CacheQueriesPerUser.Get(), o.CacheQueriesPerUser.IsSet() +} + +// SetCacheQueriesPerUser sets field value +func (o *OrganizationGet200ResponseData) SetCacheQueriesPerUser(v bool) { + o.CacheQueriesPerUser.Set(&v) +} + +// GetApplyPreloadedCssToHomepage returns the ApplyPreloadedCssToHomepage field value +func (o *OrganizationGet200ResponseData) GetApplyPreloadedCssToHomepage() bool { + if o == nil { + var ret bool + return ret + } + + return o.ApplyPreloadedCssToHomepage +} + +// GetApplyPreloadedCssToHomepageOk returns a tuple with the ApplyPreloadedCssToHomepage field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetApplyPreloadedCssToHomepageOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ApplyPreloadedCssToHomepage, true +} + +// SetApplyPreloadedCssToHomepage sets field value +func (o *OrganizationGet200ResponseData) SetApplyPreloadedCssToHomepage(v bool) { + o.ApplyPreloadedCssToHomepage = v +} + +// GetPreloadedCss returns the PreloadedCss field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationGet200ResponseData) GetPreloadedCss() string { + if o == nil || o.PreloadedCss.Get() == nil { + var ret string + return ret + } + + return *o.PreloadedCss.Get() +} + +// GetPreloadedCssOk returns a tuple with the PreloadedCss field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationGet200ResponseData) GetPreloadedCssOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PreloadedCss.Get(), o.PreloadedCss.IsSet() +} + +// SetPreloadedCss sets field value +func (o *OrganizationGet200ResponseData) SetPreloadedCss(v string) { + o.PreloadedCss.Set(&v) +} + +// GetPreloadedJavascript returns the PreloadedJavascript field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationGet200ResponseData) GetPreloadedJavascript() string { + if o == nil || o.PreloadedJavascript.Get() == nil { + var ret string + return ret + } + + return *o.PreloadedJavascript.Get() +} + +// GetPreloadedJavascriptOk returns a tuple with the PreloadedJavascript field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationGet200ResponseData) GetPreloadedJavascriptOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PreloadedJavascript.Get(), o.PreloadedJavascript.IsSet() +} + +// SetPreloadedJavascript sets field value +func (o *OrganizationGet200ResponseData) SetPreloadedJavascript(v string) { + o.PreloadedJavascript.Set(&v) +} + +// GetJavascriptLinks returns the JavascriptLinks field value +func (o *OrganizationGet200ResponseData) GetJavascriptLinks() []string { + if o == nil { + var ret []string + return ret + } + + return o.JavascriptLinks +} + +// GetJavascriptLinksOk returns a tuple with the JavascriptLinks field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetJavascriptLinksOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.JavascriptLinks, true +} + +// SetJavascriptLinks sets field value +func (o *OrganizationGet200ResponseData) SetJavascriptLinks(v []string) { + o.JavascriptLinks = v +} + +// GetWorkflowRunRetentionPeriodMins returns the WorkflowRunRetentionPeriodMins field value +func (o *OrganizationGet200ResponseData) GetWorkflowRunRetentionPeriodMins() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.WorkflowRunRetentionPeriodMins +} + +// GetWorkflowRunRetentionPeriodMinsOk returns a tuple with the WorkflowRunRetentionPeriodMins field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetWorkflowRunRetentionPeriodMinsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowRunRetentionPeriodMins, true +} + +// SetWorkflowRunRetentionPeriodMins sets field value +func (o *OrganizationGet200ResponseData) SetWorkflowRunRetentionPeriodMins(v float32) { + o.WorkflowRunRetentionPeriodMins = v +} + +// GetAppOwnersPermissionsManagement returns the AppOwnersPermissionsManagement field value +func (o *OrganizationGet200ResponseData) GetAppOwnersPermissionsManagement() bool { + if o == nil { + var ret bool + return ret + } + + return o.AppOwnersPermissionsManagement +} + +// GetAppOwnersPermissionsManagementOk returns a tuple with the AppOwnersPermissionsManagement field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetAppOwnersPermissionsManagementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AppOwnersPermissionsManagement, true +} + +// SetAppOwnersPermissionsManagement sets field value +func (o *OrganizationGet200ResponseData) SetAppOwnersPermissionsManagement(v bool) { + o.AppOwnersPermissionsManagement = v +} + +// GetTwoFactorAuthRequired returns the TwoFactorAuthRequired field value +func (o *OrganizationGet200ResponseData) GetTwoFactorAuthRequired() bool { + if o == nil { + var ret bool + return ret + } + + return o.TwoFactorAuthRequired +} + +// GetTwoFactorAuthRequiredOk returns a tuple with the TwoFactorAuthRequired field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetTwoFactorAuthRequiredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TwoFactorAuthRequired, true +} + +// SetTwoFactorAuthRequired sets field value +func (o *OrganizationGet200ResponseData) SetTwoFactorAuthRequired(v bool) { + o.TwoFactorAuthRequired = v +} + +// GetTwoFactorAuthType returns the TwoFactorAuthType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationGet200ResponseData) GetTwoFactorAuthType() string { + if o == nil || o.TwoFactorAuthType.Get() == nil { + var ret string + return ret + } + + return *o.TwoFactorAuthType.Get() +} + +// GetTwoFactorAuthTypeOk returns a tuple with the TwoFactorAuthType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationGet200ResponseData) GetTwoFactorAuthTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TwoFactorAuthType.Get(), o.TwoFactorAuthType.IsSet() +} + +// SetTwoFactorAuthType sets field value +func (o *OrganizationGet200ResponseData) SetTwoFactorAuthType(v string) { + o.TwoFactorAuthType.Set(&v) +} + +// GetDisableNewLoginIpNotificationEmail returns the DisableNewLoginIpNotificationEmail field value +func (o *OrganizationGet200ResponseData) GetDisableNewLoginIpNotificationEmail() bool { + if o == nil { + var ret bool + return ret + } + + return o.DisableNewLoginIpNotificationEmail +} + +// GetDisableNewLoginIpNotificationEmailOk returns a tuple with the DisableNewLoginIpNotificationEmail field value +// and a boolean to check if the value has been set. +func (o *OrganizationGet200ResponseData) GetDisableNewLoginIpNotificationEmailOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DisableNewLoginIpNotificationEmail, true +} + +// SetDisableNewLoginIpNotificationEmail sets field value +func (o *OrganizationGet200ResponseData) SetDisableNewLoginIpNotificationEmail(v bool) { + o.DisableNewLoginIpNotificationEmail = v +} + +func (o OrganizationGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["request_access_enabled"] = o.RequestAccessEnabled + toSerialize["ai_support_bot_disabled"] = o.AiSupportBotDisabled + toSerialize["retool_forms_disabled"] = o.RetoolFormsDisabled + toSerialize["release_management_enabled"] = o.ReleaseManagementEnabled + toSerialize["cache_queries_per_user"] = o.CacheQueriesPerUser.Get() + toSerialize["apply_preloaded_css_to_homepage"] = o.ApplyPreloadedCssToHomepage + toSerialize["preloaded_css"] = o.PreloadedCss.Get() + toSerialize["preloaded_javascript"] = o.PreloadedJavascript.Get() + toSerialize["javascript_links"] = o.JavascriptLinks + toSerialize["workflow_run_retention_period_mins"] = o.WorkflowRunRetentionPeriodMins + toSerialize["app_owners_permissions_management"] = o.AppOwnersPermissionsManagement + toSerialize["two_factor_auth_required"] = o.TwoFactorAuthRequired + toSerialize["two_factor_auth_type"] = o.TwoFactorAuthType.Get() + toSerialize["disable_new_login_ip_notification_email"] = o.DisableNewLoginIpNotificationEmail + return toSerialize, nil +} + +func (o *OrganizationGet200ResponseData) 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{ + "id", + "request_access_enabled", + "ai_support_bot_disabled", + "retool_forms_disabled", + "release_management_enabled", + "cache_queries_per_user", + "apply_preloaded_css_to_homepage", + "preloaded_css", + "preloaded_javascript", + "javascript_links", + "workflow_run_retention_period_mins", + "app_owners_permissions_management", + "two_factor_auth_required", + "two_factor_auth_type", + "disable_new_login_ip_notification_email", + } + + 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) + } + } + + varOrganizationGet200ResponseData := _OrganizationGet200ResponseData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOrganizationGet200ResponseData) + + if err != nil { + return err + } + + *o = OrganizationGet200ResponseData(varOrganizationGet200ResponseData) + + return err +} + +type NullableOrganizationGet200ResponseData struct { + value *OrganizationGet200ResponseData + isSet bool +} + +func (v NullableOrganizationGet200ResponseData) Get() *OrganizationGet200ResponseData { + return v.value +} + +func (v *NullableOrganizationGet200ResponseData) Set(val *OrganizationGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationGet200ResponseData(val *OrganizationGet200ResponseData) *NullableOrganizationGet200ResponseData { + return &NullableOrganizationGet200ResponseData{value: val, isSet: true} +} + +func (v NullableOrganizationGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization__patch_200_response.go b/internal/sdk/api/model__organization__patch_200_response.go new file mode 100644 index 0000000..4b432d3 --- /dev/null +++ b/internal/sdk/api/model__organization__patch_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationPatch200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationPatch200Response{} + +// OrganizationPatch200Response struct for OrganizationPatch200Response +type OrganizationPatch200Response struct { + // API request succeeded + Success bool `json:"success"` + Data OrganizationPatch200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationPatch200Response OrganizationPatch200Response + +// NewOrganizationPatch200Response instantiates a new OrganizationPatch200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationPatch200Response(success bool, data OrganizationPatch200ResponseData) *OrganizationPatch200Response { + this := OrganizationPatch200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewOrganizationPatch200ResponseWithDefaults instantiates a new OrganizationPatch200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationPatch200ResponseWithDefaults() *OrganizationPatch200Response { + this := OrganizationPatch200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *OrganizationPatch200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *OrganizationPatch200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *OrganizationPatch200Response) GetData() OrganizationPatch200ResponseData { + if o == nil { + var ret OrganizationPatch200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200Response) GetDataOk() (*OrganizationPatch200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *OrganizationPatch200Response) SetData(v OrganizationPatch200ResponseData) { + o.Data = v +} + +func (o OrganizationPatch200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationPatch200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationPatch200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varOrganizationPatch200Response := _OrganizationPatch200Response{} + + err = json.Unmarshal(data, &varOrganizationPatch200Response) + + if err != nil { + return err + } + + *o = OrganizationPatch200Response(varOrganizationPatch200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationPatch200Response struct { + value *OrganizationPatch200Response + isSet bool +} + +func (v NullableOrganizationPatch200Response) Get() *OrganizationPatch200Response { + return v.value +} + +func (v *NullableOrganizationPatch200Response) Set(val *OrganizationPatch200Response) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationPatch200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationPatch200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationPatch200Response(val *OrganizationPatch200Response) *NullableOrganizationPatch200Response { + return &NullableOrganizationPatch200Response{value: val, isSet: true} +} + +func (v NullableOrganizationPatch200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationPatch200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization__patch_200_response_data.go b/internal/sdk/api/model__organization__patch_200_response_data.go new file mode 100644 index 0000000..d7aad80 --- /dev/null +++ b/internal/sdk/api/model__organization__patch_200_response_data.go @@ -0,0 +1,572 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the OrganizationPatch200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationPatch200ResponseData{} + +// OrganizationPatch200ResponseData The updated organization settings +type OrganizationPatch200ResponseData struct { + // The id of the organization. + Id string `json:"id"` + // Whether users can request access to join the organization. + RequestAccessEnabled bool `json:"request_access_enabled"` + // Whether the AI support bot is disabled. + AiSupportBotDisabled bool `json:"ai_support_bot_disabled"` + // Whether Retool forms are disabled. + RetoolFormsDisabled bool `json:"retool_forms_disabled"` + // Whether versions and releases on apps are disabled. + ReleaseManagementEnabled bool `json:"release_management_enabled"` + CacheQueriesPerUser NullableBool `json:"cache_queries_per_user"` + // Whether preloaded CSS is applied to the Retool homepage. + ApplyPreloadedCssToHomepage bool `json:"apply_preloaded_css_to_homepage"` + // Custom CSS rules to apply across Retool. + PreloadedCss NullableString `json:"preloaded_css"` + // Preloaded JavaScript that will apply to every Retool app. + PreloadedJavascript NullableString `json:"preloaded_javascript"` + // List of custom JavaScript libraries to load in every app. + JavascriptLinks []string `json:"javascript_links"` + // Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem) + WorkflowRunRetentionPeriodMins float32 `json:"workflow_run_retention_period_mins"` + // Whether app owners can manage permissions for their apps directly. + AppOwnersPermissionsManagement bool `json:"app_owners_permissions_management"` + // Whether two-factor authentication is required for all users in the organization. + TwoFactorAuthRequired bool `json:"two_factor_auth_required"` + // Required 2FA type, applies to the whole organization + TwoFactorAuthType NullableString `json:"two_factor_auth_type"` + // Whether notification emails for logins from new IPs are disabled. + DisableNewLoginIpNotificationEmail bool `json:"disable_new_login_ip_notification_email"` +} + +type _OrganizationPatch200ResponseData OrganizationPatch200ResponseData + +// NewOrganizationPatch200ResponseData instantiates a new OrganizationPatch200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationPatch200ResponseData(id string, requestAccessEnabled bool, aiSupportBotDisabled bool, retoolFormsDisabled bool, releaseManagementEnabled bool, cacheQueriesPerUser NullableBool, applyPreloadedCssToHomepage bool, preloadedCss NullableString, preloadedJavascript NullableString, javascriptLinks []string, workflowRunRetentionPeriodMins float32, appOwnersPermissionsManagement bool, twoFactorAuthRequired bool, twoFactorAuthType NullableString, disableNewLoginIpNotificationEmail bool) *OrganizationPatch200ResponseData { + this := OrganizationPatch200ResponseData{} + this.Id = id + this.RequestAccessEnabled = requestAccessEnabled + this.AiSupportBotDisabled = aiSupportBotDisabled + this.RetoolFormsDisabled = retoolFormsDisabled + this.ReleaseManagementEnabled = releaseManagementEnabled + this.CacheQueriesPerUser = cacheQueriesPerUser + this.ApplyPreloadedCssToHomepage = applyPreloadedCssToHomepage + this.PreloadedCss = preloadedCss + this.PreloadedJavascript = preloadedJavascript + this.JavascriptLinks = javascriptLinks + this.WorkflowRunRetentionPeriodMins = workflowRunRetentionPeriodMins + this.AppOwnersPermissionsManagement = appOwnersPermissionsManagement + this.TwoFactorAuthRequired = twoFactorAuthRequired + this.TwoFactorAuthType = twoFactorAuthType + this.DisableNewLoginIpNotificationEmail = disableNewLoginIpNotificationEmail + return &this +} + +// NewOrganizationPatch200ResponseDataWithDefaults instantiates a new OrganizationPatch200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationPatch200ResponseDataWithDefaults() *OrganizationPatch200ResponseData { + this := OrganizationPatch200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *OrganizationPatch200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *OrganizationPatch200ResponseData) SetId(v string) { + o.Id = v +} + +// GetRequestAccessEnabled returns the RequestAccessEnabled field value +func (o *OrganizationPatch200ResponseData) GetRequestAccessEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.RequestAccessEnabled +} + +// GetRequestAccessEnabledOk returns a tuple with the RequestAccessEnabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetRequestAccessEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RequestAccessEnabled, true +} + +// SetRequestAccessEnabled sets field value +func (o *OrganizationPatch200ResponseData) SetRequestAccessEnabled(v bool) { + o.RequestAccessEnabled = v +} + +// GetAiSupportBotDisabled returns the AiSupportBotDisabled field value +func (o *OrganizationPatch200ResponseData) GetAiSupportBotDisabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AiSupportBotDisabled +} + +// GetAiSupportBotDisabledOk returns a tuple with the AiSupportBotDisabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetAiSupportBotDisabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AiSupportBotDisabled, true +} + +// SetAiSupportBotDisabled sets field value +func (o *OrganizationPatch200ResponseData) SetAiSupportBotDisabled(v bool) { + o.AiSupportBotDisabled = v +} + +// GetRetoolFormsDisabled returns the RetoolFormsDisabled field value +func (o *OrganizationPatch200ResponseData) GetRetoolFormsDisabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.RetoolFormsDisabled +} + +// GetRetoolFormsDisabledOk returns a tuple with the RetoolFormsDisabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetRetoolFormsDisabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RetoolFormsDisabled, true +} + +// SetRetoolFormsDisabled sets field value +func (o *OrganizationPatch200ResponseData) SetRetoolFormsDisabled(v bool) { + o.RetoolFormsDisabled = v +} + +// GetReleaseManagementEnabled returns the ReleaseManagementEnabled field value +func (o *OrganizationPatch200ResponseData) GetReleaseManagementEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.ReleaseManagementEnabled +} + +// GetReleaseManagementEnabledOk returns a tuple with the ReleaseManagementEnabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetReleaseManagementEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ReleaseManagementEnabled, true +} + +// SetReleaseManagementEnabled sets field value +func (o *OrganizationPatch200ResponseData) SetReleaseManagementEnabled(v bool) { + o.ReleaseManagementEnabled = v +} + +// GetCacheQueriesPerUser returns the CacheQueriesPerUser field value +// If the value is explicit nil, the zero value for bool will be returned +func (o *OrganizationPatch200ResponseData) GetCacheQueriesPerUser() bool { + if o == nil || o.CacheQueriesPerUser.Get() == nil { + var ret bool + return ret + } + + return *o.CacheQueriesPerUser.Get() +} + +// GetCacheQueriesPerUserOk returns a tuple with the CacheQueriesPerUser field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationPatch200ResponseData) GetCacheQueriesPerUserOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.CacheQueriesPerUser.Get(), o.CacheQueriesPerUser.IsSet() +} + +// SetCacheQueriesPerUser sets field value +func (o *OrganizationPatch200ResponseData) SetCacheQueriesPerUser(v bool) { + o.CacheQueriesPerUser.Set(&v) +} + +// GetApplyPreloadedCssToHomepage returns the ApplyPreloadedCssToHomepage field value +func (o *OrganizationPatch200ResponseData) GetApplyPreloadedCssToHomepage() bool { + if o == nil { + var ret bool + return ret + } + + return o.ApplyPreloadedCssToHomepage +} + +// GetApplyPreloadedCssToHomepageOk returns a tuple with the ApplyPreloadedCssToHomepage field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetApplyPreloadedCssToHomepageOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ApplyPreloadedCssToHomepage, true +} + +// SetApplyPreloadedCssToHomepage sets field value +func (o *OrganizationPatch200ResponseData) SetApplyPreloadedCssToHomepage(v bool) { + o.ApplyPreloadedCssToHomepage = v +} + +// GetPreloadedCss returns the PreloadedCss field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationPatch200ResponseData) GetPreloadedCss() string { + if o == nil || o.PreloadedCss.Get() == nil { + var ret string + return ret + } + + return *o.PreloadedCss.Get() +} + +// GetPreloadedCssOk returns a tuple with the PreloadedCss field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationPatch200ResponseData) GetPreloadedCssOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PreloadedCss.Get(), o.PreloadedCss.IsSet() +} + +// SetPreloadedCss sets field value +func (o *OrganizationPatch200ResponseData) SetPreloadedCss(v string) { + o.PreloadedCss.Set(&v) +} + +// GetPreloadedJavascript returns the PreloadedJavascript field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationPatch200ResponseData) GetPreloadedJavascript() string { + if o == nil || o.PreloadedJavascript.Get() == nil { + var ret string + return ret + } + + return *o.PreloadedJavascript.Get() +} + +// GetPreloadedJavascriptOk returns a tuple with the PreloadedJavascript field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationPatch200ResponseData) GetPreloadedJavascriptOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PreloadedJavascript.Get(), o.PreloadedJavascript.IsSet() +} + +// SetPreloadedJavascript sets field value +func (o *OrganizationPatch200ResponseData) SetPreloadedJavascript(v string) { + o.PreloadedJavascript.Set(&v) +} + +// GetJavascriptLinks returns the JavascriptLinks field value +func (o *OrganizationPatch200ResponseData) GetJavascriptLinks() []string { + if o == nil { + var ret []string + return ret + } + + return o.JavascriptLinks +} + +// GetJavascriptLinksOk returns a tuple with the JavascriptLinks field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetJavascriptLinksOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.JavascriptLinks, true +} + +// SetJavascriptLinks sets field value +func (o *OrganizationPatch200ResponseData) SetJavascriptLinks(v []string) { + o.JavascriptLinks = v +} + +// GetWorkflowRunRetentionPeriodMins returns the WorkflowRunRetentionPeriodMins field value +func (o *OrganizationPatch200ResponseData) GetWorkflowRunRetentionPeriodMins() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.WorkflowRunRetentionPeriodMins +} + +// GetWorkflowRunRetentionPeriodMinsOk returns a tuple with the WorkflowRunRetentionPeriodMins field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetWorkflowRunRetentionPeriodMinsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowRunRetentionPeriodMins, true +} + +// SetWorkflowRunRetentionPeriodMins sets field value +func (o *OrganizationPatch200ResponseData) SetWorkflowRunRetentionPeriodMins(v float32) { + o.WorkflowRunRetentionPeriodMins = v +} + +// GetAppOwnersPermissionsManagement returns the AppOwnersPermissionsManagement field value +func (o *OrganizationPatch200ResponseData) GetAppOwnersPermissionsManagement() bool { + if o == nil { + var ret bool + return ret + } + + return o.AppOwnersPermissionsManagement +} + +// GetAppOwnersPermissionsManagementOk returns a tuple with the AppOwnersPermissionsManagement field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetAppOwnersPermissionsManagementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AppOwnersPermissionsManagement, true +} + +// SetAppOwnersPermissionsManagement sets field value +func (o *OrganizationPatch200ResponseData) SetAppOwnersPermissionsManagement(v bool) { + o.AppOwnersPermissionsManagement = v +} + +// GetTwoFactorAuthRequired returns the TwoFactorAuthRequired field value +func (o *OrganizationPatch200ResponseData) GetTwoFactorAuthRequired() bool { + if o == nil { + var ret bool + return ret + } + + return o.TwoFactorAuthRequired +} + +// GetTwoFactorAuthRequiredOk returns a tuple with the TwoFactorAuthRequired field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetTwoFactorAuthRequiredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TwoFactorAuthRequired, true +} + +// SetTwoFactorAuthRequired sets field value +func (o *OrganizationPatch200ResponseData) SetTwoFactorAuthRequired(v bool) { + o.TwoFactorAuthRequired = v +} + +// GetTwoFactorAuthType returns the TwoFactorAuthType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationPatch200ResponseData) GetTwoFactorAuthType() string { + if o == nil || o.TwoFactorAuthType.Get() == nil { + var ret string + return ret + } + + return *o.TwoFactorAuthType.Get() +} + +// GetTwoFactorAuthTypeOk returns a tuple with the TwoFactorAuthType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationPatch200ResponseData) GetTwoFactorAuthTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TwoFactorAuthType.Get(), o.TwoFactorAuthType.IsSet() +} + +// SetTwoFactorAuthType sets field value +func (o *OrganizationPatch200ResponseData) SetTwoFactorAuthType(v string) { + o.TwoFactorAuthType.Set(&v) +} + +// GetDisableNewLoginIpNotificationEmail returns the DisableNewLoginIpNotificationEmail field value +func (o *OrganizationPatch200ResponseData) GetDisableNewLoginIpNotificationEmail() bool { + if o == nil { + var ret bool + return ret + } + + return o.DisableNewLoginIpNotificationEmail +} + +// GetDisableNewLoginIpNotificationEmailOk returns a tuple with the DisableNewLoginIpNotificationEmail field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatch200ResponseData) GetDisableNewLoginIpNotificationEmailOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DisableNewLoginIpNotificationEmail, true +} + +// SetDisableNewLoginIpNotificationEmail sets field value +func (o *OrganizationPatch200ResponseData) SetDisableNewLoginIpNotificationEmail(v bool) { + o.DisableNewLoginIpNotificationEmail = v +} + +func (o OrganizationPatch200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationPatch200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["request_access_enabled"] = o.RequestAccessEnabled + toSerialize["ai_support_bot_disabled"] = o.AiSupportBotDisabled + toSerialize["retool_forms_disabled"] = o.RetoolFormsDisabled + toSerialize["release_management_enabled"] = o.ReleaseManagementEnabled + toSerialize["cache_queries_per_user"] = o.CacheQueriesPerUser.Get() + toSerialize["apply_preloaded_css_to_homepage"] = o.ApplyPreloadedCssToHomepage + toSerialize["preloaded_css"] = o.PreloadedCss.Get() + toSerialize["preloaded_javascript"] = o.PreloadedJavascript.Get() + toSerialize["javascript_links"] = o.JavascriptLinks + toSerialize["workflow_run_retention_period_mins"] = o.WorkflowRunRetentionPeriodMins + toSerialize["app_owners_permissions_management"] = o.AppOwnersPermissionsManagement + toSerialize["two_factor_auth_required"] = o.TwoFactorAuthRequired + toSerialize["two_factor_auth_type"] = o.TwoFactorAuthType.Get() + toSerialize["disable_new_login_ip_notification_email"] = o.DisableNewLoginIpNotificationEmail + return toSerialize, nil +} + +func (o *OrganizationPatch200ResponseData) 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{ + "id", + "request_access_enabled", + "ai_support_bot_disabled", + "retool_forms_disabled", + "release_management_enabled", + "cache_queries_per_user", + "apply_preloaded_css_to_homepage", + "preloaded_css", + "preloaded_javascript", + "javascript_links", + "workflow_run_retention_period_mins", + "app_owners_permissions_management", + "two_factor_auth_required", + "two_factor_auth_type", + "disable_new_login_ip_notification_email", + } + + 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) + } + } + + varOrganizationPatch200ResponseData := _OrganizationPatch200ResponseData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOrganizationPatch200ResponseData) + + if err != nil { + return err + } + + *o = OrganizationPatch200ResponseData(varOrganizationPatch200ResponseData) + + return err +} + +type NullableOrganizationPatch200ResponseData struct { + value *OrganizationPatch200ResponseData + isSet bool +} + +func (v NullableOrganizationPatch200ResponseData) Get() *OrganizationPatch200ResponseData { + return v.value +} + +func (v *NullableOrganizationPatch200ResponseData) Set(val *OrganizationPatch200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationPatch200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationPatch200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationPatch200ResponseData(val *OrganizationPatch200ResponseData) *NullableOrganizationPatch200ResponseData { + return &NullableOrganizationPatch200ResponseData{value: val, isSet: true} +} + +func (v NullableOrganizationPatch200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationPatch200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization__patch_request.go b/internal/sdk/api/model__organization__patch_request.go new file mode 100644 index 0000000..f07e521 --- /dev/null +++ b/internal/sdk/api/model__organization__patch_request.go @@ -0,0 +1,159 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the OrganizationPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationPatchRequest{} + +// OrganizationPatchRequest The body of a request to update an organization. +type OrganizationPatchRequest struct { + // A list of operations to apply to update the organization. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. + Operations []ReplaceOperation `json:"operations"` +} + +type _OrganizationPatchRequest OrganizationPatchRequest + +// NewOrganizationPatchRequest instantiates a new OrganizationPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationPatchRequest(operations []ReplaceOperation) *OrganizationPatchRequest { + this := OrganizationPatchRequest{} + this.Operations = operations + return &this +} + +// NewOrganizationPatchRequestWithDefaults instantiates a new OrganizationPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationPatchRequestWithDefaults() *OrganizationPatchRequest { + this := OrganizationPatchRequest{} + return &this +} + +// GetOperations returns the Operations field value +func (o *OrganizationPatchRequest) GetOperations() []ReplaceOperation { + if o == nil { + var ret []ReplaceOperation + return ret + } + + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value +// and a boolean to check if the value has been set. +func (o *OrganizationPatchRequest) GetOperationsOk() ([]ReplaceOperation, bool) { + if o == nil { + return nil, false + } + return o.Operations, true +} + +// SetOperations sets field value +func (o *OrganizationPatchRequest) SetOperations(v []ReplaceOperation) { + o.Operations = v +} + +func (o OrganizationPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["operations"] = o.Operations + return toSerialize, nil +} + +func (o *OrganizationPatchRequest) 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{ + "operations", + } + + 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) + } + } + + varOrganizationPatchRequest := _OrganizationPatchRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOrganizationPatchRequest) + + if err != nil { + return err + } + + *o = OrganizationPatchRequest(varOrganizationPatchRequest) + + return err +} + +type NullableOrganizationPatchRequest struct { + value *OrganizationPatchRequest + isSet bool +} + +func (v NullableOrganizationPatchRequest) Get() *OrganizationPatchRequest { + return v.value +} + +func (v *NullableOrganizationPatchRequest) Set(val *OrganizationPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationPatchRequest(val *OrganizationPatchRequest) *NullableOrganizationPatchRequest { + return &NullableOrganizationPatchRequest{value: val, isSet: true} +} + +func (v NullableOrganizationPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization_ai_settings_get_200_response.go b/internal/sdk/api/model__organization_ai_settings_get_200_response.go new file mode 100644 index 0000000..4d04e54 --- /dev/null +++ b/internal/sdk/api/model__organization_ai_settings_get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationAiSettingsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationAiSettingsGet200Response{} + +// OrganizationAiSettingsGet200Response The current organization AI settings +type OrganizationAiSettingsGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data OrganizationAiSettingsGet200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationAiSettingsGet200Response OrganizationAiSettingsGet200Response + +// NewOrganizationAiSettingsGet200Response instantiates a new OrganizationAiSettingsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationAiSettingsGet200Response(success bool, data OrganizationAiSettingsGet200ResponseData) *OrganizationAiSettingsGet200Response { + this := OrganizationAiSettingsGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewOrganizationAiSettingsGet200ResponseWithDefaults instantiates a new OrganizationAiSettingsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationAiSettingsGet200ResponseWithDefaults() *OrganizationAiSettingsGet200Response { + this := OrganizationAiSettingsGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *OrganizationAiSettingsGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *OrganizationAiSettingsGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *OrganizationAiSettingsGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *OrganizationAiSettingsGet200Response) GetData() OrganizationAiSettingsGet200ResponseData { + if o == nil { + var ret OrganizationAiSettingsGet200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *OrganizationAiSettingsGet200Response) GetDataOk() (*OrganizationAiSettingsGet200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *OrganizationAiSettingsGet200Response) SetData(v OrganizationAiSettingsGet200ResponseData) { + o.Data = v +} + +func (o OrganizationAiSettingsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationAiSettingsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationAiSettingsGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varOrganizationAiSettingsGet200Response := _OrganizationAiSettingsGet200Response{} + + err = json.Unmarshal(data, &varOrganizationAiSettingsGet200Response) + + if err != nil { + return err + } + + *o = OrganizationAiSettingsGet200Response(varOrganizationAiSettingsGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationAiSettingsGet200Response struct { + value *OrganizationAiSettingsGet200Response + isSet bool +} + +func (v NullableOrganizationAiSettingsGet200Response) Get() *OrganizationAiSettingsGet200Response { + return v.value +} + +func (v *NullableOrganizationAiSettingsGet200Response) Set(val *OrganizationAiSettingsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAiSettingsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAiSettingsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAiSettingsGet200Response(val *OrganizationAiSettingsGet200Response) *NullableOrganizationAiSettingsGet200Response { + return &NullableOrganizationAiSettingsGet200Response{value: val, isSet: true} +} + +func (v NullableOrganizationAiSettingsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAiSettingsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization_ai_settings_get_200_response_data.go b/internal/sdk/api/model__organization_ai_settings_get_200_response_data.go new file mode 100644 index 0000000..9a5959b --- /dev/null +++ b/internal/sdk/api/model__organization_ai_settings_get_200_response_data.go @@ -0,0 +1,246 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the OrganizationAiSettingsGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationAiSettingsGet200ResponseData{} + +// OrganizationAiSettingsGet200ResponseData struct for OrganizationAiSettingsGet200ResponseData +type OrganizationAiSettingsGet200ResponseData struct { + // Global switch for all Retool AI features. This switch takes precedence over individual feature switches. + RetoolAI bool `json:"retoolAI"` + // Whether Retool AI Actions are enabled. + RetoolAIActions bool `json:"retoolAIActions"` + // Whether Retool Vector is enabled. + RetoolVector bool `json:"retoolVector"` + // Whether Retool Ask AI is enabled. + RetoolAskAI bool `json:"retoolAskAI"` +} + +type _OrganizationAiSettingsGet200ResponseData OrganizationAiSettingsGet200ResponseData + +// NewOrganizationAiSettingsGet200ResponseData instantiates a new OrganizationAiSettingsGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationAiSettingsGet200ResponseData(retoolAI bool, retoolAIActions bool, retoolVector bool, retoolAskAI bool) *OrganizationAiSettingsGet200ResponseData { + this := OrganizationAiSettingsGet200ResponseData{} + this.RetoolAI = retoolAI + this.RetoolAIActions = retoolAIActions + this.RetoolVector = retoolVector + this.RetoolAskAI = retoolAskAI + return &this +} + +// NewOrganizationAiSettingsGet200ResponseDataWithDefaults instantiates a new OrganizationAiSettingsGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationAiSettingsGet200ResponseDataWithDefaults() *OrganizationAiSettingsGet200ResponseData { + this := OrganizationAiSettingsGet200ResponseData{} + return &this +} + +// GetRetoolAI returns the RetoolAI field value +func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAI() bool { + if o == nil { + var ret bool + return ret + } + + return o.RetoolAI +} + +// GetRetoolAIOk returns a tuple with the RetoolAI field value +// and a boolean to check if the value has been set. +func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAIOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RetoolAI, true +} + +// SetRetoolAI sets field value +func (o *OrganizationAiSettingsGet200ResponseData) SetRetoolAI(v bool) { + o.RetoolAI = v +} + +// GetRetoolAIActions returns the RetoolAIActions field value +func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAIActions() bool { + if o == nil { + var ret bool + return ret + } + + return o.RetoolAIActions +} + +// GetRetoolAIActionsOk returns a tuple with the RetoolAIActions field value +// and a boolean to check if the value has been set. +func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAIActionsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RetoolAIActions, true +} + +// SetRetoolAIActions sets field value +func (o *OrganizationAiSettingsGet200ResponseData) SetRetoolAIActions(v bool) { + o.RetoolAIActions = v +} + +// GetRetoolVector returns the RetoolVector field value +func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolVector() bool { + if o == nil { + var ret bool + return ret + } + + return o.RetoolVector +} + +// GetRetoolVectorOk returns a tuple with the RetoolVector field value +// and a boolean to check if the value has been set. +func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolVectorOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RetoolVector, true +} + +// SetRetoolVector sets field value +func (o *OrganizationAiSettingsGet200ResponseData) SetRetoolVector(v bool) { + o.RetoolVector = v +} + +// GetRetoolAskAI returns the RetoolAskAI field value +func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAskAI() bool { + if o == nil { + var ret bool + return ret + } + + return o.RetoolAskAI +} + +// GetRetoolAskAIOk returns a tuple with the RetoolAskAI field value +// and a boolean to check if the value has been set. +func (o *OrganizationAiSettingsGet200ResponseData) GetRetoolAskAIOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RetoolAskAI, true +} + +// SetRetoolAskAI sets field value +func (o *OrganizationAiSettingsGet200ResponseData) SetRetoolAskAI(v bool) { + o.RetoolAskAI = v +} + +func (o OrganizationAiSettingsGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationAiSettingsGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["retoolAI"] = o.RetoolAI + toSerialize["retoolAIActions"] = o.RetoolAIActions + toSerialize["retoolVector"] = o.RetoolVector + toSerialize["retoolAskAI"] = o.RetoolAskAI + return toSerialize, nil +} + +func (o *OrganizationAiSettingsGet200ResponseData) 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{ + "retoolAI", + "retoolAIActions", + "retoolVector", + "retoolAskAI", + } + + 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) + } + } + + varOrganizationAiSettingsGet200ResponseData := _OrganizationAiSettingsGet200ResponseData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOrganizationAiSettingsGet200ResponseData) + + if err != nil { + return err + } + + *o = OrganizationAiSettingsGet200ResponseData(varOrganizationAiSettingsGet200ResponseData) + + return err +} + +type NullableOrganizationAiSettingsGet200ResponseData struct { + value *OrganizationAiSettingsGet200ResponseData + isSet bool +} + +func (v NullableOrganizationAiSettingsGet200ResponseData) Get() *OrganizationAiSettingsGet200ResponseData { + return v.value +} + +func (v *NullableOrganizationAiSettingsGet200ResponseData) Set(val *OrganizationAiSettingsGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAiSettingsGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAiSettingsGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAiSettingsGet200ResponseData(val *OrganizationAiSettingsGet200ResponseData) *NullableOrganizationAiSettingsGet200ResponseData { + return &NullableOrganizationAiSettingsGet200ResponseData{value: val, isSet: true} +} + +func (v NullableOrganizationAiSettingsGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAiSettingsGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization_ai_settings_put_200_response.go b/internal/sdk/api/model__organization_ai_settings_put_200_response.go new file mode 100644 index 0000000..39e45c9 --- /dev/null +++ b/internal/sdk/api/model__organization_ai_settings_put_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationAiSettingsPut200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationAiSettingsPut200Response{} + +// OrganizationAiSettingsPut200Response The updated organization AI settings +type OrganizationAiSettingsPut200Response struct { + // API request succeeded + Success bool `json:"success"` + Data OrganizationAiSettingsGet200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationAiSettingsPut200Response OrganizationAiSettingsPut200Response + +// NewOrganizationAiSettingsPut200Response instantiates a new OrganizationAiSettingsPut200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationAiSettingsPut200Response(success bool, data OrganizationAiSettingsGet200ResponseData) *OrganizationAiSettingsPut200Response { + this := OrganizationAiSettingsPut200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewOrganizationAiSettingsPut200ResponseWithDefaults instantiates a new OrganizationAiSettingsPut200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationAiSettingsPut200ResponseWithDefaults() *OrganizationAiSettingsPut200Response { + this := OrganizationAiSettingsPut200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *OrganizationAiSettingsPut200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *OrganizationAiSettingsPut200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *OrganizationAiSettingsPut200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *OrganizationAiSettingsPut200Response) GetData() OrganizationAiSettingsGet200ResponseData { + if o == nil { + var ret OrganizationAiSettingsGet200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *OrganizationAiSettingsPut200Response) GetDataOk() (*OrganizationAiSettingsGet200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *OrganizationAiSettingsPut200Response) SetData(v OrganizationAiSettingsGet200ResponseData) { + o.Data = v +} + +func (o OrganizationAiSettingsPut200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationAiSettingsPut200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationAiSettingsPut200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varOrganizationAiSettingsPut200Response := _OrganizationAiSettingsPut200Response{} + + err = json.Unmarshal(data, &varOrganizationAiSettingsPut200Response) + + if err != nil { + return err + } + + *o = OrganizationAiSettingsPut200Response(varOrganizationAiSettingsPut200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationAiSettingsPut200Response struct { + value *OrganizationAiSettingsPut200Response + isSet bool +} + +func (v NullableOrganizationAiSettingsPut200Response) Get() *OrganizationAiSettingsPut200Response { + return v.value +} + +func (v *NullableOrganizationAiSettingsPut200Response) Set(val *OrganizationAiSettingsPut200Response) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAiSettingsPut200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAiSettingsPut200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAiSettingsPut200Response(val *OrganizationAiSettingsPut200Response) *NullableOrganizationAiSettingsPut200Response { + return &NullableOrganizationAiSettingsPut200Response{value: val, isSet: true} +} + +func (v NullableOrganizationAiSettingsPut200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAiSettingsPut200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization_analytics_integrations_get_200_response.go b/internal/sdk/api/model__organization_analytics_integrations_get_200_response.go new file mode 100644 index 0000000..229d0f3 --- /dev/null +++ b/internal/sdk/api/model__organization_analytics_integrations_get_200_response.go @@ -0,0 +1,291 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationAnalyticsIntegrationsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationAnalyticsIntegrationsGet200Response{} + +// OrganizationAnalyticsIntegrationsGet200Response A list of configured integrations for third-party analytics. There is at-most one of each type. +type OrganizationAnalyticsIntegrationsGet200Response struct { + // API request succeeded + Success bool `json:"success"` + // An array of requested items + Data []OrganizationAnalyticsIntegrationsGet200ResponseDataInner `json:"data"` + // Total number of items in the response + TotalCount float32 `json:"total_count"` + // A token to retrieve the next page of items in the collection + NextToken NullableString `json:"next_token"` + // Whether there are more items in the collection + HasMore bool `json:"has_more"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationAnalyticsIntegrationsGet200Response OrganizationAnalyticsIntegrationsGet200Response + +// NewOrganizationAnalyticsIntegrationsGet200Response instantiates a new OrganizationAnalyticsIntegrationsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationAnalyticsIntegrationsGet200Response(success bool, data []OrganizationAnalyticsIntegrationsGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool) *OrganizationAnalyticsIntegrationsGet200Response { + this := OrganizationAnalyticsIntegrationsGet200Response{} + this.Success = success + this.Data = data + this.TotalCount = totalCount + this.NextToken = nextToken + this.HasMore = hasMore + return &this +} + +// NewOrganizationAnalyticsIntegrationsGet200ResponseWithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationAnalyticsIntegrationsGet200ResponseWithDefaults() *OrganizationAnalyticsIntegrationsGet200Response { + this := OrganizationAnalyticsIntegrationsGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetData() []OrganizationAnalyticsIntegrationsGet200ResponseDataInner { + if o == nil { + var ret []OrganizationAnalyticsIntegrationsGet200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetDataOk() ([]OrganizationAnalyticsIntegrationsGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) SetData(v []OrganizationAnalyticsIntegrationsGet200ResponseDataInner) { + o.Data = v +} + +// GetTotalCount returns the TotalCount field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetTotalCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetTotalCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) SetTotalCount(v float32) { + o.TotalCount = v +} + +// GetNextToken returns the NextToken field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetNextToken() string { + if o == nil || o.NextToken.Get() == nil { + var ret string + return ret + } + + return *o.NextToken.Get() +} + +// GetNextTokenOk returns a tuple with the NextToken field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetNextTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextToken.Get(), o.NextToken.IsSet() +} + +// SetNextToken sets field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) SetNextToken(v string) { + o.NextToken.Set(&v) +} + +// GetHasMore returns the HasMore field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetHasMore() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200Response) GetHasMoreOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasMore, true +} + +// SetHasMore sets field value +func (o *OrganizationAnalyticsIntegrationsGet200Response) SetHasMore(v bool) { + o.HasMore = v +} + +func (o OrganizationAnalyticsIntegrationsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationAnalyticsIntegrationsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + toSerialize["total_count"] = o.TotalCount + toSerialize["next_token"] = o.NextToken.Get() + toSerialize["has_more"] = o.HasMore + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationAnalyticsIntegrationsGet200Response) 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{ + "success", + "data", + "total_count", + "next_token", + "has_more", + } + + 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) + } + } + + varOrganizationAnalyticsIntegrationsGet200Response := _OrganizationAnalyticsIntegrationsGet200Response{} + + err = json.Unmarshal(data, &varOrganizationAnalyticsIntegrationsGet200Response) + + if err != nil { + return err + } + + *o = OrganizationAnalyticsIntegrationsGet200Response(varOrganizationAnalyticsIntegrationsGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + delete(additionalProperties, "total_count") + delete(additionalProperties, "next_token") + delete(additionalProperties, "has_more") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationAnalyticsIntegrationsGet200Response struct { + value *OrganizationAnalyticsIntegrationsGet200Response + isSet bool +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200Response) Get() *OrganizationAnalyticsIntegrationsGet200Response { + return v.value +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200Response) Set(val *OrganizationAnalyticsIntegrationsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAnalyticsIntegrationsGet200Response(val *OrganizationAnalyticsIntegrationsGet200Response) *NullableOrganizationAnalyticsIntegrationsGet200Response { + return &NullableOrganizationAnalyticsIntegrationsGet200Response{value: val, isSet: true} +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner.go b/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner.go new file mode 100644 index 0000000..cb0be01 --- /dev/null +++ b/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner.go @@ -0,0 +1,178 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInner - struct for OrganizationAnalyticsIntegrationsGet200ResponseDataInner +type OrganizationAnalyticsIntegrationsGet200ResponseDataInner struct { + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 +} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfAsOrganizationAnalyticsIntegrationsGet200ResponseDataInner is a convenience function that returns OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf wrapped in OrganizationAnalyticsIntegrationsGet200ResponseDataInner +func OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfAsOrganizationAnalyticsIntegrationsGet200ResponseDataInner(v *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) OrganizationAnalyticsIntegrationsGet200ResponseDataInner { + return OrganizationAnalyticsIntegrationsGet200ResponseDataInner{ + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf: v, + } +} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1AsOrganizationAnalyticsIntegrationsGet200ResponseDataInner is a convenience function that returns OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 wrapped in OrganizationAnalyticsIntegrationsGet200ResponseDataInner +func OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1AsOrganizationAnalyticsIntegrationsGet200ResponseDataInner(v *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) OrganizationAnalyticsIntegrationsGet200ResponseDataInner { + return OrganizationAnalyticsIntegrationsGet200ResponseDataInner{ + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1: v, + } +} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2AsOrganizationAnalyticsIntegrationsGet200ResponseDataInner is a convenience function that returns OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 wrapped in OrganizationAnalyticsIntegrationsGet200ResponseDataInner +func OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2AsOrganizationAnalyticsIntegrationsGet200ResponseDataInner(v *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) OrganizationAnalyticsIntegrationsGet200ResponseDataInner { + return OrganizationAnalyticsIntegrationsGet200ResponseDataInner{ + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + err = newStrictDecoder(data).Decode(&dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) + if err == nil { + jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf, _ := json.Marshal(dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) + if string(jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) == "{}" { // empty struct + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf = nil + } else { + match++ + } + } else { + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf = nil + } + + // try to unmarshal data into OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + err = newStrictDecoder(data).Decode(&dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) + if err == nil { + jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1, _ := json.Marshal(dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) + if string(jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) == "{}" { // empty struct + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 = nil + } else { + match++ + } + } else { + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 = nil + } + + // try to unmarshal data into OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 + err = newStrictDecoder(data).Decode(&dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) + if err == nil { + jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2, _ := json.Marshal(dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) + if string(jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) == "{}" { // empty struct + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 = nil + } else { + match++ + } + } else { + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf = nil + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 = nil + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(OrganizationAnalyticsIntegrationsGet200ResponseDataInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(OrganizationAnalyticsIntegrationsGet200ResponseDataInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src OrganizationAnalyticsIntegrationsGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + if src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf != nil { + return json.Marshal(src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) + } + + if src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 != nil { + return json.Marshal(src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) + } + + if src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 != nil { + return json.Marshal(src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf != nil { + return obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + } + + if obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 != nil { + return obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + } + + if obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 != nil { + return obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 + } + + // all schemas are nil + return nil +} + +type NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner struct { + value *OrganizationAnalyticsIntegrationsGet200ResponseDataInner + isSet bool +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner) Get() *OrganizationAnalyticsIntegrationsGet200ResponseDataInner { + return v.value +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner) Set(val *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner(val *OrganizationAnalyticsIntegrationsGet200ResponseDataInner) *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner { + return &NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner{value: val, isSet: true} +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of.go b/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of.go new file mode 100644 index 0000000..1375164 --- /dev/null +++ b/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of.go @@ -0,0 +1,226 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf{} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf struct for OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf +type OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf struct { + Type string `json:"type"` + MeasurementId string `json:"measurement_id"` + Enabled bool `json:"enabled"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + +// NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf(type_ string, measurementId string, enabled bool) *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf { + this := OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf{} + this.Type = type_ + this.MeasurementId = measurementId + this.Enabled = enabled + return &this +} + +// NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfWithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfWithDefaults() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf { + this := OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf{} + return &this +} + +// GetType returns the Type field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) SetType(v string) { + o.Type = v +} + +// GetMeasurementId returns the MeasurementId field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetMeasurementId() string { + if o == nil { + var ret string + return ret + } + + return o.MeasurementId +} + +// GetMeasurementIdOk returns a tuple with the MeasurementId field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetMeasurementIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MeasurementId, true +} + +// SetMeasurementId sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) SetMeasurementId(v string) { + o.MeasurementId = v +} + +// GetEnabled returns the Enabled field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) SetEnabled(v bool) { + o.Enabled = v +} + +func (o OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["measurement_id"] = o.MeasurementId + toSerialize["enabled"] = o.Enabled + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) 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{ + "type", + "measurement_id", + "enabled", + } + + 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) + } + } + + varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf := _OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf{} + + err = json.Unmarshal(data, &varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) + + if err != nil { + return err + } + + *o = OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf(varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "measurement_id") + delete(additionalProperties, "enabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf struct { + value *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + isSet bool +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) Get() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf { + return v.value +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) Set(val *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf(val *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf { + return &NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf{value: val, isSet: true} +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of_1.go b/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of_1.go new file mode 100644 index 0000000..2f8e177 --- /dev/null +++ b/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of_1.go @@ -0,0 +1,255 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1{} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 struct for OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 +type OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 struct { + Type string `json:"type"` + Host string `json:"host"` + ApiKey string `json:"api_key"` + Enabled bool `json:"enabled"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + +// NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1(type_ string, host string, apiKey string, enabled bool) *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 { + this := OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1{} + this.Type = type_ + this.Host = host + this.ApiKey = apiKey + this.Enabled = enabled + return &this +} + +// NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1WithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1WithDefaults() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 { + this := OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1{} + return &this +} + +// GetType returns the Type field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) SetType(v string) { + o.Type = v +} + +// GetHost returns the Host field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetHost() string { + if o == nil { + var ret string + return ret + } + + return o.Host +} + +// GetHostOk returns a tuple with the Host field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Host, true +} + +// SetHost sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) SetHost(v string) { + o.Host = v +} + +// GetApiKey returns the ApiKey field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetApiKey() string { + if o == nil { + var ret string + return ret + } + + return o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetApiKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiKey, true +} + +// SetApiKey sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) SetApiKey(v string) { + o.ApiKey = v +} + +// GetEnabled returns the Enabled field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) SetEnabled(v bool) { + o.Enabled = v +} + +func (o OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["host"] = o.Host + toSerialize["api_key"] = o.ApiKey + toSerialize["enabled"] = o.Enabled + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) 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{ + "type", + "host", + "api_key", + "enabled", + } + + 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) + } + } + + varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 := _OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1{} + + err = json.Unmarshal(data, &varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) + + if err != nil { + return err + } + + *o = OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1(varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "host") + delete(additionalProperties, "api_key") + delete(additionalProperties, "enabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 struct { + value *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + isSet bool +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) Get() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 { + return v.value +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) Set(val *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1(val *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 { + return &NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1{value: val, isSet: true} +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of_2.go b/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of_2.go new file mode 100644 index 0000000..a79901f --- /dev/null +++ b/internal/sdk/api/model__organization_analytics_integrations_get_200_response_data_inner_one_of_2.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2{} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 struct for OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 +type OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 struct { + Type string `json:"type"` + Enabled bool `json:"enabled"` + AdditionalProperties map[string]interface{} +} + +type _OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 + +// NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2(type_ string, enabled bool) *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 { + this := OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2{} + this.Type = type_ + this.Enabled = enabled + return &this +} + +// NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2WithDefaults instantiates a new OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2WithDefaults() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 { + this := OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2{} + return &this +} + +// GetType returns the Type field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) SetType(v string) { + o.Type = v +} + +// GetEnabled returns the Enabled field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) SetEnabled(v bool) { + o.Enabled = v +} + +func (o OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["enabled"] = o.Enabled + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) 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{ + "type", + "enabled", + } + + 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) + } + } + + varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 := _OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2{} + + err = json.Unmarshal(data, &varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) + + if err != nil { + return err + } + + *o = OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2(varOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "enabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 struct { + value *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 + isSet bool +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) Get() *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 { + return v.value +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) Set(val *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2(val *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 { + return &NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2{value: val, isSet: true} +} + +func (v NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response.go b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response.go new file mode 100644 index 0000000..71fca8a --- /dev/null +++ b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsAccessListObjectTypeObjectIdGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsAccessListObjectTypeObjectIdGet200Response{} + +// PermissionsAccessListObjectTypeObjectIdGet200Response struct for PermissionsAccessListObjectTypeObjectIdGet200Response +type PermissionsAccessListObjectTypeObjectIdGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data PermissionsAccessListObjectTypeObjectIdGet200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsAccessListObjectTypeObjectIdGet200Response PermissionsAccessListObjectTypeObjectIdGet200Response + +// NewPermissionsAccessListObjectTypeObjectIdGet200Response instantiates a new PermissionsAccessListObjectTypeObjectIdGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsAccessListObjectTypeObjectIdGet200Response(success bool, data PermissionsAccessListObjectTypeObjectIdGet200ResponseData) *PermissionsAccessListObjectTypeObjectIdGet200Response { + this := PermissionsAccessListObjectTypeObjectIdGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200Response { + this := PermissionsAccessListObjectTypeObjectIdGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) GetData() PermissionsAccessListObjectTypeObjectIdGet200ResponseData { + if o == nil { + var ret PermissionsAccessListObjectTypeObjectIdGet200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) GetDataOk() (*PermissionsAccessListObjectTypeObjectIdGet200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) SetData(v PermissionsAccessListObjectTypeObjectIdGet200ResponseData) { + o.Data = v +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsAccessListObjectTypeObjectIdGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varPermissionsAccessListObjectTypeObjectIdGet200Response := _PermissionsAccessListObjectTypeObjectIdGet200Response{} + + err = json.Unmarshal(data, &varPermissionsAccessListObjectTypeObjectIdGet200Response) + + if err != nil { + return err + } + + *o = PermissionsAccessListObjectTypeObjectIdGet200Response(varPermissionsAccessListObjectTypeObjectIdGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsAccessListObjectTypeObjectIdGet200Response struct { + value *PermissionsAccessListObjectTypeObjectIdGet200Response + isSet bool +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200Response) Get() *PermissionsAccessListObjectTypeObjectIdGet200Response { + return v.value +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200Response) Set(val *PermissionsAccessListObjectTypeObjectIdGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsAccessListObjectTypeObjectIdGet200Response(val *PermissionsAccessListObjectTypeObjectIdGet200Response) *NullablePermissionsAccessListObjectTypeObjectIdGet200Response { + return &NullablePermissionsAccessListObjectTypeObjectIdGet200Response{value: val, isSet: true} +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data.go b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data.go new file mode 100644 index 0000000..9160159 --- /dev/null +++ b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data.go @@ -0,0 +1,229 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PermissionsAccessListObjectTypeObjectIdGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsAccessListObjectTypeObjectIdGet200ResponseData{} + +// PermissionsAccessListObjectTypeObjectIdGet200ResponseData struct for PermissionsAccessListObjectTypeObjectIdGet200ResponseData +type PermissionsAccessListObjectTypeObjectIdGet200ResponseData struct { + Group []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner `json:"group,omitempty"` + User []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner `json:"user,omitempty"` + UserInvite []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner `json:"userInvite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsAccessListObjectTypeObjectIdGet200ResponseData PermissionsAccessListObjectTypeObjectIdGet200ResponseData + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseData instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseData() *PermissionsAccessListObjectTypeObjectIdGet200ResponseData { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseData{} + return &this +} + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseData { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseData{} + return &this +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetGroup() []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner { + if o == nil || IsNil(o.Group) { + var ret []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner + return ret + } + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetGroupOk() ([]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner and assigns it to the Group field. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) SetGroup(v []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) { + o.Group = v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetUser() []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner { + if o == nil || IsNil(o.User) { + var ret []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner + return ret + } + return o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetUserOk() ([]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner and assigns it to the User field. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) SetUser(v []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) { + o.User = v +} + +// GetUserInvite returns the UserInvite field value if set, zero value otherwise. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetUserInvite() []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner { + if o == nil || IsNil(o.UserInvite) { + var ret []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner + return ret + } + return o.UserInvite +} + +// GetUserInviteOk returns a tuple with the UserInvite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) GetUserInviteOk() ([]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner, bool) { + if o == nil || IsNil(o.UserInvite) { + return nil, false + } + return o.UserInvite, true +} + +// HasUserInvite returns a boolean if a field has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) HasUserInvite() bool { + if o != nil && !IsNil(o.UserInvite) { + return true + } + + return false +} + +// SetUserInvite gets a reference to the given []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner and assigns it to the UserInvite field. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) SetUserInvite(v []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) { + o.UserInvite = v +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + if !IsNil(o.UserInvite) { + toSerialize["userInvite"] = o.UserInvite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) UnmarshalJSON(data []byte) (err error) { + varPermissionsAccessListObjectTypeObjectIdGet200ResponseData := _PermissionsAccessListObjectTypeObjectIdGet200ResponseData{} + + err = json.Unmarshal(data, &varPermissionsAccessListObjectTypeObjectIdGet200ResponseData) + + if err != nil { + return err + } + + *o = PermissionsAccessListObjectTypeObjectIdGet200ResponseData(varPermissionsAccessListObjectTypeObjectIdGet200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "user") + delete(additionalProperties, "userInvite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData struct { + value *PermissionsAccessListObjectTypeObjectIdGet200ResponseData + isSet bool +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData) Get() *PermissionsAccessListObjectTypeObjectIdGet200ResponseData { + return v.value +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData) Set(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseData) *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData { + return &NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData{value: val, isSet: true} +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner.go b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner.go new file mode 100644 index 0000000..b3a5a16 --- /dev/null +++ b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner.go @@ -0,0 +1,234 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner{} + +// PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner struct for PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner +type PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner struct { + Subject PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject `json:"subject"` + Sources *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources `json:"sources,omitempty"` + AccessLevel string `json:"accessLevel"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner(subject PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject, accessLevel string) *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner{} + this.Subject = subject + this.AccessLevel = accessLevel + return &this +} + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner{} + return &this +} + +// GetSubject returns the Subject field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetSubject() PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject { + if o == nil { + var ret PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetSubjectOk() (*PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) SetSubject(v PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) { + o.Subject = v +} + +// GetSources returns the Sources field value if set, zero value otherwise. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetSources() PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources { + if o == nil || IsNil(o.Sources) { + var ret PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources + return ret + } + return *o.Sources +} + +// GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetSourcesOk() (*PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources, bool) { + if o == nil || IsNil(o.Sources) { + return nil, false + } + return o.Sources, true +} + +// HasSources returns a boolean if a field has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) HasSources() bool { + if o != nil && !IsNil(o.Sources) { + return true + } + + return false +} + +// SetSources gets a reference to the given PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources and assigns it to the Sources field. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) SetSources(v PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) { + o.Sources = &v +} + +// GetAccessLevel returns the AccessLevel field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetAccessLevel() string { + if o == nil { + var ret string + return ret + } + + return o.AccessLevel +} + +// GetAccessLevelOk returns a tuple with the AccessLevel field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) GetAccessLevelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessLevel, true +} + +// SetAccessLevel sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) SetAccessLevel(v string) { + o.AccessLevel = v +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subject"] = o.Subject + if !IsNil(o.Sources) { + toSerialize["sources"] = o.Sources + } + toSerialize["accessLevel"] = o.AccessLevel + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) 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{ + "subject", + "accessLevel", + } + + 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) + } + } + + varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner := _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner{} + + err = json.Unmarshal(data, &varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) + + if err != nil { + return err + } + + *o = PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner(varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "subject") + delete(additionalProperties, "sources") + delete(additionalProperties, "accessLevel") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner struct { + value *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner + isSet bool +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) Get() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner { + return v.value +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) Set(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner { + return &NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner{value: val, isSet: true} +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources.go b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources.go new file mode 100644 index 0000000..6b40e10 --- /dev/null +++ b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources.go @@ -0,0 +1,266 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources{} + +// PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources struct for PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources +type PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources struct { + Direct *bool `json:"direct,omitempty"` + Universal *bool `json:"universal,omitempty"` + Groups []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner `json:"groups,omitempty"` + Inherited *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited `json:"inherited,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources{} + return &this +} + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources{} + return &this +} + +// GetDirect returns the Direct field value if set, zero value otherwise. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetDirect() bool { + if o == nil || IsNil(o.Direct) { + var ret bool + return ret + } + return *o.Direct +} + +// GetDirectOk returns a tuple with the Direct field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetDirectOk() (*bool, bool) { + if o == nil || IsNil(o.Direct) { + return nil, false + } + return o.Direct, true +} + +// HasDirect returns a boolean if a field has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) HasDirect() bool { + if o != nil && !IsNil(o.Direct) { + return true + } + + return false +} + +// SetDirect gets a reference to the given bool and assigns it to the Direct field. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) SetDirect(v bool) { + o.Direct = &v +} + +// GetUniversal returns the Universal field value if set, zero value otherwise. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetUniversal() bool { + if o == nil || IsNil(o.Universal) { + var ret bool + return ret + } + return *o.Universal +} + +// GetUniversalOk returns a tuple with the Universal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetUniversalOk() (*bool, bool) { + if o == nil || IsNil(o.Universal) { + return nil, false + } + return o.Universal, true +} + +// HasUniversal returns a boolean if a field has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) HasUniversal() bool { + if o != nil && !IsNil(o.Universal) { + return true + } + + return false +} + +// SetUniversal gets a reference to the given bool and assigns it to the Universal field. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) SetUniversal(v bool) { + o.Universal = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetGroups() []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner { + if o == nil || IsNil(o.Groups) { + var ret []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetGroupsOk() ([]PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner and assigns it to the Groups field. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) SetGroups(v []PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) { + o.Groups = v +} + +// GetInherited returns the Inherited field value if set, zero value otherwise. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetInherited() PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited { + if o == nil || IsNil(o.Inherited) { + var ret PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited + return ret + } + return *o.Inherited +} + +// GetInheritedOk returns a tuple with the Inherited field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) GetInheritedOk() (*PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited, bool) { + if o == nil || IsNil(o.Inherited) { + return nil, false + } + return o.Inherited, true +} + +// HasInherited returns a boolean if a field has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) HasInherited() bool { + if o != nil && !IsNil(o.Inherited) { + return true + } + + return false +} + +// SetInherited gets a reference to the given PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited and assigns it to the Inherited field. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) SetInherited(v PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) { + o.Inherited = &v +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Direct) { + toSerialize["direct"] = o.Direct + } + if !IsNil(o.Universal) { + toSerialize["universal"] = o.Universal + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Inherited) { + toSerialize["inherited"] = o.Inherited + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) UnmarshalJSON(data []byte) (err error) { + varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources := _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources{} + + err = json.Unmarshal(data, &varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) + + if err != nil { + return err + } + + *o = PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources(varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "direct") + delete(additionalProperties, "universal") + delete(additionalProperties, "groups") + delete(additionalProperties, "inherited") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources struct { + value *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources + isSet bool +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) Get() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources { + return v.value +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) Set(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources { + return &NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources{value: val, isSet: true} +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSources) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources_groups_inner.go b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources_groups_inner.go new file mode 100644 index 0000000..c9d86f7 --- /dev/null +++ b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources_groups_inner.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner{} + +// PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner struct for PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner +type PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner struct { + Id string `json:"id"` + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner(id string, type_ string) *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner{} + this.Id = id + this.Type = type_ + return &this +} + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInnerWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInnerWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner{} + return &this +} + +// GetId returns the Id field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) SetType(v string) { + o.Type = v +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) 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{ + "id", + "type", + } + + 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) + } + } + + varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner := _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner{} + + err = json.Unmarshal(data, &varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) + + if err != nil { + return err + } + + *o = PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner(varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner struct { + value *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner + isSet bool +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) Get() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner { + return v.value +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) Set(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner { + return &NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner{value: val, isSet: true} +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesGroupsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources_inherited.go b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources_inherited.go new file mode 100644 index 0000000..1983284 --- /dev/null +++ b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_sources_inherited.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited{} + +// PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited struct for PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited +type PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited struct { + Id string `json:"id"` + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited(id string, type_ string) *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited{} + this.Id = id + this.Type = type_ + return &this +} + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInheritedWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInheritedWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited{} + return &this +} + +// GetId returns the Id field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) SetType(v string) { + o.Type = v +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) 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{ + "id", + "type", + } + + 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) + } + } + + varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited := _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited{} + + err = json.Unmarshal(data, &varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) + + if err != nil { + return err + } + + *o = PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited(varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited struct { + value *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited + isSet bool +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) Get() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited { + return v.value +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) Set(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited { + return &NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited{value: val, isSet: true} +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSourcesInherited) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_subject.go b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_subject.go new file mode 100644 index 0000000..620e474 --- /dev/null +++ b/internal/sdk/api/model__permissions_access_list__object_type___object_id__get_200_response_data_group_inner_subject.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject{} + +// PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject struct for PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject +type PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject struct { + Id string `json:"id"` + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject(id string, type_ string) *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject{} + this.Id = id + this.Type = type_ + return &this +} + +// NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubjectWithDefaults instantiates a new PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubjectWithDefaults() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject { + this := PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject{} + return &this +} + +// GetId returns the Id field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) SetType(v string) { + o.Type = v +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) 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{ + "id", + "type", + } + + 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) + } + } + + varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject := _PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject{} + + err = json.Unmarshal(data, &varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) + + if err != nil { + return err + } + + *o = PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject(varPermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject struct { + value *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject + isSet bool +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) Get() *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject { + return v.value +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) Set(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject(val *PermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject { + return &NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject{value: val, isSet: true} +} + +func (v NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsAccessListObjectTypeObjectIdGet200ResponseDataGroupInnerSubject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_grant_post_200_response.go b/internal/sdk/api/model__permissions_grant_post_200_response.go new file mode 100644 index 0000000..ad66bd2 --- /dev/null +++ b/internal/sdk/api/model__permissions_grant_post_200_response.go @@ -0,0 +1,291 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsGrantPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsGrantPost200Response{} + +// PermissionsGrantPost200Response struct for PermissionsGrantPost200Response +type PermissionsGrantPost200Response struct { + // API request succeeded + Success bool `json:"success"` + // An array of requested items + Data []PermissionsGrantPost200ResponseDataInner `json:"data"` + // Total number of items in the response + TotalCount float32 `json:"total_count"` + // A token to retrieve the next page of items in the collection + NextToken NullableString `json:"next_token"` + // Whether there are more items in the collection + HasMore bool `json:"has_more"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsGrantPost200Response PermissionsGrantPost200Response + +// NewPermissionsGrantPost200Response instantiates a new PermissionsGrantPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsGrantPost200Response(success bool, data []PermissionsGrantPost200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool) *PermissionsGrantPost200Response { + this := PermissionsGrantPost200Response{} + this.Success = success + this.Data = data + this.TotalCount = totalCount + this.NextToken = nextToken + this.HasMore = hasMore + return &this +} + +// NewPermissionsGrantPost200ResponseWithDefaults instantiates a new PermissionsGrantPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsGrantPost200ResponseWithDefaults() *PermissionsGrantPost200Response { + this := PermissionsGrantPost200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *PermissionsGrantPost200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *PermissionsGrantPost200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *PermissionsGrantPost200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *PermissionsGrantPost200Response) GetData() []PermissionsGrantPost200ResponseDataInner { + if o == nil { + var ret []PermissionsGrantPost200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PermissionsGrantPost200Response) GetDataOk() ([]PermissionsGrantPost200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *PermissionsGrantPost200Response) SetData(v []PermissionsGrantPost200ResponseDataInner) { + o.Data = v +} + +// GetTotalCount returns the TotalCount field value +func (o *PermissionsGrantPost200Response) GetTotalCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *PermissionsGrantPost200Response) GetTotalCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *PermissionsGrantPost200Response) SetTotalCount(v float32) { + o.TotalCount = v +} + +// GetNextToken returns the NextToken field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PermissionsGrantPost200Response) GetNextToken() string { + if o == nil || o.NextToken.Get() == nil { + var ret string + return ret + } + + return *o.NextToken.Get() +} + +// GetNextTokenOk returns a tuple with the NextToken field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PermissionsGrantPost200Response) GetNextTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextToken.Get(), o.NextToken.IsSet() +} + +// SetNextToken sets field value +func (o *PermissionsGrantPost200Response) SetNextToken(v string) { + o.NextToken.Set(&v) +} + +// GetHasMore returns the HasMore field value +func (o *PermissionsGrantPost200Response) GetHasMore() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value +// and a boolean to check if the value has been set. +func (o *PermissionsGrantPost200Response) GetHasMoreOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasMore, true +} + +// SetHasMore sets field value +func (o *PermissionsGrantPost200Response) SetHasMore(v bool) { + o.HasMore = v +} + +func (o PermissionsGrantPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsGrantPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + toSerialize["total_count"] = o.TotalCount + toSerialize["next_token"] = o.NextToken.Get() + toSerialize["has_more"] = o.HasMore + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsGrantPost200Response) 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{ + "success", + "data", + "total_count", + "next_token", + "has_more", + } + + 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) + } + } + + varPermissionsGrantPost200Response := _PermissionsGrantPost200Response{} + + err = json.Unmarshal(data, &varPermissionsGrantPost200Response) + + if err != nil { + return err + } + + *o = PermissionsGrantPost200Response(varPermissionsGrantPost200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + delete(additionalProperties, "total_count") + delete(additionalProperties, "next_token") + delete(additionalProperties, "has_more") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsGrantPost200Response struct { + value *PermissionsGrantPost200Response + isSet bool +} + +func (v NullablePermissionsGrantPost200Response) Get() *PermissionsGrantPost200Response { + return v.value +} + +func (v *NullablePermissionsGrantPost200Response) Set(val *PermissionsGrantPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsGrantPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsGrantPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsGrantPost200Response(val *PermissionsGrantPost200Response) *NullablePermissionsGrantPost200Response { + return &NullablePermissionsGrantPost200Response{value: val, isSet: true} +} + +func (v NullablePermissionsGrantPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsGrantPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_grant_post_200_response_data_inner.go b/internal/sdk/api/model__permissions_grant_post_200_response_data_inner.go new file mode 100644 index 0000000..f3c09f5 --- /dev/null +++ b/internal/sdk/api/model__permissions_grant_post_200_response_data_inner.go @@ -0,0 +1,17 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.4.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +// PermissionsGrantPost200ResponseDataInner - Type alias for permission object +// The OpenAPI Generator doesn't always create separate types for identical anyOf structures in different endpoints. +// Since grant, revoke, and listObjects all return the same permission object structure, we alias to the generated type. +type PermissionsGrantPost200ResponseDataInner = PermissionsListObjectsPost200ResponseDataInner + diff --git a/internal/sdk/api/model__permissions_grant_post_request.go b/internal/sdk/api/model__permissions_grant_post_request.go index 4c68909..b46515c 100644 --- a/internal/sdk/api/model__permissions_grant_post_request.go +++ b/internal/sdk/api/model__permissions_grant_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__permissions_grant_post_request_object.go b/internal/sdk/api/model__permissions_grant_post_request_object.go index 4a94a2b..9ae9528 100644 --- a/internal/sdk/api/model__permissions_grant_post_request_object.go +++ b/internal/sdk/api/model__permissions_grant_post_request_object.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,13 +17,37 @@ import ( // PermissionsGrantPostRequestObject - struct for PermissionsGrantPostRequestObject type PermissionsGrantPostRequestObject struct { - PermissionsGrantPostRequestObjectOneOf *PermissionsGrantPostRequestObjectOneOf + App *App + Folder *Folder + Resource *Resource + ResourceConfiguration *ResourceConfiguration } -// PermissionsGrantPostRequestObjectOneOfAsPermissionsGrantPostRequestObject is a convenience function that returns PermissionsGrantPostRequestObjectOneOf wrapped in PermissionsGrantPostRequestObject -func PermissionsGrantPostRequestObjectOneOfAsPermissionsGrantPostRequestObject(v *PermissionsGrantPostRequestObjectOneOf) PermissionsGrantPostRequestObject { +// AppAsPermissionsGrantPostRequestObject is a convenience function that returns App wrapped in PermissionsGrantPostRequestObject +func AppAsPermissionsGrantPostRequestObject(v *App) PermissionsGrantPostRequestObject { return PermissionsGrantPostRequestObject{ - PermissionsGrantPostRequestObjectOneOf: v, + App: v, + } +} + +// FolderAsPermissionsGrantPostRequestObject is a convenience function that returns Folder wrapped in PermissionsGrantPostRequestObject +func FolderAsPermissionsGrantPostRequestObject(v *Folder) PermissionsGrantPostRequestObject { + return PermissionsGrantPostRequestObject{ + Folder: v, + } +} + +// ResourceAsPermissionsGrantPostRequestObject is a convenience function that returns Resource wrapped in PermissionsGrantPostRequestObject +func ResourceAsPermissionsGrantPostRequestObject(v *Resource) PermissionsGrantPostRequestObject { + return PermissionsGrantPostRequestObject{ + Resource: v, + } +} + +// ResourceConfigurationAsPermissionsGrantPostRequestObject is a convenience function that returns ResourceConfiguration wrapped in PermissionsGrantPostRequestObject +func ResourceConfigurationAsPermissionsGrantPostRequestObject(v *ResourceConfiguration) PermissionsGrantPostRequestObject { + return PermissionsGrantPostRequestObject{ + ResourceConfiguration: v, } } @@ -32,22 +56,64 @@ func PermissionsGrantPostRequestObjectOneOfAsPermissionsGrantPostRequestObject(v func (dst *PermissionsGrantPostRequestObject) UnmarshalJSON(data []byte) error { var err error match := 0 - // try to unmarshal data into PermissionsGrantPostRequestObjectOneOf - err = newStrictDecoder(data).Decode(&dst.PermissionsGrantPostRequestObjectOneOf) + // try to unmarshal data into App + err = newStrictDecoder(data).Decode(&dst.App) if err == nil { - jsonPermissionsGrantPostRequestObjectOneOf, _ := json.Marshal(dst.PermissionsGrantPostRequestObjectOneOf) - if string(jsonPermissionsGrantPostRequestObjectOneOf) == "{}" { // empty struct - dst.PermissionsGrantPostRequestObjectOneOf = nil + jsonApp, _ := json.Marshal(dst.App) + if string(jsonApp) == "{}" { // empty struct + dst.App = nil } else { match++ } } else { - dst.PermissionsGrantPostRequestObjectOneOf = nil + dst.App = nil + } + + // try to unmarshal data into Folder + err = newStrictDecoder(data).Decode(&dst.Folder) + if err == nil { + jsonFolder, _ := json.Marshal(dst.Folder) + if string(jsonFolder) == "{}" { // empty struct + dst.Folder = nil + } else { + match++ + } + } else { + dst.Folder = nil + } + + // try to unmarshal data into Resource + err = newStrictDecoder(data).Decode(&dst.Resource) + if err == nil { + jsonResource, _ := json.Marshal(dst.Resource) + if string(jsonResource) == "{}" { // empty struct + dst.Resource = nil + } else { + match++ + } + } else { + dst.Resource = nil + } + + // try to unmarshal data into ResourceConfiguration + err = newStrictDecoder(data).Decode(&dst.ResourceConfiguration) + if err == nil { + jsonResourceConfiguration, _ := json.Marshal(dst.ResourceConfiguration) + if string(jsonResourceConfiguration) == "{}" { // empty struct + dst.ResourceConfiguration = nil + } else { + match++ + } + } else { + dst.ResourceConfiguration = nil } if match > 1 { // more than 1 match // reset to nil - dst.PermissionsGrantPostRequestObjectOneOf = nil + dst.App = nil + dst.Folder = nil + dst.Resource = nil + dst.ResourceConfiguration = nil return fmt.Errorf("data matches more than one schema in oneOf(PermissionsGrantPostRequestObject)") } else if match == 1 { @@ -59,8 +125,20 @@ func (dst *PermissionsGrantPostRequestObject) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src PermissionsGrantPostRequestObject) MarshalJSON() ([]byte, error) { - if src.PermissionsGrantPostRequestObjectOneOf != nil { - return json.Marshal(&src.PermissionsGrantPostRequestObjectOneOf) + if src.App != nil { + return json.Marshal(src.App) + } + + if src.Folder != nil { + return json.Marshal(src.Folder) + } + + if src.Resource != nil { + return json.Marshal(src.Resource) + } + + if src.ResourceConfiguration != nil { + return json.Marshal(src.ResourceConfiguration) } return nil, nil // no data in oneOf schemas @@ -71,8 +149,20 @@ func (obj *PermissionsGrantPostRequestObject) GetActualInstance() (interface{}) if obj == nil { return nil } - if obj.PermissionsGrantPostRequestObjectOneOf != nil { - return obj.PermissionsGrantPostRequestObjectOneOf + if obj.App != nil { + return obj.App + } + + if obj.Folder != nil { + return obj.Folder + } + + if obj.Resource != nil { + return obj.Resource + } + + if obj.ResourceConfiguration != nil { + return obj.ResourceConfiguration } // all schemas are nil diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response.go b/internal/sdk/api/model__permissions_list_objects_post_200_response.go index 8aaee3e..0546756 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_200_response.go +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner.go index b52a411..37a21ce 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner.go +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,68 +15,162 @@ import ( "fmt" ) -// PermissionsListObjectsPost200ResponseDataInner - struct for PermissionsListObjectsPost200ResponseDataInner +// PermissionsListObjectsPost200ResponseDataInner struct for PermissionsListObjectsPost200ResponseDataInner type PermissionsListObjectsPost200ResponseDataInner struct { - PermissionsListObjectsPost200ResponseDataInnerOneOf *PermissionsListObjectsPost200ResponseDataInnerOneOf + PermissionsListObjectsPost200ResponseDataInnerAnyOf *PermissionsListObjectsPost200ResponseDataInnerAnyOf + PermissionsListObjectsPost200ResponseDataInnerAnyOf1 *PermissionsListObjectsPost200ResponseDataInnerAnyOf1 + PermissionsListObjectsPost200ResponseDataInnerAnyOf2 *PermissionsListObjectsPost200ResponseDataInnerAnyOf2 + PermissionsListObjectsPost200ResponseDataInnerAnyOf3 *PermissionsListObjectsPost200ResponseDataInnerAnyOf3 } -// PermissionsListObjectsPost200ResponseDataInnerOneOfAsPermissionsListObjectsPost200ResponseDataInner is a convenience function that returns PermissionsListObjectsPost200ResponseDataInnerOneOf wrapped in PermissionsListObjectsPost200ResponseDataInner -func PermissionsListObjectsPost200ResponseDataInnerOneOfAsPermissionsListObjectsPost200ResponseDataInner(v *PermissionsListObjectsPost200ResponseDataInnerOneOf) PermissionsListObjectsPost200ResponseDataInner { - return PermissionsListObjectsPost200ResponseDataInner{ - PermissionsListObjectsPost200ResponseDataInnerOneOf: v, +// Unmarshal JSON data into any of the pointers in the struct +func (dst *PermissionsListObjectsPost200ResponseDataInner) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = json.Unmarshal(data, &jsonDict) + if err != nil { + return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup") } -} + // check if the discriminator value is '_permissions_listObjects_post_200_response_data_inner_anyOf' + if jsonDict["type"] == "_permissions_listObjects_post_200_response_data_inner_anyOf" { + // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerAnyOf + err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf); + if err == nil { + jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf) + if string(jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf) == "{}" { // empty struct + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf = nil + } else { + return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf, return on the first match + } + } else { + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf = nil + } + } -// Unmarshal JSON data into one of the pointers in the struct -func (dst *PermissionsListObjectsPost200ResponseDataInner) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into PermissionsListObjectsPost200ResponseDataInnerOneOf - err = newStrictDecoder(data).Decode(&dst.PermissionsListObjectsPost200ResponseDataInnerOneOf) + // check if the discriminator value is '_permissions_listObjects_post_200_response_data_inner_anyOf_1' + if jsonDict["type"] == "_permissions_listObjects_post_200_response_data_inner_anyOf_1" { + // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerAnyOf1 + err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1); + if err == nil { + jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf1, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1) + if string(jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf1) == "{}" { // empty struct + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1 = nil + } else { + return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1, return on the first match + } + } else { + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1 = nil + } + } + + // check if the discriminator value is '_permissions_listObjects_post_200_response_data_inner_anyOf_2' + if jsonDict["type"] == "_permissions_listObjects_post_200_response_data_inner_anyOf_2" { + // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerAnyOf2 + err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2); + if err == nil { + jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf2, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2) + if string(jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf2) == "{}" { // empty struct + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2 = nil + } else { + return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2, return on the first match + } + } else { + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2 = nil + } + } + + // check if the discriminator value is '_permissions_listObjects_post_200_response_data_inner_anyOf_3' + if jsonDict["type"] == "_permissions_listObjects_post_200_response_data_inner_anyOf_3" { + // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerAnyOf3 + err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3); + if err == nil { + jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf3, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3) + if string(jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf3) == "{}" { // empty struct + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3 = nil + } else { + return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3, return on the first match + } + } else { + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3 = nil + } + } + + // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerAnyOf + err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf); if err == nil { - jsonPermissionsListObjectsPost200ResponseDataInnerOneOf, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerOneOf) - if string(jsonPermissionsListObjectsPost200ResponseDataInnerOneOf) == "{}" { // empty struct - dst.PermissionsListObjectsPost200ResponseDataInnerOneOf = nil + jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf) + if string(jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf) == "{}" { // empty struct + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf = nil } else { - match++ + return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf, return on the first match } } else { - dst.PermissionsListObjectsPost200ResponseDataInnerOneOf = nil + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf = nil } - if match > 1 { // more than 1 match - // reset to nil - dst.PermissionsListObjectsPost200ResponseDataInnerOneOf = nil + // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerAnyOf1 + err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1); + if err == nil { + jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf1, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1) + if string(jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf1) == "{}" { // empty struct + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1 = nil + } else { + return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1, return on the first match + } + } else { + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf1 = nil + } - return fmt.Errorf("data matches more than one schema in oneOf(PermissionsListObjectsPost200ResponseDataInner)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(PermissionsListObjectsPost200ResponseDataInner)") + // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerAnyOf2 + err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2); + if err == nil { + jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf2, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2) + if string(jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf2) == "{}" { // empty struct + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2 = nil + } else { + return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2, return on the first match + } + } else { + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf2 = nil } + + // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerAnyOf3 + err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3); + if err == nil { + jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf3, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3) + if string(jsonPermissionsListObjectsPost200ResponseDataInnerAnyOf3) == "{}" { // empty struct + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3 = nil + } else { + return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3, return on the first match + } + } else { + dst.PermissionsListObjectsPost200ResponseDataInnerAnyOf3 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(PermissionsListObjectsPost200ResponseDataInner)") } // Marshal data from the first non-nil pointers in the struct to JSON func (src PermissionsListObjectsPost200ResponseDataInner) MarshalJSON() ([]byte, error) { - if src.PermissionsListObjectsPost200ResponseDataInnerOneOf != nil { - return json.Marshal(&src.PermissionsListObjectsPost200ResponseDataInnerOneOf) + if src.PermissionsListObjectsPost200ResponseDataInnerAnyOf != nil { + return json.Marshal(src.PermissionsListObjectsPost200ResponseDataInnerAnyOf) } - return nil, nil // no data in oneOf schemas -} + if src.PermissionsListObjectsPost200ResponseDataInnerAnyOf1 != nil { + return json.Marshal(src.PermissionsListObjectsPost200ResponseDataInnerAnyOf1) + } -// Get the actual instance -func (obj *PermissionsListObjectsPost200ResponseDataInner) GetActualInstance() (interface{}) { - if obj == nil { - return nil + if src.PermissionsListObjectsPost200ResponseDataInnerAnyOf2 != nil { + return json.Marshal(src.PermissionsListObjectsPost200ResponseDataInnerAnyOf2) } - if obj.PermissionsListObjectsPost200ResponseDataInnerOneOf != nil { - return obj.PermissionsListObjectsPost200ResponseDataInnerOneOf + + if src.PermissionsListObjectsPost200ResponseDataInnerAnyOf3 != nil { + return json.Marshal(src.PermissionsListObjectsPost200ResponseDataInnerAnyOf3) } - // all schemas are nil - return nil + return nil, nil // no data in anyOf schemas } type NullablePermissionsListObjectsPost200ResponseDataInner struct { diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of.go new file mode 100644 index 0000000..bf38115 --- /dev/null +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of.go @@ -0,0 +1,228 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsListObjectsPost200ResponseDataInnerAnyOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsListObjectsPost200ResponseDataInnerAnyOf{} + +// PermissionsListObjectsPost200ResponseDataInnerAnyOf struct for PermissionsListObjectsPost200ResponseDataInnerAnyOf +type PermissionsListObjectsPost200ResponseDataInnerAnyOf struct { + Type string `json:"type"` + // The id of the folder + Id string `json:"id"` + // The access level of the folder + AccessLevel string `json:"access_level"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsListObjectsPost200ResponseDataInnerAnyOf PermissionsListObjectsPost200ResponseDataInnerAnyOf + +// NewPermissionsListObjectsPost200ResponseDataInnerAnyOf instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf(type_ string, id string, accessLevel string) *PermissionsListObjectsPost200ResponseDataInnerAnyOf { + this := PermissionsListObjectsPost200ResponseDataInnerAnyOf{} + this.Type = type_ + this.Id = id + this.AccessLevel = accessLevel + return &this +} + +// NewPermissionsListObjectsPost200ResponseDataInnerAnyOfWithDefaults instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsListObjectsPost200ResponseDataInnerAnyOfWithDefaults() *PermissionsListObjectsPost200ResponseDataInnerAnyOf { + this := PermissionsListObjectsPost200ResponseDataInnerAnyOf{} + return &this +} + +// GetType returns the Type field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) SetType(v string) { + o.Type = v +} + +// GetId returns the Id field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) SetId(v string) { + o.Id = v +} + +// GetAccessLevel returns the AccessLevel field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetAccessLevel() string { + if o == nil { + var ret string + return ret + } + + return o.AccessLevel +} + +// GetAccessLevelOk returns a tuple with the AccessLevel field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) GetAccessLevelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessLevel, true +} + +// SetAccessLevel sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) SetAccessLevel(v string) { + o.AccessLevel = v +} + +func (o PermissionsListObjectsPost200ResponseDataInnerAnyOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsListObjectsPost200ResponseDataInnerAnyOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["id"] = o.Id + toSerialize["access_level"] = o.AccessLevel + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf) 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{ + "type", + "id", + "access_level", + } + + 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) + } + } + + varPermissionsListObjectsPost200ResponseDataInnerAnyOf := _PermissionsListObjectsPost200ResponseDataInnerAnyOf{} + + err = json.Unmarshal(data, &varPermissionsListObjectsPost200ResponseDataInnerAnyOf) + + if err != nil { + return err + } + + *o = PermissionsListObjectsPost200ResponseDataInnerAnyOf(varPermissionsListObjectsPost200ResponseDataInnerAnyOf) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "id") + delete(additionalProperties, "access_level") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf struct { + value *PermissionsListObjectsPost200ResponseDataInnerAnyOf + isSet bool +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf) Get() *PermissionsListObjectsPost200ResponseDataInnerAnyOf { + return v.value +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf) Set(val *PermissionsListObjectsPost200ResponseDataInnerAnyOf) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsListObjectsPost200ResponseDataInnerAnyOf(val *PermissionsListObjectsPost200ResponseDataInnerAnyOf) *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf { + return &NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf{value: val, isSet: true} +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_1.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_1.go new file mode 100644 index 0000000..31b49cd --- /dev/null +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_1.go @@ -0,0 +1,228 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsListObjectsPost200ResponseDataInnerAnyOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsListObjectsPost200ResponseDataInnerAnyOf1{} + +// PermissionsListObjectsPost200ResponseDataInnerAnyOf1 struct for PermissionsListObjectsPost200ResponseDataInnerAnyOf1 +type PermissionsListObjectsPost200ResponseDataInnerAnyOf1 struct { + Type string `json:"type"` + // The app ID. + Id string `json:"id"` + // The access level of the app + AccessLevel string `json:"access_level"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsListObjectsPost200ResponseDataInnerAnyOf1 PermissionsListObjectsPost200ResponseDataInnerAnyOf1 + +// NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1 instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1(type_ string, id string, accessLevel string) *PermissionsListObjectsPost200ResponseDataInnerAnyOf1 { + this := PermissionsListObjectsPost200ResponseDataInnerAnyOf1{} + this.Type = type_ + this.Id = id + this.AccessLevel = accessLevel + return &this +} + +// NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1WithDefaults instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf1WithDefaults() *PermissionsListObjectsPost200ResponseDataInnerAnyOf1 { + this := PermissionsListObjectsPost200ResponseDataInnerAnyOf1{} + return &this +} + +// GetType returns the Type field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) SetType(v string) { + o.Type = v +} + +// GetId returns the Id field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) SetId(v string) { + o.Id = v +} + +// GetAccessLevel returns the AccessLevel field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetAccessLevel() string { + if o == nil { + var ret string + return ret + } + + return o.AccessLevel +} + +// GetAccessLevelOk returns a tuple with the AccessLevel field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) GetAccessLevelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessLevel, true +} + +// SetAccessLevel sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) SetAccessLevel(v string) { + o.AccessLevel = v +} + +func (o PermissionsListObjectsPost200ResponseDataInnerAnyOf1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsListObjectsPost200ResponseDataInnerAnyOf1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["id"] = o.Id + toSerialize["access_level"] = o.AccessLevel + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) 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{ + "type", + "id", + "access_level", + } + + 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) + } + } + + varPermissionsListObjectsPost200ResponseDataInnerAnyOf1 := _PermissionsListObjectsPost200ResponseDataInnerAnyOf1{} + + err = json.Unmarshal(data, &varPermissionsListObjectsPost200ResponseDataInnerAnyOf1) + + if err != nil { + return err + } + + *o = PermissionsListObjectsPost200ResponseDataInnerAnyOf1(varPermissionsListObjectsPost200ResponseDataInnerAnyOf1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "id") + delete(additionalProperties, "access_level") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1 struct { + value *PermissionsListObjectsPost200ResponseDataInnerAnyOf1 + isSet bool +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1) Get() *PermissionsListObjectsPost200ResponseDataInnerAnyOf1 { + return v.value +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1) Set(val *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1(val *PermissionsListObjectsPost200ResponseDataInnerAnyOf1) *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1 { + return &NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1{value: val, isSet: true} +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_2.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_2.go new file mode 100644 index 0000000..5fe4be0 --- /dev/null +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_2.go @@ -0,0 +1,228 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsListObjectsPost200ResponseDataInnerAnyOf2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsListObjectsPost200ResponseDataInnerAnyOf2{} + +// PermissionsListObjectsPost200ResponseDataInnerAnyOf2 struct for PermissionsListObjectsPost200ResponseDataInnerAnyOf2 +type PermissionsListObjectsPost200ResponseDataInnerAnyOf2 struct { + Type string `json:"type"` + // The uuid or name for the resource. + Id string `json:"id"` + // The access level of the resource + AccessLevel string `json:"access_level"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsListObjectsPost200ResponseDataInnerAnyOf2 PermissionsListObjectsPost200ResponseDataInnerAnyOf2 + +// NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2 instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2(type_ string, id string, accessLevel string) *PermissionsListObjectsPost200ResponseDataInnerAnyOf2 { + this := PermissionsListObjectsPost200ResponseDataInnerAnyOf2{} + this.Type = type_ + this.Id = id + this.AccessLevel = accessLevel + return &this +} + +// NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2WithDefaults instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf2WithDefaults() *PermissionsListObjectsPost200ResponseDataInnerAnyOf2 { + this := PermissionsListObjectsPost200ResponseDataInnerAnyOf2{} + return &this +} + +// GetType returns the Type field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) SetType(v string) { + o.Type = v +} + +// GetId returns the Id field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) SetId(v string) { + o.Id = v +} + +// GetAccessLevel returns the AccessLevel field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetAccessLevel() string { + if o == nil { + var ret string + return ret + } + + return o.AccessLevel +} + +// GetAccessLevelOk returns a tuple with the AccessLevel field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) GetAccessLevelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessLevel, true +} + +// SetAccessLevel sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) SetAccessLevel(v string) { + o.AccessLevel = v +} + +func (o PermissionsListObjectsPost200ResponseDataInnerAnyOf2) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsListObjectsPost200ResponseDataInnerAnyOf2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["id"] = o.Id + toSerialize["access_level"] = o.AccessLevel + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) 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{ + "type", + "id", + "access_level", + } + + 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) + } + } + + varPermissionsListObjectsPost200ResponseDataInnerAnyOf2 := _PermissionsListObjectsPost200ResponseDataInnerAnyOf2{} + + err = json.Unmarshal(data, &varPermissionsListObjectsPost200ResponseDataInnerAnyOf2) + + if err != nil { + return err + } + + *o = PermissionsListObjectsPost200ResponseDataInnerAnyOf2(varPermissionsListObjectsPost200ResponseDataInnerAnyOf2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "id") + delete(additionalProperties, "access_level") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2 struct { + value *PermissionsListObjectsPost200ResponseDataInnerAnyOf2 + isSet bool +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2) Get() *PermissionsListObjectsPost200ResponseDataInnerAnyOf2 { + return v.value +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2) Set(val *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2(val *PermissionsListObjectsPost200ResponseDataInnerAnyOf2) *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2 { + return &NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2{value: val, isSet: true} +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_3.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_3.go new file mode 100644 index 0000000..a640712 --- /dev/null +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_any_of_3.go @@ -0,0 +1,228 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the PermissionsListObjectsPost200ResponseDataInnerAnyOf3 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsListObjectsPost200ResponseDataInnerAnyOf3{} + +// PermissionsListObjectsPost200ResponseDataInnerAnyOf3 struct for PermissionsListObjectsPost200ResponseDataInnerAnyOf3 +type PermissionsListObjectsPost200ResponseDataInnerAnyOf3 struct { + Type string `json:"type"` + // The resource configuration id. + Id string `json:"id"` + // The access level of the resource configuration. Note that the access level in practice of this resource configuration could be different dependent on what the access level of the resource with the same id as the \"name\" of this resource_configuration. + AccessLevel string `json:"access_level"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsListObjectsPost200ResponseDataInnerAnyOf3 PermissionsListObjectsPost200ResponseDataInnerAnyOf3 + +// NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3 instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf3 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3(type_ string, id string, accessLevel string) *PermissionsListObjectsPost200ResponseDataInnerAnyOf3 { + this := PermissionsListObjectsPost200ResponseDataInnerAnyOf3{} + this.Type = type_ + this.Id = id + this.AccessLevel = accessLevel + return &this +} + +// NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3WithDefaults instantiates a new PermissionsListObjectsPost200ResponseDataInnerAnyOf3 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsListObjectsPost200ResponseDataInnerAnyOf3WithDefaults() *PermissionsListObjectsPost200ResponseDataInnerAnyOf3 { + this := PermissionsListObjectsPost200ResponseDataInnerAnyOf3{} + return &this +} + +// GetType returns the Type field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) SetType(v string) { + o.Type = v +} + +// GetId returns the Id field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) SetId(v string) { + o.Id = v +} + +// GetAccessLevel returns the AccessLevel field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetAccessLevel() string { + if o == nil { + var ret string + return ret + } + + return o.AccessLevel +} + +// GetAccessLevelOk returns a tuple with the AccessLevel field value +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) GetAccessLevelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessLevel, true +} + +// SetAccessLevel sets field value +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) SetAccessLevel(v string) { + o.AccessLevel = v +} + +func (o PermissionsListObjectsPost200ResponseDataInnerAnyOf3) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsListObjectsPost200ResponseDataInnerAnyOf3) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["id"] = o.Id + toSerialize["access_level"] = o.AccessLevel + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) 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{ + "type", + "id", + "access_level", + } + + 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) + } + } + + varPermissionsListObjectsPost200ResponseDataInnerAnyOf3 := _PermissionsListObjectsPost200ResponseDataInnerAnyOf3{} + + err = json.Unmarshal(data, &varPermissionsListObjectsPost200ResponseDataInnerAnyOf3) + + if err != nil { + return err + } + + *o = PermissionsListObjectsPost200ResponseDataInnerAnyOf3(varPermissionsListObjectsPost200ResponseDataInnerAnyOf3) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "id") + delete(additionalProperties, "access_level") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3 struct { + value *PermissionsListObjectsPost200ResponseDataInnerAnyOf3 + isSet bool +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3) Get() *PermissionsListObjectsPost200ResponseDataInnerAnyOf3 { + return v.value +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3) Set(val *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3(val *PermissionsListObjectsPost200ResponseDataInnerAnyOf3) *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3 { + return &NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3{value: val, isSet: true} +} + +func (v NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsListObjectsPost200ResponseDataInnerAnyOf3) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of.go index 0e3639e..4f418e9 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of.go +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,9 @@ var _ MappedNullable = &PermissionsListObjectsPost200ResponseDataInnerOneOf{} // PermissionsListObjectsPost200ResponseDataInnerOneOf struct for PermissionsListObjectsPost200ResponseDataInnerOneOf type PermissionsListObjectsPost200ResponseDataInnerOneOf struct { Type string `json:"type"` - // The id of the object + // The id of the folder Id string `json:"id"` - // The access level of the object + // The access level of the folder AccessLevel string `json:"access_level"` AdditionalProperties map[string]interface{} } diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_1.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_1.go index b14d975..343ffee 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_1.go +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_1.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_2.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_2.go index edb64ca..57965ad 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_2.go +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_2.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,8 @@ var _ MappedNullable = &PermissionsListObjectsPost200ResponseDataInnerOneOf2{} // PermissionsListObjectsPost200ResponseDataInnerOneOf2 struct for PermissionsListObjectsPost200ResponseDataInnerOneOf2 type PermissionsListObjectsPost200ResponseDataInnerOneOf2 struct { Type string `json:"type"` - Id PermissionsListObjectsPost200ResponseDataInnerOneOf2Id `json:"id"` + // The uuid or name for the resource. + Id string `json:"id"` // The access level of the resource AccessLevel string `json:"access_level"` AdditionalProperties map[string]interface{} @@ -33,7 +34,7 @@ type _PermissionsListObjectsPost200ResponseDataInnerOneOf2 PermissionsListObject // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPermissionsListObjectsPost200ResponseDataInnerOneOf2(type_ string, id PermissionsListObjectsPost200ResponseDataInnerOneOf2Id, accessLevel string) *PermissionsListObjectsPost200ResponseDataInnerOneOf2 { +func NewPermissionsListObjectsPost200ResponseDataInnerOneOf2(type_ string, id string, accessLevel string) *PermissionsListObjectsPost200ResponseDataInnerOneOf2 { this := PermissionsListObjectsPost200ResponseDataInnerOneOf2{} this.Type = type_ this.Id = id @@ -74,9 +75,9 @@ func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) SetType(v string) } // GetId returns the Id field value -func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetId() PermissionsListObjectsPost200ResponseDataInnerOneOf2Id { +func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetId() string { if o == nil { - var ret PermissionsListObjectsPost200ResponseDataInnerOneOf2Id + var ret string return ret } @@ -85,7 +86,7 @@ func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetId() Permissio // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetIdOk() (*PermissionsListObjectsPost200ResponseDataInnerOneOf2Id, bool) { +func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -93,7 +94,7 @@ func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) GetIdOk() (*Permi } // SetId sets field value -func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) SetId(v PermissionsListObjectsPost200ResponseDataInnerOneOf2Id) { +func (o *PermissionsListObjectsPost200ResponseDataInnerOneOf2) SetId(v string) { o.Id = v } diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_2_id.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_2_id.go index 3e7c930..2759aac 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_2_id.go +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_2_id.go @@ -40,9 +40,9 @@ func (dst *PermissionsListObjectsPost200ResponseDataInnerOneOf2Id) UnmarshalJSON } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *PermissionsListObjectsPost200ResponseDataInnerOneOf2Id) MarshalJSON() ([]byte, error) { +func (src PermissionsListObjectsPost200ResponseDataInnerOneOf2Id) MarshalJSON() ([]byte, error) { if src.string != nil { - return json.Marshal(&src.string) + return json.Marshal(src.string) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_3.go b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_3.go index aba0993..d2f1e3c 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_3.go +++ b/internal/sdk/api/model__permissions_list_objects_post_200_response_data_inner_one_of_3.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__permissions_list_objects_post_request.go b/internal/sdk/api/model__permissions_list_objects_post_request.go index 89ef046..3cbc244 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_request.go +++ b/internal/sdk/api/model__permissions_list_objects_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &PermissionsListObjectsPostRequest{} type PermissionsListObjectsPostRequest struct { Subject PermissionsListObjectsPostRequestSubject `json:"subject"` ObjectType string `json:"object_type"` + IncludeInheritedAccess *bool `json:"include_inherited_access,omitempty"` } type _PermissionsListObjectsPostRequest PermissionsListObjectsPostRequest @@ -94,6 +95,38 @@ func (o *PermissionsListObjectsPostRequest) SetObjectType(v string) { o.ObjectType = v } +// GetIncludeInheritedAccess returns the IncludeInheritedAccess field value if set, zero value otherwise. +func (o *PermissionsListObjectsPostRequest) GetIncludeInheritedAccess() bool { + if o == nil || IsNil(o.IncludeInheritedAccess) { + var ret bool + return ret + } + return *o.IncludeInheritedAccess +} + +// GetIncludeInheritedAccessOk returns a tuple with the IncludeInheritedAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsListObjectsPostRequest) GetIncludeInheritedAccessOk() (*bool, bool) { + if o == nil || IsNil(o.IncludeInheritedAccess) { + return nil, false + } + return o.IncludeInheritedAccess, true +} + +// HasIncludeInheritedAccess returns a boolean if a field has been set. +func (o *PermissionsListObjectsPostRequest) HasIncludeInheritedAccess() bool { + if o != nil && !IsNil(o.IncludeInheritedAccess) { + return true + } + + return false +} + +// SetIncludeInheritedAccess gets a reference to the given bool and assigns it to the IncludeInheritedAccess field. +func (o *PermissionsListObjectsPostRequest) SetIncludeInheritedAccess(v bool) { + o.IncludeInheritedAccess = &v +} + func (o PermissionsListObjectsPostRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -106,6 +139,9 @@ func (o PermissionsListObjectsPostRequest) ToMap() (map[string]interface{}, erro toSerialize := map[string]interface{}{} toSerialize["subject"] = o.Subject toSerialize["object_type"] = o.ObjectType + if !IsNil(o.IncludeInheritedAccess) { + toSerialize["include_inherited_access"] = o.IncludeInheritedAccess + } return toSerialize, nil } diff --git a/internal/sdk/api/model__permissions_list_objects_post_request_subject.go b/internal/sdk/api/model__permissions_list_objects_post_request_subject.go index 9e43c11..56a973f 100644 --- a/internal/sdk/api/model__permissions_list_objects_post_request_subject.go +++ b/internal/sdk/api/model__permissions_list_objects_post_request_subject.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,21 +17,21 @@ import ( // PermissionsListObjectsPostRequestSubject - struct for PermissionsListObjectsPostRequestSubject type PermissionsListObjectsPostRequestSubject struct { - PermissionsListObjectsPostRequestSubjectOneOf *PermissionsListObjectsPostRequestSubjectOneOf - PermissionsListObjectsPostRequestSubjectOneOf1 *PermissionsListObjectsPostRequestSubjectOneOf1 + Group *Group + User *User } -// PermissionsListObjectsPostRequestSubjectOneOfAsPermissionsListObjectsPostRequestSubject is a convenience function that returns PermissionsListObjectsPostRequestSubjectOneOf wrapped in PermissionsListObjectsPostRequestSubject -func PermissionsListObjectsPostRequestSubjectOneOfAsPermissionsListObjectsPostRequestSubject(v *PermissionsListObjectsPostRequestSubjectOneOf) PermissionsListObjectsPostRequestSubject { +// GroupAsPermissionsListObjectsPostRequestSubject is a convenience function that returns Group wrapped in PermissionsListObjectsPostRequestSubject +func GroupAsPermissionsListObjectsPostRequestSubject(v *Group) PermissionsListObjectsPostRequestSubject { return PermissionsListObjectsPostRequestSubject{ - PermissionsListObjectsPostRequestSubjectOneOf: v, + Group: v, } } -// PermissionsListObjectsPostRequestSubjectOneOf1AsPermissionsListObjectsPostRequestSubject is a convenience function that returns PermissionsListObjectsPostRequestSubjectOneOf1 wrapped in PermissionsListObjectsPostRequestSubject -func PermissionsListObjectsPostRequestSubjectOneOf1AsPermissionsListObjectsPostRequestSubject(v *PermissionsListObjectsPostRequestSubjectOneOf1) PermissionsListObjectsPostRequestSubject { +// UserAsPermissionsListObjectsPostRequestSubject is a convenience function that returns User wrapped in PermissionsListObjectsPostRequestSubject +func UserAsPermissionsListObjectsPostRequestSubject(v *User) PermissionsListObjectsPostRequestSubject { return PermissionsListObjectsPostRequestSubject{ - PermissionsListObjectsPostRequestSubjectOneOf1: v, + User: v, } } @@ -40,36 +40,36 @@ func PermissionsListObjectsPostRequestSubjectOneOf1AsPermissionsListObjectsPostR func (dst *PermissionsListObjectsPostRequestSubject) UnmarshalJSON(data []byte) error { var err error match := 0 - // try to unmarshal data into PermissionsListObjectsPostRequestSubjectOneOf - err = newStrictDecoder(data).Decode(&dst.PermissionsListObjectsPostRequestSubjectOneOf) + // try to unmarshal data into Group + err = newStrictDecoder(data).Decode(&dst.Group) if err == nil { - jsonPermissionsListObjectsPostRequestSubjectOneOf, _ := json.Marshal(dst.PermissionsListObjectsPostRequestSubjectOneOf) - if string(jsonPermissionsListObjectsPostRequestSubjectOneOf) == "{}" { // empty struct - dst.PermissionsListObjectsPostRequestSubjectOneOf = nil + jsonGroup, _ := json.Marshal(dst.Group) + if string(jsonGroup) == "{}" { // empty struct + dst.Group = nil } else { match++ } } else { - dst.PermissionsListObjectsPostRequestSubjectOneOf = nil + dst.Group = nil } - // try to unmarshal data into PermissionsListObjectsPostRequestSubjectOneOf1 - err = newStrictDecoder(data).Decode(&dst.PermissionsListObjectsPostRequestSubjectOneOf1) + // try to unmarshal data into User + err = newStrictDecoder(data).Decode(&dst.User) if err == nil { - jsonPermissionsListObjectsPostRequestSubjectOneOf1, _ := json.Marshal(dst.PermissionsListObjectsPostRequestSubjectOneOf1) - if string(jsonPermissionsListObjectsPostRequestSubjectOneOf1) == "{}" { // empty struct - dst.PermissionsListObjectsPostRequestSubjectOneOf1 = nil + jsonUser, _ := json.Marshal(dst.User) + if string(jsonUser) == "{}" { // empty struct + dst.User = nil } else { match++ } } else { - dst.PermissionsListObjectsPostRequestSubjectOneOf1 = nil + dst.User = nil } if match > 1 { // more than 1 match // reset to nil - dst.PermissionsListObjectsPostRequestSubjectOneOf = nil - dst.PermissionsListObjectsPostRequestSubjectOneOf1 = nil + dst.Group = nil + dst.User = nil return fmt.Errorf("data matches more than one schema in oneOf(PermissionsListObjectsPostRequestSubject)") } else if match == 1 { @@ -81,12 +81,12 @@ func (dst *PermissionsListObjectsPostRequestSubject) UnmarshalJSON(data []byte) // Marshal data from the first non-nil pointers in the struct to JSON func (src PermissionsListObjectsPostRequestSubject) MarshalJSON() ([]byte, error) { - if src.PermissionsListObjectsPostRequestSubjectOneOf != nil { - return json.Marshal(&src.PermissionsListObjectsPostRequestSubjectOneOf) + if src.Group != nil { + return json.Marshal(src.Group) } - if src.PermissionsListObjectsPostRequestSubjectOneOf1 != nil { - return json.Marshal(&src.PermissionsListObjectsPostRequestSubjectOneOf1) + if src.User != nil { + return json.Marshal(src.User) } return nil, nil // no data in oneOf schemas @@ -97,12 +97,12 @@ func (obj *PermissionsListObjectsPostRequestSubject) GetActualInstance() (interf if obj == nil { return nil } - if obj.PermissionsListObjectsPostRequestSubjectOneOf != nil { - return obj.PermissionsListObjectsPostRequestSubjectOneOf + if obj.Group != nil { + return obj.Group } - if obj.PermissionsListObjectsPostRequestSubjectOneOf1 != nil { - return obj.PermissionsListObjectsPostRequestSubjectOneOf1 + if obj.User != nil { + return obj.User } // all schemas are nil diff --git a/internal/sdk/api/model__permissions_revoke_post_200_response_data_inner.go b/internal/sdk/api/model__permissions_revoke_post_200_response_data_inner.go index fdbf8a6..779b827 100644 --- a/internal/sdk/api/model__permissions_revoke_post_200_response_data_inner.go +++ b/internal/sdk/api/model__permissions_revoke_post_200_response_data_inner.go @@ -10,114 +10,8 @@ API version: 2.4.0 package api -import ( - "encoding/json" - "fmt" -) - -// PermissionsRevokePost200ResponseDataInner struct for PermissionsRevokePost200ResponseDataInner -type PermissionsRevokePost200ResponseDataInner struct { - PermissionsListObjectsPost200ResponseDataInnerOneOf *PermissionsListObjectsPost200ResponseDataInnerOneOf - PermissionsRevokePost200ResponseDataInnerAnyOf *PermissionsRevokePost200ResponseDataInnerAnyOf - PermissionsRevokePost200ResponseDataInnerAnyOf1 *PermissionsRevokePost200ResponseDataInnerAnyOf1 -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *PermissionsRevokePost200ResponseDataInner) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into PermissionsListObjectsPost200ResponseDataInnerOneOf - err = json.Unmarshal(data, &dst.PermissionsListObjectsPost200ResponseDataInnerOneOf); - if err == nil { - jsonPermissionsListObjectsPost200ResponseDataInnerOneOf, _ := json.Marshal(dst.PermissionsListObjectsPost200ResponseDataInnerOneOf) - if string(jsonPermissionsListObjectsPost200ResponseDataInnerOneOf) == "{}" { // empty struct - dst.PermissionsListObjectsPost200ResponseDataInnerOneOf = nil - } else { - return nil // data stored in dst.PermissionsListObjectsPost200ResponseDataInnerOneOf, return on the first match - } - } else { - dst.PermissionsListObjectsPost200ResponseDataInnerOneOf = nil - } - - // try to unmarshal JSON data into PermissionsRevokePost200ResponseDataInnerAnyOf - err = json.Unmarshal(data, &dst.PermissionsRevokePost200ResponseDataInnerAnyOf); - if err == nil { - jsonPermissionsRevokePost200ResponseDataInnerAnyOf, _ := json.Marshal(dst.PermissionsRevokePost200ResponseDataInnerAnyOf) - if string(jsonPermissionsRevokePost200ResponseDataInnerAnyOf) == "{}" { // empty struct - dst.PermissionsRevokePost200ResponseDataInnerAnyOf = nil - } else { - return nil // data stored in dst.PermissionsRevokePost200ResponseDataInnerAnyOf, return on the first match - } - } else { - dst.PermissionsRevokePost200ResponseDataInnerAnyOf = nil - } - - // try to unmarshal JSON data into PermissionsRevokePost200ResponseDataInnerAnyOf1 - err = json.Unmarshal(data, &dst.PermissionsRevokePost200ResponseDataInnerAnyOf1); - if err == nil { - jsonPermissionsRevokePost200ResponseDataInnerAnyOf1, _ := json.Marshal(dst.PermissionsRevokePost200ResponseDataInnerAnyOf1) - if string(jsonPermissionsRevokePost200ResponseDataInnerAnyOf1) == "{}" { // empty struct - dst.PermissionsRevokePost200ResponseDataInnerAnyOf1 = nil - } else { - return nil // data stored in dst.PermissionsRevokePost200ResponseDataInnerAnyOf1, return on the first match - } - } else { - dst.PermissionsRevokePost200ResponseDataInnerAnyOf1 = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(PermissionsRevokePost200ResponseDataInner)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src *PermissionsRevokePost200ResponseDataInner) MarshalJSON() ([]byte, error) { - if src.PermissionsListObjectsPost200ResponseDataInnerOneOf != nil { - return json.Marshal(&src.PermissionsListObjectsPost200ResponseDataInnerOneOf) - } - - if src.PermissionsRevokePost200ResponseDataInnerAnyOf != nil { - return json.Marshal(&src.PermissionsRevokePost200ResponseDataInnerAnyOf) - } - - if src.PermissionsRevokePost200ResponseDataInnerAnyOf1 != nil { - return json.Marshal(&src.PermissionsRevokePost200ResponseDataInnerAnyOf1) - } - - return nil, nil // no data in anyOf schemas -} - -type NullablePermissionsRevokePost200ResponseDataInner struct { - value *PermissionsRevokePost200ResponseDataInner - isSet bool -} - -func (v NullablePermissionsRevokePost200ResponseDataInner) Get() *PermissionsRevokePost200ResponseDataInner { - return v.value -} - -func (v *NullablePermissionsRevokePost200ResponseDataInner) Set(val *PermissionsRevokePost200ResponseDataInner) { - v.value = val - v.isSet = true -} - -func (v NullablePermissionsRevokePost200ResponseDataInner) IsSet() bool { - return v.isSet -} - -func (v *NullablePermissionsRevokePost200ResponseDataInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePermissionsRevokePost200ResponseDataInner(val *PermissionsRevokePost200ResponseDataInner) *NullablePermissionsRevokePost200ResponseDataInner { - return &NullablePermissionsRevokePost200ResponseDataInner{value: val, isSet: true} -} - -func (v NullablePermissionsRevokePost200ResponseDataInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePermissionsRevokePost200ResponseDataInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - +// PermissionsRevokePost200ResponseDataInner - Type alias for permission object +// The OpenAPI Generator doesn't always create separate types for identical anyOf structures in different endpoints. +// Since grant, revoke, and listObjects all return the same permission object structure, we alias to the generated type. +type PermissionsRevokePost200ResponseDataInner = PermissionsListObjectsPost200ResponseDataInner diff --git a/internal/sdk/api/model__permissions_revoke_post_request.go b/internal/sdk/api/model__permissions_revoke_post_request.go index 3036a3f..0320240 100644 --- a/internal/sdk/api/model__permissions_revoke_post_request.go +++ b/internal/sdk/api/model__permissions_revoke_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resource_configurations__configuration_id__get_200_response.go b/internal/sdk/api/model__resource_configurations__configuration_id__get_200_response.go index 11890d8..29d3738 100644 --- a/internal/sdk/api/model__resource_configurations__configuration_id__get_200_response.go +++ b/internal/sdk/api/model__resource_configurations__configuration_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resource_configurations__configuration_id__patch_200_response.go b/internal/sdk/api/model__resource_configurations__configuration_id__patch_200_response.go new file mode 100644 index 0000000..36bf4dc --- /dev/null +++ b/internal/sdk/api/model__resource_configurations__configuration_id__patch_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the ResourceConfigurationsConfigurationIdPatch200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceConfigurationsConfigurationIdPatch200Response{} + +// ResourceConfigurationsConfigurationIdPatch200Response struct for ResourceConfigurationsConfigurationIdPatch200Response +type ResourceConfigurationsConfigurationIdPatch200Response struct { + // API request succeeded + Success bool `json:"success"` + Data ResourceConfigurationsConfigurationIdPatch200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _ResourceConfigurationsConfigurationIdPatch200Response ResourceConfigurationsConfigurationIdPatch200Response + +// NewResourceConfigurationsConfigurationIdPatch200Response instantiates a new ResourceConfigurationsConfigurationIdPatch200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceConfigurationsConfigurationIdPatch200Response(success bool, data ResourceConfigurationsConfigurationIdPatch200ResponseData) *ResourceConfigurationsConfigurationIdPatch200Response { + this := ResourceConfigurationsConfigurationIdPatch200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewResourceConfigurationsConfigurationIdPatch200ResponseWithDefaults instantiates a new ResourceConfigurationsConfigurationIdPatch200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceConfigurationsConfigurationIdPatch200ResponseWithDefaults() *ResourceConfigurationsConfigurationIdPatch200Response { + this := ResourceConfigurationsConfigurationIdPatch200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *ResourceConfigurationsConfigurationIdPatch200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatch200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *ResourceConfigurationsConfigurationIdPatch200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *ResourceConfigurationsConfigurationIdPatch200Response) GetData() ResourceConfigurationsConfigurationIdPatch200ResponseData { + if o == nil { + var ret ResourceConfigurationsConfigurationIdPatch200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatch200Response) GetDataOk() (*ResourceConfigurationsConfigurationIdPatch200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ResourceConfigurationsConfigurationIdPatch200Response) SetData(v ResourceConfigurationsConfigurationIdPatch200ResponseData) { + o.Data = v +} + +func (o ResourceConfigurationsConfigurationIdPatch200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceConfigurationsConfigurationIdPatch200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceConfigurationsConfigurationIdPatch200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varResourceConfigurationsConfigurationIdPatch200Response := _ResourceConfigurationsConfigurationIdPatch200Response{} + + err = json.Unmarshal(data, &varResourceConfigurationsConfigurationIdPatch200Response) + + if err != nil { + return err + } + + *o = ResourceConfigurationsConfigurationIdPatch200Response(varResourceConfigurationsConfigurationIdPatch200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceConfigurationsConfigurationIdPatch200Response struct { + value *ResourceConfigurationsConfigurationIdPatch200Response + isSet bool +} + +func (v NullableResourceConfigurationsConfigurationIdPatch200Response) Get() *ResourceConfigurationsConfigurationIdPatch200Response { + return v.value +} + +func (v *NullableResourceConfigurationsConfigurationIdPatch200Response) Set(val *ResourceConfigurationsConfigurationIdPatch200Response) { + v.value = val + v.isSet = true +} + +func (v NullableResourceConfigurationsConfigurationIdPatch200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceConfigurationsConfigurationIdPatch200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceConfigurationsConfigurationIdPatch200Response(val *ResourceConfigurationsConfigurationIdPatch200Response) *NullableResourceConfigurationsConfigurationIdPatch200Response { + return &NullableResourceConfigurationsConfigurationIdPatch200Response{value: val, isSet: true} +} + +func (v NullableResourceConfigurationsConfigurationIdPatch200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceConfigurationsConfigurationIdPatch200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resource_configurations__configuration_id__patch_200_response_data.go b/internal/sdk/api/model__resource_configurations__configuration_id__patch_200_response_data.go new file mode 100644 index 0000000..a541460 --- /dev/null +++ b/internal/sdk/api/model__resource_configurations__configuration_id__patch_200_response_data.go @@ -0,0 +1,299 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ResourceConfigurationsConfigurationIdPatch200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceConfigurationsConfigurationIdPatch200ResponseData{} + +// ResourceConfigurationsConfigurationIdPatch200ResponseData The updated resource configuration. +type ResourceConfigurationsConfigurationIdPatch200ResponseData struct { + // The uuid for the resource configuration. + Id string `json:"id"` + Resource ResourcesGet200ResponseDataInner `json:"resource"` + Environment ResourceConfigurationsGet200ResponseDataInnerEnvironment `json:"environment"` + Options ResourcesPostRequestOptions `json:"options"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` +} + +type _ResourceConfigurationsConfigurationIdPatch200ResponseData ResourceConfigurationsConfigurationIdPatch200ResponseData + +// NewResourceConfigurationsConfigurationIdPatch200ResponseData instantiates a new ResourceConfigurationsConfigurationIdPatch200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceConfigurationsConfigurationIdPatch200ResponseData(id string, resource ResourcesGet200ResponseDataInner, environment ResourceConfigurationsGet200ResponseDataInnerEnvironment, options ResourcesPostRequestOptions, createdAt string, updatedAt string) *ResourceConfigurationsConfigurationIdPatch200ResponseData { + this := ResourceConfigurationsConfigurationIdPatch200ResponseData{} + this.Id = id + this.Resource = resource + this.Environment = environment + this.Options = options + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewResourceConfigurationsConfigurationIdPatch200ResponseDataWithDefaults instantiates a new ResourceConfigurationsConfigurationIdPatch200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceConfigurationsConfigurationIdPatch200ResponseDataWithDefaults() *ResourceConfigurationsConfigurationIdPatch200ResponseData { + this := ResourceConfigurationsConfigurationIdPatch200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetId(v string) { + o.Id = v +} + +// GetResource returns the Resource field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetResource() ResourcesGet200ResponseDataInner { + if o == nil { + var ret ResourcesGet200ResponseDataInner + return ret + } + + return o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetResourceOk() (*ResourcesGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return &o.Resource, true +} + +// SetResource sets field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetResource(v ResourcesGet200ResponseDataInner) { + o.Resource = v +} + +// GetEnvironment returns the Environment field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetEnvironment() ResourceConfigurationsGet200ResponseDataInnerEnvironment { + if o == nil { + var ret ResourceConfigurationsGet200ResponseDataInnerEnvironment + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetEnvironmentOk() (*ResourceConfigurationsGet200ResponseDataInnerEnvironment, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetEnvironment(v ResourceConfigurationsGet200ResponseDataInnerEnvironment) { + o.Environment = v +} + +// GetOptions returns the Options field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetOptions() ResourcesPostRequestOptions { + if o == nil { + var ret ResourcesPostRequestOptions + return ret + } + + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetOptionsOk() (*ResourcesPostRequestOptions, bool) { + if o == nil { + return nil, false + } + return &o.Options, true +} + +// SetOptions sets field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetOptions(v ResourcesPostRequestOptions) { + o.Options = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +func (o ResourceConfigurationsConfigurationIdPatch200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceConfigurationsConfigurationIdPatch200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["resource"] = o.Resource + toSerialize["environment"] = o.Environment + toSerialize["options"] = o.Options + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *ResourceConfigurationsConfigurationIdPatch200ResponseData) 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{ + "id", + "resource", + "environment", + "options", + "created_at", + "updated_at", + } + + 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) + } + } + + varResourceConfigurationsConfigurationIdPatch200ResponseData := _ResourceConfigurationsConfigurationIdPatch200ResponseData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceConfigurationsConfigurationIdPatch200ResponseData) + + if err != nil { + return err + } + + *o = ResourceConfigurationsConfigurationIdPatch200ResponseData(varResourceConfigurationsConfigurationIdPatch200ResponseData) + + return err +} + +type NullableResourceConfigurationsConfigurationIdPatch200ResponseData struct { + value *ResourceConfigurationsConfigurationIdPatch200ResponseData + isSet bool +} + +func (v NullableResourceConfigurationsConfigurationIdPatch200ResponseData) Get() *ResourceConfigurationsConfigurationIdPatch200ResponseData { + return v.value +} + +func (v *NullableResourceConfigurationsConfigurationIdPatch200ResponseData) Set(val *ResourceConfigurationsConfigurationIdPatch200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableResourceConfigurationsConfigurationIdPatch200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceConfigurationsConfigurationIdPatch200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceConfigurationsConfigurationIdPatch200ResponseData(val *ResourceConfigurationsConfigurationIdPatch200ResponseData) *NullableResourceConfigurationsConfigurationIdPatch200ResponseData { + return &NullableResourceConfigurationsConfigurationIdPatch200ResponseData{value: val, isSet: true} +} + +func (v NullableResourceConfigurationsConfigurationIdPatch200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceConfigurationsConfigurationIdPatch200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resource_configurations__configuration_id__patch_request.go b/internal/sdk/api/model__resource_configurations__configuration_id__patch_request.go new file mode 100644 index 0000000..cd6d5f9 --- /dev/null +++ b/internal/sdk/api/model__resource_configurations__configuration_id__patch_request.go @@ -0,0 +1,159 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ResourceConfigurationsConfigurationIdPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceConfigurationsConfigurationIdPatchRequest{} + +// ResourceConfigurationsConfigurationIdPatchRequest The body of a request to update a resource configuration. +type ResourceConfigurationsConfigurationIdPatchRequest struct { + // A list of operations to apply to the resource configuration. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. + Operations []ReplaceOperation `json:"operations"` +} + +type _ResourceConfigurationsConfigurationIdPatchRequest ResourceConfigurationsConfigurationIdPatchRequest + +// NewResourceConfigurationsConfigurationIdPatchRequest instantiates a new ResourceConfigurationsConfigurationIdPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceConfigurationsConfigurationIdPatchRequest(operations []ReplaceOperation) *ResourceConfigurationsConfigurationIdPatchRequest { + this := ResourceConfigurationsConfigurationIdPatchRequest{} + this.Operations = operations + return &this +} + +// NewResourceConfigurationsConfigurationIdPatchRequestWithDefaults instantiates a new ResourceConfigurationsConfigurationIdPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceConfigurationsConfigurationIdPatchRequestWithDefaults() *ResourceConfigurationsConfigurationIdPatchRequest { + this := ResourceConfigurationsConfigurationIdPatchRequest{} + return &this +} + +// GetOperations returns the Operations field value +func (o *ResourceConfigurationsConfigurationIdPatchRequest) GetOperations() []ReplaceOperation { + if o == nil { + var ret []ReplaceOperation + return ret + } + + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsConfigurationIdPatchRequest) GetOperationsOk() ([]ReplaceOperation, bool) { + if o == nil { + return nil, false + } + return o.Operations, true +} + +// SetOperations sets field value +func (o *ResourceConfigurationsConfigurationIdPatchRequest) SetOperations(v []ReplaceOperation) { + o.Operations = v +} + +func (o ResourceConfigurationsConfigurationIdPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceConfigurationsConfigurationIdPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["operations"] = o.Operations + return toSerialize, nil +} + +func (o *ResourceConfigurationsConfigurationIdPatchRequest) 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{ + "operations", + } + + 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) + } + } + + varResourceConfigurationsConfigurationIdPatchRequest := _ResourceConfigurationsConfigurationIdPatchRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceConfigurationsConfigurationIdPatchRequest) + + if err != nil { + return err + } + + *o = ResourceConfigurationsConfigurationIdPatchRequest(varResourceConfigurationsConfigurationIdPatchRequest) + + return err +} + +type NullableResourceConfigurationsConfigurationIdPatchRequest struct { + value *ResourceConfigurationsConfigurationIdPatchRequest + isSet bool +} + +func (v NullableResourceConfigurationsConfigurationIdPatchRequest) Get() *ResourceConfigurationsConfigurationIdPatchRequest { + return v.value +} + +func (v *NullableResourceConfigurationsConfigurationIdPatchRequest) Set(val *ResourceConfigurationsConfigurationIdPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableResourceConfigurationsConfigurationIdPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceConfigurationsConfigurationIdPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceConfigurationsConfigurationIdPatchRequest(val *ResourceConfigurationsConfigurationIdPatchRequest) *NullableResourceConfigurationsConfigurationIdPatchRequest { + return &NullableResourceConfigurationsConfigurationIdPatchRequest{value: val, isSet: true} +} + +func (v NullableResourceConfigurationsConfigurationIdPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceConfigurationsConfigurationIdPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resource_configurations_get_200_response.go b/internal/sdk/api/model__resource_configurations_get_200_response.go index d992af7..71f1d6b 100644 --- a/internal/sdk/api/model__resource_configurations_get_200_response.go +++ b/internal/sdk/api/model__resource_configurations_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resource_configurations_get_200_response_data_inner.go b/internal/sdk/api/model__resource_configurations_get_200_response_data_inner.go index 05b1983..4bec425 100644 --- a/internal/sdk/api/model__resource_configurations_get_200_response_data_inner.go +++ b/internal/sdk/api/model__resource_configurations_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resource_configurations_get_200_response_data_inner_environment.go b/internal/sdk/api/model__resource_configurations_get_200_response_data_inner_environment.go index e5e3446..ae1380c 100644 --- a/internal/sdk/api/model__resource_configurations_get_200_response_data_inner_environment.go +++ b/internal/sdk/api/model__resource_configurations_get_200_response_data_inner_environment.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resource_configurations_get_200_response_data_inner_options.go b/internal/sdk/api/model__resource_configurations_get_200_response_data_inner_options.go index 1678744..0c442ab 100644 --- a/internal/sdk/api/model__resource_configurations_get_200_response_data_inner_options.go +++ b/internal/sdk/api/model__resource_configurations_get_200_response_data_inner_options.go @@ -96,25 +96,25 @@ func (dst *ResourceConfigurationsGet200ResponseDataInnerOptions) UnmarshalJSON(d } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *ResourceConfigurationsGet200ResponseDataInnerOptions) MarshalJSON() ([]byte, error) { +func (src ResourceConfigurationsGet200ResponseDataInnerOptions) MarshalJSON() ([]byte, error) { if src.MySQLOptions != nil { - return json.Marshal(&src.MySQLOptions) + return json.Marshal(src.MySQLOptions) } if src.PostgresOptions != nil { - return json.Marshal(&src.PostgresOptions) + return json.Marshal(src.PostgresOptions) } if src.RedshiftOptions != nil { - return json.Marshal(&src.RedshiftOptions) + return json.Marshal(src.RedshiftOptions) } if src.RestAPIOptions != nil { - return json.Marshal(&src.RestAPIOptions) + return json.Marshal(src.RestAPIOptions) } if src.SnowflakeOptions != nil { - return json.Marshal(&src.SnowflakeOptions) + return json.Marshal(src.SnowflakeOptions) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__resource_configurations_post_200_response.go b/internal/sdk/api/model__resource_configurations_post_200_response.go new file mode 100644 index 0000000..0cb185b --- /dev/null +++ b/internal/sdk/api/model__resource_configurations_post_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the ResourceConfigurationsPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceConfigurationsPost200Response{} + +// ResourceConfigurationsPost200Response struct for ResourceConfigurationsPost200Response +type ResourceConfigurationsPost200Response struct { + // API request succeeded + Success bool `json:"success"` + Data ResourceConfigurationsPost200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _ResourceConfigurationsPost200Response ResourceConfigurationsPost200Response + +// NewResourceConfigurationsPost200Response instantiates a new ResourceConfigurationsPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceConfigurationsPost200Response(success bool, data ResourceConfigurationsPost200ResponseData) *ResourceConfigurationsPost200Response { + this := ResourceConfigurationsPost200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewResourceConfigurationsPost200ResponseWithDefaults instantiates a new ResourceConfigurationsPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceConfigurationsPost200ResponseWithDefaults() *ResourceConfigurationsPost200Response { + this := ResourceConfigurationsPost200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *ResourceConfigurationsPost200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPost200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *ResourceConfigurationsPost200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *ResourceConfigurationsPost200Response) GetData() ResourceConfigurationsPost200ResponseData { + if o == nil { + var ret ResourceConfigurationsPost200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPost200Response) GetDataOk() (*ResourceConfigurationsPost200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ResourceConfigurationsPost200Response) SetData(v ResourceConfigurationsPost200ResponseData) { + o.Data = v +} + +func (o ResourceConfigurationsPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceConfigurationsPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceConfigurationsPost200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varResourceConfigurationsPost200Response := _ResourceConfigurationsPost200Response{} + + err = json.Unmarshal(data, &varResourceConfigurationsPost200Response) + + if err != nil { + return err + } + + *o = ResourceConfigurationsPost200Response(varResourceConfigurationsPost200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceConfigurationsPost200Response struct { + value *ResourceConfigurationsPost200Response + isSet bool +} + +func (v NullableResourceConfigurationsPost200Response) Get() *ResourceConfigurationsPost200Response { + return v.value +} + +func (v *NullableResourceConfigurationsPost200Response) Set(val *ResourceConfigurationsPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableResourceConfigurationsPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceConfigurationsPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceConfigurationsPost200Response(val *ResourceConfigurationsPost200Response) *NullableResourceConfigurationsPost200Response { + return &NullableResourceConfigurationsPost200Response{value: val, isSet: true} +} + +func (v NullableResourceConfigurationsPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceConfigurationsPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resource_configurations_post_200_response_data.go b/internal/sdk/api/model__resource_configurations_post_200_response_data.go new file mode 100644 index 0000000..5dc412b --- /dev/null +++ b/internal/sdk/api/model__resource_configurations_post_200_response_data.go @@ -0,0 +1,299 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ResourceConfigurationsPost200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceConfigurationsPost200ResponseData{} + +// ResourceConfigurationsPost200ResponseData The created resource configuration. +type ResourceConfigurationsPost200ResponseData struct { + // The uuid for the resource configuration. + Id string `json:"id"` + Resource ResourcesGet200ResponseDataInner `json:"resource"` + Environment ResourceConfigurationsGet200ResponseDataInnerEnvironment `json:"environment"` + Options ResourcesPostRequestOptions `json:"options"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` +} + +type _ResourceConfigurationsPost200ResponseData ResourceConfigurationsPost200ResponseData + +// NewResourceConfigurationsPost200ResponseData instantiates a new ResourceConfigurationsPost200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceConfigurationsPost200ResponseData(id string, resource ResourcesGet200ResponseDataInner, environment ResourceConfigurationsGet200ResponseDataInnerEnvironment, options ResourcesPostRequestOptions, createdAt string, updatedAt string) *ResourceConfigurationsPost200ResponseData { + this := ResourceConfigurationsPost200ResponseData{} + this.Id = id + this.Resource = resource + this.Environment = environment + this.Options = options + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewResourceConfigurationsPost200ResponseDataWithDefaults instantiates a new ResourceConfigurationsPost200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceConfigurationsPost200ResponseDataWithDefaults() *ResourceConfigurationsPost200ResponseData { + this := ResourceConfigurationsPost200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *ResourceConfigurationsPost200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPost200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ResourceConfigurationsPost200ResponseData) SetId(v string) { + o.Id = v +} + +// GetResource returns the Resource field value +func (o *ResourceConfigurationsPost200ResponseData) GetResource() ResourcesGet200ResponseDataInner { + if o == nil { + var ret ResourcesGet200ResponseDataInner + return ret + } + + return o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPost200ResponseData) GetResourceOk() (*ResourcesGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return &o.Resource, true +} + +// SetResource sets field value +func (o *ResourceConfigurationsPost200ResponseData) SetResource(v ResourcesGet200ResponseDataInner) { + o.Resource = v +} + +// GetEnvironment returns the Environment field value +func (o *ResourceConfigurationsPost200ResponseData) GetEnvironment() ResourceConfigurationsGet200ResponseDataInnerEnvironment { + if o == nil { + var ret ResourceConfigurationsGet200ResponseDataInnerEnvironment + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPost200ResponseData) GetEnvironmentOk() (*ResourceConfigurationsGet200ResponseDataInnerEnvironment, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *ResourceConfigurationsPost200ResponseData) SetEnvironment(v ResourceConfigurationsGet200ResponseDataInnerEnvironment) { + o.Environment = v +} + +// GetOptions returns the Options field value +func (o *ResourceConfigurationsPost200ResponseData) GetOptions() ResourcesPostRequestOptions { + if o == nil { + var ret ResourcesPostRequestOptions + return ret + } + + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPost200ResponseData) GetOptionsOk() (*ResourcesPostRequestOptions, bool) { + if o == nil { + return nil, false + } + return &o.Options, true +} + +// SetOptions sets field value +func (o *ResourceConfigurationsPost200ResponseData) SetOptions(v ResourcesPostRequestOptions) { + o.Options = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *ResourceConfigurationsPost200ResponseData) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPost200ResponseData) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *ResourceConfigurationsPost200ResponseData) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *ResourceConfigurationsPost200ResponseData) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPost200ResponseData) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *ResourceConfigurationsPost200ResponseData) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +func (o ResourceConfigurationsPost200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceConfigurationsPost200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["resource"] = o.Resource + toSerialize["environment"] = o.Environment + toSerialize["options"] = o.Options + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *ResourceConfigurationsPost200ResponseData) 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{ + "id", + "resource", + "environment", + "options", + "created_at", + "updated_at", + } + + 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) + } + } + + varResourceConfigurationsPost200ResponseData := _ResourceConfigurationsPost200ResponseData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceConfigurationsPost200ResponseData) + + if err != nil { + return err + } + + *o = ResourceConfigurationsPost200ResponseData(varResourceConfigurationsPost200ResponseData) + + return err +} + +type NullableResourceConfigurationsPost200ResponseData struct { + value *ResourceConfigurationsPost200ResponseData + isSet bool +} + +func (v NullableResourceConfigurationsPost200ResponseData) Get() *ResourceConfigurationsPost200ResponseData { + return v.value +} + +func (v *NullableResourceConfigurationsPost200ResponseData) Set(val *ResourceConfigurationsPost200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableResourceConfigurationsPost200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceConfigurationsPost200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceConfigurationsPost200ResponseData(val *ResourceConfigurationsPost200ResponseData) *NullableResourceConfigurationsPost200ResponseData { + return &NullableResourceConfigurationsPost200ResponseData{value: val, isSet: true} +} + +func (v NullableResourceConfigurationsPost200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceConfigurationsPost200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resource_configurations_post_request.go b/internal/sdk/api/model__resource_configurations_post_request.go new file mode 100644 index 0000000..595b066 --- /dev/null +++ b/internal/sdk/api/model__resource_configurations_post_request.go @@ -0,0 +1,228 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the ResourceConfigurationsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceConfigurationsPostRequest{} + +// ResourceConfigurationsPostRequest struct for ResourceConfigurationsPostRequest +type ResourceConfigurationsPostRequest struct { + // A UUID that uniquely identifies a resource. This is also referenced within the Retool app. For example, when you edit a resource, the ID can be found in the url. + ResourceId string `json:"resource_id"` + // A UUID that uniquely identifies an environment. + EnvironmentId string `json:"environment_id"` + Options ResourcesPostRequestOptions `json:"options"` + AdditionalProperties map[string]interface{} +} + +type _ResourceConfigurationsPostRequest ResourceConfigurationsPostRequest + +// NewResourceConfigurationsPostRequest instantiates a new ResourceConfigurationsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceConfigurationsPostRequest(resourceId string, environmentId string, options ResourcesPostRequestOptions) *ResourceConfigurationsPostRequest { + this := ResourceConfigurationsPostRequest{} + this.ResourceId = resourceId + this.EnvironmentId = environmentId + this.Options = options + return &this +} + +// NewResourceConfigurationsPostRequestWithDefaults instantiates a new ResourceConfigurationsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceConfigurationsPostRequestWithDefaults() *ResourceConfigurationsPostRequest { + this := ResourceConfigurationsPostRequest{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceConfigurationsPostRequest) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPostRequest) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceConfigurationsPostRequest) SetResourceId(v string) { + o.ResourceId = v +} + +// GetEnvironmentId returns the EnvironmentId field value +func (o *ResourceConfigurationsPostRequest) GetEnvironmentId() string { + if o == nil { + var ret string + return ret + } + + return o.EnvironmentId +} + +// GetEnvironmentIdOk returns a tuple with the EnvironmentId field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPostRequest) GetEnvironmentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EnvironmentId, true +} + +// SetEnvironmentId sets field value +func (o *ResourceConfigurationsPostRequest) SetEnvironmentId(v string) { + o.EnvironmentId = v +} + +// GetOptions returns the Options field value +func (o *ResourceConfigurationsPostRequest) GetOptions() ResourcesPostRequestOptions { + if o == nil { + var ret ResourcesPostRequestOptions + return ret + } + + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value +// and a boolean to check if the value has been set. +func (o *ResourceConfigurationsPostRequest) GetOptionsOk() (*ResourcesPostRequestOptions, bool) { + if o == nil { + return nil, false + } + return &o.Options, true +} + +// SetOptions sets field value +func (o *ResourceConfigurationsPostRequest) SetOptions(v ResourcesPostRequestOptions) { + o.Options = v +} + +func (o ResourceConfigurationsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceConfigurationsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + toSerialize["environment_id"] = o.EnvironmentId + toSerialize["options"] = o.Options + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceConfigurationsPostRequest) 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{ + "resource_id", + "environment_id", + "options", + } + + 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) + } + } + + varResourceConfigurationsPostRequest := _ResourceConfigurationsPostRequest{} + + err = json.Unmarshal(data, &varResourceConfigurationsPostRequest) + + if err != nil { + return err + } + + *o = ResourceConfigurationsPostRequest(varResourceConfigurationsPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + delete(additionalProperties, "environment_id") + delete(additionalProperties, "options") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceConfigurationsPostRequest struct { + value *ResourceConfigurationsPostRequest + isSet bool +} + +func (v NullableResourceConfigurationsPostRequest) Get() *ResourceConfigurationsPostRequest { + return v.value +} + +func (v *NullableResourceConfigurationsPostRequest) Set(val *ResourceConfigurationsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableResourceConfigurationsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceConfigurationsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceConfigurationsPostRequest(val *ResourceConfigurationsPostRequest) *NullableResourceConfigurationsPostRequest { + return &NullableResourceConfigurationsPostRequest{value: val, isSet: true} +} + +func (v NullableResourceConfigurationsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceConfigurationsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resources__resource_id__get_200_response.go b/internal/sdk/api/model__resources__resource_id__get_200_response.go index 30af3e5..eeac5de 100644 --- a/internal/sdk/api/model__resources__resource_id__get_200_response.go +++ b/internal/sdk/api/model__resources__resource_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resources__resource_id__patch_200_response.go b/internal/sdk/api/model__resources__resource_id__patch_200_response.go new file mode 100644 index 0000000..7393bec --- /dev/null +++ b/internal/sdk/api/model__resources__resource_id__patch_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the ResourcesResourceIdPatch200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourcesResourceIdPatch200Response{} + +// ResourcesResourceIdPatch200Response struct for ResourcesResourceIdPatch200Response +type ResourcesResourceIdPatch200Response struct { + // API request succeeded + Success bool `json:"success"` + Data ResourcesResourceIdPatch200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _ResourcesResourceIdPatch200Response ResourcesResourceIdPatch200Response + +// NewResourcesResourceIdPatch200Response instantiates a new ResourcesResourceIdPatch200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourcesResourceIdPatch200Response(success bool, data ResourcesResourceIdPatch200ResponseData) *ResourcesResourceIdPatch200Response { + this := ResourcesResourceIdPatch200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewResourcesResourceIdPatch200ResponseWithDefaults instantiates a new ResourcesResourceIdPatch200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourcesResourceIdPatch200ResponseWithDefaults() *ResourcesResourceIdPatch200Response { + this := ResourcesResourceIdPatch200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *ResourcesResourceIdPatch200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatch200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *ResourcesResourceIdPatch200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *ResourcesResourceIdPatch200Response) GetData() ResourcesResourceIdPatch200ResponseData { + if o == nil { + var ret ResourcesResourceIdPatch200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatch200Response) GetDataOk() (*ResourcesResourceIdPatch200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ResourcesResourceIdPatch200Response) SetData(v ResourcesResourceIdPatch200ResponseData) { + o.Data = v +} + +func (o ResourcesResourceIdPatch200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourcesResourceIdPatch200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourcesResourceIdPatch200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varResourcesResourceIdPatch200Response := _ResourcesResourceIdPatch200Response{} + + err = json.Unmarshal(data, &varResourcesResourceIdPatch200Response) + + if err != nil { + return err + } + + *o = ResourcesResourceIdPatch200Response(varResourcesResourceIdPatch200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourcesResourceIdPatch200Response struct { + value *ResourcesResourceIdPatch200Response + isSet bool +} + +func (v NullableResourcesResourceIdPatch200Response) Get() *ResourcesResourceIdPatch200Response { + return v.value +} + +func (v *NullableResourcesResourceIdPatch200Response) Set(val *ResourcesResourceIdPatch200Response) { + v.value = val + v.isSet = true +} + +func (v NullableResourcesResourceIdPatch200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableResourcesResourceIdPatch200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourcesResourceIdPatch200Response(val *ResourcesResourceIdPatch200Response) *NullableResourcesResourceIdPatch200Response { + return &NullableResourcesResourceIdPatch200Response{value: val, isSet: true} +} + +func (v NullableResourcesResourceIdPatch200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourcesResourceIdPatch200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resources__resource_id__patch_200_response_data.go b/internal/sdk/api/model__resources__resource_id__patch_200_response_data.go new file mode 100644 index 0000000..471e160 --- /dev/null +++ b/internal/sdk/api/model__resources__resource_id__patch_200_response_data.go @@ -0,0 +1,301 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ResourcesResourceIdPatch200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourcesResourceIdPatch200ResponseData{} + +// ResourcesResourceIdPatch200ResponseData The updated resource. +type ResourcesResourceIdPatch200ResponseData struct { + // The uuid or name for the resource. + Id string `json:"id"` + // The type of resource. + Type string `json:"type"` + DisplayName string `json:"display_name"` + // Whether the resource is protected in source control + Protected bool `json:"protected"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` +} + +type _ResourcesResourceIdPatch200ResponseData ResourcesResourceIdPatch200ResponseData + +// NewResourcesResourceIdPatch200ResponseData instantiates a new ResourcesResourceIdPatch200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourcesResourceIdPatch200ResponseData(id string, type_ string, displayName string, protected bool, createdAt string, updatedAt string) *ResourcesResourceIdPatch200ResponseData { + this := ResourcesResourceIdPatch200ResponseData{} + this.Id = id + this.Type = type_ + this.DisplayName = displayName + this.Protected = protected + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewResourcesResourceIdPatch200ResponseDataWithDefaults instantiates a new ResourcesResourceIdPatch200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourcesResourceIdPatch200ResponseDataWithDefaults() *ResourcesResourceIdPatch200ResponseData { + this := ResourcesResourceIdPatch200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *ResourcesResourceIdPatch200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatch200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ResourcesResourceIdPatch200ResponseData) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *ResourcesResourceIdPatch200ResponseData) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatch200ResponseData) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ResourcesResourceIdPatch200ResponseData) SetType(v string) { + o.Type = v +} + +// GetDisplayName returns the DisplayName field value +func (o *ResourcesResourceIdPatch200ResponseData) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatch200ResponseData) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *ResourcesResourceIdPatch200ResponseData) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetProtected returns the Protected field value +func (o *ResourcesResourceIdPatch200ResponseData) GetProtected() bool { + if o == nil { + var ret bool + return ret + } + + return o.Protected +} + +// GetProtectedOk returns a tuple with the Protected field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatch200ResponseData) GetProtectedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Protected, true +} + +// SetProtected sets field value +func (o *ResourcesResourceIdPatch200ResponseData) SetProtected(v bool) { + o.Protected = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *ResourcesResourceIdPatch200ResponseData) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatch200ResponseData) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *ResourcesResourceIdPatch200ResponseData) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *ResourcesResourceIdPatch200ResponseData) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatch200ResponseData) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *ResourcesResourceIdPatch200ResponseData) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +func (o ResourcesResourceIdPatch200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourcesResourceIdPatch200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["display_name"] = o.DisplayName + toSerialize["protected"] = o.Protected + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *ResourcesResourceIdPatch200ResponseData) 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{ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at", + } + + 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) + } + } + + varResourcesResourceIdPatch200ResponseData := _ResourcesResourceIdPatch200ResponseData{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourcesResourceIdPatch200ResponseData) + + if err != nil { + return err + } + + *o = ResourcesResourceIdPatch200ResponseData(varResourcesResourceIdPatch200ResponseData) + + return err +} + +type NullableResourcesResourceIdPatch200ResponseData struct { + value *ResourcesResourceIdPatch200ResponseData + isSet bool +} + +func (v NullableResourcesResourceIdPatch200ResponseData) Get() *ResourcesResourceIdPatch200ResponseData { + return v.value +} + +func (v *NullableResourcesResourceIdPatch200ResponseData) Set(val *ResourcesResourceIdPatch200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableResourcesResourceIdPatch200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableResourcesResourceIdPatch200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourcesResourceIdPatch200ResponseData(val *ResourcesResourceIdPatch200ResponseData) *NullableResourcesResourceIdPatch200ResponseData { + return &NullableResourcesResourceIdPatch200ResponseData{value: val, isSet: true} +} + +func (v NullableResourcesResourceIdPatch200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourcesResourceIdPatch200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resources__resource_id__patch_request.go b/internal/sdk/api/model__resources__resource_id__patch_request.go new file mode 100644 index 0000000..c7ada01 --- /dev/null +++ b/internal/sdk/api/model__resources__resource_id__patch_request.go @@ -0,0 +1,159 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ResourcesResourceIdPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourcesResourceIdPatchRequest{} + +// ResourcesResourceIdPatchRequest The body of a request to update a resource. +type ResourcesResourceIdPatchRequest struct { + // A list of operations to apply to the resource. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. + Operations []ReplaceOperation `json:"operations"` +} + +type _ResourcesResourceIdPatchRequest ResourcesResourceIdPatchRequest + +// NewResourcesResourceIdPatchRequest instantiates a new ResourcesResourceIdPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourcesResourceIdPatchRequest(operations []ReplaceOperation) *ResourcesResourceIdPatchRequest { + this := ResourcesResourceIdPatchRequest{} + this.Operations = operations + return &this +} + +// NewResourcesResourceIdPatchRequestWithDefaults instantiates a new ResourcesResourceIdPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourcesResourceIdPatchRequestWithDefaults() *ResourcesResourceIdPatchRequest { + this := ResourcesResourceIdPatchRequest{} + return &this +} + +// GetOperations returns the Operations field value +func (o *ResourcesResourceIdPatchRequest) GetOperations() []ReplaceOperation { + if o == nil { + var ret []ReplaceOperation + return ret + } + + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value +// and a boolean to check if the value has been set. +func (o *ResourcesResourceIdPatchRequest) GetOperationsOk() ([]ReplaceOperation, bool) { + if o == nil { + return nil, false + } + return o.Operations, true +} + +// SetOperations sets field value +func (o *ResourcesResourceIdPatchRequest) SetOperations(v []ReplaceOperation) { + o.Operations = v +} + +func (o ResourcesResourceIdPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourcesResourceIdPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["operations"] = o.Operations + return toSerialize, nil +} + +func (o *ResourcesResourceIdPatchRequest) 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{ + "operations", + } + + 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) + } + } + + varResourcesResourceIdPatchRequest := _ResourcesResourceIdPatchRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourcesResourceIdPatchRequest) + + if err != nil { + return err + } + + *o = ResourcesResourceIdPatchRequest(varResourcesResourceIdPatchRequest) + + return err +} + +type NullableResourcesResourceIdPatchRequest struct { + value *ResourcesResourceIdPatchRequest + isSet bool +} + +func (v NullableResourcesResourceIdPatchRequest) Get() *ResourcesResourceIdPatchRequest { + return v.value +} + +func (v *NullableResourcesResourceIdPatchRequest) Set(val *ResourcesResourceIdPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableResourcesResourceIdPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableResourcesResourceIdPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourcesResourceIdPatchRequest(val *ResourcesResourceIdPatchRequest) *NullableResourcesResourceIdPatchRequest { + return &NullableResourcesResourceIdPatchRequest{value: val, isSet: true} +} + +func (v NullableResourcesResourceIdPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourcesResourceIdPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__resources_get_200_response.go b/internal/sdk/api/model__resources_get_200_response.go index 0ade192..a93429c 100644 --- a/internal/sdk/api/model__resources_get_200_response.go +++ b/internal/sdk/api/model__resources_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resources_get_200_response_data_inner.go b/internal/sdk/api/model__resources_get_200_response_data_inner.go index 840764b..3a3ca42 100644 --- a/internal/sdk/api/model__resources_get_200_response_data_inner.go +++ b/internal/sdk/api/model__resources_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,13 @@ var _ MappedNullable = &ResourcesGet200ResponseDataInner{} // ResourcesGet200ResponseDataInner Resource type ResourcesGet200ResponseDataInner struct { - Id ResourcesGet200ResponseDataInnerId `json:"id"` + // The uuid or name for the resource. + Id string `json:"id"` // The type of resource. Type string `json:"type"` DisplayName string `json:"display_name"` + // Whether the resource is protected in source control + Protected bool `json:"protected"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` } @@ -35,11 +38,12 @@ type _ResourcesGet200ResponseDataInner ResourcesGet200ResponseDataInner // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewResourcesGet200ResponseDataInner(id ResourcesGet200ResponseDataInnerId, type_ string, displayName string, createdAt string, updatedAt string) *ResourcesGet200ResponseDataInner { +func NewResourcesGet200ResponseDataInner(id string, type_ string, displayName string, protected bool, createdAt string, updatedAt string) *ResourcesGet200ResponseDataInner { this := ResourcesGet200ResponseDataInner{} this.Id = id this.Type = type_ this.DisplayName = displayName + this.Protected = protected this.CreatedAt = createdAt this.UpdatedAt = updatedAt return &this @@ -54,9 +58,9 @@ func NewResourcesGet200ResponseDataInnerWithDefaults() *ResourcesGet200ResponseD } // GetId returns the Id field value -func (o *ResourcesGet200ResponseDataInner) GetId() ResourcesGet200ResponseDataInnerId { +func (o *ResourcesGet200ResponseDataInner) GetId() string { if o == nil { - var ret ResourcesGet200ResponseDataInnerId + var ret string return ret } @@ -65,7 +69,7 @@ func (o *ResourcesGet200ResponseDataInner) GetId() ResourcesGet200ResponseDataIn // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *ResourcesGet200ResponseDataInner) GetIdOk() (*ResourcesGet200ResponseDataInnerId, bool) { +func (o *ResourcesGet200ResponseDataInner) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -73,7 +77,7 @@ func (o *ResourcesGet200ResponseDataInner) GetIdOk() (*ResourcesGet200ResponseDa } // SetId sets field value -func (o *ResourcesGet200ResponseDataInner) SetId(v ResourcesGet200ResponseDataInnerId) { +func (o *ResourcesGet200ResponseDataInner) SetId(v string) { o.Id = v } @@ -125,6 +129,30 @@ func (o *ResourcesGet200ResponseDataInner) SetDisplayName(v string) { o.DisplayName = v } +// GetProtected returns the Protected field value +func (o *ResourcesGet200ResponseDataInner) GetProtected() bool { + if o == nil { + var ret bool + return ret + } + + return o.Protected +} + +// GetProtectedOk returns a tuple with the Protected field value +// and a boolean to check if the value has been set. +func (o *ResourcesGet200ResponseDataInner) GetProtectedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Protected, true +} + +// SetProtected sets field value +func (o *ResourcesGet200ResponseDataInner) SetProtected(v bool) { + o.Protected = v +} + // GetCreatedAt returns the CreatedAt field value func (o *ResourcesGet200ResponseDataInner) GetCreatedAt() string { if o == nil { @@ -186,6 +214,7 @@ func (o ResourcesGet200ResponseDataInner) ToMap() (map[string]interface{}, error toSerialize["id"] = o.Id toSerialize["type"] = o.Type toSerialize["display_name"] = o.DisplayName + toSerialize["protected"] = o.Protected toSerialize["created_at"] = o.CreatedAt toSerialize["updated_at"] = o.UpdatedAt return toSerialize, nil @@ -199,6 +228,7 @@ func (o *ResourcesGet200ResponseDataInner) UnmarshalJSON(data []byte) (err error "id", "type", "display_name", + "protected", "created_at", "updated_at", } diff --git a/internal/sdk/api/model__resources_get_200_response_data_inner_id.go b/internal/sdk/api/model__resources_get_200_response_data_inner_id.go index 354f247..d6c6bcf 100644 --- a/internal/sdk/api/model__resources_get_200_response_data_inner_id.go +++ b/internal/sdk/api/model__resources_get_200_response_data_inner_id.go @@ -40,9 +40,9 @@ func (dst *ResourcesGet200ResponseDataInnerId) UnmarshalJSON(data []byte) error } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *ResourcesGet200ResponseDataInnerId) MarshalJSON() ([]byte, error) { +func (src ResourcesGet200ResponseDataInnerId) MarshalJSON() ([]byte, error) { if src.string != nil { - return json.Marshal(&src.string) + return json.Marshal(src.string) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__resources_post_200_response.go b/internal/sdk/api/model__resources_post_200_response.go index f958999..d146c93 100644 --- a/internal/sdk/api/model__resources_post_200_response.go +++ b/internal/sdk/api/model__resources_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resources_post_200_response_data.go b/internal/sdk/api/model__resources_post_200_response_data.go index d358535..fe028d6 100644 --- a/internal/sdk/api/model__resources_post_200_response_data.go +++ b/internal/sdk/api/model__resources_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,13 @@ var _ MappedNullable = &ResourcesPost200ResponseData{} // ResourcesPost200ResponseData The created resource. type ResourcesPost200ResponseData struct { - Id ResourcesGet200ResponseDataInnerId `json:"id"` + // The uuid or name for the resource. + Id string `json:"id"` // The type of resource. Type string `json:"type"` DisplayName string `json:"display_name"` + // Whether the resource is protected in source control + Protected bool `json:"protected"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` } @@ -35,11 +38,12 @@ type _ResourcesPost200ResponseData ResourcesPost200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewResourcesPost200ResponseData(id ResourcesGet200ResponseDataInnerId, type_ string, displayName string, createdAt string, updatedAt string) *ResourcesPost200ResponseData { +func NewResourcesPost200ResponseData(id string, type_ string, displayName string, protected bool, createdAt string, updatedAt string) *ResourcesPost200ResponseData { this := ResourcesPost200ResponseData{} this.Id = id this.Type = type_ this.DisplayName = displayName + this.Protected = protected this.CreatedAt = createdAt this.UpdatedAt = updatedAt return &this @@ -54,9 +58,9 @@ func NewResourcesPost200ResponseDataWithDefaults() *ResourcesPost200ResponseData } // GetId returns the Id field value -func (o *ResourcesPost200ResponseData) GetId() ResourcesGet200ResponseDataInnerId { +func (o *ResourcesPost200ResponseData) GetId() string { if o == nil { - var ret ResourcesGet200ResponseDataInnerId + var ret string return ret } @@ -65,7 +69,7 @@ func (o *ResourcesPost200ResponseData) GetId() ResourcesGet200ResponseDataInnerI // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *ResourcesPost200ResponseData) GetIdOk() (*ResourcesGet200ResponseDataInnerId, bool) { +func (o *ResourcesPost200ResponseData) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -73,7 +77,7 @@ func (o *ResourcesPost200ResponseData) GetIdOk() (*ResourcesGet200ResponseDataIn } // SetId sets field value -func (o *ResourcesPost200ResponseData) SetId(v ResourcesGet200ResponseDataInnerId) { +func (o *ResourcesPost200ResponseData) SetId(v string) { o.Id = v } @@ -125,6 +129,30 @@ func (o *ResourcesPost200ResponseData) SetDisplayName(v string) { o.DisplayName = v } +// GetProtected returns the Protected field value +func (o *ResourcesPost200ResponseData) GetProtected() bool { + if o == nil { + var ret bool + return ret + } + + return o.Protected +} + +// GetProtectedOk returns a tuple with the Protected field value +// and a boolean to check if the value has been set. +func (o *ResourcesPost200ResponseData) GetProtectedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Protected, true +} + +// SetProtected sets field value +func (o *ResourcesPost200ResponseData) SetProtected(v bool) { + o.Protected = v +} + // GetCreatedAt returns the CreatedAt field value func (o *ResourcesPost200ResponseData) GetCreatedAt() string { if o == nil { @@ -186,6 +214,7 @@ func (o ResourcesPost200ResponseData) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["type"] = o.Type toSerialize["display_name"] = o.DisplayName + toSerialize["protected"] = o.Protected toSerialize["created_at"] = o.CreatedAt toSerialize["updated_at"] = o.UpdatedAt return toSerialize, nil @@ -199,6 +228,7 @@ func (o *ResourcesPost200ResponseData) UnmarshalJSON(data []byte) (err error) { "id", "type", "display_name", + "protected", "created_at", "updated_at", } diff --git a/internal/sdk/api/model__resources_post_request.go b/internal/sdk/api/model__resources_post_request.go index 428b0a8..6e45a24 100644 --- a/internal/sdk/api/model__resources_post_request.go +++ b/internal/sdk/api/model__resources_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__resources_post_request_options.go b/internal/sdk/api/model__resources_post_request_options.go index 54fda13..5f0bd2f 100644 --- a/internal/sdk/api/model__resources_post_request_options.go +++ b/internal/sdk/api/model__resources_post_request_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -96,25 +96,25 @@ func (dst *ResourcesPostRequestOptions) UnmarshalJSON(data []byte) error { } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *ResourcesPostRequestOptions) MarshalJSON() ([]byte, error) { +func (src ResourcesPostRequestOptions) MarshalJSON() ([]byte, error) { if src.MySQLOptions != nil { - return json.Marshal(&src.MySQLOptions) + return json.Marshal(src.MySQLOptions) } if src.PostgresOptions != nil { - return json.Marshal(&src.PostgresOptions) + return json.Marshal(src.PostgresOptions) } if src.RedshiftOptions != nil { - return json.Marshal(&src.RedshiftOptions) + return json.Marshal(src.RedshiftOptions) } if src.RestAPIOptions != nil { - return json.Marshal(&src.RestAPIOptions) + return json.Marshal(src.RestAPIOptions) } if src.SnowflakeOptions != nil { - return json.Marshal(&src.SnowflakeOptions) + return json.Marshal(src.SnowflakeOptions) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__role_permissions_role_grants_post_request.go b/internal/sdk/api/model__role_permissions_role_grants_post_request.go new file mode 100644 index 0000000..eea56f1 --- /dev/null +++ b/internal/sdk/api/model__role_permissions_role_grants_post_request.go @@ -0,0 +1,305 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the RolePermissionsRoleGrantsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RolePermissionsRoleGrantsPostRequest{} + +// RolePermissionsRoleGrantsPostRequest struct for RolePermissionsRoleGrantsPostRequest +type RolePermissionsRoleGrantsPostRequest struct { + // The id of the role + RoleId string `json:"role_id"` + // The type of the subject + SubjectType string `json:"subject_type"` + // The id of the subject + SubjectId string `json:"subject_id"` + // The type of the object + ObjectType *string `json:"object_type,omitempty"` + // The id of the object + ObjectId *string `json:"object_id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RolePermissionsRoleGrantsPostRequest RolePermissionsRoleGrantsPostRequest + +// NewRolePermissionsRoleGrantsPostRequest instantiates a new RolePermissionsRoleGrantsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRolePermissionsRoleGrantsPostRequest(roleId string, subjectType string, subjectId string) *RolePermissionsRoleGrantsPostRequest { + this := RolePermissionsRoleGrantsPostRequest{} + this.RoleId = roleId + this.SubjectType = subjectType + this.SubjectId = subjectId + return &this +} + +// NewRolePermissionsRoleGrantsPostRequestWithDefaults instantiates a new RolePermissionsRoleGrantsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRolePermissionsRoleGrantsPostRequestWithDefaults() *RolePermissionsRoleGrantsPostRequest { + this := RolePermissionsRoleGrantsPostRequest{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *RolePermissionsRoleGrantsPostRequest) GetRoleId() string { + if o == nil { + var ret string + return ret + } + + return o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRoleGrantsPostRequest) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *RolePermissionsRoleGrantsPostRequest) SetRoleId(v string) { + o.RoleId = v +} + +// GetSubjectType returns the SubjectType field value +func (o *RolePermissionsRoleGrantsPostRequest) GetSubjectType() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectType +} + +// GetSubjectTypeOk returns a tuple with the SubjectType field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRoleGrantsPostRequest) GetSubjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectType, true +} + +// SetSubjectType sets field value +func (o *RolePermissionsRoleGrantsPostRequest) SetSubjectType(v string) { + o.SubjectType = v +} + +// GetSubjectId returns the SubjectId field value +func (o *RolePermissionsRoleGrantsPostRequest) GetSubjectId() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectId +} + +// GetSubjectIdOk returns a tuple with the SubjectId field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRoleGrantsPostRequest) GetSubjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectId, true +} + +// SetSubjectId sets field value +func (o *RolePermissionsRoleGrantsPostRequest) SetSubjectId(v string) { + o.SubjectId = v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *RolePermissionsRoleGrantsPostRequest) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolePermissionsRoleGrantsPostRequest) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *RolePermissionsRoleGrantsPostRequest) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *RolePermissionsRoleGrantsPostRequest) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *RolePermissionsRoleGrantsPostRequest) GetObjectId() string { + if o == nil || IsNil(o.ObjectId) { + var ret string + return ret + } + return *o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolePermissionsRoleGrantsPostRequest) GetObjectIdOk() (*string, bool) { + if o == nil || IsNil(o.ObjectId) { + return nil, false + } + return o.ObjectId, true +} + +// HasObjectId returns a boolean if a field has been set. +func (o *RolePermissionsRoleGrantsPostRequest) HasObjectId() bool { + if o != nil && !IsNil(o.ObjectId) { + return true + } + + return false +} + +// SetObjectId gets a reference to the given string and assigns it to the ObjectId field. +func (o *RolePermissionsRoleGrantsPostRequest) SetObjectId(v string) { + o.ObjectId = &v +} + +func (o RolePermissionsRoleGrantsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RolePermissionsRoleGrantsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + toSerialize["subject_type"] = o.SubjectType + toSerialize["subject_id"] = o.SubjectId + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RolePermissionsRoleGrantsPostRequest) 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{ + "role_id", + "subject_type", + "subject_id", + } + + 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) + } + } + + varRolePermissionsRoleGrantsPostRequest := _RolePermissionsRoleGrantsPostRequest{} + + err = json.Unmarshal(data, &varRolePermissionsRoleGrantsPostRequest) + + if err != nil { + return err + } + + *o = RolePermissionsRoleGrantsPostRequest(varRolePermissionsRoleGrantsPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "role_id") + delete(additionalProperties, "subject_type") + delete(additionalProperties, "subject_id") + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRolePermissionsRoleGrantsPostRequest struct { + value *RolePermissionsRoleGrantsPostRequest + isSet bool +} + +func (v NullableRolePermissionsRoleGrantsPostRequest) Get() *RolePermissionsRoleGrantsPostRequest { + return v.value +} + +func (v *NullableRolePermissionsRoleGrantsPostRequest) Set(val *RolePermissionsRoleGrantsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRolePermissionsRoleGrantsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRolePermissionsRoleGrantsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolePermissionsRoleGrantsPostRequest(val *RolePermissionsRoleGrantsPostRequest) *NullableRolePermissionsRoleGrantsPostRequest { + return &NullableRolePermissionsRoleGrantsPostRequest{value: val, isSet: true} +} + +func (v NullableRolePermissionsRoleGrantsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolePermissionsRoleGrantsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__role_permissions_roles__role_id__patch_request.go b/internal/sdk/api/model__role_permissions_roles__role_id__patch_request.go new file mode 100644 index 0000000..a16eb7a --- /dev/null +++ b/internal/sdk/api/model__role_permissions_roles__role_id__patch_request.go @@ -0,0 +1,270 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the RolePermissionsRolesRoleIdPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RolePermissionsRolesRoleIdPatchRequest{} + +// RolePermissionsRolesRoleIdPatchRequest struct for RolePermissionsRolesRoleIdPatchRequest +type RolePermissionsRolesRoleIdPatchRequest struct { + // The name of the role. + Name *string `json:"name,omitempty"` + // The description of the role + Description *string `json:"description,omitempty"` + // The object scopes of the role + ObjectScopes []string `json:"object_scopes,omitempty"` + // The organization scopes of the role + OrganizationScopes []string `json:"organization_scopes,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RolePermissionsRolesRoleIdPatchRequest RolePermissionsRolesRoleIdPatchRequest + +// NewRolePermissionsRolesRoleIdPatchRequest instantiates a new RolePermissionsRolesRoleIdPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRolePermissionsRolesRoleIdPatchRequest() *RolePermissionsRolesRoleIdPatchRequest { + this := RolePermissionsRolesRoleIdPatchRequest{} + return &this +} + +// NewRolePermissionsRolesRoleIdPatchRequestWithDefaults instantiates a new RolePermissionsRolesRoleIdPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRolePermissionsRolesRoleIdPatchRequestWithDefaults() *RolePermissionsRolesRoleIdPatchRequest { + this := RolePermissionsRolesRoleIdPatchRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RolePermissionsRolesRoleIdPatchRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesRoleIdPatchRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *RolePermissionsRolesRoleIdPatchRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *RolePermissionsRolesRoleIdPatchRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RolePermissionsRolesRoleIdPatchRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesRoleIdPatchRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RolePermissionsRolesRoleIdPatchRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RolePermissionsRolesRoleIdPatchRequest) SetDescription(v string) { + o.Description = &v +} + +// GetObjectScopes returns the ObjectScopes field value if set, zero value otherwise. +func (o *RolePermissionsRolesRoleIdPatchRequest) GetObjectScopes() []string { + if o == nil || IsNil(o.ObjectScopes) { + var ret []string + return ret + } + return o.ObjectScopes +} + +// GetObjectScopesOk returns a tuple with the ObjectScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesRoleIdPatchRequest) GetObjectScopesOk() ([]string, bool) { + if o == nil || IsNil(o.ObjectScopes) { + return nil, false + } + return o.ObjectScopes, true +} + +// HasObjectScopes returns a boolean if a field has been set. +func (o *RolePermissionsRolesRoleIdPatchRequest) HasObjectScopes() bool { + if o != nil && !IsNil(o.ObjectScopes) { + return true + } + + return false +} + +// SetObjectScopes gets a reference to the given []string and assigns it to the ObjectScopes field. +func (o *RolePermissionsRolesRoleIdPatchRequest) SetObjectScopes(v []string) { + o.ObjectScopes = v +} + +// GetOrganizationScopes returns the OrganizationScopes field value if set, zero value otherwise. +func (o *RolePermissionsRolesRoleIdPatchRequest) GetOrganizationScopes() []string { + if o == nil || IsNil(o.OrganizationScopes) { + var ret []string + return ret + } + return o.OrganizationScopes +} + +// GetOrganizationScopesOk returns a tuple with the OrganizationScopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesRoleIdPatchRequest) GetOrganizationScopesOk() ([]string, bool) { + if o == nil || IsNil(o.OrganizationScopes) { + return nil, false + } + return o.OrganizationScopes, true +} + +// HasOrganizationScopes returns a boolean if a field has been set. +func (o *RolePermissionsRolesRoleIdPatchRequest) HasOrganizationScopes() bool { + if o != nil && !IsNil(o.OrganizationScopes) { + return true + } + + return false +} + +// SetOrganizationScopes gets a reference to the given []string and assigns it to the OrganizationScopes field. +func (o *RolePermissionsRolesRoleIdPatchRequest) SetOrganizationScopes(v []string) { + o.OrganizationScopes = v +} + +func (o RolePermissionsRolesRoleIdPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RolePermissionsRolesRoleIdPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.ObjectScopes) { + toSerialize["object_scopes"] = o.ObjectScopes + } + if !IsNil(o.OrganizationScopes) { + toSerialize["organization_scopes"] = o.OrganizationScopes + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RolePermissionsRolesRoleIdPatchRequest) UnmarshalJSON(data []byte) (err error) { + varRolePermissionsRolesRoleIdPatchRequest := _RolePermissionsRolesRoleIdPatchRequest{} + + err = json.Unmarshal(data, &varRolePermissionsRolesRoleIdPatchRequest) + + if err != nil { + return err + } + + *o = RolePermissionsRolesRoleIdPatchRequest(varRolePermissionsRolesRoleIdPatchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "object_scopes") + delete(additionalProperties, "organization_scopes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRolePermissionsRolesRoleIdPatchRequest struct { + value *RolePermissionsRolesRoleIdPatchRequest + isSet bool +} + +func (v NullableRolePermissionsRolesRoleIdPatchRequest) Get() *RolePermissionsRolesRoleIdPatchRequest { + return v.value +} + +func (v *NullableRolePermissionsRolesRoleIdPatchRequest) Set(val *RolePermissionsRolesRoleIdPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRolePermissionsRolesRoleIdPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRolePermissionsRolesRoleIdPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolePermissionsRolesRoleIdPatchRequest(val *RolePermissionsRolesRoleIdPatchRequest) *NullableRolePermissionsRolesRoleIdPatchRequest { + return &NullableRolePermissionsRolesRoleIdPatchRequest{value: val, isSet: true} +} + +func (v NullableRolePermissionsRolesRoleIdPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolePermissionsRolesRoleIdPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__role_permissions_roles_get_200_response.go b/internal/sdk/api/model__role_permissions_roles_get_200_response.go new file mode 100644 index 0000000..303289c --- /dev/null +++ b/internal/sdk/api/model__role_permissions_roles_get_200_response.go @@ -0,0 +1,291 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the RolePermissionsRolesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RolePermissionsRolesGet200Response{} + +// RolePermissionsRolesGet200Response struct for RolePermissionsRolesGet200Response +type RolePermissionsRolesGet200Response struct { + // API request succeeded + Success bool `json:"success"` + // An array of requested items + Data []RolePermissionsRolesGet200ResponseDataInner `json:"data"` + // Total number of items in the response + TotalCount float32 `json:"total_count"` + // A token to retrieve the next page of items in the collection + NextToken NullableString `json:"next_token"` + // Whether there are more items in the collection + HasMore bool `json:"has_more"` + AdditionalProperties map[string]interface{} +} + +type _RolePermissionsRolesGet200Response RolePermissionsRolesGet200Response + +// NewRolePermissionsRolesGet200Response instantiates a new RolePermissionsRolesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRolePermissionsRolesGet200Response(success bool, data []RolePermissionsRolesGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool) *RolePermissionsRolesGet200Response { + this := RolePermissionsRolesGet200Response{} + this.Success = success + this.Data = data + this.TotalCount = totalCount + this.NextToken = nextToken + this.HasMore = hasMore + return &this +} + +// NewRolePermissionsRolesGet200ResponseWithDefaults instantiates a new RolePermissionsRolesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRolePermissionsRolesGet200ResponseWithDefaults() *RolePermissionsRolesGet200Response { + this := RolePermissionsRolesGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *RolePermissionsRolesGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *RolePermissionsRolesGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *RolePermissionsRolesGet200Response) GetData() []RolePermissionsRolesGet200ResponseDataInner { + if o == nil { + var ret []RolePermissionsRolesGet200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200Response) GetDataOk() ([]RolePermissionsRolesGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *RolePermissionsRolesGet200Response) SetData(v []RolePermissionsRolesGet200ResponseDataInner) { + o.Data = v +} + +// GetTotalCount returns the TotalCount field value +func (o *RolePermissionsRolesGet200Response) GetTotalCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200Response) GetTotalCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *RolePermissionsRolesGet200Response) SetTotalCount(v float32) { + o.TotalCount = v +} + +// GetNextToken returns the NextToken field value +// If the value is explicit nil, the zero value for string will be returned +func (o *RolePermissionsRolesGet200Response) GetNextToken() string { + if o == nil || o.NextToken.Get() == nil { + var ret string + return ret + } + + return *o.NextToken.Get() +} + +// GetNextTokenOk returns a tuple with the NextToken field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RolePermissionsRolesGet200Response) GetNextTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextToken.Get(), o.NextToken.IsSet() +} + +// SetNextToken sets field value +func (o *RolePermissionsRolesGet200Response) SetNextToken(v string) { + o.NextToken.Set(&v) +} + +// GetHasMore returns the HasMore field value +func (o *RolePermissionsRolesGet200Response) GetHasMore() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200Response) GetHasMoreOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasMore, true +} + +// SetHasMore sets field value +func (o *RolePermissionsRolesGet200Response) SetHasMore(v bool) { + o.HasMore = v +} + +func (o RolePermissionsRolesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RolePermissionsRolesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + toSerialize["total_count"] = o.TotalCount + toSerialize["next_token"] = o.NextToken.Get() + toSerialize["has_more"] = o.HasMore + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RolePermissionsRolesGet200Response) 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{ + "success", + "data", + "total_count", + "next_token", + "has_more", + } + + 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) + } + } + + varRolePermissionsRolesGet200Response := _RolePermissionsRolesGet200Response{} + + err = json.Unmarshal(data, &varRolePermissionsRolesGet200Response) + + if err != nil { + return err + } + + *o = RolePermissionsRolesGet200Response(varRolePermissionsRolesGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + delete(additionalProperties, "total_count") + delete(additionalProperties, "next_token") + delete(additionalProperties, "has_more") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRolePermissionsRolesGet200Response struct { + value *RolePermissionsRolesGet200Response + isSet bool +} + +func (v NullableRolePermissionsRolesGet200Response) Get() *RolePermissionsRolesGet200Response { + return v.value +} + +func (v *NullableRolePermissionsRolesGet200Response) Set(val *RolePermissionsRolesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableRolePermissionsRolesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableRolePermissionsRolesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolePermissionsRolesGet200Response(val *RolePermissionsRolesGet200Response) *NullableRolePermissionsRolesGet200Response { + return &NullableRolePermissionsRolesGet200Response{value: val, isSet: true} +} + +func (v NullableRolePermissionsRolesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolePermissionsRolesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__role_permissions_roles_get_200_response_data_inner.go b/internal/sdk/api/model__role_permissions_roles_get_200_response_data_inner.go new file mode 100644 index 0000000..fcf61a1 --- /dev/null +++ b/internal/sdk/api/model__role_permissions_roles_get_200_response_data_inner.go @@ -0,0 +1,437 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the RolePermissionsRolesGet200ResponseDataInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RolePermissionsRolesGet200ResponseDataInner{} + +// RolePermissionsRolesGet200ResponseDataInner Roles +type RolePermissionsRolesGet200ResponseDataInner struct { + // The id of the role. + Id string `json:"id"` + // The id of the organization + OrganizationId string `json:"organization_id"` + // The name of the role + Name string `json:"name"` + // The description of the role + Description string `json:"description"` + // Whether the role is the default role + IsDefaultRole bool `json:"is_default_role"` + // Whether the role is a migrated legacy role + IsLegacyRole bool `json:"is_legacy_role"` + // The object scopes of the role + ObjectScopes []string `json:"object_scopes"` + // The organization scopes of the role + OrganizationScopes []string `json:"organization_scopes"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _RolePermissionsRolesGet200ResponseDataInner RolePermissionsRolesGet200ResponseDataInner + +// NewRolePermissionsRolesGet200ResponseDataInner instantiates a new RolePermissionsRolesGet200ResponseDataInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRolePermissionsRolesGet200ResponseDataInner(id string, organizationId string, name string, description string, isDefaultRole bool, isLegacyRole bool, objectScopes []string, organizationScopes []string, createdAt string, updatedAt string) *RolePermissionsRolesGet200ResponseDataInner { + this := RolePermissionsRolesGet200ResponseDataInner{} + this.Id = id + this.OrganizationId = organizationId + this.Name = name + this.Description = description + this.IsDefaultRole = isDefaultRole + this.IsLegacyRole = isLegacyRole + this.ObjectScopes = objectScopes + this.OrganizationScopes = organizationScopes + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewRolePermissionsRolesGet200ResponseDataInnerWithDefaults instantiates a new RolePermissionsRolesGet200ResponseDataInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRolePermissionsRolesGet200ResponseDataInnerWithDefaults() *RolePermissionsRolesGet200ResponseDataInner { + this := RolePermissionsRolesGet200ResponseDataInner{} + return &this +} + +// GetId returns the Id field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetId(v string) { + o.Id = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetName returns the Name field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetDescription(v string) { + o.Description = v +} + +// GetIsDefaultRole returns the IsDefaultRole field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetIsDefaultRole() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDefaultRole +} + +// GetIsDefaultRoleOk returns a tuple with the IsDefaultRole field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetIsDefaultRoleOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDefaultRole, true +} + +// SetIsDefaultRole sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetIsDefaultRole(v bool) { + o.IsDefaultRole = v +} + +// GetIsLegacyRole returns the IsLegacyRole field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetIsLegacyRole() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsLegacyRole +} + +// GetIsLegacyRoleOk returns a tuple with the IsLegacyRole field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetIsLegacyRoleOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsLegacyRole, true +} + +// SetIsLegacyRole sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetIsLegacyRole(v bool) { + o.IsLegacyRole = v +} + +// GetObjectScopes returns the ObjectScopes field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetObjectScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.ObjectScopes +} + +// GetObjectScopesOk returns a tuple with the ObjectScopes field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetObjectScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ObjectScopes, true +} + +// SetObjectScopes sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetObjectScopes(v []string) { + o.ObjectScopes = v +} + +// GetOrganizationScopes returns the OrganizationScopes field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetOrganizationScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.OrganizationScopes +} + +// GetOrganizationScopesOk returns a tuple with the OrganizationScopes field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetOrganizationScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.OrganizationScopes, true +} + +// SetOrganizationScopes sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetOrganizationScopes(v []string) { + o.OrganizationScopes = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *RolePermissionsRolesGet200ResponseDataInner) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesGet200ResponseDataInner) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *RolePermissionsRolesGet200ResponseDataInner) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +func (o RolePermissionsRolesGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RolePermissionsRolesGet200ResponseDataInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["organization_id"] = o.OrganizationId + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description + toSerialize["is_default_role"] = o.IsDefaultRole + toSerialize["is_legacy_role"] = o.IsLegacyRole + toSerialize["object_scopes"] = o.ObjectScopes + toSerialize["organization_scopes"] = o.OrganizationScopes + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RolePermissionsRolesGet200ResponseDataInner) 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{ + "id", + "organization_id", + "name", + "description", + "is_default_role", + "is_legacy_role", + "object_scopes", + "organization_scopes", + "created_at", + "updated_at", + } + + 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) + } + } + + varRolePermissionsRolesGet200ResponseDataInner := _RolePermissionsRolesGet200ResponseDataInner{} + + err = json.Unmarshal(data, &varRolePermissionsRolesGet200ResponseDataInner) + + if err != nil { + return err + } + + *o = RolePermissionsRolesGet200ResponseDataInner(varRolePermissionsRolesGet200ResponseDataInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "organization_id") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "is_default_role") + delete(additionalProperties, "is_legacy_role") + delete(additionalProperties, "object_scopes") + delete(additionalProperties, "organization_scopes") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRolePermissionsRolesGet200ResponseDataInner struct { + value *RolePermissionsRolesGet200ResponseDataInner + isSet bool +} + +func (v NullableRolePermissionsRolesGet200ResponseDataInner) Get() *RolePermissionsRolesGet200ResponseDataInner { + return v.value +} + +func (v *NullableRolePermissionsRolesGet200ResponseDataInner) Set(val *RolePermissionsRolesGet200ResponseDataInner) { + v.value = val + v.isSet = true +} + +func (v NullableRolePermissionsRolesGet200ResponseDataInner) IsSet() bool { + return v.isSet +} + +func (v *NullableRolePermissionsRolesGet200ResponseDataInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolePermissionsRolesGet200ResponseDataInner(val *RolePermissionsRolesGet200ResponseDataInner) *NullableRolePermissionsRolesGet200ResponseDataInner { + return &NullableRolePermissionsRolesGet200ResponseDataInner{value: val, isSet: true} +} + +func (v NullableRolePermissionsRolesGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolePermissionsRolesGet200ResponseDataInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__role_permissions_roles_post_201_response.go b/internal/sdk/api/model__role_permissions_roles_post_201_response.go new file mode 100644 index 0000000..7be1ab6 --- /dev/null +++ b/internal/sdk/api/model__role_permissions_roles_post_201_response.go @@ -0,0 +1,437 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the RolePermissionsRolesPost201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RolePermissionsRolesPost201Response{} + +// RolePermissionsRolesPost201Response struct for RolePermissionsRolesPost201Response +type RolePermissionsRolesPost201Response struct { + // The id of the role. + Id string `json:"id"` + // The id of the organization + OrganizationId string `json:"organization_id"` + // The name of the role + Name string `json:"name"` + // The description of the role + Description string `json:"description"` + // Whether the role is the default role + IsDefaultRole bool `json:"is_default_role"` + // Whether the role is a migrated legacy role + IsLegacyRole bool `json:"is_legacy_role"` + // The object scopes of the role + ObjectScopes []string `json:"object_scopes"` + // The organization scopes of the role + OrganizationScopes []string `json:"organization_scopes"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _RolePermissionsRolesPost201Response RolePermissionsRolesPost201Response + +// NewRolePermissionsRolesPost201Response instantiates a new RolePermissionsRolesPost201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRolePermissionsRolesPost201Response(id string, organizationId string, name string, description string, isDefaultRole bool, isLegacyRole bool, objectScopes []string, organizationScopes []string, createdAt string, updatedAt string) *RolePermissionsRolesPost201Response { + this := RolePermissionsRolesPost201Response{} + this.Id = id + this.OrganizationId = organizationId + this.Name = name + this.Description = description + this.IsDefaultRole = isDefaultRole + this.IsLegacyRole = isLegacyRole + this.ObjectScopes = objectScopes + this.OrganizationScopes = organizationScopes + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewRolePermissionsRolesPost201ResponseWithDefaults instantiates a new RolePermissionsRolesPost201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRolePermissionsRolesPost201ResponseWithDefaults() *RolePermissionsRolesPost201Response { + this := RolePermissionsRolesPost201Response{} + return &this +} + +// GetId returns the Id field value +func (o *RolePermissionsRolesPost201Response) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RolePermissionsRolesPost201Response) SetId(v string) { + o.Id = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *RolePermissionsRolesPost201Response) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *RolePermissionsRolesPost201Response) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetName returns the Name field value +func (o *RolePermissionsRolesPost201Response) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RolePermissionsRolesPost201Response) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *RolePermissionsRolesPost201Response) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *RolePermissionsRolesPost201Response) SetDescription(v string) { + o.Description = v +} + +// GetIsDefaultRole returns the IsDefaultRole field value +func (o *RolePermissionsRolesPost201Response) GetIsDefaultRole() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDefaultRole +} + +// GetIsDefaultRoleOk returns a tuple with the IsDefaultRole field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetIsDefaultRoleOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDefaultRole, true +} + +// SetIsDefaultRole sets field value +func (o *RolePermissionsRolesPost201Response) SetIsDefaultRole(v bool) { + o.IsDefaultRole = v +} + +// GetIsLegacyRole returns the IsLegacyRole field value +func (o *RolePermissionsRolesPost201Response) GetIsLegacyRole() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsLegacyRole +} + +// GetIsLegacyRoleOk returns a tuple with the IsLegacyRole field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetIsLegacyRoleOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsLegacyRole, true +} + +// SetIsLegacyRole sets field value +func (o *RolePermissionsRolesPost201Response) SetIsLegacyRole(v bool) { + o.IsLegacyRole = v +} + +// GetObjectScopes returns the ObjectScopes field value +func (o *RolePermissionsRolesPost201Response) GetObjectScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.ObjectScopes +} + +// GetObjectScopesOk returns a tuple with the ObjectScopes field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetObjectScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ObjectScopes, true +} + +// SetObjectScopes sets field value +func (o *RolePermissionsRolesPost201Response) SetObjectScopes(v []string) { + o.ObjectScopes = v +} + +// GetOrganizationScopes returns the OrganizationScopes field value +func (o *RolePermissionsRolesPost201Response) GetOrganizationScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.OrganizationScopes +} + +// GetOrganizationScopesOk returns a tuple with the OrganizationScopes field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetOrganizationScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.OrganizationScopes, true +} + +// SetOrganizationScopes sets field value +func (o *RolePermissionsRolesPost201Response) SetOrganizationScopes(v []string) { + o.OrganizationScopes = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *RolePermissionsRolesPost201Response) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *RolePermissionsRolesPost201Response) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *RolePermissionsRolesPost201Response) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPost201Response) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *RolePermissionsRolesPost201Response) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +func (o RolePermissionsRolesPost201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RolePermissionsRolesPost201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["organization_id"] = o.OrganizationId + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description + toSerialize["is_default_role"] = o.IsDefaultRole + toSerialize["is_legacy_role"] = o.IsLegacyRole + toSerialize["object_scopes"] = o.ObjectScopes + toSerialize["organization_scopes"] = o.OrganizationScopes + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RolePermissionsRolesPost201Response) 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{ + "id", + "organization_id", + "name", + "description", + "is_default_role", + "is_legacy_role", + "object_scopes", + "organization_scopes", + "created_at", + "updated_at", + } + + 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) + } + } + + varRolePermissionsRolesPost201Response := _RolePermissionsRolesPost201Response{} + + err = json.Unmarshal(data, &varRolePermissionsRolesPost201Response) + + if err != nil { + return err + } + + *o = RolePermissionsRolesPost201Response(varRolePermissionsRolesPost201Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "organization_id") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "is_default_role") + delete(additionalProperties, "is_legacy_role") + delete(additionalProperties, "object_scopes") + delete(additionalProperties, "organization_scopes") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRolePermissionsRolesPost201Response struct { + value *RolePermissionsRolesPost201Response + isSet bool +} + +func (v NullableRolePermissionsRolesPost201Response) Get() *RolePermissionsRolesPost201Response { + return v.value +} + +func (v *NullableRolePermissionsRolesPost201Response) Set(val *RolePermissionsRolesPost201Response) { + v.value = val + v.isSet = true +} + +func (v NullableRolePermissionsRolesPost201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableRolePermissionsRolesPost201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolePermissionsRolesPost201Response(val *RolePermissionsRolesPost201Response) *NullableRolePermissionsRolesPost201Response { + return &NullableRolePermissionsRolesPost201Response{value: val, isSet: true} +} + +func (v NullableRolePermissionsRolesPost201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolePermissionsRolesPost201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__role_permissions_roles_post_request.go b/internal/sdk/api/model__role_permissions_roles_post_request.go new file mode 100644 index 0000000..a0db177 --- /dev/null +++ b/internal/sdk/api/model__role_permissions_roles_post_request.go @@ -0,0 +1,267 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the RolePermissionsRolesPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RolePermissionsRolesPostRequest{} + +// RolePermissionsRolesPostRequest struct for RolePermissionsRolesPostRequest +type RolePermissionsRolesPostRequest struct { + // The name of the role. + Name string `json:"name"` + // The description of the role + Description *string `json:"description,omitempty"` + // The object scopes of the role + ObjectScopes []string `json:"object_scopes"` + // The organization scopes of the role + OrganizationScopes []string `json:"organization_scopes"` + AdditionalProperties map[string]interface{} +} + +type _RolePermissionsRolesPostRequest RolePermissionsRolesPostRequest + +// NewRolePermissionsRolesPostRequest instantiates a new RolePermissionsRolesPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRolePermissionsRolesPostRequest(name string, objectScopes []string, organizationScopes []string) *RolePermissionsRolesPostRequest { + this := RolePermissionsRolesPostRequest{} + this.Name = name + this.ObjectScopes = objectScopes + this.OrganizationScopes = organizationScopes + return &this +} + +// NewRolePermissionsRolesPostRequestWithDefaults instantiates a new RolePermissionsRolesPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRolePermissionsRolesPostRequestWithDefaults() *RolePermissionsRolesPostRequest { + this := RolePermissionsRolesPostRequest{} + return &this +} + +// GetName returns the Name field value +func (o *RolePermissionsRolesPostRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPostRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RolePermissionsRolesPostRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RolePermissionsRolesPostRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPostRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RolePermissionsRolesPostRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RolePermissionsRolesPostRequest) SetDescription(v string) { + o.Description = &v +} + +// GetObjectScopes returns the ObjectScopes field value +func (o *RolePermissionsRolesPostRequest) GetObjectScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.ObjectScopes +} + +// GetObjectScopesOk returns a tuple with the ObjectScopes field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPostRequest) GetObjectScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ObjectScopes, true +} + +// SetObjectScopes sets field value +func (o *RolePermissionsRolesPostRequest) SetObjectScopes(v []string) { + o.ObjectScopes = v +} + +// GetOrganizationScopes returns the OrganizationScopes field value +func (o *RolePermissionsRolesPostRequest) GetOrganizationScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.OrganizationScopes +} + +// GetOrganizationScopesOk returns a tuple with the OrganizationScopes field value +// and a boolean to check if the value has been set. +func (o *RolePermissionsRolesPostRequest) GetOrganizationScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.OrganizationScopes, true +} + +// SetOrganizationScopes sets field value +func (o *RolePermissionsRolesPostRequest) SetOrganizationScopes(v []string) { + o.OrganizationScopes = v +} + +func (o RolePermissionsRolesPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RolePermissionsRolesPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["object_scopes"] = o.ObjectScopes + toSerialize["organization_scopes"] = o.OrganizationScopes + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RolePermissionsRolesPostRequest) 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", + "object_scopes", + "organization_scopes", + } + + 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) + } + } + + varRolePermissionsRolesPostRequest := _RolePermissionsRolesPostRequest{} + + err = json.Unmarshal(data, &varRolePermissionsRolesPostRequest) + + if err != nil { + return err + } + + *o = RolePermissionsRolesPostRequest(varRolePermissionsRolesPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "object_scopes") + delete(additionalProperties, "organization_scopes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRolePermissionsRolesPostRequest struct { + value *RolePermissionsRolesPostRequest + isSet bool +} + +func (v NullableRolePermissionsRolesPostRequest) Get() *RolePermissionsRolesPostRequest { + return v.value +} + +func (v *NullableRolePermissionsRolesPostRequest) Set(val *RolePermissionsRolesPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRolePermissionsRolesPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRolePermissionsRolesPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolePermissionsRolesPostRequest(val *RolePermissionsRolesPostRequest) *NullableRolePermissionsRolesPostRequest { + return &NullableRolePermissionsRolesPostRequest{value: val, isSet: true} +} + +func (v NullableRolePermissionsRolesPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolePermissionsRolesPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_config_get_200_response.go b/internal/sdk/api/model__source_control_config_get_200_response.go index 113c642..1c0c0c9 100644 --- a/internal/sdk/api/model__source_control_config_get_200_response.go +++ b/internal/sdk/api/model__source_control_config_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_config_get_200_response_data.go b/internal/sdk/api/model__source_control_config_get_200_response_data.go index 4f15e70..0bed763 100644 --- a/internal/sdk/api/model__source_control_config_get_200_response_data.go +++ b/internal/sdk/api/model__source_control_config_get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,188 +15,109 @@ import ( "fmt" ) -// SourceControlConfigGet200ResponseData - Source Control Provider Config +// SourceControlConfigGet200ResponseData Source Control Provider Config type SourceControlConfigGet200ResponseData struct { - SourceControlConfigGet200ResponseDataOneOf *SourceControlConfigGet200ResponseDataOneOf - SourceControlConfigGet200ResponseDataOneOf1 *SourceControlConfigGet200ResponseDataOneOf1 - SourceControlConfigGet200ResponseDataOneOf2 *SourceControlConfigGet200ResponseDataOneOf2 - SourceControlConfigGet200ResponseDataOneOf3 *SourceControlConfigGet200ResponseDataOneOf3 - SourceControlConfigGet200ResponseDataOneOf4 *SourceControlConfigGet200ResponseDataOneOf4 + AWSCodeCommit *AWSCodeCommit + AzureRepos *AzureRepos + Bitbucket *Bitbucket + GitHub *GitHub + GitLab *GitLab } -// SourceControlConfigGet200ResponseDataOneOfAsSourceControlConfigGet200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf wrapped in SourceControlConfigGet200ResponseData -func SourceControlConfigGet200ResponseDataOneOfAsSourceControlConfigGet200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf) SourceControlConfigGet200ResponseData { - return SourceControlConfigGet200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf1AsSourceControlConfigGet200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf1 wrapped in SourceControlConfigGet200ResponseData -func SourceControlConfigGet200ResponseDataOneOf1AsSourceControlConfigGet200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf1) SourceControlConfigGet200ResponseData { - return SourceControlConfigGet200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf1: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf2AsSourceControlConfigGet200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf2 wrapped in SourceControlConfigGet200ResponseData -func SourceControlConfigGet200ResponseDataOneOf2AsSourceControlConfigGet200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf2) SourceControlConfigGet200ResponseData { - return SourceControlConfigGet200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf2: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf3AsSourceControlConfigGet200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf3 wrapped in SourceControlConfigGet200ResponseData -func SourceControlConfigGet200ResponseDataOneOf3AsSourceControlConfigGet200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf3) SourceControlConfigGet200ResponseData { - return SourceControlConfigGet200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf3: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf4AsSourceControlConfigGet200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf4 wrapped in SourceControlConfigGet200ResponseData -func SourceControlConfigGet200ResponseDataOneOf4AsSourceControlConfigGet200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf4) SourceControlConfigGet200ResponseData { - return SourceControlConfigGet200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf4: v, - } -} - - -// Unmarshal JSON data into one of the pointers in the struct +// Unmarshal JSON data into any of the pointers in the struct func (dst *SourceControlConfigGet200ResponseData) UnmarshalJSON(data []byte) error { var err error - match := 0 - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf) + // try to unmarshal JSON data into AWSCodeCommit + err = json.Unmarshal(data, &dst.AWSCodeCommit); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf) - if string(jsonSourceControlConfigGet200ResponseDataOneOf) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf = nil + jsonAWSCodeCommit, _ := json.Marshal(dst.AWSCodeCommit) + if string(jsonAWSCodeCommit) == "{}" { // empty struct + dst.AWSCodeCommit = nil } else { - match++ + return nil // data stored in dst.AWSCodeCommit, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf = nil + dst.AWSCodeCommit = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf1 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf1) + // try to unmarshal JSON data into AzureRepos + err = json.Unmarshal(data, &dst.AzureRepos); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf1, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf1) - if string(jsonSourceControlConfigGet200ResponseDataOneOf1) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + jsonAzureRepos, _ := json.Marshal(dst.AzureRepos) + if string(jsonAzureRepos) == "{}" { // empty struct + dst.AzureRepos = nil } else { - match++ + return nil // data stored in dst.AzureRepos, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + dst.AzureRepos = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf2 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf2) + // try to unmarshal JSON data into Bitbucket + err = json.Unmarshal(data, &dst.Bitbucket); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf2, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf2) - if string(jsonSourceControlConfigGet200ResponseDataOneOf2) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + jsonBitbucket, _ := json.Marshal(dst.Bitbucket) + if string(jsonBitbucket) == "{}" { // empty struct + dst.Bitbucket = nil } else { - match++ + return nil // data stored in dst.Bitbucket, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + dst.Bitbucket = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf3 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf3) + // try to unmarshal JSON data into GitHub + err = json.Unmarshal(data, &dst.GitHub); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf3, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf3) - if string(jsonSourceControlConfigGet200ResponseDataOneOf3) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + jsonGitHub, _ := json.Marshal(dst.GitHub) + if string(jsonGitHub) == "{}" { // empty struct + dst.GitHub = nil } else { - match++ + return nil // data stored in dst.GitHub, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + dst.GitHub = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf4 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf4) + // try to unmarshal JSON data into GitLab + err = json.Unmarshal(data, &dst.GitLab); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf4, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf4) - if string(jsonSourceControlConfigGet200ResponseDataOneOf4) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + jsonGitLab, _ := json.Marshal(dst.GitLab) + if string(jsonGitLab) == "{}" { // empty struct + dst.GitLab = nil } else { - match++ + return nil // data stored in dst.GitLab, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + dst.GitLab = nil } - if match > 1 { // more than 1 match - // reset to nil - dst.SourceControlConfigGet200ResponseDataOneOf = nil - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(SourceControlConfigGet200ResponseData)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(SourceControlConfigGet200ResponseData)") - } + return fmt.Errorf("data failed to match schemas in anyOf(SourceControlConfigGet200ResponseData)") } // Marshal data from the first non-nil pointers in the struct to JSON func (src SourceControlConfigGet200ResponseData) MarshalJSON() ([]byte, error) { - if src.SourceControlConfigGet200ResponseDataOneOf != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf) - } - - if src.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf1) - } - - if src.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf2) - } - - if src.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf3) - } - - if src.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf4) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SourceControlConfigGet200ResponseData) GetActualInstance() (interface{}) { - if obj == nil { - return nil - } - if obj.SourceControlConfigGet200ResponseDataOneOf != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf + if src.AWSCodeCommit != nil { + return json.Marshal(src.AWSCodeCommit) } - if obj.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf1 + if src.AzureRepos != nil { + return json.Marshal(src.AzureRepos) } - if obj.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf2 + if src.Bitbucket != nil { + return json.Marshal(src.Bitbucket) } - if obj.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf3 + if src.GitHub != nil { + return json.Marshal(src.GitHub) } - if obj.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf4 + if src.GitLab != nil { + return json.Marshal(src.GitLab) } - // all schemas are nil - return nil + return nil, nil // no data in anyOf schemas } type NullableSourceControlConfigGet200ResponseData struct { diff --git a/internal/sdk/api/model__source_control_config_get_200_response_data_any_of_config.go b/internal/sdk/api/model__source_control_config_get_200_response_data_any_of_config.go index f71ba40..d08a05e 100644 --- a/internal/sdk/api/model__source_control_config_get_200_response_data_any_of_config.go +++ b/internal/sdk/api/model__source_control_config_get_200_response_data_any_of_config.go @@ -54,13 +54,13 @@ func (dst *SourceControlConfigGet200ResponseDataAnyOfConfig) UnmarshalJSON(data } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *SourceControlConfigGet200ResponseDataAnyOfConfig) MarshalJSON() ([]byte, error) { +func (src SourceControlConfigGet200ResponseDataAnyOfConfig) MarshalJSON() ([]byte, error) { if src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf) + return json.Marshal(src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf) } if src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf1) + return json.Marshal(src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf1) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__source_control_config_get_200_response_data_one_of_config.go b/internal/sdk/api/model__source_control_config_get_200_response_data_one_of_config.go index f7bef7f..5320c5c 100644 --- a/internal/sdk/api/model__source_control_config_get_200_response_data_one_of_config.go +++ b/internal/sdk/api/model__source_control_config_get_200_response_data_one_of_config.go @@ -82,11 +82,11 @@ func (dst *SourceControlConfigGet200ResponseDataOneOfConfig) UnmarshalJSON(data // Marshal data from the first non-nil pointers in the struct to JSON func (src SourceControlConfigGet200ResponseDataOneOfConfig) MarshalJSON() ([]byte, error) { if src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf) + return json.Marshal(src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf) } if src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1) + return json.Marshal(src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1) } return nil, nil // no data in oneOf schemas diff --git a/internal/sdk/api/model__source_control_config_post_200_response.go b/internal/sdk/api/model__source_control_config_post_200_response.go index b882c0c..edb167e 100644 --- a/internal/sdk/api/model__source_control_config_post_200_response.go +++ b/internal/sdk/api/model__source_control_config_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_config_post_200_response_data.go b/internal/sdk/api/model__source_control_config_post_200_response_data.go index 02a68ce..d2fa184 100644 --- a/internal/sdk/api/model__source_control_config_post_200_response_data.go +++ b/internal/sdk/api/model__source_control_config_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,188 +15,109 @@ import ( "fmt" ) -// SourceControlConfigPost200ResponseData - Created Source Control Provider Config +// SourceControlConfigPost200ResponseData Created Source Control Provider Config type SourceControlConfigPost200ResponseData struct { - SourceControlConfigGet200ResponseDataOneOf *SourceControlConfigGet200ResponseDataOneOf - SourceControlConfigGet200ResponseDataOneOf1 *SourceControlConfigGet200ResponseDataOneOf1 - SourceControlConfigGet200ResponseDataOneOf2 *SourceControlConfigGet200ResponseDataOneOf2 - SourceControlConfigGet200ResponseDataOneOf3 *SourceControlConfigGet200ResponseDataOneOf3 - SourceControlConfigGet200ResponseDataOneOf4 *SourceControlConfigGet200ResponseDataOneOf4 + AWSCodeCommit *AWSCodeCommit + AzureRepos *AzureRepos + Bitbucket *Bitbucket + GitHub *GitHub + GitLab *GitLab } -// SourceControlConfigGet200ResponseDataOneOfAsSourceControlConfigPost200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf wrapped in SourceControlConfigPost200ResponseData -func SourceControlConfigGet200ResponseDataOneOfAsSourceControlConfigPost200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf) SourceControlConfigPost200ResponseData { - return SourceControlConfigPost200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf1AsSourceControlConfigPost200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf1 wrapped in SourceControlConfigPost200ResponseData -func SourceControlConfigGet200ResponseDataOneOf1AsSourceControlConfigPost200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf1) SourceControlConfigPost200ResponseData { - return SourceControlConfigPost200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf1: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf2AsSourceControlConfigPost200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf2 wrapped in SourceControlConfigPost200ResponseData -func SourceControlConfigGet200ResponseDataOneOf2AsSourceControlConfigPost200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf2) SourceControlConfigPost200ResponseData { - return SourceControlConfigPost200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf2: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf3AsSourceControlConfigPost200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf3 wrapped in SourceControlConfigPost200ResponseData -func SourceControlConfigGet200ResponseDataOneOf3AsSourceControlConfigPost200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf3) SourceControlConfigPost200ResponseData { - return SourceControlConfigPost200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf3: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf4AsSourceControlConfigPost200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf4 wrapped in SourceControlConfigPost200ResponseData -func SourceControlConfigGet200ResponseDataOneOf4AsSourceControlConfigPost200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf4) SourceControlConfigPost200ResponseData { - return SourceControlConfigPost200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf4: v, - } -} - - -// Unmarshal JSON data into one of the pointers in the struct +// Unmarshal JSON data into any of the pointers in the struct func (dst *SourceControlConfigPost200ResponseData) UnmarshalJSON(data []byte) error { var err error - match := 0 - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf) + // try to unmarshal JSON data into AWSCodeCommit + err = json.Unmarshal(data, &dst.AWSCodeCommit); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf) - if string(jsonSourceControlConfigGet200ResponseDataOneOf) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf = nil + jsonAWSCodeCommit, _ := json.Marshal(dst.AWSCodeCommit) + if string(jsonAWSCodeCommit) == "{}" { // empty struct + dst.AWSCodeCommit = nil } else { - match++ + return nil // data stored in dst.AWSCodeCommit, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf = nil + dst.AWSCodeCommit = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf1 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf1) + // try to unmarshal JSON data into AzureRepos + err = json.Unmarshal(data, &dst.AzureRepos); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf1, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf1) - if string(jsonSourceControlConfigGet200ResponseDataOneOf1) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + jsonAzureRepos, _ := json.Marshal(dst.AzureRepos) + if string(jsonAzureRepos) == "{}" { // empty struct + dst.AzureRepos = nil } else { - match++ + return nil // data stored in dst.AzureRepos, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + dst.AzureRepos = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf2 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf2) + // try to unmarshal JSON data into Bitbucket + err = json.Unmarshal(data, &dst.Bitbucket); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf2, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf2) - if string(jsonSourceControlConfigGet200ResponseDataOneOf2) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + jsonBitbucket, _ := json.Marshal(dst.Bitbucket) + if string(jsonBitbucket) == "{}" { // empty struct + dst.Bitbucket = nil } else { - match++ + return nil // data stored in dst.Bitbucket, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + dst.Bitbucket = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf3 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf3) + // try to unmarshal JSON data into GitHub + err = json.Unmarshal(data, &dst.GitHub); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf3, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf3) - if string(jsonSourceControlConfigGet200ResponseDataOneOf3) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + jsonGitHub, _ := json.Marshal(dst.GitHub) + if string(jsonGitHub) == "{}" { // empty struct + dst.GitHub = nil } else { - match++ + return nil // data stored in dst.GitHub, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + dst.GitHub = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf4 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf4) + // try to unmarshal JSON data into GitLab + err = json.Unmarshal(data, &dst.GitLab); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf4, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf4) - if string(jsonSourceControlConfigGet200ResponseDataOneOf4) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + jsonGitLab, _ := json.Marshal(dst.GitLab) + if string(jsonGitLab) == "{}" { // empty struct + dst.GitLab = nil } else { - match++ + return nil // data stored in dst.GitLab, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + dst.GitLab = nil } - if match > 1 { // more than 1 match - // reset to nil - dst.SourceControlConfigGet200ResponseDataOneOf = nil - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(SourceControlConfigPost200ResponseData)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(SourceControlConfigPost200ResponseData)") - } + return fmt.Errorf("data failed to match schemas in anyOf(SourceControlConfigPost200ResponseData)") } // Marshal data from the first non-nil pointers in the struct to JSON func (src SourceControlConfigPost200ResponseData) MarshalJSON() ([]byte, error) { - if src.SourceControlConfigGet200ResponseDataOneOf != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf) - } - - if src.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf1) - } - - if src.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf2) - } - - if src.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf3) - } - - if src.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf4) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SourceControlConfigPost200ResponseData) GetActualInstance() (interface{}) { - if obj == nil { - return nil - } - if obj.SourceControlConfigGet200ResponseDataOneOf != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf + if src.AWSCodeCommit != nil { + return json.Marshal(src.AWSCodeCommit) } - if obj.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf1 + if src.AzureRepos != nil { + return json.Marshal(src.AzureRepos) } - if obj.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf2 + if src.Bitbucket != nil { + return json.Marshal(src.Bitbucket) } - if obj.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf3 + if src.GitHub != nil { + return json.Marshal(src.GitHub) } - if obj.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf4 + if src.GitLab != nil { + return json.Marshal(src.GitLab) } - // all schemas are nil - return nil + return nil, nil // no data in anyOf schemas } type NullableSourceControlConfigPost200ResponseData struct { diff --git a/internal/sdk/api/model__source_control_config_put_200_response.go b/internal/sdk/api/model__source_control_config_put_200_response.go index 4ecbe75..c7934b0 100644 --- a/internal/sdk/api/model__source_control_config_put_200_response.go +++ b/internal/sdk/api/model__source_control_config_put_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_config_put_200_response_data.go b/internal/sdk/api/model__source_control_config_put_200_response_data.go index 15d6297..267106f 100644 --- a/internal/sdk/api/model__source_control_config_put_200_response_data.go +++ b/internal/sdk/api/model__source_control_config_put_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,188 +15,109 @@ import ( "fmt" ) -// SourceControlConfigPut200ResponseData - Created or updated Source Control Provider Config +// SourceControlConfigPut200ResponseData Created or updated Source Control Provider Config type SourceControlConfigPut200ResponseData struct { - SourceControlConfigGet200ResponseDataOneOf *SourceControlConfigGet200ResponseDataOneOf - SourceControlConfigGet200ResponseDataOneOf1 *SourceControlConfigGet200ResponseDataOneOf1 - SourceControlConfigGet200ResponseDataOneOf2 *SourceControlConfigGet200ResponseDataOneOf2 - SourceControlConfigGet200ResponseDataOneOf3 *SourceControlConfigGet200ResponseDataOneOf3 - SourceControlConfigGet200ResponseDataOneOf4 *SourceControlConfigGet200ResponseDataOneOf4 + AWSCodeCommit *AWSCodeCommit + AzureRepos *AzureRepos + Bitbucket *Bitbucket + GitHub *GitHub + GitLab *GitLab } -// SourceControlConfigGet200ResponseDataOneOfAsSourceControlConfigPut200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf wrapped in SourceControlConfigPut200ResponseData -func SourceControlConfigGet200ResponseDataOneOfAsSourceControlConfigPut200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf) SourceControlConfigPut200ResponseData { - return SourceControlConfigPut200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf1AsSourceControlConfigPut200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf1 wrapped in SourceControlConfigPut200ResponseData -func SourceControlConfigGet200ResponseDataOneOf1AsSourceControlConfigPut200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf1) SourceControlConfigPut200ResponseData { - return SourceControlConfigPut200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf1: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf2AsSourceControlConfigPut200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf2 wrapped in SourceControlConfigPut200ResponseData -func SourceControlConfigGet200ResponseDataOneOf2AsSourceControlConfigPut200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf2) SourceControlConfigPut200ResponseData { - return SourceControlConfigPut200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf2: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf3AsSourceControlConfigPut200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf3 wrapped in SourceControlConfigPut200ResponseData -func SourceControlConfigGet200ResponseDataOneOf3AsSourceControlConfigPut200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf3) SourceControlConfigPut200ResponseData { - return SourceControlConfigPut200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf3: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf4AsSourceControlConfigPut200ResponseData is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf4 wrapped in SourceControlConfigPut200ResponseData -func SourceControlConfigGet200ResponseDataOneOf4AsSourceControlConfigPut200ResponseData(v *SourceControlConfigGet200ResponseDataOneOf4) SourceControlConfigPut200ResponseData { - return SourceControlConfigPut200ResponseData{ - SourceControlConfigGet200ResponseDataOneOf4: v, - } -} - - -// Unmarshal JSON data into one of the pointers in the struct +// Unmarshal JSON data into any of the pointers in the struct func (dst *SourceControlConfigPut200ResponseData) UnmarshalJSON(data []byte) error { var err error - match := 0 - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf) + // try to unmarshal JSON data into AWSCodeCommit + err = json.Unmarshal(data, &dst.AWSCodeCommit); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf) - if string(jsonSourceControlConfigGet200ResponseDataOneOf) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf = nil + jsonAWSCodeCommit, _ := json.Marshal(dst.AWSCodeCommit) + if string(jsonAWSCodeCommit) == "{}" { // empty struct + dst.AWSCodeCommit = nil } else { - match++ + return nil // data stored in dst.AWSCodeCommit, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf = nil + dst.AWSCodeCommit = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf1 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf1) + // try to unmarshal JSON data into AzureRepos + err = json.Unmarshal(data, &dst.AzureRepos); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf1, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf1) - if string(jsonSourceControlConfigGet200ResponseDataOneOf1) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + jsonAzureRepos, _ := json.Marshal(dst.AzureRepos) + if string(jsonAzureRepos) == "{}" { // empty struct + dst.AzureRepos = nil } else { - match++ + return nil // data stored in dst.AzureRepos, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + dst.AzureRepos = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf2 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf2) + // try to unmarshal JSON data into Bitbucket + err = json.Unmarshal(data, &dst.Bitbucket); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf2, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf2) - if string(jsonSourceControlConfigGet200ResponseDataOneOf2) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + jsonBitbucket, _ := json.Marshal(dst.Bitbucket) + if string(jsonBitbucket) == "{}" { // empty struct + dst.Bitbucket = nil } else { - match++ + return nil // data stored in dst.Bitbucket, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + dst.Bitbucket = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf3 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf3) + // try to unmarshal JSON data into GitHub + err = json.Unmarshal(data, &dst.GitHub); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf3, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf3) - if string(jsonSourceControlConfigGet200ResponseDataOneOf3) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + jsonGitHub, _ := json.Marshal(dst.GitHub) + if string(jsonGitHub) == "{}" { // empty struct + dst.GitHub = nil } else { - match++ + return nil // data stored in dst.GitHub, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + dst.GitHub = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf4 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf4) + // try to unmarshal JSON data into GitLab + err = json.Unmarshal(data, &dst.GitLab); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf4, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf4) - if string(jsonSourceControlConfigGet200ResponseDataOneOf4) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + jsonGitLab, _ := json.Marshal(dst.GitLab) + if string(jsonGitLab) == "{}" { // empty struct + dst.GitLab = nil } else { - match++ + return nil // data stored in dst.GitLab, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + dst.GitLab = nil } - if match > 1 { // more than 1 match - // reset to nil - dst.SourceControlConfigGet200ResponseDataOneOf = nil - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(SourceControlConfigPut200ResponseData)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(SourceControlConfigPut200ResponseData)") - } + return fmt.Errorf("data failed to match schemas in anyOf(SourceControlConfigPut200ResponseData)") } // Marshal data from the first non-nil pointers in the struct to JSON func (src SourceControlConfigPut200ResponseData) MarshalJSON() ([]byte, error) { - if src.SourceControlConfigGet200ResponseDataOneOf != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf) - } - - if src.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf1) - } - - if src.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf2) - } - - if src.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf3) - } - - if src.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf4) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SourceControlConfigPut200ResponseData) GetActualInstance() (interface{}) { - if obj == nil { - return nil - } - if obj.SourceControlConfigGet200ResponseDataOneOf != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf + if src.AWSCodeCommit != nil { + return json.Marshal(src.AWSCodeCommit) } - if obj.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf1 + if src.AzureRepos != nil { + return json.Marshal(src.AzureRepos) } - if obj.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf2 + if src.Bitbucket != nil { + return json.Marshal(src.Bitbucket) } - if obj.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf3 + if src.GitHub != nil { + return json.Marshal(src.GitHub) } - if obj.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf4 + if src.GitLab != nil { + return json.Marshal(src.GitLab) } - // all schemas are nil - return nil + return nil, nil // no data in anyOf schemas } type NullableSourceControlConfigPut200ResponseData struct { diff --git a/internal/sdk/api/model__source_control_config_put_request.go b/internal/sdk/api/model__source_control_config_put_request.go index e7fda4c..3eea6b8 100644 --- a/internal/sdk/api/model__source_control_config_put_request.go +++ b/internal/sdk/api/model__source_control_config_put_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_config_put_request_config.go b/internal/sdk/api/model__source_control_config_put_request_config.go index f701e9e..21a8e90 100644 --- a/internal/sdk/api/model__source_control_config_put_request_config.go +++ b/internal/sdk/api/model__source_control_config_put_request_config.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,188 +15,109 @@ import ( "fmt" ) -// SourceControlConfigPutRequestConfig - This object represents the Source Control provider configuration for the organization or space. See https://docs.retool.com/source-control for more information. +// SourceControlConfigPutRequestConfig This object represents the Source Control provider configuration for the organization or space. See [docs](https://docs.retool.com/source-control) for more information. type SourceControlConfigPutRequestConfig struct { - SourceControlConfigGet200ResponseDataOneOf *SourceControlConfigGet200ResponseDataOneOf - SourceControlConfigGet200ResponseDataOneOf1 *SourceControlConfigGet200ResponseDataOneOf1 - SourceControlConfigGet200ResponseDataOneOf2 *SourceControlConfigGet200ResponseDataOneOf2 - SourceControlConfigGet200ResponseDataOneOf3 *SourceControlConfigGet200ResponseDataOneOf3 - SourceControlConfigGet200ResponseDataOneOf4 *SourceControlConfigGet200ResponseDataOneOf4 + AWSCodeCommit *AWSCodeCommit + AzureRepos *AzureRepos + Bitbucket *Bitbucket + GitHub *GitHub + GitLab *GitLab } -// SourceControlConfigGet200ResponseDataOneOfAsSourceControlConfigPutRequestConfig is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf wrapped in SourceControlConfigPutRequestConfig -func SourceControlConfigGet200ResponseDataOneOfAsSourceControlConfigPutRequestConfig(v *SourceControlConfigGet200ResponseDataOneOf) SourceControlConfigPutRequestConfig { - return SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf1AsSourceControlConfigPutRequestConfig is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf1 wrapped in SourceControlConfigPutRequestConfig -func SourceControlConfigGet200ResponseDataOneOf1AsSourceControlConfigPutRequestConfig(v *SourceControlConfigGet200ResponseDataOneOf1) SourceControlConfigPutRequestConfig { - return SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf1: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf2AsSourceControlConfigPutRequestConfig is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf2 wrapped in SourceControlConfigPutRequestConfig -func SourceControlConfigGet200ResponseDataOneOf2AsSourceControlConfigPutRequestConfig(v *SourceControlConfigGet200ResponseDataOneOf2) SourceControlConfigPutRequestConfig { - return SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf2: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf3AsSourceControlConfigPutRequestConfig is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf3 wrapped in SourceControlConfigPutRequestConfig -func SourceControlConfigGet200ResponseDataOneOf3AsSourceControlConfigPutRequestConfig(v *SourceControlConfigGet200ResponseDataOneOf3) SourceControlConfigPutRequestConfig { - return SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf3: v, - } -} - -// SourceControlConfigGet200ResponseDataOneOf4AsSourceControlConfigPutRequestConfig is a convenience function that returns SourceControlConfigGet200ResponseDataOneOf4 wrapped in SourceControlConfigPutRequestConfig -func SourceControlConfigGet200ResponseDataOneOf4AsSourceControlConfigPutRequestConfig(v *SourceControlConfigGet200ResponseDataOneOf4) SourceControlConfigPutRequestConfig { - return SourceControlConfigPutRequestConfig{ - SourceControlConfigGet200ResponseDataOneOf4: v, - } -} - - -// Unmarshal JSON data into one of the pointers in the struct +// Unmarshal JSON data into any of the pointers in the struct func (dst *SourceControlConfigPutRequestConfig) UnmarshalJSON(data []byte) error { var err error - match := 0 - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf) + // try to unmarshal JSON data into AWSCodeCommit + err = json.Unmarshal(data, &dst.AWSCodeCommit); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf) - if string(jsonSourceControlConfigGet200ResponseDataOneOf) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf = nil + jsonAWSCodeCommit, _ := json.Marshal(dst.AWSCodeCommit) + if string(jsonAWSCodeCommit) == "{}" { // empty struct + dst.AWSCodeCommit = nil } else { - match++ + return nil // data stored in dst.AWSCodeCommit, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf = nil + dst.AWSCodeCommit = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf1 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf1) + // try to unmarshal JSON data into AzureRepos + err = json.Unmarshal(data, &dst.AzureRepos); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf1, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf1) - if string(jsonSourceControlConfigGet200ResponseDataOneOf1) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + jsonAzureRepos, _ := json.Marshal(dst.AzureRepos) + if string(jsonAzureRepos) == "{}" { // empty struct + dst.AzureRepos = nil } else { - match++ + return nil // data stored in dst.AzureRepos, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + dst.AzureRepos = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf2 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf2) + // try to unmarshal JSON data into Bitbucket + err = json.Unmarshal(data, &dst.Bitbucket); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf2, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf2) - if string(jsonSourceControlConfigGet200ResponseDataOneOf2) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + jsonBitbucket, _ := json.Marshal(dst.Bitbucket) + if string(jsonBitbucket) == "{}" { // empty struct + dst.Bitbucket = nil } else { - match++ + return nil // data stored in dst.Bitbucket, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + dst.Bitbucket = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf3 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf3) + // try to unmarshal JSON data into GitHub + err = json.Unmarshal(data, &dst.GitHub); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf3, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf3) - if string(jsonSourceControlConfigGet200ResponseDataOneOf3) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + jsonGitHub, _ := json.Marshal(dst.GitHub) + if string(jsonGitHub) == "{}" { // empty struct + dst.GitHub = nil } else { - match++ + return nil // data stored in dst.GitHub, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + dst.GitHub = nil } - // try to unmarshal data into SourceControlConfigGet200ResponseDataOneOf4 - err = newStrictDecoder(data).Decode(&dst.SourceControlConfigGet200ResponseDataOneOf4) + // try to unmarshal JSON data into GitLab + err = json.Unmarshal(data, &dst.GitLab); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf4, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf4) - if string(jsonSourceControlConfigGet200ResponseDataOneOf4) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + jsonGitLab, _ := json.Marshal(dst.GitLab) + if string(jsonGitLab) == "{}" { // empty struct + dst.GitLab = nil } else { - match++ + return nil // data stored in dst.GitLab, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + dst.GitLab = nil } - if match > 1 { // more than 1 match - // reset to nil - dst.SourceControlConfigGet200ResponseDataOneOf = nil - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(SourceControlConfigPutRequestConfig)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(SourceControlConfigPutRequestConfig)") - } + return fmt.Errorf("data failed to match schemas in anyOf(SourceControlConfigPutRequestConfig)") } // Marshal data from the first non-nil pointers in the struct to JSON func (src SourceControlConfigPutRequestConfig) MarshalJSON() ([]byte, error) { - if src.SourceControlConfigGet200ResponseDataOneOf != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf) - } - - if src.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf1) - } - - if src.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf2) - } - - if src.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf3) - } - - if src.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf4) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SourceControlConfigPutRequestConfig) GetActualInstance() (interface{}) { - if obj == nil { - return nil - } - if obj.SourceControlConfigGet200ResponseDataOneOf != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf + if src.AWSCodeCommit != nil { + return json.Marshal(src.AWSCodeCommit) } - if obj.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf1 + if src.AzureRepos != nil { + return json.Marshal(src.AzureRepos) } - if obj.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf2 + if src.Bitbucket != nil { + return json.Marshal(src.Bitbucket) } - if obj.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf3 + if src.GitHub != nil { + return json.Marshal(src.GitHub) } - if obj.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return obj.SourceControlConfigGet200ResponseDataOneOf4 + if src.GitLab != nil { + return json.Marshal(src.GitLab) } - // all schemas are nil - return nil + return nil, nil // no data in anyOf schemas } type NullableSourceControlConfigPutRequestConfig struct { diff --git a/internal/sdk/api/model__source_control_config_put_request_config_one_of_config.go b/internal/sdk/api/model__source_control_config_put_request_config_one_of_config.go index 65d9aca..6e99a14 100644 --- a/internal/sdk/api/model__source_control_config_put_request_config_one_of_config.go +++ b/internal/sdk/api/model__source_control_config_put_request_config_one_of_config.go @@ -82,11 +82,11 @@ func (dst *SourceControlConfigPutRequestConfigOneOfConfig) UnmarshalJSON(data [] // Marshal data from the first non-nil pointers in the struct to JSON func (src SourceControlConfigPutRequestConfigOneOfConfig) MarshalJSON() ([]byte, error) { if src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf) + return json.Marshal(src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf) } if src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf1) + return json.Marshal(src.SourceControlConfigGet200ResponseDataAnyOfConfigAnyOf1) } return nil, nil // no data in oneOf schemas diff --git a/internal/sdk/api/model__source_control_deploy_post_200_response.go b/internal/sdk/api/model__source_control_deploy_post_200_response.go index 1713653..3e91ed6 100644 --- a/internal/sdk/api/model__source_control_deploy_post_200_response.go +++ b/internal/sdk/api/model__source_control_deploy_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_deploy_post_200_response_data.go b/internal/sdk/api/model__source_control_deploy_post_200_response_data.go index 5f5f71a..38aed4f 100644 --- a/internal/sdk/api/model__source_control_deploy_post_200_response_data.go +++ b/internal/sdk/api/model__source_control_deploy_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__apps__app_uuid__put_request.go b/internal/sdk/api/model__source_control_manifests__manifest_name__apps__app_uuid__put_request.go new file mode 100644 index 0000000..7ae466e --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__apps__app_uuid__put_request.go @@ -0,0 +1,206 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsManifestNameAppsAppUuidPutRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNameAppsAppUuidPutRequest{} + +// SourceControlManifestsManifestNameAppsAppUuidPutRequest struct for SourceControlManifestsManifestNameAppsAppUuidPutRequest +type SourceControlManifestsManifestNameAppsAppUuidPutRequest struct { + Release SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease `json:"release"` + // Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used. + CommitMessage *string `json:"commit_message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNameAppsAppUuidPutRequest SourceControlManifestsManifestNameAppsAppUuidPutRequest + +// NewSourceControlManifestsManifestNameAppsAppUuidPutRequest instantiates a new SourceControlManifestsManifestNameAppsAppUuidPutRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNameAppsAppUuidPutRequest(release SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) *SourceControlManifestsManifestNameAppsAppUuidPutRequest { + this := SourceControlManifestsManifestNameAppsAppUuidPutRequest{} + this.Release = release + return &this +} + +// NewSourceControlManifestsManifestNameAppsAppUuidPutRequestWithDefaults instantiates a new SourceControlManifestsManifestNameAppsAppUuidPutRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNameAppsAppUuidPutRequestWithDefaults() *SourceControlManifestsManifestNameAppsAppUuidPutRequest { + this := SourceControlManifestsManifestNameAppsAppUuidPutRequest{} + return &this +} + +// GetRelease returns the Release field value +func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) GetRelease() SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease { + if o == nil { + var ret SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease + return ret + } + + return o.Release +} + +// GetReleaseOk returns a tuple with the Release field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) GetReleaseOk() (*SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease, bool) { + if o == nil { + return nil, false + } + return &o.Release, true +} + +// SetRelease sets field value +func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) SetRelease(v SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) { + o.Release = v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) GetCommitMessage() string { + if o == nil || IsNil(o.CommitMessage) { + var ret string + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) GetCommitMessageOk() (*string, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field. +func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) SetCommitMessage(v string) { + o.CommitMessage = &v +} + +func (o SourceControlManifestsManifestNameAppsAppUuidPutRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNameAppsAppUuidPutRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["release"] = o.Release + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNameAppsAppUuidPutRequest) 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{ + "release", + } + + 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) + } + } + + varSourceControlManifestsManifestNameAppsAppUuidPutRequest := _SourceControlManifestsManifestNameAppsAppUuidPutRequest{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNameAppsAppUuidPutRequest) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNameAppsAppUuidPutRequest(varSourceControlManifestsManifestNameAppsAppUuidPutRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "release") + delete(additionalProperties, "commit_message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest struct { + value *SourceControlManifestsManifestNameAppsAppUuidPutRequest + isSet bool +} + +func (v NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest) Get() *SourceControlManifestsManifestNameAppsAppUuidPutRequest { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest) Set(val *SourceControlManifestsManifestNameAppsAppUuidPutRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNameAppsAppUuidPutRequest(val *SourceControlManifestsManifestNameAppsAppUuidPutRequest) *NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest { + return &NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNameAppsAppUuidPutRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__apps__app_uuid__put_request_release.go b/internal/sdk/api/model__source_control_manifests__manifest_name__apps__app_uuid__put_request_release.go new file mode 100644 index 0000000..fa581f5 --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__apps__app_uuid__put_request_release.go @@ -0,0 +1,87 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease The release version to set for the specified app in the named release manifest +type SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease struct { + value *SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease + isSet bool +} + +func (v NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) Get() *SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) Set(val *SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease(val *SourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) *NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease { + return &NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNameAppsAppUuidPutRequestRelease) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__delete_post_request.go b/internal/sdk/api/model__source_control_manifests__manifest_name__delete_post_request.go new file mode 100644 index 0000000..7d03194 --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__delete_post_request.go @@ -0,0 +1,156 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the SourceControlManifestsManifestNameDeletePostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNameDeletePostRequest{} + +// SourceControlManifestsManifestNameDeletePostRequest struct for SourceControlManifestsManifestNameDeletePostRequest +type SourceControlManifestsManifestNameDeletePostRequest struct { + // Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used. + CommitMessage *string `json:"commit_message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNameDeletePostRequest SourceControlManifestsManifestNameDeletePostRequest + +// NewSourceControlManifestsManifestNameDeletePostRequest instantiates a new SourceControlManifestsManifestNameDeletePostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNameDeletePostRequest() *SourceControlManifestsManifestNameDeletePostRequest { + this := SourceControlManifestsManifestNameDeletePostRequest{} + return &this +} + +// NewSourceControlManifestsManifestNameDeletePostRequestWithDefaults instantiates a new SourceControlManifestsManifestNameDeletePostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNameDeletePostRequestWithDefaults() *SourceControlManifestsManifestNameDeletePostRequest { + this := SourceControlManifestsManifestNameDeletePostRequest{} + return &this +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *SourceControlManifestsManifestNameDeletePostRequest) GetCommitMessage() string { + if o == nil || IsNil(o.CommitMessage) { + var ret string + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameDeletePostRequest) GetCommitMessageOk() (*string, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *SourceControlManifestsManifestNameDeletePostRequest) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field. +func (o *SourceControlManifestsManifestNameDeletePostRequest) SetCommitMessage(v string) { + o.CommitMessage = &v +} + +func (o SourceControlManifestsManifestNameDeletePostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNameDeletePostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNameDeletePostRequest) UnmarshalJSON(data []byte) (err error) { + varSourceControlManifestsManifestNameDeletePostRequest := _SourceControlManifestsManifestNameDeletePostRequest{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNameDeletePostRequest) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNameDeletePostRequest(varSourceControlManifestsManifestNameDeletePostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "commit_message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNameDeletePostRequest struct { + value *SourceControlManifestsManifestNameDeletePostRequest + isSet bool +} + +func (v NullableSourceControlManifestsManifestNameDeletePostRequest) Get() *SourceControlManifestsManifestNameDeletePostRequest { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNameDeletePostRequest) Set(val *SourceControlManifestsManifestNameDeletePostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNameDeletePostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNameDeletePostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNameDeletePostRequest(val *SourceControlManifestsManifestNameDeletePostRequest) *NullableSourceControlManifestsManifestNameDeletePostRequest { + return &NullableSourceControlManifestsManifestNameDeletePostRequest{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNameDeletePostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNameDeletePostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response.go b/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response.go new file mode 100644 index 0000000..47eb6b4 --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsManifestNameGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNameGet200Response{} + +// SourceControlManifestsManifestNameGet200Response struct for SourceControlManifestsManifestNameGet200Response +type SourceControlManifestsManifestNameGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data SourceControlManifestsManifestNameGet200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNameGet200Response SourceControlManifestsManifestNameGet200Response + +// NewSourceControlManifestsManifestNameGet200Response instantiates a new SourceControlManifestsManifestNameGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNameGet200Response(success bool, data SourceControlManifestsManifestNameGet200ResponseData) *SourceControlManifestsManifestNameGet200Response { + this := SourceControlManifestsManifestNameGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewSourceControlManifestsManifestNameGet200ResponseWithDefaults instantiates a new SourceControlManifestsManifestNameGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNameGet200ResponseWithDefaults() *SourceControlManifestsManifestNameGet200Response { + this := SourceControlManifestsManifestNameGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *SourceControlManifestsManifestNameGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *SourceControlManifestsManifestNameGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *SourceControlManifestsManifestNameGet200Response) GetData() SourceControlManifestsManifestNameGet200ResponseData { + if o == nil { + var ret SourceControlManifestsManifestNameGet200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameGet200Response) GetDataOk() (*SourceControlManifestsManifestNameGet200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SourceControlManifestsManifestNameGet200Response) SetData(v SourceControlManifestsManifestNameGet200ResponseData) { + o.Data = v +} + +func (o SourceControlManifestsManifestNameGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNameGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNameGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varSourceControlManifestsManifestNameGet200Response := _SourceControlManifestsManifestNameGet200Response{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNameGet200Response) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNameGet200Response(varSourceControlManifestsManifestNameGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNameGet200Response struct { + value *SourceControlManifestsManifestNameGet200Response + isSet bool +} + +func (v NullableSourceControlManifestsManifestNameGet200Response) Get() *SourceControlManifestsManifestNameGet200Response { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNameGet200Response) Set(val *SourceControlManifestsManifestNameGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNameGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNameGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNameGet200Response(val *SourceControlManifestsManifestNameGet200Response) *NullableSourceControlManifestsManifestNameGet200Response { + return &NullableSourceControlManifestsManifestNameGet200Response{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNameGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNameGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response_data.go b/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response_data.go new file mode 100644 index 0000000..2f4acd4 --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response_data.go @@ -0,0 +1,168 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsManifestNameGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNameGet200ResponseData{} + +// SourceControlManifestsManifestNameGet200ResponseData struct for SourceControlManifestsManifestNameGet200ResponseData +type SourceControlManifestsManifestNameGet200ResponseData struct { + Manifest SourceControlManifestsManifestNameGet200ResponseDataManifest `json:"manifest"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNameGet200ResponseData SourceControlManifestsManifestNameGet200ResponseData + +// NewSourceControlManifestsManifestNameGet200ResponseData instantiates a new SourceControlManifestsManifestNameGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNameGet200ResponseData(manifest SourceControlManifestsManifestNameGet200ResponseDataManifest) *SourceControlManifestsManifestNameGet200ResponseData { + this := SourceControlManifestsManifestNameGet200ResponseData{} + this.Manifest = manifest + return &this +} + +// NewSourceControlManifestsManifestNameGet200ResponseDataWithDefaults instantiates a new SourceControlManifestsManifestNameGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNameGet200ResponseDataWithDefaults() *SourceControlManifestsManifestNameGet200ResponseData { + this := SourceControlManifestsManifestNameGet200ResponseData{} + return &this +} + +// GetManifest returns the Manifest field value +func (o *SourceControlManifestsManifestNameGet200ResponseData) GetManifest() SourceControlManifestsManifestNameGet200ResponseDataManifest { + if o == nil { + var ret SourceControlManifestsManifestNameGet200ResponseDataManifest + return ret + } + + return o.Manifest +} + +// GetManifestOk returns a tuple with the Manifest field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameGet200ResponseData) GetManifestOk() (*SourceControlManifestsManifestNameGet200ResponseDataManifest, bool) { + if o == nil { + return nil, false + } + return &o.Manifest, true +} + +// SetManifest sets field value +func (o *SourceControlManifestsManifestNameGet200ResponseData) SetManifest(v SourceControlManifestsManifestNameGet200ResponseDataManifest) { + o.Manifest = v +} + +func (o SourceControlManifestsManifestNameGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNameGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manifest"] = o.Manifest + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNameGet200ResponseData) 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{ + "manifest", + } + + 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) + } + } + + varSourceControlManifestsManifestNameGet200ResponseData := _SourceControlManifestsManifestNameGet200ResponseData{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNameGet200ResponseData) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNameGet200ResponseData(varSourceControlManifestsManifestNameGet200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manifest") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNameGet200ResponseData struct { + value *SourceControlManifestsManifestNameGet200ResponseData + isSet bool +} + +func (v NullableSourceControlManifestsManifestNameGet200ResponseData) Get() *SourceControlManifestsManifestNameGet200ResponseData { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNameGet200ResponseData) Set(val *SourceControlManifestsManifestNameGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNameGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNameGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNameGet200ResponseData(val *SourceControlManifestsManifestNameGet200ResponseData) *NullableSourceControlManifestsManifestNameGet200ResponseData { + return &NullableSourceControlManifestsManifestNameGet200ResponseData{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNameGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNameGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response_data_manifest.go b/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response_data_manifest.go new file mode 100644 index 0000000..611ed93 --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__get_200_response_data_manifest.go @@ -0,0 +1,242 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsManifestNameGet200ResponseDataManifest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNameGet200ResponseDataManifest{} + +// SourceControlManifestsManifestNameGet200ResponseDataManifest The specified release manifest +type SourceControlManifestsManifestNameGet200ResponseDataManifest struct { + Name string `json:"name"` + Apps []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner `json:"apps,omitempty"` + Workflows []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner `json:"workflows,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNameGet200ResponseDataManifest SourceControlManifestsManifestNameGet200ResponseDataManifest + +// NewSourceControlManifestsManifestNameGet200ResponseDataManifest instantiates a new SourceControlManifestsManifestNameGet200ResponseDataManifest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNameGet200ResponseDataManifest(name string) *SourceControlManifestsManifestNameGet200ResponseDataManifest { + this := SourceControlManifestsManifestNameGet200ResponseDataManifest{} + this.Name = name + return &this +} + +// NewSourceControlManifestsManifestNameGet200ResponseDataManifestWithDefaults instantiates a new SourceControlManifestsManifestNameGet200ResponseDataManifest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNameGet200ResponseDataManifestWithDefaults() *SourceControlManifestsManifestNameGet200ResponseDataManifest { + this := SourceControlManifestsManifestNameGet200ResponseDataManifest{} + return &this +} + +// GetName returns the Name field value +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) SetName(v string) { + o.Name = v +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetApps() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + if o == nil || IsNil(o.Apps) { + var ret []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + return ret + } + return o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetAppsOk() ([]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner and assigns it to the Apps field. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) SetApps(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) { + o.Apps = v +} + +// GetWorkflows returns the Workflows field value if set, zero value otherwise. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetWorkflows() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + if o == nil || IsNil(o.Workflows) { + var ret []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + return ret + } + return o.Workflows +} + +// GetWorkflowsOk returns a tuple with the Workflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) GetWorkflowsOk() ([]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool) { + if o == nil || IsNil(o.Workflows) { + return nil, false + } + return o.Workflows, true +} + +// HasWorkflows returns a boolean if a field has been set. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) HasWorkflows() bool { + if o != nil && !IsNil(o.Workflows) { + return true + } + + return false +} + +// SetWorkflows gets a reference to the given []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner and assigns it to the Workflows field. +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) SetWorkflows(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) { + o.Workflows = v +} + +func (o SourceControlManifestsManifestNameGet200ResponseDataManifest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNameGet200ResponseDataManifest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.Workflows) { + toSerialize["workflows"] = o.Workflows + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNameGet200ResponseDataManifest) 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) + } + } + + varSourceControlManifestsManifestNameGet200ResponseDataManifest := _SourceControlManifestsManifestNameGet200ResponseDataManifest{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNameGet200ResponseDataManifest) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNameGet200ResponseDataManifest(varSourceControlManifestsManifestNameGet200ResponseDataManifest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "apps") + delete(additionalProperties, "workflows") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNameGet200ResponseDataManifest struct { + value *SourceControlManifestsManifestNameGet200ResponseDataManifest + isSet bool +} + +func (v NullableSourceControlManifestsManifestNameGet200ResponseDataManifest) Get() *SourceControlManifestsManifestNameGet200ResponseDataManifest { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNameGet200ResponseDataManifest) Set(val *SourceControlManifestsManifestNameGet200ResponseDataManifest) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNameGet200ResponseDataManifest) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNameGet200ResponseDataManifest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNameGet200ResponseDataManifest(val *SourceControlManifestsManifestNameGet200ResponseDataManifest) *NullableSourceControlManifestsManifestNameGet200ResponseDataManifest { + return &NullableSourceControlManifestsManifestNameGet200ResponseDataManifest{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNameGet200ResponseDataManifest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNameGet200ResponseDataManifest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__put_200_response.go b/internal/sdk/api/model__source_control_manifests__manifest_name__put_200_response.go new file mode 100644 index 0000000..857c94a --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__put_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsManifestNamePut200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNamePut200Response{} + +// SourceControlManifestsManifestNamePut200Response struct for SourceControlManifestsManifestNamePut200Response +type SourceControlManifestsManifestNamePut200Response struct { + // API request succeeded + Success bool `json:"success"` + Data SourceControlManifestsManifestNamePut200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNamePut200Response SourceControlManifestsManifestNamePut200Response + +// NewSourceControlManifestsManifestNamePut200Response instantiates a new SourceControlManifestsManifestNamePut200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNamePut200Response(success bool, data SourceControlManifestsManifestNamePut200ResponseData) *SourceControlManifestsManifestNamePut200Response { + this := SourceControlManifestsManifestNamePut200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewSourceControlManifestsManifestNamePut200ResponseWithDefaults instantiates a new SourceControlManifestsManifestNamePut200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNamePut200ResponseWithDefaults() *SourceControlManifestsManifestNamePut200Response { + this := SourceControlManifestsManifestNamePut200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *SourceControlManifestsManifestNamePut200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNamePut200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *SourceControlManifestsManifestNamePut200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *SourceControlManifestsManifestNamePut200Response) GetData() SourceControlManifestsManifestNamePut200ResponseData { + if o == nil { + var ret SourceControlManifestsManifestNamePut200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNamePut200Response) GetDataOk() (*SourceControlManifestsManifestNamePut200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SourceControlManifestsManifestNamePut200Response) SetData(v SourceControlManifestsManifestNamePut200ResponseData) { + o.Data = v +} + +func (o SourceControlManifestsManifestNamePut200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNamePut200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNamePut200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varSourceControlManifestsManifestNamePut200Response := _SourceControlManifestsManifestNamePut200Response{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNamePut200Response) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNamePut200Response(varSourceControlManifestsManifestNamePut200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNamePut200Response struct { + value *SourceControlManifestsManifestNamePut200Response + isSet bool +} + +func (v NullableSourceControlManifestsManifestNamePut200Response) Get() *SourceControlManifestsManifestNamePut200Response { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNamePut200Response) Set(val *SourceControlManifestsManifestNamePut200Response) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNamePut200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNamePut200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNamePut200Response(val *SourceControlManifestsManifestNamePut200Response) *NullableSourceControlManifestsManifestNamePut200Response { + return &NullableSourceControlManifestsManifestNamePut200Response{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNamePut200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNamePut200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__put_200_response_data.go b/internal/sdk/api/model__source_control_manifests__manifest_name__put_200_response_data.go new file mode 100644 index 0000000..fcd2df8 --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__put_200_response_data.go @@ -0,0 +1,229 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsManifestNamePut200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNamePut200ResponseData{} + +// SourceControlManifestsManifestNamePut200ResponseData struct for SourceControlManifestsManifestNamePut200ResponseData +type SourceControlManifestsManifestNamePut200ResponseData struct { + // The SHA1 hash for the git commit that the created branch points to + CommitSha string `json:"commit_sha"` + // A URL to create a pull/merge request to merge the created branch into the default branch + Url string `json:"url"` + // The name for the created branch + BranchName string `json:"branch_name"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNamePut200ResponseData SourceControlManifestsManifestNamePut200ResponseData + +// NewSourceControlManifestsManifestNamePut200ResponseData instantiates a new SourceControlManifestsManifestNamePut200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNamePut200ResponseData(commitSha string, url string, branchName string) *SourceControlManifestsManifestNamePut200ResponseData { + this := SourceControlManifestsManifestNamePut200ResponseData{} + this.CommitSha = commitSha + this.Url = url + this.BranchName = branchName + return &this +} + +// NewSourceControlManifestsManifestNamePut200ResponseDataWithDefaults instantiates a new SourceControlManifestsManifestNamePut200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNamePut200ResponseDataWithDefaults() *SourceControlManifestsManifestNamePut200ResponseData { + this := SourceControlManifestsManifestNamePut200ResponseData{} + return &this +} + +// GetCommitSha returns the CommitSha field value +func (o *SourceControlManifestsManifestNamePut200ResponseData) GetCommitSha() string { + if o == nil { + var ret string + return ret + } + + return o.CommitSha +} + +// GetCommitShaOk returns a tuple with the CommitSha field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNamePut200ResponseData) GetCommitShaOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommitSha, true +} + +// SetCommitSha sets field value +func (o *SourceControlManifestsManifestNamePut200ResponseData) SetCommitSha(v string) { + o.CommitSha = v +} + +// GetUrl returns the Url field value +func (o *SourceControlManifestsManifestNamePut200ResponseData) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNamePut200ResponseData) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *SourceControlManifestsManifestNamePut200ResponseData) SetUrl(v string) { + o.Url = v +} + +// GetBranchName returns the BranchName field value +func (o *SourceControlManifestsManifestNamePut200ResponseData) GetBranchName() string { + if o == nil { + var ret string + return ret + } + + return o.BranchName +} + +// GetBranchNameOk returns a tuple with the BranchName field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNamePut200ResponseData) GetBranchNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BranchName, true +} + +// SetBranchName sets field value +func (o *SourceControlManifestsManifestNamePut200ResponseData) SetBranchName(v string) { + o.BranchName = v +} + +func (o SourceControlManifestsManifestNamePut200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNamePut200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["commit_sha"] = o.CommitSha + toSerialize["url"] = o.Url + toSerialize["branch_name"] = o.BranchName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNamePut200ResponseData) 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{ + "commit_sha", + "url", + "branch_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) + } + } + + varSourceControlManifestsManifestNamePut200ResponseData := _SourceControlManifestsManifestNamePut200ResponseData{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNamePut200ResponseData) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNamePut200ResponseData(varSourceControlManifestsManifestNamePut200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "commit_sha") + delete(additionalProperties, "url") + delete(additionalProperties, "branch_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNamePut200ResponseData struct { + value *SourceControlManifestsManifestNamePut200ResponseData + isSet bool +} + +func (v NullableSourceControlManifestsManifestNamePut200ResponseData) Get() *SourceControlManifestsManifestNamePut200ResponseData { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNamePut200ResponseData) Set(val *SourceControlManifestsManifestNamePut200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNamePut200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNamePut200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNamePut200ResponseData(val *SourceControlManifestsManifestNamePut200ResponseData) *NullableSourceControlManifestsManifestNamePut200ResponseData { + return &NullableSourceControlManifestsManifestNamePut200ResponseData{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNamePut200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNamePut200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__put_request.go b/internal/sdk/api/model__source_control_manifests__manifest_name__put_request.go new file mode 100644 index 0000000..668686f --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__put_request.go @@ -0,0 +1,193 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the SourceControlManifestsManifestNamePutRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNamePutRequest{} + +// SourceControlManifestsManifestNamePutRequest struct for SourceControlManifestsManifestNamePutRequest +type SourceControlManifestsManifestNamePutRequest struct { + Manifest *SourceControlManifestsManifestNamePutRequestManifest `json:"manifest,omitempty"` + // Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used. + CommitMessage *string `json:"commit_message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNamePutRequest SourceControlManifestsManifestNamePutRequest + +// NewSourceControlManifestsManifestNamePutRequest instantiates a new SourceControlManifestsManifestNamePutRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNamePutRequest() *SourceControlManifestsManifestNamePutRequest { + this := SourceControlManifestsManifestNamePutRequest{} + return &this +} + +// NewSourceControlManifestsManifestNamePutRequestWithDefaults instantiates a new SourceControlManifestsManifestNamePutRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNamePutRequestWithDefaults() *SourceControlManifestsManifestNamePutRequest { + this := SourceControlManifestsManifestNamePutRequest{} + return &this +} + +// GetManifest returns the Manifest field value if set, zero value otherwise. +func (o *SourceControlManifestsManifestNamePutRequest) GetManifest() SourceControlManifestsManifestNamePutRequestManifest { + if o == nil || IsNil(o.Manifest) { + var ret SourceControlManifestsManifestNamePutRequestManifest + return ret + } + return *o.Manifest +} + +// GetManifestOk returns a tuple with the Manifest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNamePutRequest) GetManifestOk() (*SourceControlManifestsManifestNamePutRequestManifest, bool) { + if o == nil || IsNil(o.Manifest) { + return nil, false + } + return o.Manifest, true +} + +// HasManifest returns a boolean if a field has been set. +func (o *SourceControlManifestsManifestNamePutRequest) HasManifest() bool { + if o != nil && !IsNil(o.Manifest) { + return true + } + + return false +} + +// SetManifest gets a reference to the given SourceControlManifestsManifestNamePutRequestManifest and assigns it to the Manifest field. +func (o *SourceControlManifestsManifestNamePutRequest) SetManifest(v SourceControlManifestsManifestNamePutRequestManifest) { + o.Manifest = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *SourceControlManifestsManifestNamePutRequest) GetCommitMessage() string { + if o == nil || IsNil(o.CommitMessage) { + var ret string + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNamePutRequest) GetCommitMessageOk() (*string, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *SourceControlManifestsManifestNamePutRequest) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field. +func (o *SourceControlManifestsManifestNamePutRequest) SetCommitMessage(v string) { + o.CommitMessage = &v +} + +func (o SourceControlManifestsManifestNamePutRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNamePutRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Manifest) { + toSerialize["manifest"] = o.Manifest + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNamePutRequest) UnmarshalJSON(data []byte) (err error) { + varSourceControlManifestsManifestNamePutRequest := _SourceControlManifestsManifestNamePutRequest{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNamePutRequest) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNamePutRequest(varSourceControlManifestsManifestNamePutRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manifest") + delete(additionalProperties, "commit_message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNamePutRequest struct { + value *SourceControlManifestsManifestNamePutRequest + isSet bool +} + +func (v NullableSourceControlManifestsManifestNamePutRequest) Get() *SourceControlManifestsManifestNamePutRequest { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNamePutRequest) Set(val *SourceControlManifestsManifestNamePutRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNamePutRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNamePutRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNamePutRequest(val *SourceControlManifestsManifestNamePutRequest) *NullableSourceControlManifestsManifestNamePutRequest { + return &NullableSourceControlManifestsManifestNamePutRequest{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNamePutRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNamePutRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests__manifest_name__put_request_manifest.go b/internal/sdk/api/model__source_control_manifests__manifest_name__put_request_manifest.go new file mode 100644 index 0000000..9384d5b --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests__manifest_name__put_request_manifest.go @@ -0,0 +1,155 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the SourceControlManifestsManifestNamePutRequestManifest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsManifestNamePutRequestManifest{} + +// SourceControlManifestsManifestNamePutRequestManifest A list of source controlled elements and the corresponding version to publish for that element +type SourceControlManifestsManifestNamePutRequestManifest struct { + Apps []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner `json:"apps,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsManifestNamePutRequestManifest SourceControlManifestsManifestNamePutRequestManifest + +// NewSourceControlManifestsManifestNamePutRequestManifest instantiates a new SourceControlManifestsManifestNamePutRequestManifest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsManifestNamePutRequestManifest() *SourceControlManifestsManifestNamePutRequestManifest { + this := SourceControlManifestsManifestNamePutRequestManifest{} + return &this +} + +// NewSourceControlManifestsManifestNamePutRequestManifestWithDefaults instantiates a new SourceControlManifestsManifestNamePutRequestManifest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsManifestNamePutRequestManifestWithDefaults() *SourceControlManifestsManifestNamePutRequestManifest { + this := SourceControlManifestsManifestNamePutRequestManifest{} + return &this +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *SourceControlManifestsManifestNamePutRequestManifest) GetApps() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + if o == nil || IsNil(o.Apps) { + var ret []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + return ret + } + return o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsManifestNamePutRequestManifest) GetAppsOk() ([]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *SourceControlManifestsManifestNamePutRequestManifest) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner and assigns it to the Apps field. +func (o *SourceControlManifestsManifestNamePutRequestManifest) SetApps(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) { + o.Apps = v +} + +func (o SourceControlManifestsManifestNamePutRequestManifest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsManifestNamePutRequestManifest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsManifestNamePutRequestManifest) UnmarshalJSON(data []byte) (err error) { + varSourceControlManifestsManifestNamePutRequestManifest := _SourceControlManifestsManifestNamePutRequestManifest{} + + err = json.Unmarshal(data, &varSourceControlManifestsManifestNamePutRequestManifest) + + if err != nil { + return err + } + + *o = SourceControlManifestsManifestNamePutRequestManifest(varSourceControlManifestsManifestNamePutRequestManifest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "apps") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsManifestNamePutRequestManifest struct { + value *SourceControlManifestsManifestNamePutRequestManifest + isSet bool +} + +func (v NullableSourceControlManifestsManifestNamePutRequestManifest) Get() *SourceControlManifestsManifestNamePutRequestManifest { + return v.value +} + +func (v *NullableSourceControlManifestsManifestNamePutRequestManifest) Set(val *SourceControlManifestsManifestNamePutRequestManifest) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsManifestNamePutRequestManifest) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsManifestNamePutRequestManifest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsManifestNamePutRequestManifest(val *SourceControlManifestsManifestNamePutRequestManifest) *NullableSourceControlManifestsManifestNamePutRequestManifest { + return &NullableSourceControlManifestsManifestNamePutRequestManifest{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsManifestNamePutRequestManifest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsManifestNamePutRequestManifest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests_get_200_response.go b/internal/sdk/api/model__source_control_manifests_get_200_response.go new file mode 100644 index 0000000..6ab86aa --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests_get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsGet200Response{} + +// SourceControlManifestsGet200Response struct for SourceControlManifestsGet200Response +type SourceControlManifestsGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data SourceControlManifestsGet200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsGet200Response SourceControlManifestsGet200Response + +// NewSourceControlManifestsGet200Response instantiates a new SourceControlManifestsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsGet200Response(success bool, data SourceControlManifestsGet200ResponseData) *SourceControlManifestsGet200Response { + this := SourceControlManifestsGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewSourceControlManifestsGet200ResponseWithDefaults instantiates a new SourceControlManifestsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsGet200ResponseWithDefaults() *SourceControlManifestsGet200Response { + this := SourceControlManifestsGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *SourceControlManifestsGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *SourceControlManifestsGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *SourceControlManifestsGet200Response) GetData() SourceControlManifestsGet200ResponseData { + if o == nil { + var ret SourceControlManifestsGet200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsGet200Response) GetDataOk() (*SourceControlManifestsGet200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *SourceControlManifestsGet200Response) SetData(v SourceControlManifestsGet200ResponseData) { + o.Data = v +} + +func (o SourceControlManifestsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varSourceControlManifestsGet200Response := _SourceControlManifestsGet200Response{} + + err = json.Unmarshal(data, &varSourceControlManifestsGet200Response) + + if err != nil { + return err + } + + *o = SourceControlManifestsGet200Response(varSourceControlManifestsGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsGet200Response struct { + value *SourceControlManifestsGet200Response + isSet bool +} + +func (v NullableSourceControlManifestsGet200Response) Get() *SourceControlManifestsGet200Response { + return v.value +} + +func (v *NullableSourceControlManifestsGet200Response) Set(val *SourceControlManifestsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsGet200Response(val *SourceControlManifestsGet200Response) *NullableSourceControlManifestsGet200Response { + return &NullableSourceControlManifestsGet200Response{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests_get_200_response_data.go b/internal/sdk/api/model__source_control_manifests_get_200_response_data.go new file mode 100644 index 0000000..45264e2 --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests_get_200_response_data.go @@ -0,0 +1,169 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsGet200ResponseData{} + +// SourceControlManifestsGet200ResponseData struct for SourceControlManifestsGet200ResponseData +type SourceControlManifestsGet200ResponseData struct { + // Array of release manifests + Manifests []SourceControlManifestsGet200ResponseDataManifestsInner `json:"manifests"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsGet200ResponseData SourceControlManifestsGet200ResponseData + +// NewSourceControlManifestsGet200ResponseData instantiates a new SourceControlManifestsGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsGet200ResponseData(manifests []SourceControlManifestsGet200ResponseDataManifestsInner) *SourceControlManifestsGet200ResponseData { + this := SourceControlManifestsGet200ResponseData{} + this.Manifests = manifests + return &this +} + +// NewSourceControlManifestsGet200ResponseDataWithDefaults instantiates a new SourceControlManifestsGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsGet200ResponseDataWithDefaults() *SourceControlManifestsGet200ResponseData { + this := SourceControlManifestsGet200ResponseData{} + return &this +} + +// GetManifests returns the Manifests field value +func (o *SourceControlManifestsGet200ResponseData) GetManifests() []SourceControlManifestsGet200ResponseDataManifestsInner { + if o == nil { + var ret []SourceControlManifestsGet200ResponseDataManifestsInner + return ret + } + + return o.Manifests +} + +// GetManifestsOk returns a tuple with the Manifests field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsGet200ResponseData) GetManifestsOk() ([]SourceControlManifestsGet200ResponseDataManifestsInner, bool) { + if o == nil { + return nil, false + } + return o.Manifests, true +} + +// SetManifests sets field value +func (o *SourceControlManifestsGet200ResponseData) SetManifests(v []SourceControlManifestsGet200ResponseDataManifestsInner) { + o.Manifests = v +} + +func (o SourceControlManifestsGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manifests"] = o.Manifests + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsGet200ResponseData) 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{ + "manifests", + } + + 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) + } + } + + varSourceControlManifestsGet200ResponseData := _SourceControlManifestsGet200ResponseData{} + + err = json.Unmarshal(data, &varSourceControlManifestsGet200ResponseData) + + if err != nil { + return err + } + + *o = SourceControlManifestsGet200ResponseData(varSourceControlManifestsGet200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manifests") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsGet200ResponseData struct { + value *SourceControlManifestsGet200ResponseData + isSet bool +} + +func (v NullableSourceControlManifestsGet200ResponseData) Get() *SourceControlManifestsGet200ResponseData { + return v.value +} + +func (v *NullableSourceControlManifestsGet200ResponseData) Set(val *SourceControlManifestsGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsGet200ResponseData(val *SourceControlManifestsGet200ResponseData) *NullableSourceControlManifestsGet200ResponseData { + return &NullableSourceControlManifestsGet200ResponseData{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner.go b/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner.go new file mode 100644 index 0000000..bd6fc2e --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner.go @@ -0,0 +1,242 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsGet200ResponseDataManifestsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsGet200ResponseDataManifestsInner{} + +// SourceControlManifestsGet200ResponseDataManifestsInner struct for SourceControlManifestsGet200ResponseDataManifestsInner +type SourceControlManifestsGet200ResponseDataManifestsInner struct { + Name string `json:"name"` + Apps []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner `json:"apps,omitempty"` + Workflows []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner `json:"workflows,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsGet200ResponseDataManifestsInner SourceControlManifestsGet200ResponseDataManifestsInner + +// NewSourceControlManifestsGet200ResponseDataManifestsInner instantiates a new SourceControlManifestsGet200ResponseDataManifestsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsGet200ResponseDataManifestsInner(name string) *SourceControlManifestsGet200ResponseDataManifestsInner { + this := SourceControlManifestsGet200ResponseDataManifestsInner{} + this.Name = name + return &this +} + +// NewSourceControlManifestsGet200ResponseDataManifestsInnerWithDefaults instantiates a new SourceControlManifestsGet200ResponseDataManifestsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsGet200ResponseDataManifestsInnerWithDefaults() *SourceControlManifestsGet200ResponseDataManifestsInner { + this := SourceControlManifestsGet200ResponseDataManifestsInner{} + return &this +} + +// GetName returns the Name field value +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) SetName(v string) { + o.Name = v +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetApps() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + if o == nil || IsNil(o.Apps) { + var ret []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + return ret + } + return o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetAppsOk() ([]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner and assigns it to the Apps field. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) SetApps(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) { + o.Apps = v +} + +// GetWorkflows returns the Workflows field value if set, zero value otherwise. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetWorkflows() []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + if o == nil || IsNil(o.Workflows) { + var ret []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + return ret + } + return o.Workflows +} + +// GetWorkflowsOk returns a tuple with the Workflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) GetWorkflowsOk() ([]SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner, bool) { + if o == nil || IsNil(o.Workflows) { + return nil, false + } + return o.Workflows, true +} + +// HasWorkflows returns a boolean if a field has been set. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) HasWorkflows() bool { + if o != nil && !IsNil(o.Workflows) { + return true + } + + return false +} + +// SetWorkflows gets a reference to the given []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner and assigns it to the Workflows field. +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) SetWorkflows(v []SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) { + o.Workflows = v +} + +func (o SourceControlManifestsGet200ResponseDataManifestsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsGet200ResponseDataManifestsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.Workflows) { + toSerialize["workflows"] = o.Workflows + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsGet200ResponseDataManifestsInner) 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) + } + } + + varSourceControlManifestsGet200ResponseDataManifestsInner := _SourceControlManifestsGet200ResponseDataManifestsInner{} + + err = json.Unmarshal(data, &varSourceControlManifestsGet200ResponseDataManifestsInner) + + if err != nil { + return err + } + + *o = SourceControlManifestsGet200ResponseDataManifestsInner(varSourceControlManifestsGet200ResponseDataManifestsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "apps") + delete(additionalProperties, "workflows") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsGet200ResponseDataManifestsInner struct { + value *SourceControlManifestsGet200ResponseDataManifestsInner + isSet bool +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInner) Get() *SourceControlManifestsGet200ResponseDataManifestsInner { + return v.value +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInner) Set(val *SourceControlManifestsGet200ResponseDataManifestsInner) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsGet200ResponseDataManifestsInner(val *SourceControlManifestsGet200ResponseDataManifestsInner) *NullableSourceControlManifestsGet200ResponseDataManifestsInner { + return &NullableSourceControlManifestsGet200ResponseDataManifestsInner{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner_apps_inner.go b/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner_apps_inner.go new file mode 100644 index 0000000..2cec021 --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner_apps_inner.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner{} + +// SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner struct for SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner +type SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner struct { + Uuid string `json:"uuid"` + Release SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease `json:"release"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + +// NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner instantiates a new SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner(uuid string, release SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + this := SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner{} + this.Uuid = uuid + this.Release = release + return &this +} + +// NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerWithDefaults instantiates a new SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerWithDefaults() *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + this := SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner{} + return &this +} + +// GetUuid returns the Uuid field value +func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) GetUuid() string { + if o == nil { + var ret string + return ret + } + + return o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) GetUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uuid, true +} + +// SetUuid sets field value +func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) SetUuid(v string) { + o.Uuid = v +} + +// GetRelease returns the Release field value +func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) GetRelease() SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease { + if o == nil { + var ret SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease + return ret + } + + return o.Release +} + +// GetReleaseOk returns a tuple with the Release field value +// and a boolean to check if the value has been set. +func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) GetReleaseOk() (*SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease, bool) { + if o == nil { + return nil, false + } + return &o.Release, true +} + +// SetRelease sets field value +func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) SetRelease(v SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) { + o.Release = v +} + +func (o SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["uuid"] = o.Uuid + toSerialize["release"] = o.Release + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) 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{ + "uuid", + "release", + } + + 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) + } + } + + varSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner := _SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner{} + + err = json.Unmarshal(data, &varSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) + + if err != nil { + return err + } + + *o = SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner(varSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "release") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner struct { + value *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner + isSet bool +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) Get() *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + return v.value +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) Set(val *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner(val *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) *NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner { + return &NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release.go b/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release.go new file mode 100644 index 0000000..da4cd6b --- /dev/null +++ b/internal/sdk/api/model__source_control_manifests_get_200_response_data_manifests_inner_apps_inner_release.go @@ -0,0 +1,87 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease struct for SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease +type SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease struct { + string *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.string); + if err == nil { + jsonstring, _ := json.Marshal(dst.string) + if string(jsonstring) == "{}" { // empty struct + dst.string = nil + } else { + return nil // data stored in dst.string, return on the first match + } + } else { + dst.string = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) MarshalJSON() ([]byte, error) { + if src.string != nil { + return json.Marshal(src.string) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease struct { + value *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease + isSet bool +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) Get() *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease { + return v.value +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) Set(val *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease(val *SourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) *NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease { + return &NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease{value: val, isSet: true} +} + +func (v NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlManifestsGet200ResponseDataManifestsInnerAppsInnerRelease) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_releases_apps__app_uuid__get_200_response.go b/internal/sdk/api/model__source_control_releases_apps__app_uuid__get_200_response.go new file mode 100644 index 0000000..6baa246 --- /dev/null +++ b/internal/sdk/api/model__source_control_releases_apps__app_uuid__get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlReleasesAppsAppUuidGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlReleasesAppsAppUuidGet200Response{} + +// SourceControlReleasesAppsAppUuidGet200Response struct for SourceControlReleasesAppsAppUuidGet200Response +type SourceControlReleasesAppsAppUuidGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data []SourceControlReleasesAppsAppUuidGet200ResponseDataInner `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlReleasesAppsAppUuidGet200Response SourceControlReleasesAppsAppUuidGet200Response + +// NewSourceControlReleasesAppsAppUuidGet200Response instantiates a new SourceControlReleasesAppsAppUuidGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlReleasesAppsAppUuidGet200Response(success bool, data []SourceControlReleasesAppsAppUuidGet200ResponseDataInner) *SourceControlReleasesAppsAppUuidGet200Response { + this := SourceControlReleasesAppsAppUuidGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewSourceControlReleasesAppsAppUuidGet200ResponseWithDefaults instantiates a new SourceControlReleasesAppsAppUuidGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlReleasesAppsAppUuidGet200ResponseWithDefaults() *SourceControlReleasesAppsAppUuidGet200Response { + this := SourceControlReleasesAppsAppUuidGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *SourceControlReleasesAppsAppUuidGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *SourceControlReleasesAppsAppUuidGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *SourceControlReleasesAppsAppUuidGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *SourceControlReleasesAppsAppUuidGet200Response) GetData() []SourceControlReleasesAppsAppUuidGet200ResponseDataInner { + if o == nil { + var ret []SourceControlReleasesAppsAppUuidGet200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *SourceControlReleasesAppsAppUuidGet200Response) GetDataOk() ([]SourceControlReleasesAppsAppUuidGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SourceControlReleasesAppsAppUuidGet200Response) SetData(v []SourceControlReleasesAppsAppUuidGet200ResponseDataInner) { + o.Data = v +} + +func (o SourceControlReleasesAppsAppUuidGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlReleasesAppsAppUuidGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlReleasesAppsAppUuidGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varSourceControlReleasesAppsAppUuidGet200Response := _SourceControlReleasesAppsAppUuidGet200Response{} + + err = json.Unmarshal(data, &varSourceControlReleasesAppsAppUuidGet200Response) + + if err != nil { + return err + } + + *o = SourceControlReleasesAppsAppUuidGet200Response(varSourceControlReleasesAppsAppUuidGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlReleasesAppsAppUuidGet200Response struct { + value *SourceControlReleasesAppsAppUuidGet200Response + isSet bool +} + +func (v NullableSourceControlReleasesAppsAppUuidGet200Response) Get() *SourceControlReleasesAppsAppUuidGet200Response { + return v.value +} + +func (v *NullableSourceControlReleasesAppsAppUuidGet200Response) Set(val *SourceControlReleasesAppsAppUuidGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlReleasesAppsAppUuidGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlReleasesAppsAppUuidGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlReleasesAppsAppUuidGet200Response(val *SourceControlReleasesAppsAppUuidGet200Response) *NullableSourceControlReleasesAppsAppUuidGet200Response { + return &NullableSourceControlReleasesAppsAppUuidGet200Response{value: val, isSet: true} +} + +func (v NullableSourceControlReleasesAppsAppUuidGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlReleasesAppsAppUuidGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_releases_apps__app_uuid__get_200_response_data_inner.go b/internal/sdk/api/model__source_control_releases_apps__app_uuid__get_200_response_data_inner.go new file mode 100644 index 0000000..3b1987c --- /dev/null +++ b/internal/sdk/api/model__source_control_releases_apps__app_uuid__get_200_response_data_inner.go @@ -0,0 +1,237 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlReleasesAppsAppUuidGet200ResponseDataInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlReleasesAppsAppUuidGet200ResponseDataInner{} + +// SourceControlReleasesAppsAppUuidGet200ResponseDataInner struct for SourceControlReleasesAppsAppUuidGet200ResponseDataInner +type SourceControlReleasesAppsAppUuidGet200ResponseDataInner struct { + // The version of the release. + ReleaseVersion string `json:"release_version"` + // The description of the release. + ReleaseDescription *string `json:"release_description,omitempty"` + // The timestamp when the release was created. + CreatedAt string `json:"created_at"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlReleasesAppsAppUuidGet200ResponseDataInner SourceControlReleasesAppsAppUuidGet200ResponseDataInner + +// NewSourceControlReleasesAppsAppUuidGet200ResponseDataInner instantiates a new SourceControlReleasesAppsAppUuidGet200ResponseDataInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlReleasesAppsAppUuidGet200ResponseDataInner(releaseVersion string, createdAt string) *SourceControlReleasesAppsAppUuidGet200ResponseDataInner { + this := SourceControlReleasesAppsAppUuidGet200ResponseDataInner{} + this.ReleaseVersion = releaseVersion + this.CreatedAt = createdAt + return &this +} + +// NewSourceControlReleasesAppsAppUuidGet200ResponseDataInnerWithDefaults instantiates a new SourceControlReleasesAppsAppUuidGet200ResponseDataInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlReleasesAppsAppUuidGet200ResponseDataInnerWithDefaults() *SourceControlReleasesAppsAppUuidGet200ResponseDataInner { + this := SourceControlReleasesAppsAppUuidGet200ResponseDataInner{} + return &this +} + +// GetReleaseVersion returns the ReleaseVersion field value +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetReleaseVersion() string { + if o == nil { + var ret string + return ret + } + + return o.ReleaseVersion +} + +// GetReleaseVersionOk returns a tuple with the ReleaseVersion field value +// and a boolean to check if the value has been set. +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetReleaseVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReleaseVersion, true +} + +// SetReleaseVersion sets field value +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) SetReleaseVersion(v string) { + o.ReleaseVersion = v +} + +// GetReleaseDescription returns the ReleaseDescription field value if set, zero value otherwise. +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetReleaseDescription() string { + if o == nil || IsNil(o.ReleaseDescription) { + var ret string + return ret + } + return *o.ReleaseDescription +} + +// GetReleaseDescriptionOk returns a tuple with the ReleaseDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetReleaseDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.ReleaseDescription) { + return nil, false + } + return o.ReleaseDescription, true +} + +// HasReleaseDescription returns a boolean if a field has been set. +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) HasReleaseDescription() bool { + if o != nil && !IsNil(o.ReleaseDescription) { + return true + } + + return false +} + +// SetReleaseDescription gets a reference to the given string and assigns it to the ReleaseDescription field. +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) SetReleaseDescription(v string) { + o.ReleaseDescription = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) SetCreatedAt(v string) { + o.CreatedAt = v +} + +func (o SourceControlReleasesAppsAppUuidGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlReleasesAppsAppUuidGet200ResponseDataInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["release_version"] = o.ReleaseVersion + if !IsNil(o.ReleaseDescription) { + toSerialize["release_description"] = o.ReleaseDescription + } + toSerialize["created_at"] = o.CreatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) 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{ + "release_version", + "created_at", + } + + 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) + } + } + + varSourceControlReleasesAppsAppUuidGet200ResponseDataInner := _SourceControlReleasesAppsAppUuidGet200ResponseDataInner{} + + err = json.Unmarshal(data, &varSourceControlReleasesAppsAppUuidGet200ResponseDataInner) + + if err != nil { + return err + } + + *o = SourceControlReleasesAppsAppUuidGet200ResponseDataInner(varSourceControlReleasesAppsAppUuidGet200ResponseDataInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "release_version") + delete(additionalProperties, "release_description") + delete(additionalProperties, "created_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner struct { + value *SourceControlReleasesAppsAppUuidGet200ResponseDataInner + isSet bool +} + +func (v NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner) Get() *SourceControlReleasesAppsAppUuidGet200ResponseDataInner { + return v.value +} + +func (v *NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner) Set(val *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner(val *SourceControlReleasesAppsAppUuidGet200ResponseDataInner) *NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner { + return &NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner{value: val, isSet: true} +} + +func (v NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlReleasesAppsAppUuidGet200ResponseDataInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_releases_apps__app_uuid__post_request.go b/internal/sdk/api/model__source_control_releases_apps__app_uuid__post_request.go new file mode 100644 index 0000000..464ac9c --- /dev/null +++ b/internal/sdk/api/model__source_control_releases_apps__app_uuid__post_request.go @@ -0,0 +1,245 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the SourceControlReleasesAppsAppUuidPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceControlReleasesAppsAppUuidPostRequest{} + +// SourceControlReleasesAppsAppUuidPostRequest struct for SourceControlReleasesAppsAppUuidPostRequest +type SourceControlReleasesAppsAppUuidPostRequest struct { + // The version of the release. + ReleaseVersion string `json:"release_version"` + // The description of the release. + ReleaseDescription *string `json:"release_description,omitempty"` + // Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used. + CommitMessage *string `json:"commit_message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SourceControlReleasesAppsAppUuidPostRequest SourceControlReleasesAppsAppUuidPostRequest + +// NewSourceControlReleasesAppsAppUuidPostRequest instantiates a new SourceControlReleasesAppsAppUuidPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceControlReleasesAppsAppUuidPostRequest(releaseVersion string) *SourceControlReleasesAppsAppUuidPostRequest { + this := SourceControlReleasesAppsAppUuidPostRequest{} + this.ReleaseVersion = releaseVersion + return &this +} + +// NewSourceControlReleasesAppsAppUuidPostRequestWithDefaults instantiates a new SourceControlReleasesAppsAppUuidPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceControlReleasesAppsAppUuidPostRequestWithDefaults() *SourceControlReleasesAppsAppUuidPostRequest { + this := SourceControlReleasesAppsAppUuidPostRequest{} + return &this +} + +// GetReleaseVersion returns the ReleaseVersion field value +func (o *SourceControlReleasesAppsAppUuidPostRequest) GetReleaseVersion() string { + if o == nil { + var ret string + return ret + } + + return o.ReleaseVersion +} + +// GetReleaseVersionOk returns a tuple with the ReleaseVersion field value +// and a boolean to check if the value has been set. +func (o *SourceControlReleasesAppsAppUuidPostRequest) GetReleaseVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReleaseVersion, true +} + +// SetReleaseVersion sets field value +func (o *SourceControlReleasesAppsAppUuidPostRequest) SetReleaseVersion(v string) { + o.ReleaseVersion = v +} + +// GetReleaseDescription returns the ReleaseDescription field value if set, zero value otherwise. +func (o *SourceControlReleasesAppsAppUuidPostRequest) GetReleaseDescription() string { + if o == nil || IsNil(o.ReleaseDescription) { + var ret string + return ret + } + return *o.ReleaseDescription +} + +// GetReleaseDescriptionOk returns a tuple with the ReleaseDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlReleasesAppsAppUuidPostRequest) GetReleaseDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.ReleaseDescription) { + return nil, false + } + return o.ReleaseDescription, true +} + +// HasReleaseDescription returns a boolean if a field has been set. +func (o *SourceControlReleasesAppsAppUuidPostRequest) HasReleaseDescription() bool { + if o != nil && !IsNil(o.ReleaseDescription) { + return true + } + + return false +} + +// SetReleaseDescription gets a reference to the given string and assigns it to the ReleaseDescription field. +func (o *SourceControlReleasesAppsAppUuidPostRequest) SetReleaseDescription(v string) { + o.ReleaseDescription = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *SourceControlReleasesAppsAppUuidPostRequest) GetCommitMessage() string { + if o == nil || IsNil(o.CommitMessage) { + var ret string + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlReleasesAppsAppUuidPostRequest) GetCommitMessageOk() (*string, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *SourceControlReleasesAppsAppUuidPostRequest) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field. +func (o *SourceControlReleasesAppsAppUuidPostRequest) SetCommitMessage(v string) { + o.CommitMessage = &v +} + +func (o SourceControlReleasesAppsAppUuidPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceControlReleasesAppsAppUuidPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["release_version"] = o.ReleaseVersion + if !IsNil(o.ReleaseDescription) { + toSerialize["release_description"] = o.ReleaseDescription + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SourceControlReleasesAppsAppUuidPostRequest) 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{ + "release_version", + } + + 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) + } + } + + varSourceControlReleasesAppsAppUuidPostRequest := _SourceControlReleasesAppsAppUuidPostRequest{} + + err = json.Unmarshal(data, &varSourceControlReleasesAppsAppUuidPostRequest) + + if err != nil { + return err + } + + *o = SourceControlReleasesAppsAppUuidPostRequest(varSourceControlReleasesAppsAppUuidPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "release_version") + delete(additionalProperties, "release_description") + delete(additionalProperties, "commit_message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSourceControlReleasesAppsAppUuidPostRequest struct { + value *SourceControlReleasesAppsAppUuidPostRequest + isSet bool +} + +func (v NullableSourceControlReleasesAppsAppUuidPostRequest) Get() *SourceControlReleasesAppsAppUuidPostRequest { + return v.value +} + +func (v *NullableSourceControlReleasesAppsAppUuidPostRequest) Set(val *SourceControlReleasesAppsAppUuidPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSourceControlReleasesAppsAppUuidPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceControlReleasesAppsAppUuidPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceControlReleasesAppsAppUuidPostRequest(val *SourceControlReleasesAppsAppUuidPostRequest) *NullableSourceControlReleasesAppsAppUuidPostRequest { + return &NullableSourceControlReleasesAppsAppUuidPostRequest{value: val, isSet: true} +} + +func (v NullableSourceControlReleasesAppsAppUuidPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceControlReleasesAppsAppUuidPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__source_control_settings_get_200_response.go b/internal/sdk/api/model__source_control_settings_get_200_response.go index 0ad6b65..9b203db 100644 --- a/internal/sdk/api/model__source_control_settings_get_200_response.go +++ b/internal/sdk/api/model__source_control_settings_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_settings_get_200_response_data.go b/internal/sdk/api/model__source_control_settings_get_200_response_data.go index c646044..eaab515 100644 --- a/internal/sdk/api/model__source_control_settings_get_200_response_data.go +++ b/internal/sdk/api/model__source_control_settings_get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,8 @@ type SourceControlSettingsGet200ResponseData struct { VersionControlLocked bool `json:"version_control_locked"` // When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. ForceUuidMapping bool `json:"force_uuid_mapping"` + // When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true. + AutoCleanupBranchesEnabled bool `json:"auto_cleanup_branches_enabled"` AdditionalProperties map[string]interface{} } @@ -39,13 +41,14 @@ type _SourceControlSettingsGet200ResponseData SourceControlSettingsGet200Respons // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSourceControlSettingsGet200ResponseData(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool) *SourceControlSettingsGet200ResponseData { +func NewSourceControlSettingsGet200ResponseData(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, autoCleanupBranchesEnabled bool) *SourceControlSettingsGet200ResponseData { this := SourceControlSettingsGet200ResponseData{} this.AutoBranchNamingEnabled = autoBranchNamingEnabled this.CustomPullRequestTemplateEnabled = customPullRequestTemplateEnabled this.CustomPullRequestTemplate = customPullRequestTemplate this.VersionControlLocked = versionControlLocked this.ForceUuidMapping = forceUuidMapping + this.AutoCleanupBranchesEnabled = autoCleanupBranchesEnabled return &this } @@ -177,6 +180,30 @@ func (o *SourceControlSettingsGet200ResponseData) SetForceUuidMapping(v bool) { o.ForceUuidMapping = v } +// GetAutoCleanupBranchesEnabled returns the AutoCleanupBranchesEnabled field value +func (o *SourceControlSettingsGet200ResponseData) GetAutoCleanupBranchesEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AutoCleanupBranchesEnabled +} + +// GetAutoCleanupBranchesEnabledOk returns a tuple with the AutoCleanupBranchesEnabled field value +// and a boolean to check if the value has been set. +func (o *SourceControlSettingsGet200ResponseData) GetAutoCleanupBranchesEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AutoCleanupBranchesEnabled, true +} + +// SetAutoCleanupBranchesEnabled sets field value +func (o *SourceControlSettingsGet200ResponseData) SetAutoCleanupBranchesEnabled(v bool) { + o.AutoCleanupBranchesEnabled = v +} + func (o SourceControlSettingsGet200ResponseData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -192,6 +219,7 @@ func (o SourceControlSettingsGet200ResponseData) ToMap() (map[string]interface{} toSerialize["custom_pull_request_template"] = o.CustomPullRequestTemplate toSerialize["version_control_locked"] = o.VersionControlLocked toSerialize["force_uuid_mapping"] = o.ForceUuidMapping + toSerialize["auto_cleanup_branches_enabled"] = o.AutoCleanupBranchesEnabled for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -210,6 +238,7 @@ func (o *SourceControlSettingsGet200ResponseData) UnmarshalJSON(data []byte) (er "custom_pull_request_template", "version_control_locked", "force_uuid_mapping", + "auto_cleanup_branches_enabled", } allProperties := make(map[string]interface{}) @@ -244,6 +273,7 @@ func (o *SourceControlSettingsGet200ResponseData) UnmarshalJSON(data []byte) (er delete(additionalProperties, "custom_pull_request_template") delete(additionalProperties, "version_control_locked") delete(additionalProperties, "force_uuid_mapping") + delete(additionalProperties, "auto_cleanup_branches_enabled") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model__source_control_settings_put_200_response.go b/internal/sdk/api/model__source_control_settings_put_200_response.go index 0f2811a..ef9d53d 100644 --- a/internal/sdk/api/model__source_control_settings_put_200_response.go +++ b/internal/sdk/api/model__source_control_settings_put_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_settings_put_200_response_data.go b/internal/sdk/api/model__source_control_settings_put_200_response_data.go index 9e87d70..0a1e056 100644 --- a/internal/sdk/api/model__source_control_settings_put_200_response_data.go +++ b/internal/sdk/api/model__source_control_settings_put_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,8 @@ type SourceControlSettingsPut200ResponseData struct { VersionControlLocked bool `json:"version_control_locked"` // When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. ForceUuidMapping bool `json:"force_uuid_mapping"` + // When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true. + AutoCleanupBranchesEnabled bool `json:"auto_cleanup_branches_enabled"` AdditionalProperties map[string]interface{} } @@ -39,13 +41,14 @@ type _SourceControlSettingsPut200ResponseData SourceControlSettingsPut200Respons // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSourceControlSettingsPut200ResponseData(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool) *SourceControlSettingsPut200ResponseData { +func NewSourceControlSettingsPut200ResponseData(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, autoCleanupBranchesEnabled bool) *SourceControlSettingsPut200ResponseData { this := SourceControlSettingsPut200ResponseData{} this.AutoBranchNamingEnabled = autoBranchNamingEnabled this.CustomPullRequestTemplateEnabled = customPullRequestTemplateEnabled this.CustomPullRequestTemplate = customPullRequestTemplate this.VersionControlLocked = versionControlLocked this.ForceUuidMapping = forceUuidMapping + this.AutoCleanupBranchesEnabled = autoCleanupBranchesEnabled return &this } @@ -177,6 +180,30 @@ func (o *SourceControlSettingsPut200ResponseData) SetForceUuidMapping(v bool) { o.ForceUuidMapping = v } +// GetAutoCleanupBranchesEnabled returns the AutoCleanupBranchesEnabled field value +func (o *SourceControlSettingsPut200ResponseData) GetAutoCleanupBranchesEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AutoCleanupBranchesEnabled +} + +// GetAutoCleanupBranchesEnabledOk returns a tuple with the AutoCleanupBranchesEnabled field value +// and a boolean to check if the value has been set. +func (o *SourceControlSettingsPut200ResponseData) GetAutoCleanupBranchesEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AutoCleanupBranchesEnabled, true +} + +// SetAutoCleanupBranchesEnabled sets field value +func (o *SourceControlSettingsPut200ResponseData) SetAutoCleanupBranchesEnabled(v bool) { + o.AutoCleanupBranchesEnabled = v +} + func (o SourceControlSettingsPut200ResponseData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -192,6 +219,7 @@ func (o SourceControlSettingsPut200ResponseData) ToMap() (map[string]interface{} toSerialize["custom_pull_request_template"] = o.CustomPullRequestTemplate toSerialize["version_control_locked"] = o.VersionControlLocked toSerialize["force_uuid_mapping"] = o.ForceUuidMapping + toSerialize["auto_cleanup_branches_enabled"] = o.AutoCleanupBranchesEnabled for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -210,6 +238,7 @@ func (o *SourceControlSettingsPut200ResponseData) UnmarshalJSON(data []byte) (er "custom_pull_request_template", "version_control_locked", "force_uuid_mapping", + "auto_cleanup_branches_enabled", } allProperties := make(map[string]interface{}) @@ -244,6 +273,7 @@ func (o *SourceControlSettingsPut200ResponseData) UnmarshalJSON(data []byte) (er delete(additionalProperties, "custom_pull_request_template") delete(additionalProperties, "version_control_locked") delete(additionalProperties, "force_uuid_mapping") + delete(additionalProperties, "auto_cleanup_branches_enabled") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model__source_control_settings_put_request.go b/internal/sdk/api/model__source_control_settings_put_request.go index 722f69f..cc6b35b 100644 --- a/internal/sdk/api/model__source_control_settings_put_request.go +++ b/internal/sdk/api/model__source_control_settings_put_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_settings_put_request_settings.go b/internal/sdk/api/model__source_control_settings_put_request_settings.go index f7de620..96cc852 100644 --- a/internal/sdk/api/model__source_control_settings_put_request_settings.go +++ b/internal/sdk/api/model__source_control_settings_put_request_settings.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,6 +29,8 @@ type SourceControlSettingsPutRequestSettings struct { VersionControlLocked *bool `json:"version_control_locked,omitempty"` // When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. ForceUuidMapping *bool `json:"force_uuid_mapping,omitempty"` + // When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true. + AutoCleanupBranchesEnabled *bool `json:"auto_cleanup_branches_enabled,omitempty"` } // NewSourceControlSettingsPutRequestSettings instantiates a new SourceControlSettingsPutRequestSettings object @@ -208,6 +210,38 @@ func (o *SourceControlSettingsPutRequestSettings) SetForceUuidMapping(v bool) { o.ForceUuidMapping = &v } +// GetAutoCleanupBranchesEnabled returns the AutoCleanupBranchesEnabled field value if set, zero value otherwise. +func (o *SourceControlSettingsPutRequestSettings) GetAutoCleanupBranchesEnabled() bool { + if o == nil || IsNil(o.AutoCleanupBranchesEnabled) { + var ret bool + return ret + } + return *o.AutoCleanupBranchesEnabled +} + +// GetAutoCleanupBranchesEnabledOk returns a tuple with the AutoCleanupBranchesEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceControlSettingsPutRequestSettings) GetAutoCleanupBranchesEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AutoCleanupBranchesEnabled) { + return nil, false + } + return o.AutoCleanupBranchesEnabled, true +} + +// HasAutoCleanupBranchesEnabled returns a boolean if a field has been set. +func (o *SourceControlSettingsPutRequestSettings) HasAutoCleanupBranchesEnabled() bool { + if o != nil && !IsNil(o.AutoCleanupBranchesEnabled) { + return true + } + + return false +} + +// SetAutoCleanupBranchesEnabled gets a reference to the given bool and assigns it to the AutoCleanupBranchesEnabled field. +func (o *SourceControlSettingsPutRequestSettings) SetAutoCleanupBranchesEnabled(v bool) { + o.AutoCleanupBranchesEnabled = &v +} + func (o SourceControlSettingsPutRequestSettings) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -233,6 +267,9 @@ func (o SourceControlSettingsPutRequestSettings) ToMap() (map[string]interface{} if !IsNil(o.ForceUuidMapping) { toSerialize["force_uuid_mapping"] = o.ForceUuidMapping } + if !IsNil(o.AutoCleanupBranchesEnabled) { + toSerialize["auto_cleanup_branches_enabled"] = o.AutoCleanupBranchesEnabled + } return toSerialize, nil } diff --git a/internal/sdk/api/model__source_control_test_connection_get_200_response.go b/internal/sdk/api/model__source_control_test_connection_get_200_response.go index 13091c5..e5640cf 100644 --- a/internal/sdk/api/model__source_control_test_connection_get_200_response.go +++ b/internal/sdk/api/model__source_control_test_connection_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_test_connection_get_200_response_data.go b/internal/sdk/api/model__source_control_test_connection_get_200_response_data.go index 00fcaef..f153bc2 100644 --- a/internal/sdk/api/model__source_control_test_connection_get_200_response_data.go +++ b/internal/sdk/api/model__source_control_test_connection_get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -54,13 +54,13 @@ func (dst *SourceControlTestConnectionGet200ResponseData) UnmarshalJSON(data []b } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *SourceControlTestConnectionGet200ResponseData) MarshalJSON() ([]byte, error) { +func (src SourceControlTestConnectionGet200ResponseData) MarshalJSON() ([]byte, error) { if src.SourceControlTestConnectionGet200ResponseDataAnyOf != nil { - return json.Marshal(&src.SourceControlTestConnectionGet200ResponseDataAnyOf) + return json.Marshal(src.SourceControlTestConnectionGet200ResponseDataAnyOf) } if src.SourceControlTestConnectionGet200ResponseDataAnyOf1 != nil { - return json.Marshal(&src.SourceControlTestConnectionGet200ResponseDataAnyOf1) + return json.Marshal(src.SourceControlTestConnectionGet200ResponseDataAnyOf1) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__source_control_test_connection_get_200_response_data_any_of.go b/internal/sdk/api/model__source_control_test_connection_get_200_response_data_any_of.go index 6573a32..a880316 100644 --- a/internal/sdk/api/model__source_control_test_connection_get_200_response_data_any_of.go +++ b/internal/sdk/api/model__source_control_test_connection_get_200_response_data_any_of.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_test_connection_get_200_response_data_any_of_1.go b/internal/sdk/api/model__source_control_test_connection_get_200_response_data_any_of_1.go index 333f2f8..c612ad9 100644 --- a/internal/sdk/api/model__source_control_test_connection_get_200_response_data_any_of_1.go +++ b/internal/sdk/api/model__source_control_test_connection_get_200_response_data_any_of_1.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_test_deploy_post_200_response.go b/internal/sdk/api/model__source_control_test_deploy_post_200_response.go index b1de35f..dfd603e 100644 --- a/internal/sdk/api/model__source_control_test_deploy_post_200_response.go +++ b/internal/sdk/api/model__source_control_test_deploy_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_test_deploy_post_200_response_data.go b/internal/sdk/api/model__source_control_test_deploy_post_200_response_data.go index bb274ad..0b6c284 100644 --- a/internal/sdk/api/model__source_control_test_deploy_post_200_response_data.go +++ b/internal/sdk/api/model__source_control_test_deploy_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -54,13 +54,13 @@ func (dst *SourceControlTestDeployPost200ResponseData) UnmarshalJSON(data []byte } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *SourceControlTestDeployPost200ResponseData) MarshalJSON() ([]byte, error) { +func (src SourceControlTestDeployPost200ResponseData) MarshalJSON() ([]byte, error) { if src.SourceControlTestDeployPost200ResponseDataAnyOf != nil { - return json.Marshal(&src.SourceControlTestDeployPost200ResponseDataAnyOf) + return json.Marshal(src.SourceControlTestDeployPost200ResponseDataAnyOf) } if src.SourceControlTestDeployPost200ResponseDataAnyOf1 != nil { - return json.Marshal(&src.SourceControlTestDeployPost200ResponseDataAnyOf1) + return json.Marshal(src.SourceControlTestDeployPost200ResponseDataAnyOf1) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__source_control_test_deploy_post_200_response_data_any_of.go b/internal/sdk/api/model__source_control_test_deploy_post_200_response_data_any_of.go index 9804a26..fcf486a 100644 --- a/internal/sdk/api/model__source_control_test_deploy_post_200_response_data_any_of.go +++ b/internal/sdk/api/model__source_control_test_deploy_post_200_response_data_any_of.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_test_deploy_post_200_response_data_any_of_1.go b/internal/sdk/api/model__source_control_test_deploy_post_200_response_data_any_of_1.go index 30e6fba..f41b262 100644 --- a/internal/sdk/api/model__source_control_test_deploy_post_200_response_data_any_of_1.go +++ b/internal/sdk/api/model__source_control_test_deploy_post_200_response_data_any_of_1.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_test_deploy_post_request.go b/internal/sdk/api/model__source_control_test_deploy_post_request.go index a7fea67..bc1d338 100644 --- a/internal/sdk/api/model__source_control_test_deploy_post_request.go +++ b/internal/sdk/api/model__source_control_test_deploy_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__source_control_test_deploy_post_request_deploy_params.go b/internal/sdk/api/model__source_control_test_deploy_post_request_deploy_params.go index 2944577..d44dea4 100644 --- a/internal/sdk/api/model__source_control_test_deploy_post_request_deploy_params.go +++ b/internal/sdk/api/model__source_control_test_deploy_post_request_deploy_params.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &SourceControlTestDeployPostRequestDeployParams{} // SourceControlTestDeployPostRequestDeployParams struct for SourceControlTestDeployPostRequestDeployParams type SourceControlTestDeployPostRequestDeployParams struct { - // The commit SHA to dry deploy + // The full commit SHA to dry deploy CommitSha string `json:"commit_sha"` IsFullSync *bool `json:"is_full_sync,omitempty"` AdditionalProperties map[string]interface{} diff --git a/internal/sdk/api/model__spaces__space_id__get_200_response.go b/internal/sdk/api/model__spaces__space_id__get_200_response.go index 86abe88..0054f90 100644 --- a/internal/sdk/api/model__spaces__space_id__get_200_response.go +++ b/internal/sdk/api/model__spaces__space_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces__space_id__get_200_response_data.go b/internal/sdk/api/model__spaces__space_id__get_200_response_data.go index 6a7a0b1..7173ddf 100644 --- a/internal/sdk/api/model__spaces__space_id__get_200_response_data.go +++ b/internal/sdk/api/model__spaces__space_id__get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces__space_id__put_200_response.go b/internal/sdk/api/model__spaces__space_id__put_200_response.go index 440c3ba..a751c7a 100644 --- a/internal/sdk/api/model__spaces__space_id__put_200_response.go +++ b/internal/sdk/api/model__spaces__space_id__put_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces__space_id__put_200_response_data.go b/internal/sdk/api/model__spaces__space_id__put_200_response_data.go index 32ed960..4b8375e 100644 --- a/internal/sdk/api/model__spaces__space_id__put_200_response_data.go +++ b/internal/sdk/api/model__spaces__space_id__put_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces__space_id__put_request.go b/internal/sdk/api/model__spaces__space_id__put_request.go index de0feaa..bb064f7 100644 --- a/internal/sdk/api/model__spaces__space_id__put_request.go +++ b/internal/sdk/api/model__spaces__space_id__put_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces_copy_elements_post_201_response.go b/internal/sdk/api/model__spaces_copy_elements_post_201_response.go index 98f3861..d4bac16 100644 --- a/internal/sdk/api/model__spaces_copy_elements_post_201_response.go +++ b/internal/sdk/api/model__spaces_copy_elements_post_201_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces_copy_elements_post_201_response_data.go b/internal/sdk/api/model__spaces_copy_elements_post_201_response_data.go index 7b11286..36899c2 100644 --- a/internal/sdk/api/model__spaces_copy_elements_post_201_response_data.go +++ b/internal/sdk/api/model__spaces_copy_elements_post_201_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces_copy_elements_post_request.go b/internal/sdk/api/model__spaces_copy_elements_post_request.go index 73c3ad9..c9afefb 100644 --- a/internal/sdk/api/model__spaces_copy_elements_post_request.go +++ b/internal/sdk/api/model__spaces_copy_elements_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ var _ MappedNullable = &SpacesCopyElementsPostRequest{} // SpacesCopyElementsPostRequest struct for SpacesCopyElementsPostRequest type SpacesCopyElementsPostRequest struct { - // List of resource uuids to copy to the new space. + // List of resource configuration uuids to copy to the new space. ResourceIds []SpacesCopyElementsPostRequestResourceIdsInner `json:"resource_ids"` // List of query library query uuids to copy to the new space. QueryLibraryQueryIds []string `json:"query_library_query_ids"` diff --git a/internal/sdk/api/model__spaces_copy_elements_post_request_resource_ids_inner.go b/internal/sdk/api/model__spaces_copy_elements_post_request_resource_ids_inner.go index 8aed8da..e6db78f 100644 --- a/internal/sdk/api/model__spaces_copy_elements_post_request_resource_ids_inner.go +++ b/internal/sdk/api/model__spaces_copy_elements_post_request_resource_ids_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,9 +40,9 @@ func (dst *SpacesCopyElementsPostRequestResourceIdsInner) UnmarshalJSON(data []b } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *SpacesCopyElementsPostRequestResourceIdsInner) MarshalJSON() ([]byte, error) { +func (src SpacesCopyElementsPostRequestResourceIdsInner) MarshalJSON() ([]byte, error) { if src.string != nil { - return json.Marshal(&src.string) + return json.Marshal(src.string) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__spaces_get_200_response.go b/internal/sdk/api/model__spaces_get_200_response.go index 666bfe0..379688e 100644 --- a/internal/sdk/api/model__spaces_get_200_response.go +++ b/internal/sdk/api/model__spaces_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces_get_200_response_data_inner.go b/internal/sdk/api/model__spaces_get_200_response_data_inner.go index b200ebd..1bfa3d2 100644 --- a/internal/sdk/api/model__spaces_get_200_response_data_inner.go +++ b/internal/sdk/api/model__spaces_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces_post_200_response.go b/internal/sdk/api/model__spaces_post_200_response.go index b314b11..4adf1c4 100644 --- a/internal/sdk/api/model__spaces_post_200_response.go +++ b/internal/sdk/api/model__spaces_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces_post_200_response_data.go b/internal/sdk/api/model__spaces_post_200_response_data.go index ddb9a6a..6d3be17 100644 --- a/internal/sdk/api/model__spaces_post_200_response_data.go +++ b/internal/sdk/api/model__spaces_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces_post_request.go b/internal/sdk/api/model__spaces_post_request.go index 7ee203c..0a55e90 100644 --- a/internal/sdk/api/model__spaces_post_request.go +++ b/internal/sdk/api/model__spaces_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__spaces_post_request_options.go b/internal/sdk/api/model__spaces_post_request_options.go index 4634aed..1c81b2c 100644 --- a/internal/sdk/api/model__spaces_post_request_options.go +++ b/internal/sdk/api/model__spaces_post_request_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__sso_config_get_200_response.go b/internal/sdk/api/model__sso_config_get_200_response.go index 91a4175..1f985d6 100644 --- a/internal/sdk/api/model__sso_config_get_200_response.go +++ b/internal/sdk/api/model__sso_config_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__sso_config_get_200_response_data.go b/internal/sdk/api/model__sso_config_get_200_response_data.go index be6b68d..e3a038f 100644 --- a/internal/sdk/api/model__sso_config_get_200_response_data.go +++ b/internal/sdk/api/model__sso_config_get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,13 +17,45 @@ import ( // SsoConfigGet200ResponseData - SSO configuration type SsoConfigGet200ResponseData struct { - SSOConfig *SSOConfig + Google *Google + GoogleOIDC *GoogleOIDC + GoogleSAML *GoogleSAML + OIDC *OIDC + SAML *SAML } -// SSOConfigAsSsoConfigGet200ResponseData is a convenience function that returns SSOConfig wrapped in SsoConfigGet200ResponseData -func SSOConfigAsSsoConfigGet200ResponseData(v *SSOConfig) SsoConfigGet200ResponseData { +// GoogleAsSsoConfigGet200ResponseData is a convenience function that returns Google wrapped in SsoConfigGet200ResponseData +func GoogleAsSsoConfigGet200ResponseData(v *Google) SsoConfigGet200ResponseData { return SsoConfigGet200ResponseData{ - SSOConfig: v, + Google: v, + } +} + +// GoogleOIDCAsSsoConfigGet200ResponseData is a convenience function that returns GoogleOIDC wrapped in SsoConfigGet200ResponseData +func GoogleOIDCAsSsoConfigGet200ResponseData(v *GoogleOIDC) SsoConfigGet200ResponseData { + return SsoConfigGet200ResponseData{ + GoogleOIDC: v, + } +} + +// GoogleSAMLAsSsoConfigGet200ResponseData is a convenience function that returns GoogleSAML wrapped in SsoConfigGet200ResponseData +func GoogleSAMLAsSsoConfigGet200ResponseData(v *GoogleSAML) SsoConfigGet200ResponseData { + return SsoConfigGet200ResponseData{ + GoogleSAML: v, + } +} + +// OIDCAsSsoConfigGet200ResponseData is a convenience function that returns OIDC wrapped in SsoConfigGet200ResponseData +func OIDCAsSsoConfigGet200ResponseData(v *OIDC) SsoConfigGet200ResponseData { + return SsoConfigGet200ResponseData{ + OIDC: v, + } +} + +// SAMLAsSsoConfigGet200ResponseData is a convenience function that returns SAML wrapped in SsoConfigGet200ResponseData +func SAMLAsSsoConfigGet200ResponseData(v *SAML) SsoConfigGet200ResponseData { + return SsoConfigGet200ResponseData{ + SAML: v, } } @@ -32,22 +64,78 @@ func SSOConfigAsSsoConfigGet200ResponseData(v *SSOConfig) SsoConfigGet200Respons func (dst *SsoConfigGet200ResponseData) UnmarshalJSON(data []byte) error { var err error match := 0 - // try to unmarshal data into SSOConfig - err = newStrictDecoder(data).Decode(&dst.SSOConfig) + // try to unmarshal data into Google + err = newStrictDecoder(data).Decode(&dst.Google) + if err == nil { + jsonGoogle, _ := json.Marshal(dst.Google) + if string(jsonGoogle) == "{}" { // empty struct + dst.Google = nil + } else { + match++ + } + } else { + dst.Google = nil + } + + // try to unmarshal data into GoogleOIDC + err = newStrictDecoder(data).Decode(&dst.GoogleOIDC) + if err == nil { + jsonGoogleOIDC, _ := json.Marshal(dst.GoogleOIDC) + if string(jsonGoogleOIDC) == "{}" { // empty struct + dst.GoogleOIDC = nil + } else { + match++ + } + } else { + dst.GoogleOIDC = nil + } + + // try to unmarshal data into GoogleSAML + err = newStrictDecoder(data).Decode(&dst.GoogleSAML) if err == nil { - jsonSSOConfig, _ := json.Marshal(dst.SSOConfig) - if string(jsonSSOConfig) == "{}" { // empty struct - dst.SSOConfig = nil + jsonGoogleSAML, _ := json.Marshal(dst.GoogleSAML) + if string(jsonGoogleSAML) == "{}" { // empty struct + dst.GoogleSAML = nil } else { match++ } } else { - dst.SSOConfig = nil + dst.GoogleSAML = nil + } + + // try to unmarshal data into OIDC + err = newStrictDecoder(data).Decode(&dst.OIDC) + if err == nil { + jsonOIDC, _ := json.Marshal(dst.OIDC) + if string(jsonOIDC) == "{}" { // empty struct + dst.OIDC = nil + } else { + match++ + } + } else { + dst.OIDC = nil + } + + // try to unmarshal data into SAML + err = newStrictDecoder(data).Decode(&dst.SAML) + if err == nil { + jsonSAML, _ := json.Marshal(dst.SAML) + if string(jsonSAML) == "{}" { // empty struct + dst.SAML = nil + } else { + match++ + } + } else { + dst.SAML = nil } if match > 1 { // more than 1 match // reset to nil - dst.SSOConfig = nil + dst.Google = nil + dst.GoogleOIDC = nil + dst.GoogleSAML = nil + dst.OIDC = nil + dst.SAML = nil return fmt.Errorf("data matches more than one schema in oneOf(SsoConfigGet200ResponseData)") } else if match == 1 { @@ -59,8 +147,24 @@ func (dst *SsoConfigGet200ResponseData) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src SsoConfigGet200ResponseData) MarshalJSON() ([]byte, error) { - if src.SSOConfig != nil { - return json.Marshal(&src.SSOConfig) + if src.Google != nil { + return json.Marshal(src.Google) + } + + if src.GoogleOIDC != nil { + return json.Marshal(src.GoogleOIDC) + } + + if src.GoogleSAML != nil { + return json.Marshal(src.GoogleSAML) + } + + if src.OIDC != nil { + return json.Marshal(src.OIDC) + } + + if src.SAML != nil { + return json.Marshal(src.SAML) } return nil, nil // no data in oneOf schemas @@ -71,8 +175,24 @@ func (obj *SsoConfigGet200ResponseData) GetActualInstance() (interface{}) { if obj == nil { return nil } - if obj.SSOConfig != nil { - return obj.SSOConfig + if obj.Google != nil { + return obj.Google + } + + if obj.GoogleOIDC != nil { + return obj.GoogleOIDC + } + + if obj.GoogleSAML != nil { + return obj.GoogleSAML + } + + if obj.OIDC != nil { + return obj.OIDC + } + + if obj.SAML != nil { + return obj.SAML } // all schemas are nil diff --git a/internal/sdk/api/model__sso_config_post_200_response.go b/internal/sdk/api/model__sso_config_post_200_response.go index 43f61c7..9e7e7dc 100644 --- a/internal/sdk/api/model__sso_config_post_200_response.go +++ b/internal/sdk/api/model__sso_config_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__sso_config_post_200_response_data.go b/internal/sdk/api/model__sso_config_post_200_response_data.go index 9b4a778..f969d0b 100644 --- a/internal/sdk/api/model__sso_config_post_200_response_data.go +++ b/internal/sdk/api/model__sso_config_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,13 +17,45 @@ import ( // SsoConfigPost200ResponseData - Result of setting SSO configuration type SsoConfigPost200ResponseData struct { - SSOConfig *SSOConfig + Google *Google + GoogleOIDC *GoogleOIDC + GoogleSAML *GoogleSAML + OIDC *OIDC + SAML *SAML } -// SSOConfigAsSsoConfigPost200ResponseData is a convenience function that returns SSOConfig wrapped in SsoConfigPost200ResponseData -func SSOConfigAsSsoConfigPost200ResponseData(v *SSOConfig) SsoConfigPost200ResponseData { +// GoogleAsSsoConfigPost200ResponseData is a convenience function that returns Google wrapped in SsoConfigPost200ResponseData +func GoogleAsSsoConfigPost200ResponseData(v *Google) SsoConfigPost200ResponseData { return SsoConfigPost200ResponseData{ - SSOConfig: v, + Google: v, + } +} + +// GoogleOIDCAsSsoConfigPost200ResponseData is a convenience function that returns GoogleOIDC wrapped in SsoConfigPost200ResponseData +func GoogleOIDCAsSsoConfigPost200ResponseData(v *GoogleOIDC) SsoConfigPost200ResponseData { + return SsoConfigPost200ResponseData{ + GoogleOIDC: v, + } +} + +// GoogleSAMLAsSsoConfigPost200ResponseData is a convenience function that returns GoogleSAML wrapped in SsoConfigPost200ResponseData +func GoogleSAMLAsSsoConfigPost200ResponseData(v *GoogleSAML) SsoConfigPost200ResponseData { + return SsoConfigPost200ResponseData{ + GoogleSAML: v, + } +} + +// OIDCAsSsoConfigPost200ResponseData is a convenience function that returns OIDC wrapped in SsoConfigPost200ResponseData +func OIDCAsSsoConfigPost200ResponseData(v *OIDC) SsoConfigPost200ResponseData { + return SsoConfigPost200ResponseData{ + OIDC: v, + } +} + +// SAMLAsSsoConfigPost200ResponseData is a convenience function that returns SAML wrapped in SsoConfigPost200ResponseData +func SAMLAsSsoConfigPost200ResponseData(v *SAML) SsoConfigPost200ResponseData { + return SsoConfigPost200ResponseData{ + SAML: v, } } @@ -32,22 +64,78 @@ func SSOConfigAsSsoConfigPost200ResponseData(v *SSOConfig) SsoConfigPost200Respo func (dst *SsoConfigPost200ResponseData) UnmarshalJSON(data []byte) error { var err error match := 0 - // try to unmarshal data into SSOConfig - err = newStrictDecoder(data).Decode(&dst.SSOConfig) + // try to unmarshal data into Google + err = newStrictDecoder(data).Decode(&dst.Google) + if err == nil { + jsonGoogle, _ := json.Marshal(dst.Google) + if string(jsonGoogle) == "{}" { // empty struct + dst.Google = nil + } else { + match++ + } + } else { + dst.Google = nil + } + + // try to unmarshal data into GoogleOIDC + err = newStrictDecoder(data).Decode(&dst.GoogleOIDC) + if err == nil { + jsonGoogleOIDC, _ := json.Marshal(dst.GoogleOIDC) + if string(jsonGoogleOIDC) == "{}" { // empty struct + dst.GoogleOIDC = nil + } else { + match++ + } + } else { + dst.GoogleOIDC = nil + } + + // try to unmarshal data into GoogleSAML + err = newStrictDecoder(data).Decode(&dst.GoogleSAML) if err == nil { - jsonSSOConfig, _ := json.Marshal(dst.SSOConfig) - if string(jsonSSOConfig) == "{}" { // empty struct - dst.SSOConfig = nil + jsonGoogleSAML, _ := json.Marshal(dst.GoogleSAML) + if string(jsonGoogleSAML) == "{}" { // empty struct + dst.GoogleSAML = nil } else { match++ } } else { - dst.SSOConfig = nil + dst.GoogleSAML = nil + } + + // try to unmarshal data into OIDC + err = newStrictDecoder(data).Decode(&dst.OIDC) + if err == nil { + jsonOIDC, _ := json.Marshal(dst.OIDC) + if string(jsonOIDC) == "{}" { // empty struct + dst.OIDC = nil + } else { + match++ + } + } else { + dst.OIDC = nil + } + + // try to unmarshal data into SAML + err = newStrictDecoder(data).Decode(&dst.SAML) + if err == nil { + jsonSAML, _ := json.Marshal(dst.SAML) + if string(jsonSAML) == "{}" { // empty struct + dst.SAML = nil + } else { + match++ + } + } else { + dst.SAML = nil } if match > 1 { // more than 1 match // reset to nil - dst.SSOConfig = nil + dst.Google = nil + dst.GoogleOIDC = nil + dst.GoogleSAML = nil + dst.OIDC = nil + dst.SAML = nil return fmt.Errorf("data matches more than one schema in oneOf(SsoConfigPost200ResponseData)") } else if match == 1 { @@ -59,8 +147,24 @@ func (dst *SsoConfigPost200ResponseData) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src SsoConfigPost200ResponseData) MarshalJSON() ([]byte, error) { - if src.SSOConfig != nil { - return json.Marshal(&src.SSOConfig) + if src.Google != nil { + return json.Marshal(src.Google) + } + + if src.GoogleOIDC != nil { + return json.Marshal(src.GoogleOIDC) + } + + if src.GoogleSAML != nil { + return json.Marshal(src.GoogleSAML) + } + + if src.OIDC != nil { + return json.Marshal(src.OIDC) + } + + if src.SAML != nil { + return json.Marshal(src.SAML) } return nil, nil // no data in oneOf schemas @@ -71,8 +175,24 @@ func (obj *SsoConfigPost200ResponseData) GetActualInstance() (interface{}) { if obj == nil { return nil } - if obj.SSOConfig != nil { - return obj.SSOConfig + if obj.Google != nil { + return obj.Google + } + + if obj.GoogleOIDC != nil { + return obj.GoogleOIDC + } + + if obj.GoogleSAML != nil { + return obj.GoogleSAML + } + + if obj.OIDC != nil { + return obj.OIDC + } + + if obj.SAML != nil { + return obj.SAML } // all schemas are nil diff --git a/internal/sdk/api/model__sso_config_post_request.go b/internal/sdk/api/model__sso_config_post_request.go index 0d12858..e806ae9 100644 --- a/internal/sdk/api/model__sso_config_post_request.go +++ b/internal/sdk/api/model__sso_config_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__sso_config_post_request_data.go b/internal/sdk/api/model__sso_config_post_request_data.go index 167e30b..13d9289 100644 --- a/internal/sdk/api/model__sso_config_post_request_data.go +++ b/internal/sdk/api/model__sso_config_post_request_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,47 +15,47 @@ import ( "fmt" ) -// SsoConfigPostRequestData - This object represents the SSO configuration for an organization or space. See https://docs.retool.com/sso for more information. +// SsoConfigPostRequestData - This object represents the SSO configuration for an organization or space. See [docs](https://docs.retool.com/sso) for more information. type SsoConfigPostRequestData struct { - SsoConfigPostRequestDataOneOf *SsoConfigPostRequestDataOneOf - SsoConfigPostRequestDataOneOf1 *SsoConfigPostRequestDataOneOf1 - SsoConfigPostRequestDataOneOf2 *SsoConfigPostRequestDataOneOf2 - SsoConfigPostRequestDataOneOf3 *SsoConfigPostRequestDataOneOf3 - SsoConfigPostRequestDataOneOf4 *SsoConfigPostRequestDataOneOf4 + Google *Google + GoogleOIDC *GoogleOIDC + GoogleSAML *GoogleSAML + OIDC *OIDC + SAML *SAML } -// SsoConfigPostRequestDataOneOfAsSsoConfigPostRequestData is a convenience function that returns SsoConfigPostRequestDataOneOf wrapped in SsoConfigPostRequestData -func SsoConfigPostRequestDataOneOfAsSsoConfigPostRequestData(v *SsoConfigPostRequestDataOneOf) SsoConfigPostRequestData { +// GoogleAsSsoConfigPostRequestData is a convenience function that returns Google wrapped in SsoConfigPostRequestData +func GoogleAsSsoConfigPostRequestData(v *Google) SsoConfigPostRequestData { return SsoConfigPostRequestData{ - SsoConfigPostRequestDataOneOf: v, + Google: v, } } -// SsoConfigPostRequestDataOneOf1AsSsoConfigPostRequestData is a convenience function that returns SsoConfigPostRequestDataOneOf1 wrapped in SsoConfigPostRequestData -func SsoConfigPostRequestDataOneOf1AsSsoConfigPostRequestData(v *SsoConfigPostRequestDataOneOf1) SsoConfigPostRequestData { +// GoogleOIDCAsSsoConfigPostRequestData is a convenience function that returns GoogleOIDC wrapped in SsoConfigPostRequestData +func GoogleOIDCAsSsoConfigPostRequestData(v *GoogleOIDC) SsoConfigPostRequestData { return SsoConfigPostRequestData{ - SsoConfigPostRequestDataOneOf1: v, + GoogleOIDC: v, } } -// SsoConfigPostRequestDataOneOf2AsSsoConfigPostRequestData is a convenience function that returns SsoConfigPostRequestDataOneOf2 wrapped in SsoConfigPostRequestData -func SsoConfigPostRequestDataOneOf2AsSsoConfigPostRequestData(v *SsoConfigPostRequestDataOneOf2) SsoConfigPostRequestData { +// GoogleSAMLAsSsoConfigPostRequestData is a convenience function that returns GoogleSAML wrapped in SsoConfigPostRequestData +func GoogleSAMLAsSsoConfigPostRequestData(v *GoogleSAML) SsoConfigPostRequestData { return SsoConfigPostRequestData{ - SsoConfigPostRequestDataOneOf2: v, + GoogleSAML: v, } } -// SsoConfigPostRequestDataOneOf3AsSsoConfigPostRequestData is a convenience function that returns SsoConfigPostRequestDataOneOf3 wrapped in SsoConfigPostRequestData -func SsoConfigPostRequestDataOneOf3AsSsoConfigPostRequestData(v *SsoConfigPostRequestDataOneOf3) SsoConfigPostRequestData { +// OIDCAsSsoConfigPostRequestData is a convenience function that returns OIDC wrapped in SsoConfigPostRequestData +func OIDCAsSsoConfigPostRequestData(v *OIDC) SsoConfigPostRequestData { return SsoConfigPostRequestData{ - SsoConfigPostRequestDataOneOf3: v, + OIDC: v, } } -// SsoConfigPostRequestDataOneOf4AsSsoConfigPostRequestData is a convenience function that returns SsoConfigPostRequestDataOneOf4 wrapped in SsoConfigPostRequestData -func SsoConfigPostRequestDataOneOf4AsSsoConfigPostRequestData(v *SsoConfigPostRequestDataOneOf4) SsoConfigPostRequestData { +// SAMLAsSsoConfigPostRequestData is a convenience function that returns SAML wrapped in SsoConfigPostRequestData +func SAMLAsSsoConfigPostRequestData(v *SAML) SsoConfigPostRequestData { return SsoConfigPostRequestData{ - SsoConfigPostRequestDataOneOf4: v, + SAML: v, } } @@ -64,78 +64,78 @@ func SsoConfigPostRequestDataOneOf4AsSsoConfigPostRequestData(v *SsoConfigPostRe func (dst *SsoConfigPostRequestData) UnmarshalJSON(data []byte) error { var err error match := 0 - // try to unmarshal data into SsoConfigPostRequestDataOneOf - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf) + // try to unmarshal data into Google + err = newStrictDecoder(data).Decode(&dst.Google) if err == nil { - jsonSsoConfigPostRequestDataOneOf, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf) - if string(jsonSsoConfigPostRequestDataOneOf) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf = nil + jsonGoogle, _ := json.Marshal(dst.Google) + if string(jsonGoogle) == "{}" { // empty struct + dst.Google = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf = nil + dst.Google = nil } - // try to unmarshal data into SsoConfigPostRequestDataOneOf1 - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf1) + // try to unmarshal data into GoogleOIDC + err = newStrictDecoder(data).Decode(&dst.GoogleOIDC) if err == nil { - jsonSsoConfigPostRequestDataOneOf1, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf1) - if string(jsonSsoConfigPostRequestDataOneOf1) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf1 = nil + jsonGoogleOIDC, _ := json.Marshal(dst.GoogleOIDC) + if string(jsonGoogleOIDC) == "{}" { // empty struct + dst.GoogleOIDC = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf1 = nil + dst.GoogleOIDC = nil } - // try to unmarshal data into SsoConfigPostRequestDataOneOf2 - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf2) + // try to unmarshal data into GoogleSAML + err = newStrictDecoder(data).Decode(&dst.GoogleSAML) if err == nil { - jsonSsoConfigPostRequestDataOneOf2, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf2) - if string(jsonSsoConfigPostRequestDataOneOf2) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf2 = nil + jsonGoogleSAML, _ := json.Marshal(dst.GoogleSAML) + if string(jsonGoogleSAML) == "{}" { // empty struct + dst.GoogleSAML = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf2 = nil + dst.GoogleSAML = nil } - // try to unmarshal data into SsoConfigPostRequestDataOneOf3 - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf3) + // try to unmarshal data into OIDC + err = newStrictDecoder(data).Decode(&dst.OIDC) if err == nil { - jsonSsoConfigPostRequestDataOneOf3, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf3) - if string(jsonSsoConfigPostRequestDataOneOf3) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf3 = nil + jsonOIDC, _ := json.Marshal(dst.OIDC) + if string(jsonOIDC) == "{}" { // empty struct + dst.OIDC = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf3 = nil + dst.OIDC = nil } - // try to unmarshal data into SsoConfigPostRequestDataOneOf4 - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf4) + // try to unmarshal data into SAML + err = newStrictDecoder(data).Decode(&dst.SAML) if err == nil { - jsonSsoConfigPostRequestDataOneOf4, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf4) - if string(jsonSsoConfigPostRequestDataOneOf4) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf4 = nil + jsonSAML, _ := json.Marshal(dst.SAML) + if string(jsonSAML) == "{}" { // empty struct + dst.SAML = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf4 = nil + dst.SAML = nil } if match > 1 { // more than 1 match // reset to nil - dst.SsoConfigPostRequestDataOneOf = nil - dst.SsoConfigPostRequestDataOneOf1 = nil - dst.SsoConfigPostRequestDataOneOf2 = nil - dst.SsoConfigPostRequestDataOneOf3 = nil - dst.SsoConfigPostRequestDataOneOf4 = nil + dst.Google = nil + dst.GoogleOIDC = nil + dst.GoogleSAML = nil + dst.OIDC = nil + dst.SAML = nil return fmt.Errorf("data matches more than one schema in oneOf(SsoConfigPostRequestData)") } else if match == 1 { @@ -147,24 +147,24 @@ func (dst *SsoConfigPostRequestData) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src SsoConfigPostRequestData) MarshalJSON() ([]byte, error) { - if src.SsoConfigPostRequestDataOneOf != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf) + if src.Google != nil { + return json.Marshal(src.Google) } - if src.SsoConfigPostRequestDataOneOf1 != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf1) + if src.GoogleOIDC != nil { + return json.Marshal(src.GoogleOIDC) } - if src.SsoConfigPostRequestDataOneOf2 != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf2) + if src.GoogleSAML != nil { + return json.Marshal(src.GoogleSAML) } - if src.SsoConfigPostRequestDataOneOf3 != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf3) + if src.OIDC != nil { + return json.Marshal(src.OIDC) } - if src.SsoConfigPostRequestDataOneOf4 != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf4) + if src.SAML != nil { + return json.Marshal(src.SAML) } return nil, nil // no data in oneOf schemas @@ -175,24 +175,24 @@ func (obj *SsoConfigPostRequestData) GetActualInstance() (interface{}) { if obj == nil { return nil } - if obj.SsoConfigPostRequestDataOneOf != nil { - return obj.SsoConfigPostRequestDataOneOf + if obj.Google != nil { + return obj.Google } - if obj.SsoConfigPostRequestDataOneOf1 != nil { - return obj.SsoConfigPostRequestDataOneOf1 + if obj.GoogleOIDC != nil { + return obj.GoogleOIDC } - if obj.SsoConfigPostRequestDataOneOf2 != nil { - return obj.SsoConfigPostRequestDataOneOf2 + if obj.GoogleSAML != nil { + return obj.GoogleSAML } - if obj.SsoConfigPostRequestDataOneOf3 != nil { - return obj.SsoConfigPostRequestDataOneOf3 + if obj.OIDC != nil { + return obj.OIDC } - if obj.SsoConfigPostRequestDataOneOf4 != nil { - return obj.SsoConfigPostRequestDataOneOf4 + if obj.SAML != nil { + return obj.SAML } // all schemas are nil diff --git a/internal/sdk/api/model__usage_app_details_get_200_response.go b/internal/sdk/api/model__usage_app_details_get_200_response.go index 8b0236d..3405ee9 100644 --- a/internal/sdk/api/model__usage_app_details_get_200_response.go +++ b/internal/sdk/api/model__usage_app_details_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_app_details_get_200_response_data.go b/internal/sdk/api/model__usage_app_details_get_200_response_data.go index 2f73a36..21037f3 100644 --- a/internal/sdk/api/model__usage_app_details_get_200_response_data.go +++ b/internal/sdk/api/model__usage_app_details_get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_app_details_get_200_response_data_overall_summary_inner.go b/internal/sdk/api/model__usage_app_details_get_200_response_data_overall_summary_inner.go index 7c76b11..5f480bd 100644 --- a/internal/sdk/api/model__usage_app_details_get_200_response_data_overall_summary_inner.go +++ b/internal/sdk/api/model__usage_app_details_get_200_response_data_overall_summary_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_app_details_get_200_response_data_viewer_summary_inner.go b/internal/sdk/api/model__usage_app_details_get_200_response_data_viewer_summary_inner.go index a863120..5cf48df 100644 --- a/internal/sdk/api/model__usage_app_details_get_200_response_data_viewer_summary_inner.go +++ b/internal/sdk/api/model__usage_app_details_get_200_response_data_viewer_summary_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_app_details_get_200_response_data_weekly_summary_inner.go b/internal/sdk/api/model__usage_app_details_get_200_response_data_weekly_summary_inner.go index ed74620..95fd6ad 100644 --- a/internal/sdk/api/model__usage_app_details_get_200_response_data_weekly_summary_inner.go +++ b/internal/sdk/api/model__usage_app_details_get_200_response_data_weekly_summary_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_app_details_get_200_response_data_weekly_summary_inner_weekly_data_inner.go b/internal/sdk/api/model__usage_app_details_get_200_response_data_weekly_summary_inner_weekly_data_inner.go index ba52a82..b2f88d7 100644 --- a/internal/sdk/api/model__usage_app_details_get_200_response_data_weekly_summary_inner_weekly_data_inner.go +++ b/internal/sdk/api/model__usage_app_details_get_200_response_data_weekly_summary_inner_weekly_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_app_summary_get_200_response.go b/internal/sdk/api/model__usage_app_summary_get_200_response.go index 5f1c148..f9d748c 100644 --- a/internal/sdk/api/model__usage_app_summary_get_200_response.go +++ b/internal/sdk/api/model__usage_app_summary_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_app_summary_get_200_response_data_inner.go b/internal/sdk/api/model__usage_app_summary_get_200_response_data_inner.go index 8da1d47..e2d6dbe 100644 --- a/internal/sdk/api/model__usage_app_summary_get_200_response_data_inner.go +++ b/internal/sdk/api/model__usage_app_summary_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_get_200_response.go b/internal/sdk/api/model__usage_get_200_response.go index fc08dbb..e25673b 100644 --- a/internal/sdk/api/model__usage_get_200_response.go +++ b/internal/sdk/api/model__usage_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_get_200_response_data.go b/internal/sdk/api/model__usage_get_200_response_data.go index 8494568..79ac27d 100644 --- a/internal/sdk/api/model__usage_get_200_response_data.go +++ b/internal/sdk/api/model__usage_get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_get_200_response_data_daily_t30_usage_inner.go b/internal/sdk/api/model__usage_get_200_response_data_daily_t30_usage_inner.go index e88e1a6..5ac0be5 100644 --- a/internal/sdk/api/model__usage_get_200_response_data_daily_t30_usage_inner.go +++ b/internal/sdk/api/model__usage_get_200_response_data_daily_t30_usage_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_organizations_get_200_response.go b/internal/sdk/api/model__usage_organizations_get_200_response.go index be8491a..78d3a65 100644 --- a/internal/sdk/api/model__usage_organizations_get_200_response.go +++ b/internal/sdk/api/model__usage_organizations_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_organizations_get_200_response_data_inner.go b/internal/sdk/api/model__usage_organizations_get_200_response_data_inner.go index f985822..01699c6 100644 --- a/internal/sdk/api/model__usage_organizations_get_200_response_data_inner.go +++ b/internal/sdk/api/model__usage_organizations_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ import ( // checks if the UsageOrganizationsGet200ResponseDataInner type satisfies the MappedNullable interface at compile time var _ MappedNullable = &UsageOrganizationsGet200ResponseDataInner{} -// UsageOrganizationsGet200ResponseDataInner An organization in Retool +// UsageOrganizationsGet200ResponseDataInner An organization in the context of usage analytics type UsageOrganizationsGet200ResponseDataInner struct { // The id of the organization OrgId string `json:"org_id"` diff --git a/internal/sdk/api/model__usage_user_details_get_200_response.go b/internal/sdk/api/model__usage_user_details_get_200_response.go index 5322de3..7b5c1ec 100644 --- a/internal/sdk/api/model__usage_user_details_get_200_response.go +++ b/internal/sdk/api/model__usage_user_details_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_user_details_get_200_response_data.go b/internal/sdk/api/model__usage_user_details_get_200_response_data.go index e8ff358..d5612a2 100644 --- a/internal/sdk/api/model__usage_user_details_get_200_response_data.go +++ b/internal/sdk/api/model__usage_user_details_get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_user_details_get_200_response_data_overall_summary_inner.go b/internal/sdk/api/model__usage_user_details_get_200_response_data_overall_summary_inner.go index 79ef134..3c83908 100644 --- a/internal/sdk/api/model__usage_user_details_get_200_response_data_overall_summary_inner.go +++ b/internal/sdk/api/model__usage_user_details_get_200_response_data_overall_summary_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_user_details_get_200_response_data_viewer_summary_inner.go b/internal/sdk/api/model__usage_user_details_get_200_response_data_viewer_summary_inner.go index 4232a9d..7b24024 100644 --- a/internal/sdk/api/model__usage_user_details_get_200_response_data_viewer_summary_inner.go +++ b/internal/sdk/api/model__usage_user_details_get_200_response_data_viewer_summary_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_user_summary_get_200_response.go b/internal/sdk/api/model__usage_user_summary_get_200_response.go index b5e1eb2..55cc060 100644 --- a/internal/sdk/api/model__usage_user_summary_get_200_response.go +++ b/internal/sdk/api/model__usage_user_summary_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__usage_user_summary_get_200_response_data_inner.go b/internal/sdk/api/model__usage_user_summary_get_200_response_data_inner.go index 0864146..781a8b4 100644 --- a/internal/sdk/api/model__usage_user_summary_get_200_response_data_inner.go +++ b/internal/sdk/api/model__usage_user_summary_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_attributes__id__patch_200_response.go b/internal/sdk/api/model__user_attributes__id__patch_200_response.go new file mode 100644 index 0000000..e14f478 --- /dev/null +++ b/internal/sdk/api/model__user_attributes__id__patch_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserAttributesIdPatch200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserAttributesIdPatch200Response{} + +// UserAttributesIdPatch200Response struct for UserAttributesIdPatch200Response +type UserAttributesIdPatch200Response struct { + // API request succeeded + Success bool `json:"success"` + Data UserAttributesIdPatch200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _UserAttributesIdPatch200Response UserAttributesIdPatch200Response + +// NewUserAttributesIdPatch200Response instantiates a new UserAttributesIdPatch200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserAttributesIdPatch200Response(success bool, data UserAttributesIdPatch200ResponseData) *UserAttributesIdPatch200Response { + this := UserAttributesIdPatch200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewUserAttributesIdPatch200ResponseWithDefaults instantiates a new UserAttributesIdPatch200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserAttributesIdPatch200ResponseWithDefaults() *UserAttributesIdPatch200Response { + this := UserAttributesIdPatch200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *UserAttributesIdPatch200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *UserAttributesIdPatch200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *UserAttributesIdPatch200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *UserAttributesIdPatch200Response) GetData() UserAttributesIdPatch200ResponseData { + if o == nil { + var ret UserAttributesIdPatch200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *UserAttributesIdPatch200Response) GetDataOk() (*UserAttributesIdPatch200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *UserAttributesIdPatch200Response) SetData(v UserAttributesIdPatch200ResponseData) { + o.Data = v +} + +func (o UserAttributesIdPatch200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserAttributesIdPatch200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserAttributesIdPatch200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varUserAttributesIdPatch200Response := _UserAttributesIdPatch200Response{} + + err = json.Unmarshal(data, &varUserAttributesIdPatch200Response) + + if err != nil { + return err + } + + *o = UserAttributesIdPatch200Response(varUserAttributesIdPatch200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserAttributesIdPatch200Response struct { + value *UserAttributesIdPatch200Response + isSet bool +} + +func (v NullableUserAttributesIdPatch200Response) Get() *UserAttributesIdPatch200Response { + return v.value +} + +func (v *NullableUserAttributesIdPatch200Response) Set(val *UserAttributesIdPatch200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUserAttributesIdPatch200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUserAttributesIdPatch200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserAttributesIdPatch200Response(val *UserAttributesIdPatch200Response) *NullableUserAttributesIdPatch200Response { + return &NullableUserAttributesIdPatch200Response{value: val, isSet: true} +} + +func (v NullableUserAttributesIdPatch200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserAttributesIdPatch200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_attributes__id__patch_200_response_data.go b/internal/sdk/api/model__user_attributes__id__patch_200_response_data.go new file mode 100644 index 0000000..a662c71 --- /dev/null +++ b/internal/sdk/api/model__user_attributes__id__patch_200_response_data.go @@ -0,0 +1,323 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserAttributesIdPatch200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserAttributesIdPatch200ResponseData{} + +// UserAttributesIdPatch200ResponseData The updated user attribute. +type UserAttributesIdPatch200ResponseData struct { + // The id of the user attribute + Id string `json:"id"` + // The name of the user attribute + Name string `json:"name"` + // The label of the user attribute + Label string `json:"label"` + // The data type of the user attribute. Valid types are `string`, `number`, or `json` + DataType string `json:"data_type"` + // The default value of the user attribute, assigned to all users without the attribute set + DefaultValue NullableString `json:"default_value"` + // The name of the Intercom user attribute that this attribute should be mapped to + IntercomAttributeName NullableString `json:"intercom_attribute_name"` + AdditionalProperties map[string]interface{} +} + +type _UserAttributesIdPatch200ResponseData UserAttributesIdPatch200ResponseData + +// NewUserAttributesIdPatch200ResponseData instantiates a new UserAttributesIdPatch200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserAttributesIdPatch200ResponseData(id string, name string, label string, dataType string, defaultValue NullableString, intercomAttributeName NullableString) *UserAttributesIdPatch200ResponseData { + this := UserAttributesIdPatch200ResponseData{} + this.Id = id + this.Name = name + this.Label = label + this.DataType = dataType + this.DefaultValue = defaultValue + this.IntercomAttributeName = intercomAttributeName + return &this +} + +// NewUserAttributesIdPatch200ResponseDataWithDefaults instantiates a new UserAttributesIdPatch200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserAttributesIdPatch200ResponseDataWithDefaults() *UserAttributesIdPatch200ResponseData { + this := UserAttributesIdPatch200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *UserAttributesIdPatch200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UserAttributesIdPatch200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *UserAttributesIdPatch200ResponseData) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *UserAttributesIdPatch200ResponseData) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UserAttributesIdPatch200ResponseData) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UserAttributesIdPatch200ResponseData) SetName(v string) { + o.Name = v +} + +// GetLabel returns the Label field value +func (o *UserAttributesIdPatch200ResponseData) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *UserAttributesIdPatch200ResponseData) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *UserAttributesIdPatch200ResponseData) SetLabel(v string) { + o.Label = v +} + +// GetDataType returns the DataType field value +func (o *UserAttributesIdPatch200ResponseData) GetDataType() string { + if o == nil { + var ret string + return ret + } + + return o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value +// and a boolean to check if the value has been set. +func (o *UserAttributesIdPatch200ResponseData) GetDataTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DataType, true +} + +// SetDataType sets field value +func (o *UserAttributesIdPatch200ResponseData) SetDataType(v string) { + o.DataType = v +} + +// GetDefaultValue returns the DefaultValue field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserAttributesIdPatch200ResponseData) GetDefaultValue() string { + if o == nil || o.DefaultValue.Get() == nil { + var ret string + return ret + } + + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserAttributesIdPatch200ResponseData) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// SetDefaultValue sets field value +func (o *UserAttributesIdPatch200ResponseData) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// GetIntercomAttributeName returns the IntercomAttributeName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserAttributesIdPatch200ResponseData) GetIntercomAttributeName() string { + if o == nil || o.IntercomAttributeName.Get() == nil { + var ret string + return ret + } + + return *o.IntercomAttributeName.Get() +} + +// GetIntercomAttributeNameOk returns a tuple with the IntercomAttributeName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserAttributesIdPatch200ResponseData) GetIntercomAttributeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IntercomAttributeName.Get(), o.IntercomAttributeName.IsSet() +} + +// SetIntercomAttributeName sets field value +func (o *UserAttributesIdPatch200ResponseData) SetIntercomAttributeName(v string) { + o.IntercomAttributeName.Set(&v) +} + +func (o UserAttributesIdPatch200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserAttributesIdPatch200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["label"] = o.Label + toSerialize["data_type"] = o.DataType + toSerialize["default_value"] = o.DefaultValue.Get() + toSerialize["intercom_attribute_name"] = o.IntercomAttributeName.Get() + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserAttributesIdPatch200ResponseData) 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{ + "id", + "name", + "label", + "data_type", + "default_value", + "intercom_attribute_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) + } + } + + varUserAttributesIdPatch200ResponseData := _UserAttributesIdPatch200ResponseData{} + + err = json.Unmarshal(data, &varUserAttributesIdPatch200ResponseData) + + if err != nil { + return err + } + + *o = UserAttributesIdPatch200ResponseData(varUserAttributesIdPatch200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "data_type") + delete(additionalProperties, "default_value") + delete(additionalProperties, "intercom_attribute_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserAttributesIdPatch200ResponseData struct { + value *UserAttributesIdPatch200ResponseData + isSet bool +} + +func (v NullableUserAttributesIdPatch200ResponseData) Get() *UserAttributesIdPatch200ResponseData { + return v.value +} + +func (v *NullableUserAttributesIdPatch200ResponseData) Set(val *UserAttributesIdPatch200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableUserAttributesIdPatch200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableUserAttributesIdPatch200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserAttributesIdPatch200ResponseData(val *UserAttributesIdPatch200ResponseData) *NullableUserAttributesIdPatch200ResponseData { + return &NullableUserAttributesIdPatch200ResponseData{value: val, isSet: true} +} + +func (v NullableUserAttributesIdPatch200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserAttributesIdPatch200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_attributes__id__patch_request.go b/internal/sdk/api/model__user_attributes__id__patch_request.go new file mode 100644 index 0000000..04b17a1 --- /dev/null +++ b/internal/sdk/api/model__user_attributes__id__patch_request.go @@ -0,0 +1,196 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the UserAttributesIdPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserAttributesIdPatchRequest{} + +// UserAttributesIdPatchRequest The body of a request to update an environment. +type UserAttributesIdPatchRequest struct { + // A list of operations to apply to the user attribute. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details. + Operations []ReplaceOperation `json:"operations"` + // Whether to update existing users with the deleted attribute + UpdateExisting *bool `json:"update_existing,omitempty"` +} + +type _UserAttributesIdPatchRequest UserAttributesIdPatchRequest + +// NewUserAttributesIdPatchRequest instantiates a new UserAttributesIdPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserAttributesIdPatchRequest(operations []ReplaceOperation) *UserAttributesIdPatchRequest { + this := UserAttributesIdPatchRequest{} + this.Operations = operations + return &this +} + +// NewUserAttributesIdPatchRequestWithDefaults instantiates a new UserAttributesIdPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserAttributesIdPatchRequestWithDefaults() *UserAttributesIdPatchRequest { + this := UserAttributesIdPatchRequest{} + return &this +} + +// GetOperations returns the Operations field value +func (o *UserAttributesIdPatchRequest) GetOperations() []ReplaceOperation { + if o == nil { + var ret []ReplaceOperation + return ret + } + + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value +// and a boolean to check if the value has been set. +func (o *UserAttributesIdPatchRequest) GetOperationsOk() ([]ReplaceOperation, bool) { + if o == nil { + return nil, false + } + return o.Operations, true +} + +// SetOperations sets field value +func (o *UserAttributesIdPatchRequest) SetOperations(v []ReplaceOperation) { + o.Operations = v +} + +// GetUpdateExisting returns the UpdateExisting field value if set, zero value otherwise. +func (o *UserAttributesIdPatchRequest) GetUpdateExisting() bool { + if o == nil || IsNil(o.UpdateExisting) { + var ret bool + return ret + } + return *o.UpdateExisting +} + +// GetUpdateExistingOk returns a tuple with the UpdateExisting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserAttributesIdPatchRequest) GetUpdateExistingOk() (*bool, bool) { + if o == nil || IsNil(o.UpdateExisting) { + return nil, false + } + return o.UpdateExisting, true +} + +// HasUpdateExisting returns a boolean if a field has been set. +func (o *UserAttributesIdPatchRequest) HasUpdateExisting() bool { + if o != nil && !IsNil(o.UpdateExisting) { + return true + } + + return false +} + +// SetUpdateExisting gets a reference to the given bool and assigns it to the UpdateExisting field. +func (o *UserAttributesIdPatchRequest) SetUpdateExisting(v bool) { + o.UpdateExisting = &v +} + +func (o UserAttributesIdPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserAttributesIdPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["operations"] = o.Operations + if !IsNil(o.UpdateExisting) { + toSerialize["update_existing"] = o.UpdateExisting + } + return toSerialize, nil +} + +func (o *UserAttributesIdPatchRequest) 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{ + "operations", + } + + 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) + } + } + + varUserAttributesIdPatchRequest := _UserAttributesIdPatchRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUserAttributesIdPatchRequest) + + if err != nil { + return err + } + + *o = UserAttributesIdPatchRequest(varUserAttributesIdPatchRequest) + + return err +} + +type NullableUserAttributesIdPatchRequest struct { + value *UserAttributesIdPatchRequest + isSet bool +} + +func (v NullableUserAttributesIdPatchRequest) Get() *UserAttributesIdPatchRequest { + return v.value +} + +func (v *NullableUserAttributesIdPatchRequest) Set(val *UserAttributesIdPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUserAttributesIdPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUserAttributesIdPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserAttributesIdPatchRequest(val *UserAttributesIdPatchRequest) *NullableUserAttributesIdPatchRequest { + return &NullableUserAttributesIdPatchRequest{value: val, isSet: true} +} + +func (v NullableUserAttributesIdPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserAttributesIdPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_attributes_get_200_response.go b/internal/sdk/api/model__user_attributes_get_200_response.go index 7b9a3cb..670459b 100644 --- a/internal/sdk/api/model__user_attributes_get_200_response.go +++ b/internal/sdk/api/model__user_attributes_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_attributes_get_200_response_data_inner.go b/internal/sdk/api/model__user_attributes_get_200_response_data_inner.go index b81de74..b316007 100644 --- a/internal/sdk/api/model__user_attributes_get_200_response_data_inner.go +++ b/internal/sdk/api/model__user_attributes_get_200_response_data_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,7 +26,7 @@ type UserAttributesGet200ResponseDataInner struct { Name string `json:"name"` // The label of the user attribute Label string `json:"label"` - // The data type of the user attribute. One of types `string`, `number`, or `json` + // The data type of the user attribute. Valid types are `string`, `number`, or `json` DataType string `json:"data_type"` // The default value of the user attribute, assigned to all users without the attribute set DefaultValue NullableString `json:"default_value"` diff --git a/internal/sdk/api/model__user_attributes_post_200_response.go b/internal/sdk/api/model__user_attributes_post_200_response.go new file mode 100644 index 0000000..bf45924 --- /dev/null +++ b/internal/sdk/api/model__user_attributes_post_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserAttributesPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserAttributesPost200Response{} + +// UserAttributesPost200Response struct for UserAttributesPost200Response +type UserAttributesPost200Response struct { + // API request succeeded + Success bool `json:"success"` + Data UserAttributesPost200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _UserAttributesPost200Response UserAttributesPost200Response + +// NewUserAttributesPost200Response instantiates a new UserAttributesPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserAttributesPost200Response(success bool, data UserAttributesPost200ResponseData) *UserAttributesPost200Response { + this := UserAttributesPost200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewUserAttributesPost200ResponseWithDefaults instantiates a new UserAttributesPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserAttributesPost200ResponseWithDefaults() *UserAttributesPost200Response { + this := UserAttributesPost200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *UserAttributesPost200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPost200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *UserAttributesPost200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *UserAttributesPost200Response) GetData() UserAttributesPost200ResponseData { + if o == nil { + var ret UserAttributesPost200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPost200Response) GetDataOk() (*UserAttributesPost200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *UserAttributesPost200Response) SetData(v UserAttributesPost200ResponseData) { + o.Data = v +} + +func (o UserAttributesPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserAttributesPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserAttributesPost200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varUserAttributesPost200Response := _UserAttributesPost200Response{} + + err = json.Unmarshal(data, &varUserAttributesPost200Response) + + if err != nil { + return err + } + + *o = UserAttributesPost200Response(varUserAttributesPost200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserAttributesPost200Response struct { + value *UserAttributesPost200Response + isSet bool +} + +func (v NullableUserAttributesPost200Response) Get() *UserAttributesPost200Response { + return v.value +} + +func (v *NullableUserAttributesPost200Response) Set(val *UserAttributesPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUserAttributesPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUserAttributesPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserAttributesPost200Response(val *UserAttributesPost200Response) *NullableUserAttributesPost200Response { + return &NullableUserAttributesPost200Response{value: val, isSet: true} +} + +func (v NullableUserAttributesPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserAttributesPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_attributes_post_200_response_data.go b/internal/sdk/api/model__user_attributes_post_200_response_data.go new file mode 100644 index 0000000..6070b07 --- /dev/null +++ b/internal/sdk/api/model__user_attributes_post_200_response_data.go @@ -0,0 +1,323 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserAttributesPost200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserAttributesPost200ResponseData{} + +// UserAttributesPost200ResponseData The created user attribute. +type UserAttributesPost200ResponseData struct { + // The id of the user attribute + Id string `json:"id"` + // The name of the user attribute + Name string `json:"name"` + // The label of the user attribute + Label string `json:"label"` + // The data type of the user attribute. Valid types are `string`, `number`, or `json` + DataType string `json:"data_type"` + // The default value of the user attribute, assigned to all users without the attribute set + DefaultValue NullableString `json:"default_value"` + // The name of the Intercom user attribute that this attribute should be mapped to + IntercomAttributeName NullableString `json:"intercom_attribute_name"` + AdditionalProperties map[string]interface{} +} + +type _UserAttributesPost200ResponseData UserAttributesPost200ResponseData + +// NewUserAttributesPost200ResponseData instantiates a new UserAttributesPost200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserAttributesPost200ResponseData(id string, name string, label string, dataType string, defaultValue NullableString, intercomAttributeName NullableString) *UserAttributesPost200ResponseData { + this := UserAttributesPost200ResponseData{} + this.Id = id + this.Name = name + this.Label = label + this.DataType = dataType + this.DefaultValue = defaultValue + this.IntercomAttributeName = intercomAttributeName + return &this +} + +// NewUserAttributesPost200ResponseDataWithDefaults instantiates a new UserAttributesPost200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserAttributesPost200ResponseDataWithDefaults() *UserAttributesPost200ResponseData { + this := UserAttributesPost200ResponseData{} + return &this +} + +// GetId returns the Id field value +func (o *UserAttributesPost200ResponseData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPost200ResponseData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *UserAttributesPost200ResponseData) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *UserAttributesPost200ResponseData) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPost200ResponseData) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UserAttributesPost200ResponseData) SetName(v string) { + o.Name = v +} + +// GetLabel returns the Label field value +func (o *UserAttributesPost200ResponseData) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPost200ResponseData) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *UserAttributesPost200ResponseData) SetLabel(v string) { + o.Label = v +} + +// GetDataType returns the DataType field value +func (o *UserAttributesPost200ResponseData) GetDataType() string { + if o == nil { + var ret string + return ret + } + + return o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPost200ResponseData) GetDataTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DataType, true +} + +// SetDataType sets field value +func (o *UserAttributesPost200ResponseData) SetDataType(v string) { + o.DataType = v +} + +// GetDefaultValue returns the DefaultValue field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserAttributesPost200ResponseData) GetDefaultValue() string { + if o == nil || o.DefaultValue.Get() == nil { + var ret string + return ret + } + + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserAttributesPost200ResponseData) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// SetDefaultValue sets field value +func (o *UserAttributesPost200ResponseData) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// GetIntercomAttributeName returns the IntercomAttributeName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserAttributesPost200ResponseData) GetIntercomAttributeName() string { + if o == nil || o.IntercomAttributeName.Get() == nil { + var ret string + return ret + } + + return *o.IntercomAttributeName.Get() +} + +// GetIntercomAttributeNameOk returns a tuple with the IntercomAttributeName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserAttributesPost200ResponseData) GetIntercomAttributeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IntercomAttributeName.Get(), o.IntercomAttributeName.IsSet() +} + +// SetIntercomAttributeName sets field value +func (o *UserAttributesPost200ResponseData) SetIntercomAttributeName(v string) { + o.IntercomAttributeName.Set(&v) +} + +func (o UserAttributesPost200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserAttributesPost200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["label"] = o.Label + toSerialize["data_type"] = o.DataType + toSerialize["default_value"] = o.DefaultValue.Get() + toSerialize["intercom_attribute_name"] = o.IntercomAttributeName.Get() + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserAttributesPost200ResponseData) 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{ + "id", + "name", + "label", + "data_type", + "default_value", + "intercom_attribute_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) + } + } + + varUserAttributesPost200ResponseData := _UserAttributesPost200ResponseData{} + + err = json.Unmarshal(data, &varUserAttributesPost200ResponseData) + + if err != nil { + return err + } + + *o = UserAttributesPost200ResponseData(varUserAttributesPost200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "data_type") + delete(additionalProperties, "default_value") + delete(additionalProperties, "intercom_attribute_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserAttributesPost200ResponseData struct { + value *UserAttributesPost200ResponseData + isSet bool +} + +func (v NullableUserAttributesPost200ResponseData) Get() *UserAttributesPost200ResponseData { + return v.value +} + +func (v *NullableUserAttributesPost200ResponseData) Set(val *UserAttributesPost200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableUserAttributesPost200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableUserAttributesPost200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserAttributesPost200ResponseData(val *UserAttributesPost200ResponseData) *NullableUserAttributesPost200ResponseData { + return &NullableUserAttributesPost200ResponseData{value: val, isSet: true} +} + +func (v NullableUserAttributesPost200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserAttributesPost200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_attributes_post_request.go b/internal/sdk/api/model__user_attributes_post_request.go new file mode 100644 index 0000000..1bf949b --- /dev/null +++ b/internal/sdk/api/model__user_attributes_post_request.go @@ -0,0 +1,277 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserAttributesPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserAttributesPostRequest{} + +// UserAttributesPostRequest struct for UserAttributesPostRequest +type UserAttributesPostRequest struct { + // The name of the user attribute. Must be alphanumeric and without spaces. + Name string `json:"name"` + // A short description of the user attribute. + Label string `json:"label"` + // The data type of the attribute, can be one of string | json | number. + DataType string `json:"dataType"` + // A default value to apply to users that don't have an attribute set. + DefaultValue NullableString `json:"defaultValue,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UserAttributesPostRequest UserAttributesPostRequest + +// NewUserAttributesPostRequest instantiates a new UserAttributesPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserAttributesPostRequest(name string, label string, dataType string) *UserAttributesPostRequest { + this := UserAttributesPostRequest{} + this.Name = name + this.Label = label + this.DataType = dataType + return &this +} + +// NewUserAttributesPostRequestWithDefaults instantiates a new UserAttributesPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserAttributesPostRequestWithDefaults() *UserAttributesPostRequest { + this := UserAttributesPostRequest{} + return &this +} + +// GetName returns the Name field value +func (o *UserAttributesPostRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPostRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UserAttributesPostRequest) SetName(v string) { + o.Name = v +} + +// GetLabel returns the Label field value +func (o *UserAttributesPostRequest) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPostRequest) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *UserAttributesPostRequest) SetLabel(v string) { + o.Label = v +} + +// GetDataType returns the DataType field value +func (o *UserAttributesPostRequest) GetDataType() string { + if o == nil { + var ret string + return ret + } + + return o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value +// and a boolean to check if the value has been set. +func (o *UserAttributesPostRequest) GetDataTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DataType, true +} + +// SetDataType sets field value +func (o *UserAttributesPostRequest) SetDataType(v string) { + o.DataType = v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UserAttributesPostRequest) GetDefaultValue() string { + if o == nil || IsNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserAttributesPostRequest) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *UserAttributesPostRequest) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *UserAttributesPostRequest) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *UserAttributesPostRequest) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *UserAttributesPostRequest) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +func (o UserAttributesPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserAttributesPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["label"] = o.Label + toSerialize["dataType"] = o.DataType + if o.DefaultValue.IsSet() { + toSerialize["defaultValue"] = o.DefaultValue.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserAttributesPostRequest) 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", + "label", + "dataType", + } + + 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) + } + } + + varUserAttributesPostRequest := _UserAttributesPostRequest{} + + err = json.Unmarshal(data, &varUserAttributesPostRequest) + + if err != nil { + return err + } + + *o = UserAttributesPostRequest(varUserAttributesPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "dataType") + delete(additionalProperties, "defaultValue") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserAttributesPostRequest struct { + value *UserAttributesPostRequest + isSet bool +} + +func (v NullableUserAttributesPostRequest) Get() *UserAttributesPostRequest { + return v.value +} + +func (v *NullableUserAttributesPostRequest) Set(val *UserAttributesPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUserAttributesPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUserAttributesPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserAttributesPostRequest(val *UserAttributesPostRequest) *NullableUserAttributesPostRequest { + return &NullableUserAttributesPostRequest{value: val, isSet: true} +} + +func (v NullableUserAttributesPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserAttributesPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_invites__user_invite_id__get_200_response.go b/internal/sdk/api/model__user_invites__user_invite_id__get_200_response.go index e1d42b0..06e37af 100644 --- a/internal/sdk/api/model__user_invites__user_invite_id__get_200_response.go +++ b/internal/sdk/api/model__user_invites__user_invite_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response.go b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response.go index 608465c..f1b0294 100644 --- a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response.go +++ b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response_data.go b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response_data.go index a0b43ae..09ac168 100644 --- a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response_data.go +++ b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes__attribute_name__delete_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_200_response.go b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_200_response.go index 862d72f..ef95c5e 100644 --- a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_200_response.go +++ b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_200_response_data.go b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_200_response_data.go index bd290c9..ca5b1fa 100644 --- a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_200_response_data.go +++ b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_request.go b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_request.go index 8a4b514..536217f 100644 --- a/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_request.go +++ b/internal/sdk/api/model__user_invites__user_invite_id__user_attributes_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_invites_get_200_response.go b/internal/sdk/api/model__user_invites_get_200_response.go index a4f1be3..025796f 100644 --- a/internal/sdk/api/model__user_invites_get_200_response.go +++ b/internal/sdk/api/model__user_invites_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_invites_post_200_response.go b/internal/sdk/api/model__user_invites_post_200_response.go index ef48c19..de8a089 100644 --- a/internal/sdk/api/model__user_invites_post_200_response.go +++ b/internal/sdk/api/model__user_invites_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_invites_post_200_response_data.go b/internal/sdk/api/model__user_invites_post_200_response_data.go index f6769dc..c3a972e 100644 --- a/internal/sdk/api/model__user_invites_post_200_response_data.go +++ b/internal/sdk/api/model__user_invites_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,7 @@ type UserInvitesPost200ResponseData struct { UserType NullableString `json:"user_type"` Metadata map[string]interface{} `json:"metadata"` CreatedAt string `json:"created_at"` + // User invite link expires 7 days after generation. InviteLink *string `json:"invite_link,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/internal/sdk/api/model__user_invites_post_request.go b/internal/sdk/api/model__user_invites_post_request.go index 9e149a7..49aaab1 100644 --- a/internal/sdk/api/model__user_invites_post_request.go +++ b/internal/sdk/api/model__user_invites_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__user_tasks__task_id__cancel_patch_request.go b/internal/sdk/api/model__user_tasks__task_id__cancel_patch_request.go new file mode 100644 index 0000000..f3161bd --- /dev/null +++ b/internal/sdk/api/model__user_tasks__task_id__cancel_patch_request.go @@ -0,0 +1,207 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksTaskIdCancelPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksTaskIdCancelPatchRequest{} + +// UserTasksTaskIdCancelPatchRequest struct for UserTasksTaskIdCancelPatchRequest +type UserTasksTaskIdCancelPatchRequest struct { + // Email of user cancelling the task. + Email string `json:"email"` + // Assignee-defined output required for a task to be cancelled. + Output map[string]interface{} `json:"output,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksTaskIdCancelPatchRequest UserTasksTaskIdCancelPatchRequest + +// NewUserTasksTaskIdCancelPatchRequest instantiates a new UserTasksTaskIdCancelPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksTaskIdCancelPatchRequest(email string) *UserTasksTaskIdCancelPatchRequest { + this := UserTasksTaskIdCancelPatchRequest{} + this.Email = email + return &this +} + +// NewUserTasksTaskIdCancelPatchRequestWithDefaults instantiates a new UserTasksTaskIdCancelPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksTaskIdCancelPatchRequestWithDefaults() *UserTasksTaskIdCancelPatchRequest { + this := UserTasksTaskIdCancelPatchRequest{} + return &this +} + +// GetEmail returns the Email field value +func (o *UserTasksTaskIdCancelPatchRequest) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdCancelPatchRequest) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *UserTasksTaskIdCancelPatchRequest) SetEmail(v string) { + o.Email = v +} + +// GetOutput returns the Output field value if set, zero value otherwise. +func (o *UserTasksTaskIdCancelPatchRequest) GetOutput() map[string]interface{} { + if o == nil || IsNil(o.Output) { + var ret map[string]interface{} + return ret + } + return o.Output +} + +// GetOutputOk returns a tuple with the Output field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdCancelPatchRequest) GetOutputOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Output) { + return map[string]interface{}{}, false + } + return o.Output, true +} + +// HasOutput returns a boolean if a field has been set. +func (o *UserTasksTaskIdCancelPatchRequest) HasOutput() bool { + if o != nil && !IsNil(o.Output) { + return true + } + + return false +} + +// SetOutput gets a reference to the given map[string]interface{} and assigns it to the Output field. +func (o *UserTasksTaskIdCancelPatchRequest) SetOutput(v map[string]interface{}) { + o.Output = v +} + +func (o UserTasksTaskIdCancelPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksTaskIdCancelPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + if !IsNil(o.Output) { + toSerialize["output"] = o.Output + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksTaskIdCancelPatchRequest) 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{ + "email", + } + + 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) + } + } + + varUserTasksTaskIdCancelPatchRequest := _UserTasksTaskIdCancelPatchRequest{} + + err = json.Unmarshal(data, &varUserTasksTaskIdCancelPatchRequest) + + if err != nil { + return err + } + + *o = UserTasksTaskIdCancelPatchRequest(varUserTasksTaskIdCancelPatchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "email") + delete(additionalProperties, "output") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksTaskIdCancelPatchRequest struct { + value *UserTasksTaskIdCancelPatchRequest + isSet bool +} + +func (v NullableUserTasksTaskIdCancelPatchRequest) Get() *UserTasksTaskIdCancelPatchRequest { + return v.value +} + +func (v *NullableUserTasksTaskIdCancelPatchRequest) Set(val *UserTasksTaskIdCancelPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksTaskIdCancelPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksTaskIdCancelPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksTaskIdCancelPatchRequest(val *UserTasksTaskIdCancelPatchRequest) *NullableUserTasksTaskIdCancelPatchRequest { + return &NullableUserTasksTaskIdCancelPatchRequest{value: val, isSet: true} +} + +func (v NullableUserTasksTaskIdCancelPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksTaskIdCancelPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request.go b/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request.go new file mode 100644 index 0000000..ebbb5d0 --- /dev/null +++ b/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request.go @@ -0,0 +1,199 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksTaskIdReassignPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksTaskIdReassignPatchRequest{} + +// UserTasksTaskIdReassignPatchRequest struct for UserTasksTaskIdReassignPatchRequest +type UserTasksTaskIdReassignPatchRequest struct { + // Email of user reassigning the task. + Email string `json:"email"` + // An array of assignees the user task should be reassigned to. Can include both groups and users. + Assignees []UserTasksTaskIdReassignPatchRequestAssigneesInner `json:"assignees"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksTaskIdReassignPatchRequest UserTasksTaskIdReassignPatchRequest + +// NewUserTasksTaskIdReassignPatchRequest instantiates a new UserTasksTaskIdReassignPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksTaskIdReassignPatchRequest(email string, assignees []UserTasksTaskIdReassignPatchRequestAssigneesInner) *UserTasksTaskIdReassignPatchRequest { + this := UserTasksTaskIdReassignPatchRequest{} + this.Email = email + this.Assignees = assignees + return &this +} + +// NewUserTasksTaskIdReassignPatchRequestWithDefaults instantiates a new UserTasksTaskIdReassignPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksTaskIdReassignPatchRequestWithDefaults() *UserTasksTaskIdReassignPatchRequest { + this := UserTasksTaskIdReassignPatchRequest{} + return &this +} + +// GetEmail returns the Email field value +func (o *UserTasksTaskIdReassignPatchRequest) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdReassignPatchRequest) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *UserTasksTaskIdReassignPatchRequest) SetEmail(v string) { + o.Email = v +} + +// GetAssignees returns the Assignees field value +func (o *UserTasksTaskIdReassignPatchRequest) GetAssignees() []UserTasksTaskIdReassignPatchRequestAssigneesInner { + if o == nil { + var ret []UserTasksTaskIdReassignPatchRequestAssigneesInner + return ret + } + + return o.Assignees +} + +// GetAssigneesOk returns a tuple with the Assignees field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdReassignPatchRequest) GetAssigneesOk() ([]UserTasksTaskIdReassignPatchRequestAssigneesInner, bool) { + if o == nil { + return nil, false + } + return o.Assignees, true +} + +// SetAssignees sets field value +func (o *UserTasksTaskIdReassignPatchRequest) SetAssignees(v []UserTasksTaskIdReassignPatchRequestAssigneesInner) { + o.Assignees = v +} + +func (o UserTasksTaskIdReassignPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksTaskIdReassignPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + toSerialize["assignees"] = o.Assignees + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksTaskIdReassignPatchRequest) 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{ + "email", + "assignees", + } + + 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) + } + } + + varUserTasksTaskIdReassignPatchRequest := _UserTasksTaskIdReassignPatchRequest{} + + err = json.Unmarshal(data, &varUserTasksTaskIdReassignPatchRequest) + + if err != nil { + return err + } + + *o = UserTasksTaskIdReassignPatchRequest(varUserTasksTaskIdReassignPatchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "email") + delete(additionalProperties, "assignees") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksTaskIdReassignPatchRequest struct { + value *UserTasksTaskIdReassignPatchRequest + isSet bool +} + +func (v NullableUserTasksTaskIdReassignPatchRequest) Get() *UserTasksTaskIdReassignPatchRequest { + return v.value +} + +func (v *NullableUserTasksTaskIdReassignPatchRequest) Set(val *UserTasksTaskIdReassignPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksTaskIdReassignPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksTaskIdReassignPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksTaskIdReassignPatchRequest(val *UserTasksTaskIdReassignPatchRequest) *NullableUserTasksTaskIdReassignPatchRequest { + return &NullableUserTasksTaskIdReassignPatchRequest{value: val, isSet: true} +} + +func (v NullableUserTasksTaskIdReassignPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksTaskIdReassignPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner.go b/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner.go new file mode 100644 index 0000000..aaf6d4f --- /dev/null +++ b/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner.go @@ -0,0 +1,105 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// UserTasksTaskIdReassignPatchRequestAssigneesInner struct for UserTasksTaskIdReassignPatchRequestAssigneesInner +type UserTasksTaskIdReassignPatchRequestAssigneesInner struct { + UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf + UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *UserTasksTaskIdReassignPatchRequestAssigneesInner) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf + err = json.Unmarshal(data, &dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf); + if err == nil { + jsonUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf, _ := json.Marshal(dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) + if string(jsonUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) == "{}" { // empty struct + dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf = nil + } else { + return nil // data stored in dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf, return on the first match + } + } else { + dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf = nil + } + + // try to unmarshal JSON data into UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 + err = json.Unmarshal(data, &dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1); + if err == nil { + jsonUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1, _ := json.Marshal(dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) + if string(jsonUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) == "{}" { // empty struct + dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 = nil + } else { + return nil // data stored in dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1, return on the first match + } + } else { + dst.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(UserTasksTaskIdReassignPatchRequestAssigneesInner)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src UserTasksTaskIdReassignPatchRequestAssigneesInner) MarshalJSON() ([]byte, error) { + if src.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf != nil { + return json.Marshal(src.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) + } + + if src.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 != nil { + return json.Marshal(src.UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableUserTasksTaskIdReassignPatchRequestAssigneesInner struct { + value *UserTasksTaskIdReassignPatchRequestAssigneesInner + isSet bool +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInner) Get() *UserTasksTaskIdReassignPatchRequestAssigneesInner { + return v.value +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInner) Set(val *UserTasksTaskIdReassignPatchRequestAssigneesInner) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksTaskIdReassignPatchRequestAssigneesInner(val *UserTasksTaskIdReassignPatchRequestAssigneesInner) *NullableUserTasksTaskIdReassignPatchRequestAssigneesInner { + return &NullableUserTasksTaskIdReassignPatchRequestAssigneesInner{value: val, isSet: true} +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner_any_of.go b/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner_any_of.go new file mode 100644 index 0000000..a7af2d0 --- /dev/null +++ b/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner_any_of.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf{} + +// UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf struct for UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf +type UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf struct { + Type string `json:"type"` + Id float32 `json:"id"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf + +// NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf(type_ string, id float32) *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf { + this := UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf{} + this.Type = type_ + this.Id = id + return &this +} + +// NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOfWithDefaults instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOfWithDefaults() *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf { + this := UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf{} + return &this +} + +// GetType returns the Type field value +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) SetType(v string) { + o.Type = v +} + +// GetId returns the Id field value +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) GetId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) GetIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) SetId(v float32) { + o.Id = v +} + +func (o UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["id"] = o.Id + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) 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{ + "type", + "id", + } + + 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) + } + } + + varUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf := _UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf{} + + err = json.Unmarshal(data, &varUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) + + if err != nil { + return err + } + + *o = UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf(varUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf struct { + value *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf + isSet bool +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) Get() *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf { + return v.value +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) Set(val *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf(val *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) *NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf { + return &NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf{value: val, isSet: true} +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner_any_of_1.go b/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner_any_of_1.go new file mode 100644 index 0000000..29d4179 --- /dev/null +++ b/internal/sdk/api/model__user_tasks__task_id__reassign_patch_request_assignees_inner_any_of_1.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1{} + +// UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 struct for UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 +type UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 struct { + Type string `json:"type"` + Id string `json:"id"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 + +// NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1(type_ string, id string) *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 { + this := UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1{} + this.Type = type_ + this.Id = id + return &this +} + +// NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1WithDefaults instantiates a new UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1WithDefaults() *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 { + this := UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1{} + return &this +} + +// GetType returns the Type field value +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) SetType(v string) { + o.Type = v +} + +// GetId returns the Id field value +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) SetId(v string) { + o.Id = v +} + +func (o UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["id"] = o.Id + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) 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{ + "type", + "id", + } + + 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) + } + } + + varUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 := _UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1{} + + err = json.Unmarshal(data, &varUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) + + if err != nil { + return err + } + + *o = UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1(varUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 struct { + value *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 + isSet bool +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) Get() *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 { + return v.value +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) Set(val *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1(val *UserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) *NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1 { + return &NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1{value: val, isSet: true} +} + +func (v NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksTaskIdReassignPatchRequestAssigneesInnerAnyOf1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks__task_id__submit_patch_200_response.go b/internal/sdk/api/model__user_tasks__task_id__submit_patch_200_response.go new file mode 100644 index 0000000..b20cfd2 --- /dev/null +++ b/internal/sdk/api/model__user_tasks__task_id__submit_patch_200_response.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksTaskIdSubmitPatch200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksTaskIdSubmitPatch200Response{} + +// UserTasksTaskIdSubmitPatch200Response struct for UserTasksTaskIdSubmitPatch200Response +type UserTasksTaskIdSubmitPatch200Response struct { + Success bool `json:"success"` + Data UserTasksTaskIdSubmitPatch200ResponseData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksTaskIdSubmitPatch200Response UserTasksTaskIdSubmitPatch200Response + +// NewUserTasksTaskIdSubmitPatch200Response instantiates a new UserTasksTaskIdSubmitPatch200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksTaskIdSubmitPatch200Response(success bool, data UserTasksTaskIdSubmitPatch200ResponseData) *UserTasksTaskIdSubmitPatch200Response { + this := UserTasksTaskIdSubmitPatch200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewUserTasksTaskIdSubmitPatch200ResponseWithDefaults instantiates a new UserTasksTaskIdSubmitPatch200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksTaskIdSubmitPatch200ResponseWithDefaults() *UserTasksTaskIdSubmitPatch200Response { + this := UserTasksTaskIdSubmitPatch200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *UserTasksTaskIdSubmitPatch200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdSubmitPatch200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *UserTasksTaskIdSubmitPatch200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *UserTasksTaskIdSubmitPatch200Response) GetData() UserTasksTaskIdSubmitPatch200ResponseData { + if o == nil { + var ret UserTasksTaskIdSubmitPatch200ResponseData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdSubmitPatch200Response) GetDataOk() (*UserTasksTaskIdSubmitPatch200ResponseData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *UserTasksTaskIdSubmitPatch200Response) SetData(v UserTasksTaskIdSubmitPatch200ResponseData) { + o.Data = v +} + +func (o UserTasksTaskIdSubmitPatch200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksTaskIdSubmitPatch200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksTaskIdSubmitPatch200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varUserTasksTaskIdSubmitPatch200Response := _UserTasksTaskIdSubmitPatch200Response{} + + err = json.Unmarshal(data, &varUserTasksTaskIdSubmitPatch200Response) + + if err != nil { + return err + } + + *o = UserTasksTaskIdSubmitPatch200Response(varUserTasksTaskIdSubmitPatch200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksTaskIdSubmitPatch200Response struct { + value *UserTasksTaskIdSubmitPatch200Response + isSet bool +} + +func (v NullableUserTasksTaskIdSubmitPatch200Response) Get() *UserTasksTaskIdSubmitPatch200Response { + return v.value +} + +func (v *NullableUserTasksTaskIdSubmitPatch200Response) Set(val *UserTasksTaskIdSubmitPatch200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksTaskIdSubmitPatch200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksTaskIdSubmitPatch200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksTaskIdSubmitPatch200Response(val *UserTasksTaskIdSubmitPatch200Response) *NullableUserTasksTaskIdSubmitPatch200Response { + return &NullableUserTasksTaskIdSubmitPatch200Response{value: val, isSet: true} +} + +func (v NullableUserTasksTaskIdSubmitPatch200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksTaskIdSubmitPatch200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks__task_id__submit_patch_200_response_data.go b/internal/sdk/api/model__user_tasks__task_id__submit_patch_200_response_data.go new file mode 100644 index 0000000..ff25a38 --- /dev/null +++ b/internal/sdk/api/model__user_tasks__task_id__submit_patch_200_response_data.go @@ -0,0 +1,168 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksTaskIdSubmitPatch200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksTaskIdSubmitPatch200ResponseData{} + +// UserTasksTaskIdSubmitPatch200ResponseData struct for UserTasksTaskIdSubmitPatch200ResponseData +type UserTasksTaskIdSubmitPatch200ResponseData struct { + UserTask UserTasksGet200ResponseDataInner `json:"user_task"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksTaskIdSubmitPatch200ResponseData UserTasksTaskIdSubmitPatch200ResponseData + +// NewUserTasksTaskIdSubmitPatch200ResponseData instantiates a new UserTasksTaskIdSubmitPatch200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksTaskIdSubmitPatch200ResponseData(userTask UserTasksGet200ResponseDataInner) *UserTasksTaskIdSubmitPatch200ResponseData { + this := UserTasksTaskIdSubmitPatch200ResponseData{} + this.UserTask = userTask + return &this +} + +// NewUserTasksTaskIdSubmitPatch200ResponseDataWithDefaults instantiates a new UserTasksTaskIdSubmitPatch200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksTaskIdSubmitPatch200ResponseDataWithDefaults() *UserTasksTaskIdSubmitPatch200ResponseData { + this := UserTasksTaskIdSubmitPatch200ResponseData{} + return &this +} + +// GetUserTask returns the UserTask field value +func (o *UserTasksTaskIdSubmitPatch200ResponseData) GetUserTask() UserTasksGet200ResponseDataInner { + if o == nil { + var ret UserTasksGet200ResponseDataInner + return ret + } + + return o.UserTask +} + +// GetUserTaskOk returns a tuple with the UserTask field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdSubmitPatch200ResponseData) GetUserTaskOk() (*UserTasksGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return &o.UserTask, true +} + +// SetUserTask sets field value +func (o *UserTasksTaskIdSubmitPatch200ResponseData) SetUserTask(v UserTasksGet200ResponseDataInner) { + o.UserTask = v +} + +func (o UserTasksTaskIdSubmitPatch200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksTaskIdSubmitPatch200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["user_task"] = o.UserTask + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksTaskIdSubmitPatch200ResponseData) 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{ + "user_task", + } + + 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) + } + } + + varUserTasksTaskIdSubmitPatch200ResponseData := _UserTasksTaskIdSubmitPatch200ResponseData{} + + err = json.Unmarshal(data, &varUserTasksTaskIdSubmitPatch200ResponseData) + + if err != nil { + return err + } + + *o = UserTasksTaskIdSubmitPatch200ResponseData(varUserTasksTaskIdSubmitPatch200ResponseData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "user_task") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksTaskIdSubmitPatch200ResponseData struct { + value *UserTasksTaskIdSubmitPatch200ResponseData + isSet bool +} + +func (v NullableUserTasksTaskIdSubmitPatch200ResponseData) Get() *UserTasksTaskIdSubmitPatch200ResponseData { + return v.value +} + +func (v *NullableUserTasksTaskIdSubmitPatch200ResponseData) Set(val *UserTasksTaskIdSubmitPatch200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksTaskIdSubmitPatch200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksTaskIdSubmitPatch200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksTaskIdSubmitPatch200ResponseData(val *UserTasksTaskIdSubmitPatch200ResponseData) *NullableUserTasksTaskIdSubmitPatch200ResponseData { + return &NullableUserTasksTaskIdSubmitPatch200ResponseData{value: val, isSet: true} +} + +func (v NullableUserTasksTaskIdSubmitPatch200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksTaskIdSubmitPatch200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks__task_id__submit_patch_request.go b/internal/sdk/api/model__user_tasks__task_id__submit_patch_request.go new file mode 100644 index 0000000..a8795b5 --- /dev/null +++ b/internal/sdk/api/model__user_tasks__task_id__submit_patch_request.go @@ -0,0 +1,199 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksTaskIdSubmitPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksTaskIdSubmitPatchRequest{} + +// UserTasksTaskIdSubmitPatchRequest struct for UserTasksTaskIdSubmitPatchRequest +type UserTasksTaskIdSubmitPatchRequest struct { + // Email of user completing the task. + Email string `json:"email"` + // Assignee-defined output required for a task to be submitted. + Output map[string]interface{} `json:"output"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksTaskIdSubmitPatchRequest UserTasksTaskIdSubmitPatchRequest + +// NewUserTasksTaskIdSubmitPatchRequest instantiates a new UserTasksTaskIdSubmitPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksTaskIdSubmitPatchRequest(email string, output map[string]interface{}) *UserTasksTaskIdSubmitPatchRequest { + this := UserTasksTaskIdSubmitPatchRequest{} + this.Email = email + this.Output = output + return &this +} + +// NewUserTasksTaskIdSubmitPatchRequestWithDefaults instantiates a new UserTasksTaskIdSubmitPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksTaskIdSubmitPatchRequestWithDefaults() *UserTasksTaskIdSubmitPatchRequest { + this := UserTasksTaskIdSubmitPatchRequest{} + return &this +} + +// GetEmail returns the Email field value +func (o *UserTasksTaskIdSubmitPatchRequest) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdSubmitPatchRequest) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *UserTasksTaskIdSubmitPatchRequest) SetEmail(v string) { + o.Email = v +} + +// GetOutput returns the Output field value +func (o *UserTasksTaskIdSubmitPatchRequest) GetOutput() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Output +} + +// GetOutputOk returns a tuple with the Output field value +// and a boolean to check if the value has been set. +func (o *UserTasksTaskIdSubmitPatchRequest) GetOutputOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Output, true +} + +// SetOutput sets field value +func (o *UserTasksTaskIdSubmitPatchRequest) SetOutput(v map[string]interface{}) { + o.Output = v +} + +func (o UserTasksTaskIdSubmitPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksTaskIdSubmitPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + toSerialize["output"] = o.Output + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksTaskIdSubmitPatchRequest) 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{ + "email", + "output", + } + + 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) + } + } + + varUserTasksTaskIdSubmitPatchRequest := _UserTasksTaskIdSubmitPatchRequest{} + + err = json.Unmarshal(data, &varUserTasksTaskIdSubmitPatchRequest) + + if err != nil { + return err + } + + *o = UserTasksTaskIdSubmitPatchRequest(varUserTasksTaskIdSubmitPatchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "email") + delete(additionalProperties, "output") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksTaskIdSubmitPatchRequest struct { + value *UserTasksTaskIdSubmitPatchRequest + isSet bool +} + +func (v NullableUserTasksTaskIdSubmitPatchRequest) Get() *UserTasksTaskIdSubmitPatchRequest { + return v.value +} + +func (v *NullableUserTasksTaskIdSubmitPatchRequest) Set(val *UserTasksTaskIdSubmitPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksTaskIdSubmitPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksTaskIdSubmitPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksTaskIdSubmitPatchRequest(val *UserTasksTaskIdSubmitPatchRequest) *NullableUserTasksTaskIdSubmitPatchRequest { + return &NullableUserTasksTaskIdSubmitPatchRequest{value: val, isSet: true} +} + +func (v NullableUserTasksTaskIdSubmitPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksTaskIdSubmitPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks_get_200_response.go b/internal/sdk/api/model__user_tasks_get_200_response.go new file mode 100644 index 0000000..95549a3 --- /dev/null +++ b/internal/sdk/api/model__user_tasks_get_200_response.go @@ -0,0 +1,291 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksGet200Response{} + +// UserTasksGet200Response A paginated list of user tasks. +type UserTasksGet200Response struct { + // API request succeeded + Success bool `json:"success"` + // An array of requested items + Data []UserTasksGet200ResponseDataInner `json:"data"` + // Total number of items in the response + TotalCount float32 `json:"total_count"` + // A token to retrieve the next page of items in the collection + NextToken NullableString `json:"next_token"` + // Whether there are more items in the collection + HasMore bool `json:"has_more"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksGet200Response UserTasksGet200Response + +// NewUserTasksGet200Response instantiates a new UserTasksGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksGet200Response(success bool, data []UserTasksGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool) *UserTasksGet200Response { + this := UserTasksGet200Response{} + this.Success = success + this.Data = data + this.TotalCount = totalCount + this.NextToken = nextToken + this.HasMore = hasMore + return &this +} + +// NewUserTasksGet200ResponseWithDefaults instantiates a new UserTasksGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksGet200ResponseWithDefaults() *UserTasksGet200Response { + this := UserTasksGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *UserTasksGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *UserTasksGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *UserTasksGet200Response) GetData() []UserTasksGet200ResponseDataInner { + if o == nil { + var ret []UserTasksGet200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200Response) GetDataOk() ([]UserTasksGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *UserTasksGet200Response) SetData(v []UserTasksGet200ResponseDataInner) { + o.Data = v +} + +// GetTotalCount returns the TotalCount field value +func (o *UserTasksGet200Response) GetTotalCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200Response) GetTotalCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *UserTasksGet200Response) SetTotalCount(v float32) { + o.TotalCount = v +} + +// GetNextToken returns the NextToken field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserTasksGet200Response) GetNextToken() string { + if o == nil || o.NextToken.Get() == nil { + var ret string + return ret + } + + return *o.NextToken.Get() +} + +// GetNextTokenOk returns a tuple with the NextToken field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserTasksGet200Response) GetNextTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextToken.Get(), o.NextToken.IsSet() +} + +// SetNextToken sets field value +func (o *UserTasksGet200Response) SetNextToken(v string) { + o.NextToken.Set(&v) +} + +// GetHasMore returns the HasMore field value +func (o *UserTasksGet200Response) GetHasMore() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200Response) GetHasMoreOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasMore, true +} + +// SetHasMore sets field value +func (o *UserTasksGet200Response) SetHasMore(v bool) { + o.HasMore = v +} + +func (o UserTasksGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + toSerialize["total_count"] = o.TotalCount + toSerialize["next_token"] = o.NextToken.Get() + toSerialize["has_more"] = o.HasMore + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksGet200Response) 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{ + "success", + "data", + "total_count", + "next_token", + "has_more", + } + + 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) + } + } + + varUserTasksGet200Response := _UserTasksGet200Response{} + + err = json.Unmarshal(data, &varUserTasksGet200Response) + + if err != nil { + return err + } + + *o = UserTasksGet200Response(varUserTasksGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + delete(additionalProperties, "total_count") + delete(additionalProperties, "next_token") + delete(additionalProperties, "has_more") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksGet200Response struct { + value *UserTasksGet200Response + isSet bool +} + +func (v NullableUserTasksGet200Response) Get() *UserTasksGet200Response { + return v.value +} + +func (v *NullableUserTasksGet200Response) Set(val *UserTasksGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksGet200Response(val *UserTasksGet200Response) *NullableUserTasksGet200Response { + return &NullableUserTasksGet200Response{value: val, isSet: true} +} + +func (v NullableUserTasksGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks_get_200_response_data_inner.go b/internal/sdk/api/model__user_tasks_get_200_response_data_inner.go new file mode 100644 index 0000000..5cc1bf9 --- /dev/null +++ b/internal/sdk/api/model__user_tasks_get_200_response_data_inner.go @@ -0,0 +1,572 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksGet200ResponseDataInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksGet200ResponseDataInner{} + +// UserTasksGet200ResponseDataInner User-defined context for the task. +type UserTasksGet200ResponseDataInner struct { + // The ID of the user task. + Id string `json:"id"` + // The ID of the workflow this task belongs to. + WorkflowId string `json:"workflow_id"` + // The name of the workflow. + WorkflowName string `json:"workflow_name"` + // The ID of the workflow run. + WorkflowRunId string `json:"workflow_run_id"` + // The name of the task. + TaskName string `json:"task_name"` + // The current status of the task. + Status string `json:"status"` + // Additional context for the task. + Context map[string]interface{} `json:"context"` + // The creation date time of the task. + CreatedAt string `json:"created_at"` + // The completion date time of the task. + CompletedAt NullableString `json:"completed_at"` + // URL links to apps associated with the task. + TaskUrl []string `json:"task_url"` + // The groups or users assigned to this task. + Assignees []UserTasksGet200ResponseDataInnerAssigneesInner `json:"assignees"` + // The workflow release version, if any. + WorkflowRelease NullableString `json:"workflow_release"` + // The expiration date time of the task, if set. + ExpiresAt NullableString `json:"expires_at"` + Output map[string]interface{} `json:"output,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksGet200ResponseDataInner UserTasksGet200ResponseDataInner + +// NewUserTasksGet200ResponseDataInner instantiates a new UserTasksGet200ResponseDataInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksGet200ResponseDataInner(id string, workflowId string, workflowName string, workflowRunId string, taskName string, status string, context map[string]interface{}, createdAt string, completedAt NullableString, taskUrl []string, assignees []UserTasksGet200ResponseDataInnerAssigneesInner, workflowRelease NullableString, expiresAt NullableString) *UserTasksGet200ResponseDataInner { + this := UserTasksGet200ResponseDataInner{} + this.Id = id + this.WorkflowId = workflowId + this.WorkflowName = workflowName + this.WorkflowRunId = workflowRunId + this.TaskName = taskName + this.Status = status + this.Context = context + this.CreatedAt = createdAt + this.CompletedAt = completedAt + this.TaskUrl = taskUrl + this.Assignees = assignees + this.WorkflowRelease = workflowRelease + this.ExpiresAt = expiresAt + return &this +} + +// NewUserTasksGet200ResponseDataInnerWithDefaults instantiates a new UserTasksGet200ResponseDataInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksGet200ResponseDataInnerWithDefaults() *UserTasksGet200ResponseDataInner { + this := UserTasksGet200ResponseDataInner{} + return &this +} + +// GetId returns the Id field value +func (o *UserTasksGet200ResponseDataInner) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *UserTasksGet200ResponseDataInner) SetId(v string) { + o.Id = v +} + +// GetWorkflowId returns the WorkflowId field value +func (o *UserTasksGet200ResponseDataInner) GetWorkflowId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowId, true +} + +// SetWorkflowId sets field value +func (o *UserTasksGet200ResponseDataInner) SetWorkflowId(v string) { + o.WorkflowId = v +} + +// GetWorkflowName returns the WorkflowName field value +func (o *UserTasksGet200ResponseDataInner) GetWorkflowName() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowName +} + +// GetWorkflowNameOk returns a tuple with the WorkflowName field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetWorkflowNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowName, true +} + +// SetWorkflowName sets field value +func (o *UserTasksGet200ResponseDataInner) SetWorkflowName(v string) { + o.WorkflowName = v +} + +// GetWorkflowRunId returns the WorkflowRunId field value +func (o *UserTasksGet200ResponseDataInner) GetWorkflowRunId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowRunId +} + +// GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetWorkflowRunIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowRunId, true +} + +// SetWorkflowRunId sets field value +func (o *UserTasksGet200ResponseDataInner) SetWorkflowRunId(v string) { + o.WorkflowRunId = v +} + +// GetTaskName returns the TaskName field value +func (o *UserTasksGet200ResponseDataInner) GetTaskName() string { + if o == nil { + var ret string + return ret + } + + return o.TaskName +} + +// GetTaskNameOk returns a tuple with the TaskName field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetTaskNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TaskName, true +} + +// SetTaskName sets field value +func (o *UserTasksGet200ResponseDataInner) SetTaskName(v string) { + o.TaskName = v +} + +// GetStatus returns the Status field value +func (o *UserTasksGet200ResponseDataInner) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *UserTasksGet200ResponseDataInner) SetStatus(v string) { + o.Status = v +} + +// GetContext returns the Context field value +func (o *UserTasksGet200ResponseDataInner) GetContext() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Context +} + +// GetContextOk returns a tuple with the Context field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetContextOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Context, true +} + +// SetContext sets field value +func (o *UserTasksGet200ResponseDataInner) SetContext(v map[string]interface{}) { + o.Context = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *UserTasksGet200ResponseDataInner) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *UserTasksGet200ResponseDataInner) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetCompletedAt returns the CompletedAt field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserTasksGet200ResponseDataInner) GetCompletedAt() string { + if o == nil || o.CompletedAt.Get() == nil { + var ret string + return ret + } + + return *o.CompletedAt.Get() +} + +// GetCompletedAtOk returns a tuple with the CompletedAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserTasksGet200ResponseDataInner) GetCompletedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CompletedAt.Get(), o.CompletedAt.IsSet() +} + +// SetCompletedAt sets field value +func (o *UserTasksGet200ResponseDataInner) SetCompletedAt(v string) { + o.CompletedAt.Set(&v) +} + +// GetTaskUrl returns the TaskUrl field value +func (o *UserTasksGet200ResponseDataInner) GetTaskUrl() []string { + if o == nil { + var ret []string + return ret + } + + return o.TaskUrl +} + +// GetTaskUrlOk returns a tuple with the TaskUrl field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetTaskUrlOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.TaskUrl, true +} + +// SetTaskUrl sets field value +func (o *UserTasksGet200ResponseDataInner) SetTaskUrl(v []string) { + o.TaskUrl = v +} + +// GetAssignees returns the Assignees field value +func (o *UserTasksGet200ResponseDataInner) GetAssignees() []UserTasksGet200ResponseDataInnerAssigneesInner { + if o == nil { + var ret []UserTasksGet200ResponseDataInnerAssigneesInner + return ret + } + + return o.Assignees +} + +// GetAssigneesOk returns a tuple with the Assignees field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetAssigneesOk() ([]UserTasksGet200ResponseDataInnerAssigneesInner, bool) { + if o == nil { + return nil, false + } + return o.Assignees, true +} + +// SetAssignees sets field value +func (o *UserTasksGet200ResponseDataInner) SetAssignees(v []UserTasksGet200ResponseDataInnerAssigneesInner) { + o.Assignees = v +} + +// GetWorkflowRelease returns the WorkflowRelease field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserTasksGet200ResponseDataInner) GetWorkflowRelease() string { + if o == nil || o.WorkflowRelease.Get() == nil { + var ret string + return ret + } + + return *o.WorkflowRelease.Get() +} + +// GetWorkflowReleaseOk returns a tuple with the WorkflowRelease field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserTasksGet200ResponseDataInner) GetWorkflowReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowRelease.Get(), o.WorkflowRelease.IsSet() +} + +// SetWorkflowRelease sets field value +func (o *UserTasksGet200ResponseDataInner) SetWorkflowRelease(v string) { + o.WorkflowRelease.Set(&v) +} + +// GetExpiresAt returns the ExpiresAt field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserTasksGet200ResponseDataInner) GetExpiresAt() string { + if o == nil || o.ExpiresAt.Get() == nil { + var ret string + return ret + } + + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserTasksGet200ResponseDataInner) GetExpiresAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// SetExpiresAt sets field value +func (o *UserTasksGet200ResponseDataInner) SetExpiresAt(v string) { + o.ExpiresAt.Set(&v) +} + +// GetOutput returns the Output field value if set, zero value otherwise. +func (o *UserTasksGet200ResponseDataInner) GetOutput() map[string]interface{} { + if o == nil || IsNil(o.Output) { + var ret map[string]interface{} + return ret + } + return o.Output +} + +// GetOutputOk returns a tuple with the Output field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInner) GetOutputOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Output) { + return map[string]interface{}{}, false + } + return o.Output, true +} + +// HasOutput returns a boolean if a field has been set. +func (o *UserTasksGet200ResponseDataInner) HasOutput() bool { + if o != nil && !IsNil(o.Output) { + return true + } + + return false +} + +// SetOutput gets a reference to the given map[string]interface{} and assigns it to the Output field. +func (o *UserTasksGet200ResponseDataInner) SetOutput(v map[string]interface{}) { + o.Output = v +} + +func (o UserTasksGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksGet200ResponseDataInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["workflow_id"] = o.WorkflowId + toSerialize["workflow_name"] = o.WorkflowName + toSerialize["workflow_run_id"] = o.WorkflowRunId + toSerialize["task_name"] = o.TaskName + toSerialize["status"] = o.Status + toSerialize["context"] = o.Context + toSerialize["created_at"] = o.CreatedAt + toSerialize["completed_at"] = o.CompletedAt.Get() + toSerialize["task_url"] = o.TaskUrl + toSerialize["assignees"] = o.Assignees + toSerialize["workflow_release"] = o.WorkflowRelease.Get() + toSerialize["expires_at"] = o.ExpiresAt.Get() + if !IsNil(o.Output) { + toSerialize["output"] = o.Output + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksGet200ResponseDataInner) 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{ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at", + } + + 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) + } + } + + varUserTasksGet200ResponseDataInner := _UserTasksGet200ResponseDataInner{} + + err = json.Unmarshal(data, &varUserTasksGet200ResponseDataInner) + + if err != nil { + return err + } + + *o = UserTasksGet200ResponseDataInner(varUserTasksGet200ResponseDataInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "workflow_id") + delete(additionalProperties, "workflow_name") + delete(additionalProperties, "workflow_run_id") + delete(additionalProperties, "task_name") + delete(additionalProperties, "status") + delete(additionalProperties, "context") + delete(additionalProperties, "created_at") + delete(additionalProperties, "completed_at") + delete(additionalProperties, "task_url") + delete(additionalProperties, "assignees") + delete(additionalProperties, "workflow_release") + delete(additionalProperties, "expires_at") + delete(additionalProperties, "output") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksGet200ResponseDataInner struct { + value *UserTasksGet200ResponseDataInner + isSet bool +} + +func (v NullableUserTasksGet200ResponseDataInner) Get() *UserTasksGet200ResponseDataInner { + return v.value +} + +func (v *NullableUserTasksGet200ResponseDataInner) Set(val *UserTasksGet200ResponseDataInner) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksGet200ResponseDataInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksGet200ResponseDataInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksGet200ResponseDataInner(val *UserTasksGet200ResponseDataInner) *NullableUserTasksGet200ResponseDataInner { + return &NullableUserTasksGet200ResponseDataInner{value: val, isSet: true} +} + +func (v NullableUserTasksGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksGet200ResponseDataInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks_get_200_response_data_inner_assignees_inner.go b/internal/sdk/api/model__user_tasks_get_200_response_data_inner_assignees_inner.go new file mode 100644 index 0000000..a2582d6 --- /dev/null +++ b/internal/sdk/api/model__user_tasks_get_200_response_data_inner_assignees_inner.go @@ -0,0 +1,226 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTasksGet200ResponseDataInnerAssigneesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTasksGet200ResponseDataInnerAssigneesInner{} + +// UserTasksGet200ResponseDataInnerAssigneesInner struct for UserTasksGet200ResponseDataInnerAssigneesInner +type UserTasksGet200ResponseDataInnerAssigneesInner struct { + Type string `json:"type"` + Id float32 `json:"id"` + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _UserTasksGet200ResponseDataInnerAssigneesInner UserTasksGet200ResponseDataInnerAssigneesInner + +// NewUserTasksGet200ResponseDataInnerAssigneesInner instantiates a new UserTasksGet200ResponseDataInnerAssigneesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTasksGet200ResponseDataInnerAssigneesInner(type_ string, id float32, name string) *UserTasksGet200ResponseDataInnerAssigneesInner { + this := UserTasksGet200ResponseDataInnerAssigneesInner{} + this.Type = type_ + this.Id = id + this.Name = name + return &this +} + +// NewUserTasksGet200ResponseDataInnerAssigneesInnerWithDefaults instantiates a new UserTasksGet200ResponseDataInnerAssigneesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTasksGet200ResponseDataInnerAssigneesInnerWithDefaults() *UserTasksGet200ResponseDataInnerAssigneesInner { + this := UserTasksGet200ResponseDataInnerAssigneesInner{} + return &this +} + +// GetType returns the Type field value +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) SetType(v string) { + o.Type = v +} + +// GetId returns the Id field value +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) SetId(v float32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) SetName(v string) { + o.Name = v +} + +func (o UserTasksGet200ResponseDataInnerAssigneesInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTasksGet200ResponseDataInnerAssigneesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTasksGet200ResponseDataInnerAssigneesInner) 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{ + "type", + "id", + "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) + } + } + + varUserTasksGet200ResponseDataInnerAssigneesInner := _UserTasksGet200ResponseDataInnerAssigneesInner{} + + err = json.Unmarshal(data, &varUserTasksGet200ResponseDataInnerAssigneesInner) + + if err != nil { + return err + } + + *o = UserTasksGet200ResponseDataInnerAssigneesInner(varUserTasksGet200ResponseDataInnerAssigneesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTasksGet200ResponseDataInnerAssigneesInner struct { + value *UserTasksGet200ResponseDataInnerAssigneesInner + isSet bool +} + +func (v NullableUserTasksGet200ResponseDataInnerAssigneesInner) Get() *UserTasksGet200ResponseDataInnerAssigneesInner { + return v.value +} + +func (v *NullableUserTasksGet200ResponseDataInnerAssigneesInner) Set(val *UserTasksGet200ResponseDataInnerAssigneesInner) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksGet200ResponseDataInnerAssigneesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksGet200ResponseDataInnerAssigneesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksGet200ResponseDataInnerAssigneesInner(val *UserTasksGet200ResponseDataInnerAssigneesInner) *NullableUserTasksGet200ResponseDataInnerAssigneesInner { + return &NullableUserTasksGet200ResponseDataInnerAssigneesInner{value: val, isSet: true} +} + +func (v NullableUserTasksGet200ResponseDataInnerAssigneesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksGet200ResponseDataInnerAssigneesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__user_tasks_get_assigned_to_users_parameter.go b/internal/sdk/api/model__user_tasks_get_assigned_to_users_parameter.go new file mode 100644 index 0000000..511fee6 --- /dev/null +++ b/internal/sdk/api/model__user_tasks_get_assigned_to_users_parameter.go @@ -0,0 +1,105 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// UserTasksGetAssignedToUsersParameter Filter tasks by assignment. Provide one or more user ids. If not provided, returns all accessible tasks. +type UserTasksGetAssignedToUsersParameter struct { + ArrayOfString *[]string + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *UserTasksGetAssignedToUsersParameter) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into []string + err = json.Unmarshal(data, &dst.ArrayOfString); + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + return nil // data stored in dst.ArrayOfString, return on the first match + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal JSON data into string + err = json.Unmarshal(data, &dst.String); + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(UserTasksGetAssignedToUsersParameter)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *UserTasksGetAssignedToUsersParameter) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableUserTasksGetAssignedToUsersParameter struct { + value *UserTasksGetAssignedToUsersParameter + isSet bool +} + +func (v NullableUserTasksGetAssignedToUsersParameter) Get() *UserTasksGetAssignedToUsersParameter { + return v.value +} + +func (v *NullableUserTasksGetAssignedToUsersParameter) Set(val *UserTasksGetAssignedToUsersParameter) { + v.value = val + v.isSet = true +} + +func (v NullableUserTasksGetAssignedToUsersParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTasksGetAssignedToUsersParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTasksGetAssignedToUsersParameter(val *UserTasksGetAssignedToUsersParameter) *NullableUserTasksGetAssignedToUsersParameter { + return &NullableUserTasksGetAssignedToUsersParameter{value: val, isSet: true} +} + +func (v NullableUserTasksGetAssignedToUsersParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTasksGetAssignedToUsersParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__users__user_id__get_200_response.go b/internal/sdk/api/model__users__user_id__get_200_response.go index 401e609..dfe6e53 100644 --- a/internal/sdk/api/model__users__user_id__get_200_response.go +++ b/internal/sdk/api/model__users__user_id__get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users__user_id__get_200_response_data.go b/internal/sdk/api/model__users__user_id__get_200_response_data.go index 94b71e9..98375b4 100644 --- a/internal/sdk/api/model__users__user_id__get_200_response_data.go +++ b/internal/sdk/api/model__users__user_id__get_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,7 +25,7 @@ type UsersUserIdGet200ResponseData struct { // The id of the user Id string `json:"id"` // The legacy id of the user - LegacyId string `json:"legacy_id"` + LegacyId float32 `json:"legacy_id"` // The email of the user Email string `json:"email"` // Whether the user is active or not @@ -37,6 +37,12 @@ type UsersUserIdGet200ResponseData struct { // The last name of the user LastName NullableString `json:"last_name"` Metadata map[string]interface{} `json:"metadata"` + // Whether the user is an admin or not + IsAdmin bool `json:"is_admin"` + // The user type + UserType string `json:"user_type"` + // Whether two factor authentication is enabled for this user + TwoFactorAuthEnabled bool `json:"two_factor_auth_enabled"` } type _UsersUserIdGet200ResponseData UsersUserIdGet200ResponseData @@ -45,7 +51,7 @@ type _UsersUserIdGet200ResponseData UsersUserIdGet200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUsersUserIdGet200ResponseData(id string, legacyId string, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}) *UsersUserIdGet200ResponseData { +func NewUsersUserIdGet200ResponseData(id string, legacyId float32, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}, isAdmin bool, userType string, twoFactorAuthEnabled bool) *UsersUserIdGet200ResponseData { this := UsersUserIdGet200ResponseData{} this.Id = id this.LegacyId = legacyId @@ -56,6 +62,9 @@ func NewUsersUserIdGet200ResponseData(id string, legacyId string, email string, this.FirstName = firstName this.LastName = lastName this.Metadata = metadata + this.IsAdmin = isAdmin + this.UserType = userType + this.TwoFactorAuthEnabled = twoFactorAuthEnabled return &this } @@ -92,9 +101,9 @@ func (o *UsersUserIdGet200ResponseData) SetId(v string) { } // GetLegacyId returns the LegacyId field value -func (o *UsersUserIdGet200ResponseData) GetLegacyId() string { +func (o *UsersUserIdGet200ResponseData) GetLegacyId() float32 { if o == nil { - var ret string + var ret float32 return ret } @@ -103,7 +112,7 @@ func (o *UsersUserIdGet200ResponseData) GetLegacyId() string { // GetLegacyIdOk returns a tuple with the LegacyId field value // and a boolean to check if the value has been set. -func (o *UsersUserIdGet200ResponseData) GetLegacyIdOk() (*string, bool) { +func (o *UsersUserIdGet200ResponseData) GetLegacyIdOk() (*float32, bool) { if o == nil { return nil, false } @@ -111,7 +120,7 @@ func (o *UsersUserIdGet200ResponseData) GetLegacyIdOk() (*string, bool) { } // SetLegacyId sets field value -func (o *UsersUserIdGet200ResponseData) SetLegacyId(v string) { +func (o *UsersUserIdGet200ResponseData) SetLegacyId(v float32) { o.LegacyId = v } @@ -289,6 +298,78 @@ func (o *UsersUserIdGet200ResponseData) SetMetadata(v map[string]interface{}) { o.Metadata = v } +// GetIsAdmin returns the IsAdmin field value +func (o *UsersUserIdGet200ResponseData) GetIsAdmin() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsAdmin +} + +// GetIsAdminOk returns a tuple with the IsAdmin field value +// and a boolean to check if the value has been set. +func (o *UsersUserIdGet200ResponseData) GetIsAdminOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsAdmin, true +} + +// SetIsAdmin sets field value +func (o *UsersUserIdGet200ResponseData) SetIsAdmin(v bool) { + o.IsAdmin = v +} + +// GetUserType returns the UserType field value +func (o *UsersUserIdGet200ResponseData) GetUserType() string { + if o == nil { + var ret string + return ret + } + + return o.UserType +} + +// GetUserTypeOk returns a tuple with the UserType field value +// and a boolean to check if the value has been set. +func (o *UsersUserIdGet200ResponseData) GetUserTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserType, true +} + +// SetUserType sets field value +func (o *UsersUserIdGet200ResponseData) SetUserType(v string) { + o.UserType = v +} + +// GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field value +func (o *UsersUserIdGet200ResponseData) GetTwoFactorAuthEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.TwoFactorAuthEnabled +} + +// GetTwoFactorAuthEnabledOk returns a tuple with the TwoFactorAuthEnabled field value +// and a boolean to check if the value has been set. +func (o *UsersUserIdGet200ResponseData) GetTwoFactorAuthEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TwoFactorAuthEnabled, true +} + +// SetTwoFactorAuthEnabled sets field value +func (o *UsersUserIdGet200ResponseData) SetTwoFactorAuthEnabled(v bool) { + o.TwoFactorAuthEnabled = v +} + func (o UsersUserIdGet200ResponseData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -308,6 +389,9 @@ func (o UsersUserIdGet200ResponseData) ToMap() (map[string]interface{}, error) { toSerialize["first_name"] = o.FirstName.Get() toSerialize["last_name"] = o.LastName.Get() toSerialize["metadata"] = o.Metadata + toSerialize["is_admin"] = o.IsAdmin + toSerialize["user_type"] = o.UserType + toSerialize["two_factor_auth_enabled"] = o.TwoFactorAuthEnabled return toSerialize, nil } @@ -325,6 +409,9 @@ func (o *UsersUserIdGet200ResponseData) UnmarshalJSON(data []byte) (err error) { "first_name", "last_name", "metadata", + "is_admin", + "user_type", + "two_factor_auth_enabled", } allProperties := make(map[string]interface{}) diff --git a/internal/sdk/api/model__users__user_id__patch_request.go b/internal/sdk/api/model__users__user_id__patch_request.go index de1c25a..0f72efd 100644 --- a/internal/sdk/api/model__users__user_id__patch_request.go +++ b/internal/sdk/api/model__users__user_id__patch_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users__user_id__patch_request_operations_inner.go b/internal/sdk/api/model__users__user_id__patch_request_operations_inner.go index 431cdc4..798d7ae 100644 --- a/internal/sdk/api/model__users__user_id__patch_request_operations_inner.go +++ b/internal/sdk/api/model__users__user_id__patch_request_operations_inner.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,68 +17,68 @@ import ( // UsersUserIdPatchRequestOperationsInner struct for UsersUserIdPatchRequestOperationsInner type UsersUserIdPatchRequestOperationsInner struct { - UsersUserIdPatchRequestOperationsInnerAnyOf *UsersUserIdPatchRequestOperationsInnerAnyOf - UsersUserIdPatchRequestOperationsInnerAnyOf1 *UsersUserIdPatchRequestOperationsInnerAnyOf1 - UsersUserIdPatchRequestOperationsInnerAnyOf2 *UsersUserIdPatchRequestOperationsInnerAnyOf2 + AddOperation *AddOperation + RemoveOperation *RemoveOperation + ReplaceOperation *ReplaceOperation } // Unmarshal JSON data into any of the pointers in the struct func (dst *UsersUserIdPatchRequestOperationsInner) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into UsersUserIdPatchRequestOperationsInnerAnyOf - err = json.Unmarshal(data, &dst.UsersUserIdPatchRequestOperationsInnerAnyOf); + // try to unmarshal JSON data into AddOperation + err = json.Unmarshal(data, &dst.AddOperation); if err == nil { - jsonUsersUserIdPatchRequestOperationsInnerAnyOf, _ := json.Marshal(dst.UsersUserIdPatchRequestOperationsInnerAnyOf) - if string(jsonUsersUserIdPatchRequestOperationsInnerAnyOf) == "{}" { // empty struct - dst.UsersUserIdPatchRequestOperationsInnerAnyOf = nil + jsonAddOperation, _ := json.Marshal(dst.AddOperation) + if string(jsonAddOperation) == "{}" { // empty struct + dst.AddOperation = nil } else { - return nil // data stored in dst.UsersUserIdPatchRequestOperationsInnerAnyOf, return on the first match + return nil // data stored in dst.AddOperation, return on the first match } } else { - dst.UsersUserIdPatchRequestOperationsInnerAnyOf = nil + dst.AddOperation = nil } - // try to unmarshal JSON data into UsersUserIdPatchRequestOperationsInnerAnyOf1 - err = json.Unmarshal(data, &dst.UsersUserIdPatchRequestOperationsInnerAnyOf1); + // try to unmarshal JSON data into RemoveOperation + err = json.Unmarshal(data, &dst.RemoveOperation); if err == nil { - jsonUsersUserIdPatchRequestOperationsInnerAnyOf1, _ := json.Marshal(dst.UsersUserIdPatchRequestOperationsInnerAnyOf1) - if string(jsonUsersUserIdPatchRequestOperationsInnerAnyOf1) == "{}" { // empty struct - dst.UsersUserIdPatchRequestOperationsInnerAnyOf1 = nil + jsonRemoveOperation, _ := json.Marshal(dst.RemoveOperation) + if string(jsonRemoveOperation) == "{}" { // empty struct + dst.RemoveOperation = nil } else { - return nil // data stored in dst.UsersUserIdPatchRequestOperationsInnerAnyOf1, return on the first match + return nil // data stored in dst.RemoveOperation, return on the first match } } else { - dst.UsersUserIdPatchRequestOperationsInnerAnyOf1 = nil + dst.RemoveOperation = nil } - // try to unmarshal JSON data into UsersUserIdPatchRequestOperationsInnerAnyOf2 - err = json.Unmarshal(data, &dst.UsersUserIdPatchRequestOperationsInnerAnyOf2); + // try to unmarshal JSON data into ReplaceOperation + err = json.Unmarshal(data, &dst.ReplaceOperation); if err == nil { - jsonUsersUserIdPatchRequestOperationsInnerAnyOf2, _ := json.Marshal(dst.UsersUserIdPatchRequestOperationsInnerAnyOf2) - if string(jsonUsersUserIdPatchRequestOperationsInnerAnyOf2) == "{}" { // empty struct - dst.UsersUserIdPatchRequestOperationsInnerAnyOf2 = nil + jsonReplaceOperation, _ := json.Marshal(dst.ReplaceOperation) + if string(jsonReplaceOperation) == "{}" { // empty struct + dst.ReplaceOperation = nil } else { - return nil // data stored in dst.UsersUserIdPatchRequestOperationsInnerAnyOf2, return on the first match + return nil // data stored in dst.ReplaceOperation, return on the first match } } else { - dst.UsersUserIdPatchRequestOperationsInnerAnyOf2 = nil + dst.ReplaceOperation = nil } return fmt.Errorf("data failed to match schemas in anyOf(UsersUserIdPatchRequestOperationsInner)") } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *UsersUserIdPatchRequestOperationsInner) MarshalJSON() ([]byte, error) { - if src.UsersUserIdPatchRequestOperationsInnerAnyOf != nil { - return json.Marshal(&src.UsersUserIdPatchRequestOperationsInnerAnyOf) +func (src UsersUserIdPatchRequestOperationsInner) MarshalJSON() ([]byte, error) { + if src.AddOperation != nil { + return json.Marshal(src.AddOperation) } - if src.UsersUserIdPatchRequestOperationsInnerAnyOf1 != nil { - return json.Marshal(&src.UsersUserIdPatchRequestOperationsInnerAnyOf1) + if src.RemoveOperation != nil { + return json.Marshal(src.RemoveOperation) } - if src.UsersUserIdPatchRequestOperationsInnerAnyOf2 != nil { - return json.Marshal(&src.UsersUserIdPatchRequestOperationsInnerAnyOf2) + if src.ReplaceOperation != nil { + return json.Marshal(src.ReplaceOperation) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model__users__user_id__user_attributes__attribute_name__delete_200_response.go b/internal/sdk/api/model__users__user_id__user_attributes__attribute_name__delete_200_response.go index a0d6342..70c2de4 100644 --- a/internal/sdk/api/model__users__user_id__user_attributes__attribute_name__delete_200_response.go +++ b/internal/sdk/api/model__users__user_id__user_attributes__attribute_name__delete_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users__user_id__user_attributes__attribute_name__delete_200_response_data.go b/internal/sdk/api/model__users__user_id__user_attributes__attribute_name__delete_200_response_data.go index 5688bd1..3813161 100644 --- a/internal/sdk/api/model__users__user_id__user_attributes__attribute_name__delete_200_response_data.go +++ b/internal/sdk/api/model__users__user_id__user_attributes__attribute_name__delete_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users__user_id__user_attributes_post_200_response.go b/internal/sdk/api/model__users__user_id__user_attributes_post_200_response.go index fe9d245..f6f57af 100644 --- a/internal/sdk/api/model__users__user_id__user_attributes_post_200_response.go +++ b/internal/sdk/api/model__users__user_id__user_attributes_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users__user_id__user_attributes_post_200_response_data.go b/internal/sdk/api/model__users__user_id__user_attributes_post_200_response_data.go index 51178eb..3505120 100644 --- a/internal/sdk/api/model__users__user_id__user_attributes_post_200_response_data.go +++ b/internal/sdk/api/model__users__user_id__user_attributes_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users__user_id__user_attributes_post_request.go b/internal/sdk/api/model__users__user_id__user_attributes_post_request.go index 91d04e2..3b5edfa 100644 --- a/internal/sdk/api/model__users__user_id__user_attributes_post_request.go +++ b/internal/sdk/api/model__users__user_id__user_attributes_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users_get_200_response.go b/internal/sdk/api/model__users_get_200_response.go index d5e542f..390e540 100644 --- a/internal/sdk/api/model__users_get_200_response.go +++ b/internal/sdk/api/model__users_get_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users_post_200_response.go b/internal/sdk/api/model__users_post_200_response.go index 8ca6722..db5538d 100644 --- a/internal/sdk/api/model__users_post_200_response.go +++ b/internal/sdk/api/model__users_post_200_response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model__users_post_200_response_data.go b/internal/sdk/api/model__users_post_200_response_data.go index b54f5c1..1d343b3 100644 --- a/internal/sdk/api/model__users_post_200_response_data.go +++ b/internal/sdk/api/model__users_post_200_response_data.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,7 +25,7 @@ type UsersPost200ResponseData struct { // The id of the user Id string `json:"id"` // The legacy id of the user - LegacyId string `json:"legacy_id"` + LegacyId float32 `json:"legacy_id"` // The email of the user Email string `json:"email"` // Whether the user is active or not @@ -37,6 +37,12 @@ type UsersPost200ResponseData struct { // The last name of the user LastName NullableString `json:"last_name"` Metadata map[string]interface{} `json:"metadata"` + // Whether the user is an admin or not + IsAdmin bool `json:"is_admin"` + // The user type + UserType string `json:"user_type"` + // Whether two factor authentication is enabled for this user + TwoFactorAuthEnabled bool `json:"two_factor_auth_enabled"` } type _UsersPost200ResponseData UsersPost200ResponseData @@ -45,7 +51,7 @@ type _UsersPost200ResponseData UsersPost200ResponseData // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUsersPost200ResponseData(id string, legacyId string, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}) *UsersPost200ResponseData { +func NewUsersPost200ResponseData(id string, legacyId float32, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}, isAdmin bool, userType string, twoFactorAuthEnabled bool) *UsersPost200ResponseData { this := UsersPost200ResponseData{} this.Id = id this.LegacyId = legacyId @@ -56,6 +62,9 @@ func NewUsersPost200ResponseData(id string, legacyId string, email string, activ this.FirstName = firstName this.LastName = lastName this.Metadata = metadata + this.IsAdmin = isAdmin + this.UserType = userType + this.TwoFactorAuthEnabled = twoFactorAuthEnabled return &this } @@ -92,9 +101,9 @@ func (o *UsersPost200ResponseData) SetId(v string) { } // GetLegacyId returns the LegacyId field value -func (o *UsersPost200ResponseData) GetLegacyId() string { +func (o *UsersPost200ResponseData) GetLegacyId() float32 { if o == nil { - var ret string + var ret float32 return ret } @@ -103,7 +112,7 @@ func (o *UsersPost200ResponseData) GetLegacyId() string { // GetLegacyIdOk returns a tuple with the LegacyId field value // and a boolean to check if the value has been set. -func (o *UsersPost200ResponseData) GetLegacyIdOk() (*string, bool) { +func (o *UsersPost200ResponseData) GetLegacyIdOk() (*float32, bool) { if o == nil { return nil, false } @@ -111,7 +120,7 @@ func (o *UsersPost200ResponseData) GetLegacyIdOk() (*string, bool) { } // SetLegacyId sets field value -func (o *UsersPost200ResponseData) SetLegacyId(v string) { +func (o *UsersPost200ResponseData) SetLegacyId(v float32) { o.LegacyId = v } @@ -289,6 +298,78 @@ func (o *UsersPost200ResponseData) SetMetadata(v map[string]interface{}) { o.Metadata = v } +// GetIsAdmin returns the IsAdmin field value +func (o *UsersPost200ResponseData) GetIsAdmin() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsAdmin +} + +// GetIsAdminOk returns a tuple with the IsAdmin field value +// and a boolean to check if the value has been set. +func (o *UsersPost200ResponseData) GetIsAdminOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsAdmin, true +} + +// SetIsAdmin sets field value +func (o *UsersPost200ResponseData) SetIsAdmin(v bool) { + o.IsAdmin = v +} + +// GetUserType returns the UserType field value +func (o *UsersPost200ResponseData) GetUserType() string { + if o == nil { + var ret string + return ret + } + + return o.UserType +} + +// GetUserTypeOk returns a tuple with the UserType field value +// and a boolean to check if the value has been set. +func (o *UsersPost200ResponseData) GetUserTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserType, true +} + +// SetUserType sets field value +func (o *UsersPost200ResponseData) SetUserType(v string) { + o.UserType = v +} + +// GetTwoFactorAuthEnabled returns the TwoFactorAuthEnabled field value +func (o *UsersPost200ResponseData) GetTwoFactorAuthEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.TwoFactorAuthEnabled +} + +// GetTwoFactorAuthEnabledOk returns a tuple with the TwoFactorAuthEnabled field value +// and a boolean to check if the value has been set. +func (o *UsersPost200ResponseData) GetTwoFactorAuthEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TwoFactorAuthEnabled, true +} + +// SetTwoFactorAuthEnabled sets field value +func (o *UsersPost200ResponseData) SetTwoFactorAuthEnabled(v bool) { + o.TwoFactorAuthEnabled = v +} + func (o UsersPost200ResponseData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -308,6 +389,9 @@ func (o UsersPost200ResponseData) ToMap() (map[string]interface{}, error) { toSerialize["first_name"] = o.FirstName.Get() toSerialize["last_name"] = o.LastName.Get() toSerialize["metadata"] = o.Metadata + toSerialize["is_admin"] = o.IsAdmin + toSerialize["user_type"] = o.UserType + toSerialize["two_factor_auth_enabled"] = o.TwoFactorAuthEnabled return toSerialize, nil } @@ -325,6 +409,9 @@ func (o *UsersPost200ResponseData) UnmarshalJSON(data []byte) (err error) { "first_name", "last_name", "metadata", + "is_admin", + "user_type", + "two_factor_auth_enabled", } allProperties := make(map[string]interface{}) diff --git a/internal/sdk/api/model__users_post_request.go b/internal/sdk/api/model__users_post_request.go index f4c1b62..be4ca51 100644 --- a/internal/sdk/api/model__users_post_request.go +++ b/internal/sdk/api/model__users_post_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,8 @@ type UsersPostRequest struct { // Whether the user is enabled or not Active *bool `json:"active,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` + // The user type + UserType *string `json:"user_type,omitempty"` } type _UsersPostRequest UsersPostRequest @@ -194,6 +196,38 @@ func (o *UsersPostRequest) SetMetadata(v map[string]interface{}) { o.Metadata = v } +// GetUserType returns the UserType field value if set, zero value otherwise. +func (o *UsersPostRequest) GetUserType() string { + if o == nil || IsNil(o.UserType) { + var ret string + return ret + } + return *o.UserType +} + +// GetUserTypeOk returns a tuple with the UserType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsersPostRequest) GetUserTypeOk() (*string, bool) { + if o == nil || IsNil(o.UserType) { + return nil, false + } + return o.UserType, true +} + +// HasUserType returns a boolean if a field has been set. +func (o *UsersPostRequest) HasUserType() bool { + if o != nil && !IsNil(o.UserType) { + return true + } + + return false +} + +// SetUserType gets a reference to the given string and assigns it to the UserType field. +func (o *UsersPostRequest) SetUserType(v string) { + o.UserType = &v +} + func (o UsersPostRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -213,6 +247,9 @@ func (o UsersPostRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Metadata) { toSerialize["metadata"] = o.Metadata } + if !IsNil(o.UserType) { + toSerialize["user_type"] = o.UserType + } return toSerialize, nil } diff --git a/internal/sdk/api/model__workflow_run__id__get_200_response.go b/internal/sdk/api/model__workflow_run__id__get_200_response.go new file mode 100644 index 0000000..53a1935 --- /dev/null +++ b/internal/sdk/api/model__workflow_run__id__get_200_response.go @@ -0,0 +1,357 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the WorkflowRunIdGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowRunIdGet200Response{} + +// WorkflowRunIdGet200Response A workflow run and related data. +type WorkflowRunIdGet200Response struct { + // The status of the workflow run. + Status string `json:"status"` + // The ID of the workflow. + WorkflowId string `json:"workflow_id"` + // The ID of the workflow run. + Id string `json:"id"` + // The type of trigger that started the workflow. + TriggerType string `json:"trigger_type"` + // The ID of the trigger. + TriggerId string `json:"trigger_id"` + // The creation date time of the workflow run. + CreatedAt string `json:"created_at"` + // List of user tasks of the workfow run. + UserTasks []UserTasksGet200ResponseDataInner `json:"user_tasks,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WorkflowRunIdGet200Response WorkflowRunIdGet200Response + +// NewWorkflowRunIdGet200Response instantiates a new WorkflowRunIdGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowRunIdGet200Response(status string, workflowId string, id string, triggerType string, triggerId string, createdAt string) *WorkflowRunIdGet200Response { + this := WorkflowRunIdGet200Response{} + this.Status = status + this.WorkflowId = workflowId + this.Id = id + this.TriggerType = triggerType + this.TriggerId = triggerId + this.CreatedAt = createdAt + return &this +} + +// NewWorkflowRunIdGet200ResponseWithDefaults instantiates a new WorkflowRunIdGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowRunIdGet200ResponseWithDefaults() *WorkflowRunIdGet200Response { + this := WorkflowRunIdGet200Response{} + return &this +} + +// GetStatus returns the Status field value +func (o *WorkflowRunIdGet200Response) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunIdGet200Response) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *WorkflowRunIdGet200Response) SetStatus(v string) { + o.Status = v +} + +// GetWorkflowId returns the WorkflowId field value +func (o *WorkflowRunIdGet200Response) GetWorkflowId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunIdGet200Response) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowId, true +} + +// SetWorkflowId sets field value +func (o *WorkflowRunIdGet200Response) SetWorkflowId(v string) { + o.WorkflowId = v +} + +// GetId returns the Id field value +func (o *WorkflowRunIdGet200Response) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunIdGet200Response) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *WorkflowRunIdGet200Response) SetId(v string) { + o.Id = v +} + +// GetTriggerType returns the TriggerType field value +func (o *WorkflowRunIdGet200Response) GetTriggerType() string { + if o == nil { + var ret string + return ret + } + + return o.TriggerType +} + +// GetTriggerTypeOk returns a tuple with the TriggerType field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunIdGet200Response) GetTriggerTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TriggerType, true +} + +// SetTriggerType sets field value +func (o *WorkflowRunIdGet200Response) SetTriggerType(v string) { + o.TriggerType = v +} + +// GetTriggerId returns the TriggerId field value +func (o *WorkflowRunIdGet200Response) GetTriggerId() string { + if o == nil { + var ret string + return ret + } + + return o.TriggerId +} + +// GetTriggerIdOk returns a tuple with the TriggerId field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunIdGet200Response) GetTriggerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TriggerId, true +} + +// SetTriggerId sets field value +func (o *WorkflowRunIdGet200Response) SetTriggerId(v string) { + o.TriggerId = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *WorkflowRunIdGet200Response) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunIdGet200Response) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *WorkflowRunIdGet200Response) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUserTasks returns the UserTasks field value if set, zero value otherwise. +func (o *WorkflowRunIdGet200Response) GetUserTasks() []UserTasksGet200ResponseDataInner { + if o == nil || IsNil(o.UserTasks) { + var ret []UserTasksGet200ResponseDataInner + return ret + } + return o.UserTasks +} + +// GetUserTasksOk returns a tuple with the UserTasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowRunIdGet200Response) GetUserTasksOk() ([]UserTasksGet200ResponseDataInner, bool) { + if o == nil || IsNil(o.UserTasks) { + return nil, false + } + return o.UserTasks, true +} + +// HasUserTasks returns a boolean if a field has been set. +func (o *WorkflowRunIdGet200Response) HasUserTasks() bool { + if o != nil && !IsNil(o.UserTasks) { + return true + } + + return false +} + +// SetUserTasks gets a reference to the given []UserTasksGet200ResponseDataInner and assigns it to the UserTasks field. +func (o *WorkflowRunIdGet200Response) SetUserTasks(v []UserTasksGet200ResponseDataInner) { + o.UserTasks = v +} + +func (o WorkflowRunIdGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowRunIdGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["workflow_id"] = o.WorkflowId + toSerialize["id"] = o.Id + toSerialize["trigger_type"] = o.TriggerType + toSerialize["trigger_id"] = o.TriggerId + toSerialize["created_at"] = o.CreatedAt + if !IsNil(o.UserTasks) { + toSerialize["user_tasks"] = o.UserTasks + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WorkflowRunIdGet200Response) 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{ + "status", + "workflow_id", + "id", + "trigger_type", + "trigger_id", + "created_at", + } + + 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) + } + } + + varWorkflowRunIdGet200Response := _WorkflowRunIdGet200Response{} + + err = json.Unmarshal(data, &varWorkflowRunIdGet200Response) + + if err != nil { + return err + } + + *o = WorkflowRunIdGet200Response(varWorkflowRunIdGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "workflow_id") + delete(additionalProperties, "id") + delete(additionalProperties, "trigger_type") + delete(additionalProperties, "trigger_id") + delete(additionalProperties, "created_at") + delete(additionalProperties, "user_tasks") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWorkflowRunIdGet200Response struct { + value *WorkflowRunIdGet200Response + isSet bool +} + +func (v NullableWorkflowRunIdGet200Response) Get() *WorkflowRunIdGet200Response { + return v.value +} + +func (v *NullableWorkflowRunIdGet200Response) Set(val *WorkflowRunIdGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowRunIdGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowRunIdGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowRunIdGet200Response(val *WorkflowRunIdGet200Response) *NullableWorkflowRunIdGet200Response { + return &NullableWorkflowRunIdGet200Response{value: val, isSet: true} +} + +func (v NullableWorkflowRunIdGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowRunIdGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__workflows__workflow_id__get_200_response.go b/internal/sdk/api/model__workflows__workflow_id__get_200_response.go new file mode 100644 index 0000000..413f73f --- /dev/null +++ b/internal/sdk/api/model__workflows__workflow_id__get_200_response.go @@ -0,0 +1,198 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the WorkflowsWorkflowIdGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsWorkflowIdGet200Response{} + +// WorkflowsWorkflowIdGet200Response A single workflow +type WorkflowsWorkflowIdGet200Response struct { + // API request succeeded + Success bool `json:"success"` + Data WorkflowsGet200ResponseDataInner `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _WorkflowsWorkflowIdGet200Response WorkflowsWorkflowIdGet200Response + +// NewWorkflowsWorkflowIdGet200Response instantiates a new WorkflowsWorkflowIdGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsWorkflowIdGet200Response(success bool, data WorkflowsGet200ResponseDataInner) *WorkflowsWorkflowIdGet200Response { + this := WorkflowsWorkflowIdGet200Response{} + this.Success = success + this.Data = data + return &this +} + +// NewWorkflowsWorkflowIdGet200ResponseWithDefaults instantiates a new WorkflowsWorkflowIdGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsWorkflowIdGet200ResponseWithDefaults() *WorkflowsWorkflowIdGet200Response { + this := WorkflowsWorkflowIdGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *WorkflowsWorkflowIdGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *WorkflowsWorkflowIdGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *WorkflowsWorkflowIdGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *WorkflowsWorkflowIdGet200Response) GetData() WorkflowsGet200ResponseDataInner { + if o == nil { + var ret WorkflowsGet200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *WorkflowsWorkflowIdGet200Response) GetDataOk() (*WorkflowsGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *WorkflowsWorkflowIdGet200Response) SetData(v WorkflowsGet200ResponseDataInner) { + o.Data = v +} + +func (o WorkflowsWorkflowIdGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsWorkflowIdGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WorkflowsWorkflowIdGet200Response) 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{ + "success", + "data", + } + + 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) + } + } + + varWorkflowsWorkflowIdGet200Response := _WorkflowsWorkflowIdGet200Response{} + + err = json.Unmarshal(data, &varWorkflowsWorkflowIdGet200Response) + + if err != nil { + return err + } + + *o = WorkflowsWorkflowIdGet200Response(varWorkflowsWorkflowIdGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWorkflowsWorkflowIdGet200Response struct { + value *WorkflowsWorkflowIdGet200Response + isSet bool +} + +func (v NullableWorkflowsWorkflowIdGet200Response) Get() *WorkflowsWorkflowIdGet200Response { + return v.value +} + +func (v *NullableWorkflowsWorkflowIdGet200Response) Set(val *WorkflowsWorkflowIdGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsWorkflowIdGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsWorkflowIdGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsWorkflowIdGet200Response(val *WorkflowsWorkflowIdGet200Response) *NullableWorkflowsWorkflowIdGet200Response { + return &NullableWorkflowsWorkflowIdGet200Response{value: val, isSet: true} +} + +func (v NullableWorkflowsWorkflowIdGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsWorkflowIdGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__workflows_get_200_response.go b/internal/sdk/api/model__workflows_get_200_response.go new file mode 100644 index 0000000..85599f4 --- /dev/null +++ b/internal/sdk/api/model__workflows_get_200_response.go @@ -0,0 +1,291 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the WorkflowsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsGet200Response{} + +// WorkflowsGet200Response A list of all workflows in the organization +type WorkflowsGet200Response struct { + // API request succeeded + Success bool `json:"success"` + // An array of requested items + Data []WorkflowsGet200ResponseDataInner `json:"data"` + // Total number of items in the response + TotalCount float32 `json:"total_count"` + // A token to retrieve the next page of items in the collection + NextToken NullableString `json:"next_token"` + // Whether there are more items in the collection + HasMore bool `json:"has_more"` + AdditionalProperties map[string]interface{} +} + +type _WorkflowsGet200Response WorkflowsGet200Response + +// NewWorkflowsGet200Response instantiates a new WorkflowsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsGet200Response(success bool, data []WorkflowsGet200ResponseDataInner, totalCount float32, nextToken NullableString, hasMore bool) *WorkflowsGet200Response { + this := WorkflowsGet200Response{} + this.Success = success + this.Data = data + this.TotalCount = totalCount + this.NextToken = nextToken + this.HasMore = hasMore + return &this +} + +// NewWorkflowsGet200ResponseWithDefaults instantiates a new WorkflowsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsGet200ResponseWithDefaults() *WorkflowsGet200Response { + this := WorkflowsGet200Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *WorkflowsGet200Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *WorkflowsGet200Response) SetSuccess(v bool) { + o.Success = v +} + +// GetData returns the Data field value +func (o *WorkflowsGet200Response) GetData() []WorkflowsGet200ResponseDataInner { + if o == nil { + var ret []WorkflowsGet200ResponseDataInner + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200Response) GetDataOk() ([]WorkflowsGet200ResponseDataInner, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *WorkflowsGet200Response) SetData(v []WorkflowsGet200ResponseDataInner) { + o.Data = v +} + +// GetTotalCount returns the TotalCount field value +func (o *WorkflowsGet200Response) GetTotalCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200Response) GetTotalCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *WorkflowsGet200Response) SetTotalCount(v float32) { + o.TotalCount = v +} + +// GetNextToken returns the NextToken field value +// If the value is explicit nil, the zero value for string will be returned +func (o *WorkflowsGet200Response) GetNextToken() string { + if o == nil || o.NextToken.Get() == nil { + var ret string + return ret + } + + return *o.NextToken.Get() +} + +// GetNextTokenOk returns a tuple with the NextToken field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsGet200Response) GetNextTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextToken.Get(), o.NextToken.IsSet() +} + +// SetNextToken sets field value +func (o *WorkflowsGet200Response) SetNextToken(v string) { + o.NextToken.Set(&v) +} + +// GetHasMore returns the HasMore field value +func (o *WorkflowsGet200Response) GetHasMore() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200Response) GetHasMoreOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasMore, true +} + +// SetHasMore sets field value +func (o *WorkflowsGet200Response) SetHasMore(v bool) { + o.HasMore = v +} + +func (o WorkflowsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["data"] = o.Data + toSerialize["total_count"] = o.TotalCount + toSerialize["next_token"] = o.NextToken.Get() + toSerialize["has_more"] = o.HasMore + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WorkflowsGet200Response) 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{ + "success", + "data", + "total_count", + "next_token", + "has_more", + } + + 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) + } + } + + varWorkflowsGet200Response := _WorkflowsGet200Response{} + + err = json.Unmarshal(data, &varWorkflowsGet200Response) + + if err != nil { + return err + } + + *o = WorkflowsGet200Response(varWorkflowsGet200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "data") + delete(additionalProperties, "total_count") + delete(additionalProperties, "next_token") + delete(additionalProperties, "has_more") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWorkflowsGet200Response struct { + value *WorkflowsGet200Response + isSet bool +} + +func (v NullableWorkflowsGet200Response) Get() *WorkflowsGet200Response { + return v.value +} + +func (v *NullableWorkflowsGet200Response) Set(val *WorkflowsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsGet200Response(val *WorkflowsGet200Response) *NullableWorkflowsGet200Response { + return &NullableWorkflowsGet200Response{value: val, isSet: true} +} + +func (v NullableWorkflowsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__workflows_get_200_response_data_inner.go b/internal/sdk/api/model__workflows_get_200_response_data_inner.go new file mode 100644 index 0000000..9a46d89 --- /dev/null +++ b/internal/sdk/api/model__workflows_get_200_response_data_inner.go @@ -0,0 +1,476 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the WorkflowsGet200ResponseDataInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsGet200ResponseDataInner{} + +// WorkflowsGet200ResponseDataInner This object represents a Workflow. +type WorkflowsGet200ResponseDataInner struct { + // The Workflow ID. + Id string `json:"id"` + // The name of the Workflow + Name string `json:"name"` + // The description of the Workflow + Description NullableString `json:"description"` + // The cron tab of the Workflow + Crontab NullableString `json:"crontab"` + // The timezone of the Workflow + Timezone NullableString `json:"timezone"` + // Whether the Workflow is enabled + IsEnabled bool `json:"is_enabled"` + // The folder ID of the Workflow + FolderId string `json:"folder_id"` + // Whether the Workflow is protected + Protected bool `json:"protected"` + // The user ID of the creator of the Workflow + CreatedBy NullableFloat32 `json:"created_by"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _WorkflowsGet200ResponseDataInner WorkflowsGet200ResponseDataInner + +// NewWorkflowsGet200ResponseDataInner instantiates a new WorkflowsGet200ResponseDataInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsGet200ResponseDataInner(id string, name string, description NullableString, crontab NullableString, timezone NullableString, isEnabled bool, folderId string, protected bool, createdBy NullableFloat32, createdAt time.Time, updatedAt time.Time) *WorkflowsGet200ResponseDataInner { + this := WorkflowsGet200ResponseDataInner{} + this.Id = id + this.Name = name + this.Description = description + this.Crontab = crontab + this.Timezone = timezone + this.IsEnabled = isEnabled + this.FolderId = folderId + this.Protected = protected + this.CreatedBy = createdBy + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewWorkflowsGet200ResponseDataInnerWithDefaults instantiates a new WorkflowsGet200ResponseDataInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsGet200ResponseDataInnerWithDefaults() *WorkflowsGet200ResponseDataInner { + this := WorkflowsGet200ResponseDataInner{} + return &this +} + +// GetId returns the Id field value +func (o *WorkflowsGet200ResponseDataInner) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200ResponseDataInner) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *WorkflowsGet200ResponseDataInner) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *WorkflowsGet200ResponseDataInner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200ResponseDataInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *WorkflowsGet200ResponseDataInner) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned +func (o *WorkflowsGet200ResponseDataInner) GetDescription() string { + if o == nil || o.Description.Get() == nil { + var ret string + return ret + } + + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsGet200ResponseDataInner) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// SetDescription sets field value +func (o *WorkflowsGet200ResponseDataInner) SetDescription(v string) { + o.Description.Set(&v) +} + +// GetCrontab returns the Crontab field value +// If the value is explicit nil, the zero value for string will be returned +func (o *WorkflowsGet200ResponseDataInner) GetCrontab() string { + if o == nil || o.Crontab.Get() == nil { + var ret string + return ret + } + + return *o.Crontab.Get() +} + +// GetCrontabOk returns a tuple with the Crontab field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsGet200ResponseDataInner) GetCrontabOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Crontab.Get(), o.Crontab.IsSet() +} + +// SetCrontab sets field value +func (o *WorkflowsGet200ResponseDataInner) SetCrontab(v string) { + o.Crontab.Set(&v) +} + +// GetTimezone returns the Timezone field value +// If the value is explicit nil, the zero value for string will be returned +func (o *WorkflowsGet200ResponseDataInner) GetTimezone() string { + if o == nil || o.Timezone.Get() == nil { + var ret string + return ret + } + + return *o.Timezone.Get() +} + +// GetTimezoneOk returns a tuple with the Timezone field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsGet200ResponseDataInner) GetTimezoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Timezone.Get(), o.Timezone.IsSet() +} + +// SetTimezone sets field value +func (o *WorkflowsGet200ResponseDataInner) SetTimezone(v string) { + o.Timezone.Set(&v) +} + +// GetIsEnabled returns the IsEnabled field value +func (o *WorkflowsGet200ResponseDataInner) GetIsEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsEnabled +} + +// GetIsEnabledOk returns a tuple with the IsEnabled field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200ResponseDataInner) GetIsEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsEnabled, true +} + +// SetIsEnabled sets field value +func (o *WorkflowsGet200ResponseDataInner) SetIsEnabled(v bool) { + o.IsEnabled = v +} + +// GetFolderId returns the FolderId field value +func (o *WorkflowsGet200ResponseDataInner) GetFolderId() string { + if o == nil { + var ret string + return ret + } + + return o.FolderId +} + +// GetFolderIdOk returns a tuple with the FolderId field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200ResponseDataInner) GetFolderIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FolderId, true +} + +// SetFolderId sets field value +func (o *WorkflowsGet200ResponseDataInner) SetFolderId(v string) { + o.FolderId = v +} + +// GetProtected returns the Protected field value +func (o *WorkflowsGet200ResponseDataInner) GetProtected() bool { + if o == nil { + var ret bool + return ret + } + + return o.Protected +} + +// GetProtectedOk returns a tuple with the Protected field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200ResponseDataInner) GetProtectedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Protected, true +} + +// SetProtected sets field value +func (o *WorkflowsGet200ResponseDataInner) SetProtected(v bool) { + o.Protected = v +} + +// GetCreatedBy returns the CreatedBy field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *WorkflowsGet200ResponseDataInner) GetCreatedBy() float32 { + if o == nil || o.CreatedBy.Get() == nil { + var ret float32 + return ret + } + + return *o.CreatedBy.Get() +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsGet200ResponseDataInner) GetCreatedByOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.CreatedBy.Get(), o.CreatedBy.IsSet() +} + +// SetCreatedBy sets field value +func (o *WorkflowsGet200ResponseDataInner) SetCreatedBy(v float32) { + o.CreatedBy.Set(&v) +} + +// GetCreatedAt returns the CreatedAt field value +func (o *WorkflowsGet200ResponseDataInner) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200ResponseDataInner) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *WorkflowsGet200ResponseDataInner) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *WorkflowsGet200ResponseDataInner) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet200ResponseDataInner) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *WorkflowsGet200ResponseDataInner) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o WorkflowsGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsGet200ResponseDataInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description.Get() + toSerialize["crontab"] = o.Crontab.Get() + toSerialize["timezone"] = o.Timezone.Get() + toSerialize["is_enabled"] = o.IsEnabled + toSerialize["folder_id"] = o.FolderId + toSerialize["protected"] = o.Protected + toSerialize["created_by"] = o.CreatedBy.Get() + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WorkflowsGet200ResponseDataInner) 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{ + "id", + "name", + "description", + "crontab", + "timezone", + "is_enabled", + "folder_id", + "protected", + "created_by", + "created_at", + "updated_at", + } + + 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) + } + } + + varWorkflowsGet200ResponseDataInner := _WorkflowsGet200ResponseDataInner{} + + err = json.Unmarshal(data, &varWorkflowsGet200ResponseDataInner) + + if err != nil { + return err + } + + *o = WorkflowsGet200ResponseDataInner(varWorkflowsGet200ResponseDataInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "crontab") + delete(additionalProperties, "timezone") + delete(additionalProperties, "is_enabled") + delete(additionalProperties, "folder_id") + delete(additionalProperties, "protected") + delete(additionalProperties, "created_by") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWorkflowsGet200ResponseDataInner struct { + value *WorkflowsGet200ResponseDataInner + isSet bool +} + +func (v NullableWorkflowsGet200ResponseDataInner) Get() *WorkflowsGet200ResponseDataInner { + return v.value +} + +func (v *NullableWorkflowsGet200ResponseDataInner) Set(val *WorkflowsGet200ResponseDataInner) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsGet200ResponseDataInner) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsGet200ResponseDataInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsGet200ResponseDataInner(val *WorkflowsGet200ResponseDataInner) *NullableWorkflowsGet200ResponseDataInner { + return &NullableWorkflowsGet200ResponseDataInner{value: val, isSet: true} +} + +func (v NullableWorkflowsGet200ResponseDataInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsGet200ResponseDataInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model__workflows_get_403_response.go b/internal/sdk/api/model__workflows_get_403_response.go new file mode 100644 index 0000000..c9fcaa0 --- /dev/null +++ b/internal/sdk/api/model__workflows_get_403_response.go @@ -0,0 +1,197 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the WorkflowsGet403Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsGet403Response{} + +// WorkflowsGet403Response struct for WorkflowsGet403Response +type WorkflowsGet403Response struct { + Success bool `json:"success"` + Message string `json:"message"` + AdditionalProperties map[string]interface{} +} + +type _WorkflowsGet403Response WorkflowsGet403Response + +// NewWorkflowsGet403Response instantiates a new WorkflowsGet403Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsGet403Response(success bool, message string) *WorkflowsGet403Response { + this := WorkflowsGet403Response{} + this.Success = success + this.Message = message + return &this +} + +// NewWorkflowsGet403ResponseWithDefaults instantiates a new WorkflowsGet403Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsGet403ResponseWithDefaults() *WorkflowsGet403Response { + this := WorkflowsGet403Response{} + return &this +} + +// GetSuccess returns the Success field value +func (o *WorkflowsGet403Response) GetSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet403Response) GetSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Success, true +} + +// SetSuccess sets field value +func (o *WorkflowsGet403Response) SetSuccess(v bool) { + o.Success = v +} + +// GetMessage returns the Message field value +func (o *WorkflowsGet403Response) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *WorkflowsGet403Response) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *WorkflowsGet403Response) SetMessage(v string) { + o.Message = v +} + +func (o WorkflowsGet403Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsGet403Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["success"] = o.Success + toSerialize["message"] = o.Message + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WorkflowsGet403Response) 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{ + "success", + "message", + } + + 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) + } + } + + varWorkflowsGet403Response := _WorkflowsGet403Response{} + + err = json.Unmarshal(data, &varWorkflowsGet403Response) + + if err != nil { + return err + } + + *o = WorkflowsGet403Response(varWorkflowsGet403Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWorkflowsGet403Response struct { + value *WorkflowsGet403Response + isSet bool +} + +func (v NullableWorkflowsGet403Response) Get() *WorkflowsGet403Response { + return v.value +} + +func (v *NullableWorkflowsGet403Response) Set(val *WorkflowsGet403Response) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsGet403Response) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsGet403Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsGet403Response(val *WorkflowsGet403Response) *NullableWorkflowsGet403Response { + return &NullableWorkflowsGet403Response{value: val, isSet: true} +} + +func (v NullableWorkflowsGet403Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsGet403Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_access_request.go b/internal/sdk/api/model_access_request.go index 6ed3c57..20a036d 100644 --- a/internal/sdk/api/model_access_request.go +++ b/internal/sdk/api/model_access_request.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package api import ( "encoding/json" + "time" "fmt" ) @@ -25,6 +26,8 @@ type AccessRequest struct { LegacyId float32 `json:"legacy_id"` RequestingEmail string `json:"requesting_email"` UpdatedById NullableString `json:"updated_by_id"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` AdditionalProperties map[string]interface{} } @@ -34,13 +37,15 @@ type _AccessRequest AccessRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAccessRequest(id float32, status string, legacyId float32, requestingEmail string, updatedById NullableString) *AccessRequest { +func NewAccessRequest(id float32, status string, legacyId float32, requestingEmail string, updatedById NullableString, createdAt time.Time, updatedAt time.Time) *AccessRequest { this := AccessRequest{} this.Id = id this.Status = status this.LegacyId = legacyId this.RequestingEmail = requestingEmail this.UpdatedById = updatedById + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt return &this } @@ -174,6 +179,54 @@ func (o *AccessRequest) SetUpdatedById(v string) { o.UpdatedById.Set(&v) } +// GetCreatedAt returns the CreatedAt field value +func (o *AccessRequest) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessRequest) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AccessRequest) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AccessRequest) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessRequest) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AccessRequest) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + func (o AccessRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -189,6 +242,8 @@ func (o AccessRequest) ToMap() (map[string]interface{}, error) { toSerialize["legacy_id"] = o.LegacyId toSerialize["requesting_email"] = o.RequestingEmail toSerialize["updated_by_id"] = o.UpdatedById.Get() + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -207,6 +262,8 @@ func (o *AccessRequest) UnmarshalJSON(data []byte) (err error) { "legacy_id", "requesting_email", "updated_by_id", + "created_at", + "updated_at", } allProperties := make(map[string]interface{}) @@ -241,6 +298,8 @@ func (o *AccessRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "legacy_id") delete(additionalProperties, "requesting_email") delete(additionalProperties, "updated_by_id") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model_access_token.go b/internal/sdk/api/model_access_token.go new file mode 100644 index 0000000..f19f9ed --- /dev/null +++ b/internal/sdk/api/model_access_token.go @@ -0,0 +1,362 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the AccessToken type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessToken{} + +// AccessToken This object represents an API access token. +type AccessToken struct { + // The uuid of the access token. + Id string `json:"id"` + // The name of the access token. + Label string `json:"label"` + // The description of the access token. + Description NullableString `json:"description"` + // Last 4 characters of the access token secret + Last4 string `json:"last4"` + // The legacy id of the user that created the token + OwnerLegacyId float32 `json:"owner_legacy_id"` + Scopes []string `json:"scopes"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` +} + +type _AccessToken AccessToken + +// NewAccessToken instantiates a new AccessToken object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccessToken(id string, label string, description NullableString, last4 string, ownerLegacyId float32, scopes []string, createdAt time.Time, updatedAt time.Time) *AccessToken { + this := AccessToken{} + this.Id = id + this.Label = label + this.Description = description + this.Last4 = last4 + this.OwnerLegacyId = ownerLegacyId + this.Scopes = scopes + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewAccessTokenWithDefaults instantiates a new AccessToken object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccessTokenWithDefaults() *AccessToken { + this := AccessToken{} + return &this +} + +// GetId returns the Id field value +func (o *AccessToken) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AccessToken) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AccessToken) SetId(v string) { + o.Id = v +} + +// GetLabel returns the Label field value +func (o *AccessToken) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *AccessToken) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *AccessToken) SetLabel(v string) { + o.Label = v +} + +// GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned +func (o *AccessToken) GetDescription() string { + if o == nil || o.Description.Get() == nil { + var ret string + return ret + } + + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AccessToken) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// SetDescription sets field value +func (o *AccessToken) SetDescription(v string) { + o.Description.Set(&v) +} + +// GetLast4 returns the Last4 field value +func (o *AccessToken) GetLast4() string { + if o == nil { + var ret string + return ret + } + + return o.Last4 +} + +// GetLast4Ok returns a tuple with the Last4 field value +// and a boolean to check if the value has been set. +func (o *AccessToken) GetLast4Ok() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Last4, true +} + +// SetLast4 sets field value +func (o *AccessToken) SetLast4(v string) { + o.Last4 = v +} + +// GetOwnerLegacyId returns the OwnerLegacyId field value +func (o *AccessToken) GetOwnerLegacyId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.OwnerLegacyId +} + +// GetOwnerLegacyIdOk returns a tuple with the OwnerLegacyId field value +// and a boolean to check if the value has been set. +func (o *AccessToken) GetOwnerLegacyIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.OwnerLegacyId, true +} + +// SetOwnerLegacyId sets field value +func (o *AccessToken) SetOwnerLegacyId(v float32) { + o.OwnerLegacyId = v +} + +// GetScopes returns the Scopes field value +func (o *AccessToken) GetScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value +// and a boolean to check if the value has been set. +func (o *AccessToken) GetScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Scopes, true +} + +// SetScopes sets field value +func (o *AccessToken) SetScopes(v []string) { + o.Scopes = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AccessToken) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessToken) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AccessToken) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AccessToken) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AccessToken) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AccessToken) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o AccessToken) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessToken) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["label"] = o.Label + toSerialize["description"] = o.Description.Get() + toSerialize["last4"] = o.Last4 + toSerialize["owner_legacy_id"] = o.OwnerLegacyId + toSerialize["scopes"] = o.Scopes + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *AccessToken) 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{ + "id", + "label", + "description", + "last4", + "owner_legacy_id", + "scopes", + "created_at", + "updated_at", + } + + 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) + } + } + + varAccessToken := _AccessToken{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessToken) + + if err != nil { + return err + } + + *o = AccessToken(varAccessToken) + + return err +} + +type NullableAccessToken struct { + value *AccessToken + isSet bool +} + +func (v NullableAccessToken) Get() *AccessToken { + return v.value +} + +func (v *NullableAccessToken) Set(val *AccessToken) { + v.value = val + v.isSet = true +} + +func (v NullableAccessToken) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessToken) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessToken(val *AccessToken) *NullableAccessToken { + return &NullableAccessToken{value: val, isSet: true} +} + +func (v NullableAccessToken) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessToken) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_add_operation.go b/internal/sdk/api/model_add_operation.go index 5b77fde..b6bcb41 100644 --- a/internal/sdk/api/model_add_operation.go +++ b/internal/sdk/api/model_add_operation.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_analytics_integrations_settings.go b/internal/sdk/api/model_analytics_integrations_settings.go new file mode 100644 index 0000000..65e5703 --- /dev/null +++ b/internal/sdk/api/model_analytics_integrations_settings.go @@ -0,0 +1,178 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// AnalyticsIntegrationsSettings - struct for AnalyticsIntegrationsSettings +type AnalyticsIntegrationsSettings struct { + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 +} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfAsAnalyticsIntegrationsSettings is a convenience function that returns OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf wrapped in AnalyticsIntegrationsSettings +func OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOfAsAnalyticsIntegrationsSettings(v *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) AnalyticsIntegrationsSettings { + return AnalyticsIntegrationsSettings{ + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf: v, + } +} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1AsAnalyticsIntegrationsSettings is a convenience function that returns OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 wrapped in AnalyticsIntegrationsSettings +func OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1AsAnalyticsIntegrationsSettings(v *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) AnalyticsIntegrationsSettings { + return AnalyticsIntegrationsSettings{ + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1: v, + } +} + +// OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2AsAnalyticsIntegrationsSettings is a convenience function that returns OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 wrapped in AnalyticsIntegrationsSettings +func OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2AsAnalyticsIntegrationsSettings(v *OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) AnalyticsIntegrationsSettings { + return AnalyticsIntegrationsSettings{ + OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *AnalyticsIntegrationsSettings) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + err = newStrictDecoder(data).Decode(&dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) + if err == nil { + jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf, _ := json.Marshal(dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) + if string(jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) == "{}" { // empty struct + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf = nil + } else { + match++ + } + } else { + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf = nil + } + + // try to unmarshal data into OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + err = newStrictDecoder(data).Decode(&dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) + if err == nil { + jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1, _ := json.Marshal(dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) + if string(jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) == "{}" { // empty struct + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 = nil + } else { + match++ + } + } else { + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 = nil + } + + // try to unmarshal data into OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 + err = newStrictDecoder(data).Decode(&dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) + if err == nil { + jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2, _ := json.Marshal(dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) + if string(jsonOrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) == "{}" { // empty struct + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 = nil + } else { + match++ + } + } else { + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf = nil + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 = nil + dst.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(AnalyticsIntegrationsSettings)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(AnalyticsIntegrationsSettings)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src AnalyticsIntegrationsSettings) MarshalJSON() ([]byte, error) { + if src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf != nil { + return json.Marshal(src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf) + } + + if src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 != nil { + return json.Marshal(src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1) + } + + if src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 != nil { + return json.Marshal(src.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *AnalyticsIntegrationsSettings) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf != nil { + return obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf + } + + if obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 != nil { + return obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf1 + } + + if obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 != nil { + return obj.OrganizationAnalyticsIntegrationsGet200ResponseDataInnerOneOf2 + } + + // all schemas are nil + return nil +} + +type NullableAnalyticsIntegrationsSettings struct { + value *AnalyticsIntegrationsSettings + isSet bool +} + +func (v NullableAnalyticsIntegrationsSettings) Get() *AnalyticsIntegrationsSettings { + return v.value +} + +func (v *NullableAnalyticsIntegrationsSettings) Set(val *AnalyticsIntegrationsSettings) { + v.value = val + v.isSet = true +} + +func (v NullableAnalyticsIntegrationsSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableAnalyticsIntegrationsSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnalyticsIntegrationsSettings(val *AnalyticsIntegrationsSettings) *NullableAnalyticsIntegrationsSettings { + return &NullableAnalyticsIntegrationsSettings{value: val, isSet: true} +} + +func (v NullableAnalyticsIntegrationsSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnalyticsIntegrationsSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_app.go b/internal/sdk/api/model_app.go index d670053..e340fdb 100644 --- a/internal/sdk/api/model_app.go +++ b/internal/sdk/api/model_app.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,33 +12,18 @@ package api import ( "encoding/json" + "bytes" "fmt" ) // checks if the App type satisfies the MappedNullable interface at compile time var _ MappedNullable = &App{} -// App This object represents an app. +// App struct for App type App struct { + Type string `json:"type"` // The app ID. Id string `json:"id"` - // The name of the App - Name string `json:"name"` - // The description of the App - Description NullableString `json:"description"` - // The id of the folder - FolderId string `json:"folder_id"` - // Whether the App is protected - Protected bool `json:"protected"` - // Whether the App is synced - Synced bool `json:"synced"` - // The shortlink of the App - Shortlink NullableString `json:"shortlink"` - // Whether the App is a module - IsModule bool `json:"is_module"` - // Whether the App is a mobile app - IsMobileApp bool `json:"is_mobile_app"` - AdditionalProperties map[string]interface{} } type _App App @@ -47,17 +32,10 @@ type _App App // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewApp(id string, name string, description NullableString, folderId string, protected bool, synced bool, shortlink NullableString, isModule bool, isMobileApp bool) *App { +func NewApp(type_ string, id string) *App { this := App{} + this.Type = type_ this.Id = id - this.Name = name - this.Description = description - this.FolderId = folderId - this.Protected = protected - this.Synced = synced - this.Shortlink = shortlink - this.IsModule = isModule - this.IsMobileApp = isMobileApp return &this } @@ -69,224 +47,52 @@ func NewAppWithDefaults() *App { return &this } -// GetId returns the Id field value -func (o *App) GetId() string { +// GetType returns the Type field value +func (o *App) GetType() string { if o == nil { var ret string return ret } - return o.Id + return o.Type } -// GetIdOk returns a tuple with the Id field value +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *App) GetIdOk() (*string, bool) { +func (o *App) GetTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.Id, true -} - -// SetId sets field value -func (o *App) SetId(v string) { - o.Id = v + return &o.Type, true } -// GetName returns the Name field value -func (o *App) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name +// SetType sets field value +func (o *App) SetType(v string) { + o.Type = v } -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *App) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *App) SetName(v string) { - o.Name = v -} - -// GetDescription returns the Description field value -// If the value is explicit nil, the zero value for string will be returned -func (o *App) GetDescription() string { - if o == nil || o.Description.Get() == nil { - var ret string - return ret - } - - return *o.Description.Get() -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *App) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description.Get(), o.Description.IsSet() -} - -// SetDescription sets field value -func (o *App) SetDescription(v string) { - o.Description.Set(&v) -} - -// GetFolderId returns the FolderId field value -func (o *App) GetFolderId() string { - if o == nil { - var ret string - return ret - } - - return o.FolderId -} - -// GetFolderIdOk returns a tuple with the FolderId field value -// and a boolean to check if the value has been set. -func (o *App) GetFolderIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.FolderId, true -} - -// SetFolderId sets field value -func (o *App) SetFolderId(v string) { - o.FolderId = v -} - -// GetProtected returns the Protected field value -func (o *App) GetProtected() bool { - if o == nil { - var ret bool - return ret - } - - return o.Protected -} - -// GetProtectedOk returns a tuple with the Protected field value -// and a boolean to check if the value has been set. -func (o *App) GetProtectedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Protected, true -} - -// SetProtected sets field value -func (o *App) SetProtected(v bool) { - o.Protected = v -} - -// GetSynced returns the Synced field value -func (o *App) GetSynced() bool { - if o == nil { - var ret bool - return ret - } - - return o.Synced -} - -// GetSyncedOk returns a tuple with the Synced field value -// and a boolean to check if the value has been set. -func (o *App) GetSyncedOk() (*bool, bool) { +// GetId returns the Id field value +func (o *App) GetId() string { if o == nil { - return nil, false - } - return &o.Synced, true -} - -// SetSynced sets field value -func (o *App) SetSynced(v bool) { - o.Synced = v -} - -// GetShortlink returns the Shortlink field value -// If the value is explicit nil, the zero value for string will be returned -func (o *App) GetShortlink() string { - if o == nil || o.Shortlink.Get() == nil { var ret string return ret } - return *o.Shortlink.Get() -} - -// GetShortlinkOk returns a tuple with the Shortlink field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *App) GetShortlinkOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Shortlink.Get(), o.Shortlink.IsSet() -} - -// SetShortlink sets field value -func (o *App) SetShortlink(v string) { - o.Shortlink.Set(&v) -} - -// GetIsModule returns the IsModule field value -func (o *App) GetIsModule() bool { - if o == nil { - var ret bool - return ret - } - - return o.IsModule -} - -// GetIsModuleOk returns a tuple with the IsModule field value -// and a boolean to check if the value has been set. -func (o *App) GetIsModuleOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.IsModule, true -} - -// SetIsModule sets field value -func (o *App) SetIsModule(v bool) { - o.IsModule = v -} - -// GetIsMobileApp returns the IsMobileApp field value -func (o *App) GetIsMobileApp() bool { - if o == nil { - var ret bool - return ret - } - - return o.IsMobileApp + return o.Id } -// GetIsMobileAppOk returns a tuple with the IsMobileApp field value +// GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *App) GetIsMobileAppOk() (*bool, bool) { +func (o *App) GetIdOk() (*string, bool) { if o == nil { return nil, false } - return &o.IsMobileApp, true + return &o.Id, true } -// SetIsMobileApp sets field value -func (o *App) SetIsMobileApp(v bool) { - o.IsMobileApp = v +// SetId sets field value +func (o *App) SetId(v string) { + o.Id = v } func (o App) MarshalJSON() ([]byte, error) { @@ -299,20 +105,8 @@ func (o App) MarshalJSON() ([]byte, error) { func (o App) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type toSerialize["id"] = o.Id - toSerialize["name"] = o.Name - toSerialize["description"] = o.Description.Get() - toSerialize["folder_id"] = o.FolderId - toSerialize["protected"] = o.Protected - toSerialize["synced"] = o.Synced - toSerialize["shortlink"] = o.Shortlink.Get() - toSerialize["is_module"] = o.IsModule - toSerialize["is_mobile_app"] = o.IsMobileApp - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - return toSerialize, nil } @@ -321,15 +115,8 @@ func (o *App) UnmarshalJSON(data []byte) (err error) { // 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{ + "type", "id", - "name", - "description", - "folder_id", - "protected", - "synced", - "shortlink", - "is_module", - "is_mobile_app", } allProperties := make(map[string]interface{}) @@ -348,7 +135,9 @@ func (o *App) UnmarshalJSON(data []byte) (err error) { varApp := _App{} - err = json.Unmarshal(data, &varApp) + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varApp) if err != nil { return err @@ -356,21 +145,6 @@ func (o *App) UnmarshalJSON(data []byte) (err error) { *o = App(varApp) - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "name") - delete(additionalProperties, "description") - delete(additionalProperties, "folder_id") - delete(additionalProperties, "protected") - delete(additionalProperties, "synced") - delete(additionalProperties, "shortlink") - delete(additionalProperties, "is_module") - delete(additionalProperties, "is_mobile_app") - o.AdditionalProperties = additionalProperties - } - return err } diff --git a/internal/sdk/api/model_app_summary.go b/internal/sdk/api/model_app_summary.go index db00104..7b8027d 100644 --- a/internal/sdk/api/model_app_summary.go +++ b/internal/sdk/api/model_app_summary.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_app_theme.go b/internal/sdk/api/model_app_theme.go index a84d40d..0383454 100644 --- a/internal/sdk/api/model_app_theme.go +++ b/internal/sdk/api/model_app_theme.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package api import ( "encoding/json" + "time" "fmt" ) @@ -26,6 +27,10 @@ type AppTheme struct { Name string `json:"name"` // The theme object. Theme map[string]interface{} `json:"theme"` + // Date and time when the app theme was created. + CreatedAt time.Time `json:"created_at"` + // Date and time when the app theme was last updated. + UpdatedAt time.Time `json:"updated_at"` AdditionalProperties map[string]interface{} } @@ -35,12 +40,14 @@ type _AppTheme AppTheme // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAppTheme(id float32, legacyId float32, name string, theme map[string]interface{}) *AppTheme { +func NewAppTheme(id float32, legacyId float32, name string, theme map[string]interface{}, createdAt time.Time, updatedAt time.Time) *AppTheme { this := AppTheme{} this.Id = id this.LegacyId = legacyId this.Name = name this.Theme = theme + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt return &this } @@ -148,6 +155,54 @@ func (o *AppTheme) SetTheme(v map[string]interface{}) { o.Theme = v } +// GetCreatedAt returns the CreatedAt field value +func (o *AppTheme) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AppTheme) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AppTheme) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *AppTheme) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *AppTheme) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *AppTheme) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + func (o AppTheme) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -162,6 +217,8 @@ func (o AppTheme) ToMap() (map[string]interface{}, error) { toSerialize["legacy_id"] = o.LegacyId toSerialize["name"] = o.Name toSerialize["theme"] = o.Theme + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -179,6 +236,8 @@ func (o *AppTheme) UnmarshalJSON(data []byte) (err error) { "legacy_id", "name", "theme", + "created_at", + "updated_at", } allProperties := make(map[string]interface{}) @@ -212,6 +271,8 @@ func (o *AppTheme) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "legacy_id") delete(additionalProperties, "name") delete(additionalProperties, "theme") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model_aws_code_commit.go b/internal/sdk/api/model_aws_code_commit.go new file mode 100644 index 0000000..80b79df --- /dev/null +++ b/internal/sdk/api/model_aws_code_commit.go @@ -0,0 +1,325 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the AWSCodeCommit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AWSCodeCommit{} + +// AWSCodeCommit struct for AWSCodeCommit +type AWSCodeCommit struct { + Config AWSCodeCommitConfig `json:"config"` + Provider string `json:"provider"` + // The user or organization to which the repository belongs to. + Org string `json:"org"` + // The name of the repository you created to use with Retool. + Repo string `json:"repo"` + // The default branch, e.g., main. + DefaultBranch string `json:"default_branch"` + // Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. + RepoVersion *string `json:"repo_version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AWSCodeCommit AWSCodeCommit + +// NewAWSCodeCommit instantiates a new AWSCodeCommit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAWSCodeCommit(config AWSCodeCommitConfig, provider string, org string, repo string, defaultBranch string) *AWSCodeCommit { + this := AWSCodeCommit{} + this.Config = config + this.Provider = provider + this.Org = org + this.Repo = repo + this.DefaultBranch = defaultBranch + return &this +} + +// NewAWSCodeCommitWithDefaults instantiates a new AWSCodeCommit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAWSCodeCommitWithDefaults() *AWSCodeCommit { + this := AWSCodeCommit{} + return &this +} + +// GetConfig returns the Config field value +func (o *AWSCodeCommit) GetConfig() AWSCodeCommitConfig { + if o == nil { + var ret AWSCodeCommitConfig + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommit) GetConfigOk() (*AWSCodeCommitConfig, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *AWSCodeCommit) SetConfig(v AWSCodeCommitConfig) { + o.Config = v +} + +// GetProvider returns the Provider field value +func (o *AWSCodeCommit) GetProvider() string { + if o == nil { + var ret string + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommit) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *AWSCodeCommit) SetProvider(v string) { + o.Provider = v +} + +// GetOrg returns the Org field value +func (o *AWSCodeCommit) GetOrg() string { + if o == nil { + var ret string + return ret + } + + return o.Org +} + +// GetOrgOk returns a tuple with the Org field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommit) GetOrgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Org, true +} + +// SetOrg sets field value +func (o *AWSCodeCommit) SetOrg(v string) { + o.Org = v +} + +// GetRepo returns the Repo field value +func (o *AWSCodeCommit) GetRepo() string { + if o == nil { + var ret string + return ret + } + + return o.Repo +} + +// GetRepoOk returns a tuple with the Repo field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommit) GetRepoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Repo, true +} + +// SetRepo sets field value +func (o *AWSCodeCommit) SetRepo(v string) { + o.Repo = v +} + +// GetDefaultBranch returns the DefaultBranch field value +func (o *AWSCodeCommit) GetDefaultBranch() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultBranch +} + +// GetDefaultBranchOk returns a tuple with the DefaultBranch field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommit) GetDefaultBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultBranch, true +} + +// SetDefaultBranch sets field value +func (o *AWSCodeCommit) SetDefaultBranch(v string) { + o.DefaultBranch = v +} + +// GetRepoVersion returns the RepoVersion field value if set, zero value otherwise. +func (o *AWSCodeCommit) GetRepoVersion() string { + if o == nil || IsNil(o.RepoVersion) { + var ret string + return ret + } + return *o.RepoVersion +} + +// GetRepoVersionOk returns a tuple with the RepoVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AWSCodeCommit) GetRepoVersionOk() (*string, bool) { + if o == nil || IsNil(o.RepoVersion) { + return nil, false + } + return o.RepoVersion, true +} + +// HasRepoVersion returns a boolean if a field has been set. +func (o *AWSCodeCommit) HasRepoVersion() bool { + if o != nil && !IsNil(o.RepoVersion) { + return true + } + + return false +} + +// SetRepoVersion gets a reference to the given string and assigns it to the RepoVersion field. +func (o *AWSCodeCommit) SetRepoVersion(v string) { + o.RepoVersion = &v +} + +func (o AWSCodeCommit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AWSCodeCommit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["provider"] = o.Provider + toSerialize["org"] = o.Org + toSerialize["repo"] = o.Repo + toSerialize["default_branch"] = o.DefaultBranch + if !IsNil(o.RepoVersion) { + toSerialize["repo_version"] = o.RepoVersion + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AWSCodeCommit) 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{ + "config", + "provider", + "org", + "repo", + "default_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) + } + } + + varAWSCodeCommit := _AWSCodeCommit{} + + err = json.Unmarshal(data, &varAWSCodeCommit) + + if err != nil { + return err + } + + *o = AWSCodeCommit(varAWSCodeCommit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + delete(additionalProperties, "provider") + delete(additionalProperties, "org") + delete(additionalProperties, "repo") + delete(additionalProperties, "default_branch") + delete(additionalProperties, "repo_version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAWSCodeCommit struct { + value *AWSCodeCommit + isSet bool +} + +func (v NullableAWSCodeCommit) Get() *AWSCodeCommit { + return v.value +} + +func (v *NullableAWSCodeCommit) Set(val *AWSCodeCommit) { + v.value = val + v.isSet = true +} + +func (v NullableAWSCodeCommit) IsSet() bool { + return v.isSet +} + +func (v *NullableAWSCodeCommit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAWSCodeCommit(val *AWSCodeCommit) *NullableAWSCodeCommit { + return &NullableAWSCodeCommit{value: val, isSet: true} +} + +func (v NullableAWSCodeCommit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAWSCodeCommit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_aws_code_commit_config.go b/internal/sdk/api/model_aws_code_commit_config.go new file mode 100644 index 0000000..784f269 --- /dev/null +++ b/internal/sdk/api/model_aws_code_commit_config.go @@ -0,0 +1,304 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AWSCodeCommitConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AWSCodeCommitConfig{} + +// AWSCodeCommitConfig struct for AWSCodeCommitConfig +type AWSCodeCommitConfig struct { + // The domain used to access your self-hosted AWS CodeCommit instance. + Url string `json:"url"` + // The region of the CodeCommit repository. + Region string `json:"region"` + // The Access key ID from your AWSCodeCommitFullAccess policy. + AccessKeyId string `json:"access_key_id"` + // The Secret Access Key from your AWSCodeCommitFullAccess policy + SecretAccessKey string `json:"secret_access_key"` + // The HTTPS username from your security credentials. + HttpsUsername string `json:"https_username"` + // The HTTPS password from your security credentials. + HttpsPassword string `json:"https_password"` +} + +type _AWSCodeCommitConfig AWSCodeCommitConfig + +// NewAWSCodeCommitConfig instantiates a new AWSCodeCommitConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAWSCodeCommitConfig(url string, region string, accessKeyId string, secretAccessKey string, httpsUsername string, httpsPassword string) *AWSCodeCommitConfig { + this := AWSCodeCommitConfig{} + this.Url = url + this.Region = region + this.AccessKeyId = accessKeyId + this.SecretAccessKey = secretAccessKey + this.HttpsUsername = httpsUsername + this.HttpsPassword = httpsPassword + return &this +} + +// NewAWSCodeCommitConfigWithDefaults instantiates a new AWSCodeCommitConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAWSCodeCommitConfigWithDefaults() *AWSCodeCommitConfig { + this := AWSCodeCommitConfig{} + return &this +} + +// GetUrl returns the Url field value +func (o *AWSCodeCommitConfig) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommitConfig) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *AWSCodeCommitConfig) SetUrl(v string) { + o.Url = v +} + +// GetRegion returns the Region field value +func (o *AWSCodeCommitConfig) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommitConfig) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *AWSCodeCommitConfig) SetRegion(v string) { + o.Region = v +} + +// GetAccessKeyId returns the AccessKeyId field value +func (o *AWSCodeCommitConfig) GetAccessKeyId() string { + if o == nil { + var ret string + return ret + } + + return o.AccessKeyId +} + +// GetAccessKeyIdOk returns a tuple with the AccessKeyId field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommitConfig) GetAccessKeyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessKeyId, true +} + +// SetAccessKeyId sets field value +func (o *AWSCodeCommitConfig) SetAccessKeyId(v string) { + o.AccessKeyId = v +} + +// GetSecretAccessKey returns the SecretAccessKey field value +func (o *AWSCodeCommitConfig) GetSecretAccessKey() string { + if o == nil { + var ret string + return ret + } + + return o.SecretAccessKey +} + +// GetSecretAccessKeyOk returns a tuple with the SecretAccessKey field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommitConfig) GetSecretAccessKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SecretAccessKey, true +} + +// SetSecretAccessKey sets field value +func (o *AWSCodeCommitConfig) SetSecretAccessKey(v string) { + o.SecretAccessKey = v +} + +// GetHttpsUsername returns the HttpsUsername field value +func (o *AWSCodeCommitConfig) GetHttpsUsername() string { + if o == nil { + var ret string + return ret + } + + return o.HttpsUsername +} + +// GetHttpsUsernameOk returns a tuple with the HttpsUsername field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommitConfig) GetHttpsUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HttpsUsername, true +} + +// SetHttpsUsername sets field value +func (o *AWSCodeCommitConfig) SetHttpsUsername(v string) { + o.HttpsUsername = v +} + +// GetHttpsPassword returns the HttpsPassword field value +func (o *AWSCodeCommitConfig) GetHttpsPassword() string { + if o == nil { + var ret string + return ret + } + + return o.HttpsPassword +} + +// GetHttpsPasswordOk returns a tuple with the HttpsPassword field value +// and a boolean to check if the value has been set. +func (o *AWSCodeCommitConfig) GetHttpsPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.HttpsPassword, true +} + +// SetHttpsPassword sets field value +func (o *AWSCodeCommitConfig) SetHttpsPassword(v string) { + o.HttpsPassword = v +} + +func (o AWSCodeCommitConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AWSCodeCommitConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["region"] = o.Region + toSerialize["access_key_id"] = o.AccessKeyId + toSerialize["secret_access_key"] = o.SecretAccessKey + toSerialize["https_username"] = o.HttpsUsername + toSerialize["https_password"] = o.HttpsPassword + return toSerialize, nil +} + +func (o *AWSCodeCommitConfig) 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", + "region", + "access_key_id", + "secret_access_key", + "https_username", + "https_password", + } + + 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) + } + } + + varAWSCodeCommitConfig := _AWSCodeCommitConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAWSCodeCommitConfig) + + if err != nil { + return err + } + + *o = AWSCodeCommitConfig(varAWSCodeCommitConfig) + + return err +} + +type NullableAWSCodeCommitConfig struct { + value *AWSCodeCommitConfig + isSet bool +} + +func (v NullableAWSCodeCommitConfig) Get() *AWSCodeCommitConfig { + return v.value +} + +func (v *NullableAWSCodeCommitConfig) Set(val *AWSCodeCommitConfig) { + v.value = val + v.isSet = true +} + +func (v NullableAWSCodeCommitConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableAWSCodeCommitConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAWSCodeCommitConfig(val *AWSCodeCommitConfig) *NullableAWSCodeCommitConfig { + return &NullableAWSCodeCommitConfig{value: val, isSet: true} +} + +func (v NullableAWSCodeCommitConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAWSCodeCommitConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_azure_repos.go b/internal/sdk/api/model_azure_repos.go new file mode 100644 index 0000000..93a2835 --- /dev/null +++ b/internal/sdk/api/model_azure_repos.go @@ -0,0 +1,325 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the AzureRepos type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AzureRepos{} + +// AzureRepos struct for AzureRepos +type AzureRepos struct { + Config AzureReposConfig `json:"config"` + Provider string `json:"provider"` + // The user or organization to which the repository belongs to. + Org string `json:"org"` + // The name of the repository you created to use with Retool. + Repo string `json:"repo"` + // The default branch, e.g., main. + DefaultBranch string `json:"default_branch"` + // Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. + RepoVersion *string `json:"repo_version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AzureRepos AzureRepos + +// NewAzureRepos instantiates a new AzureRepos object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAzureRepos(config AzureReposConfig, provider string, org string, repo string, defaultBranch string) *AzureRepos { + this := AzureRepos{} + this.Config = config + this.Provider = provider + this.Org = org + this.Repo = repo + this.DefaultBranch = defaultBranch + return &this +} + +// NewAzureReposWithDefaults instantiates a new AzureRepos object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAzureReposWithDefaults() *AzureRepos { + this := AzureRepos{} + return &this +} + +// GetConfig returns the Config field value +func (o *AzureRepos) GetConfig() AzureReposConfig { + if o == nil { + var ret AzureReposConfig + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *AzureRepos) GetConfigOk() (*AzureReposConfig, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *AzureRepos) SetConfig(v AzureReposConfig) { + o.Config = v +} + +// GetProvider returns the Provider field value +func (o *AzureRepos) GetProvider() string { + if o == nil { + var ret string + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *AzureRepos) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *AzureRepos) SetProvider(v string) { + o.Provider = v +} + +// GetOrg returns the Org field value +func (o *AzureRepos) GetOrg() string { + if o == nil { + var ret string + return ret + } + + return o.Org +} + +// GetOrgOk returns a tuple with the Org field value +// and a boolean to check if the value has been set. +func (o *AzureRepos) GetOrgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Org, true +} + +// SetOrg sets field value +func (o *AzureRepos) SetOrg(v string) { + o.Org = v +} + +// GetRepo returns the Repo field value +func (o *AzureRepos) GetRepo() string { + if o == nil { + var ret string + return ret + } + + return o.Repo +} + +// GetRepoOk returns a tuple with the Repo field value +// and a boolean to check if the value has been set. +func (o *AzureRepos) GetRepoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Repo, true +} + +// SetRepo sets field value +func (o *AzureRepos) SetRepo(v string) { + o.Repo = v +} + +// GetDefaultBranch returns the DefaultBranch field value +func (o *AzureRepos) GetDefaultBranch() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultBranch +} + +// GetDefaultBranchOk returns a tuple with the DefaultBranch field value +// and a boolean to check if the value has been set. +func (o *AzureRepos) GetDefaultBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultBranch, true +} + +// SetDefaultBranch sets field value +func (o *AzureRepos) SetDefaultBranch(v string) { + o.DefaultBranch = v +} + +// GetRepoVersion returns the RepoVersion field value if set, zero value otherwise. +func (o *AzureRepos) GetRepoVersion() string { + if o == nil || IsNil(o.RepoVersion) { + var ret string + return ret + } + return *o.RepoVersion +} + +// GetRepoVersionOk returns a tuple with the RepoVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AzureRepos) GetRepoVersionOk() (*string, bool) { + if o == nil || IsNil(o.RepoVersion) { + return nil, false + } + return o.RepoVersion, true +} + +// HasRepoVersion returns a boolean if a field has been set. +func (o *AzureRepos) HasRepoVersion() bool { + if o != nil && !IsNil(o.RepoVersion) { + return true + } + + return false +} + +// SetRepoVersion gets a reference to the given string and assigns it to the RepoVersion field. +func (o *AzureRepos) SetRepoVersion(v string) { + o.RepoVersion = &v +} + +func (o AzureRepos) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AzureRepos) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["provider"] = o.Provider + toSerialize["org"] = o.Org + toSerialize["repo"] = o.Repo + toSerialize["default_branch"] = o.DefaultBranch + if !IsNil(o.RepoVersion) { + toSerialize["repo_version"] = o.RepoVersion + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AzureRepos) 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{ + "config", + "provider", + "org", + "repo", + "default_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) + } + } + + varAzureRepos := _AzureRepos{} + + err = json.Unmarshal(data, &varAzureRepos) + + if err != nil { + return err + } + + *o = AzureRepos(varAzureRepos) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + delete(additionalProperties, "provider") + delete(additionalProperties, "org") + delete(additionalProperties, "repo") + delete(additionalProperties, "default_branch") + delete(additionalProperties, "repo_version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAzureRepos struct { + value *AzureRepos + isSet bool +} + +func (v NullableAzureRepos) Get() *AzureRepos { + return v.value +} + +func (v *NullableAzureRepos) Set(val *AzureRepos) { + v.value = val + v.isSet = true +} + +func (v NullableAzureRepos) IsSet() bool { + return v.isSet +} + +func (v *NullableAzureRepos) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAzureRepos(val *AzureRepos) *NullableAzureRepos { + return &NullableAzureRepos{value: val, isSet: true} +} + +func (v NullableAzureRepos) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAzureRepos) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_azure_repos_config.go b/internal/sdk/api/model_azure_repos_config.go new file mode 100644 index 0000000..d1ac40d --- /dev/null +++ b/internal/sdk/api/model_azure_repos_config.go @@ -0,0 +1,275 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AzureReposConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AzureReposConfig{} + +// AzureReposConfig struct for AzureReposConfig +type AzureReposConfig struct { + // Your base Azure URL. For Azure Cloud, this is always http://dev.azure.com. For Azure self-managed, this is the URL where your instance is hosted. + Url string `json:"url"` + // Your new or existing Azure DevOps project. + Project string `json:"project"` + // The Azure Repos username. + User string `json:"user"` + // The Azure project access tokens to authenticate to the Azure API. + PersonalAccessToken string `json:"personal_access_token"` + // Set this to true if you are using self-hosted Azure Repos. + UseBasicAuth bool `json:"use_basic_auth"` +} + +type _AzureReposConfig AzureReposConfig + +// NewAzureReposConfig instantiates a new AzureReposConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAzureReposConfig(url string, project string, user string, personalAccessToken string, useBasicAuth bool) *AzureReposConfig { + this := AzureReposConfig{} + this.Url = url + this.Project = project + this.User = user + this.PersonalAccessToken = personalAccessToken + this.UseBasicAuth = useBasicAuth + return &this +} + +// NewAzureReposConfigWithDefaults instantiates a new AzureReposConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAzureReposConfigWithDefaults() *AzureReposConfig { + this := AzureReposConfig{} + return &this +} + +// GetUrl returns the Url field value +func (o *AzureReposConfig) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *AzureReposConfig) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *AzureReposConfig) SetUrl(v string) { + o.Url = v +} + +// GetProject returns the Project field value +func (o *AzureReposConfig) GetProject() string { + if o == nil { + var ret string + return ret + } + + return o.Project +} + +// GetProjectOk returns a tuple with the Project field value +// and a boolean to check if the value has been set. +func (o *AzureReposConfig) GetProjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Project, true +} + +// SetProject sets field value +func (o *AzureReposConfig) SetProject(v string) { + o.Project = v +} + +// GetUser returns the User field value +func (o *AzureReposConfig) GetUser() string { + if o == nil { + var ret string + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *AzureReposConfig) GetUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *AzureReposConfig) SetUser(v string) { + o.User = v +} + +// GetPersonalAccessToken returns the PersonalAccessToken field value +func (o *AzureReposConfig) GetPersonalAccessToken() string { + if o == nil { + var ret string + return ret + } + + return o.PersonalAccessToken +} + +// GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field value +// and a boolean to check if the value has been set. +func (o *AzureReposConfig) GetPersonalAccessTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PersonalAccessToken, true +} + +// SetPersonalAccessToken sets field value +func (o *AzureReposConfig) SetPersonalAccessToken(v string) { + o.PersonalAccessToken = v +} + +// GetUseBasicAuth returns the UseBasicAuth field value +func (o *AzureReposConfig) GetUseBasicAuth() bool { + if o == nil { + var ret bool + return ret + } + + return o.UseBasicAuth +} + +// GetUseBasicAuthOk returns a tuple with the UseBasicAuth field value +// and a boolean to check if the value has been set. +func (o *AzureReposConfig) GetUseBasicAuthOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.UseBasicAuth, true +} + +// SetUseBasicAuth sets field value +func (o *AzureReposConfig) SetUseBasicAuth(v bool) { + o.UseBasicAuth = v +} + +func (o AzureReposConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AzureReposConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["project"] = o.Project + toSerialize["user"] = o.User + toSerialize["personal_access_token"] = o.PersonalAccessToken + toSerialize["use_basic_auth"] = o.UseBasicAuth + return toSerialize, nil +} + +func (o *AzureReposConfig) 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", + "project", + "user", + "personal_access_token", + "use_basic_auth", + } + + 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) + } + } + + varAzureReposConfig := _AzureReposConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAzureReposConfig) + + if err != nil { + return err + } + + *o = AzureReposConfig(varAzureReposConfig) + + return err +} + +type NullableAzureReposConfig struct { + value *AzureReposConfig + isSet bool +} + +func (v NullableAzureReposConfig) Get() *AzureReposConfig { + return v.value +} + +func (v *NullableAzureReposConfig) Set(val *AzureReposConfig) { + v.value = val + v.isSet = true +} + +func (v NullableAzureReposConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableAzureReposConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAzureReposConfig(val *AzureReposConfig) *NullableAzureReposConfig { + return &NullableAzureReposConfig{value: val, isSet: true} +} + +func (v NullableAzureReposConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAzureReposConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_bitbucket.go b/internal/sdk/api/model_bitbucket.go new file mode 100644 index 0000000..770d2c5 --- /dev/null +++ b/internal/sdk/api/model_bitbucket.go @@ -0,0 +1,325 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the Bitbucket type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Bitbucket{} + +// Bitbucket struct for Bitbucket +type Bitbucket struct { + Config BitbucketConfig `json:"config"` + Provider string `json:"provider"` + // The user or organization to which the repository belongs to. + Org string `json:"org"` + // The name of the repository you created to use with Retool. + Repo string `json:"repo"` + // The default branch, e.g., main. + DefaultBranch string `json:"default_branch"` + // Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. + RepoVersion *string `json:"repo_version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Bitbucket Bitbucket + +// NewBitbucket instantiates a new Bitbucket object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBitbucket(config BitbucketConfig, provider string, org string, repo string, defaultBranch string) *Bitbucket { + this := Bitbucket{} + this.Config = config + this.Provider = provider + this.Org = org + this.Repo = repo + this.DefaultBranch = defaultBranch + return &this +} + +// NewBitbucketWithDefaults instantiates a new Bitbucket object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBitbucketWithDefaults() *Bitbucket { + this := Bitbucket{} + return &this +} + +// GetConfig returns the Config field value +func (o *Bitbucket) GetConfig() BitbucketConfig { + if o == nil { + var ret BitbucketConfig + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *Bitbucket) GetConfigOk() (*BitbucketConfig, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *Bitbucket) SetConfig(v BitbucketConfig) { + o.Config = v +} + +// GetProvider returns the Provider field value +func (o *Bitbucket) GetProvider() string { + if o == nil { + var ret string + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *Bitbucket) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *Bitbucket) SetProvider(v string) { + o.Provider = v +} + +// GetOrg returns the Org field value +func (o *Bitbucket) GetOrg() string { + if o == nil { + var ret string + return ret + } + + return o.Org +} + +// GetOrgOk returns a tuple with the Org field value +// and a boolean to check if the value has been set. +func (o *Bitbucket) GetOrgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Org, true +} + +// SetOrg sets field value +func (o *Bitbucket) SetOrg(v string) { + o.Org = v +} + +// GetRepo returns the Repo field value +func (o *Bitbucket) GetRepo() string { + if o == nil { + var ret string + return ret + } + + return o.Repo +} + +// GetRepoOk returns a tuple with the Repo field value +// and a boolean to check if the value has been set. +func (o *Bitbucket) GetRepoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Repo, true +} + +// SetRepo sets field value +func (o *Bitbucket) SetRepo(v string) { + o.Repo = v +} + +// GetDefaultBranch returns the DefaultBranch field value +func (o *Bitbucket) GetDefaultBranch() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultBranch +} + +// GetDefaultBranchOk returns a tuple with the DefaultBranch field value +// and a boolean to check if the value has been set. +func (o *Bitbucket) GetDefaultBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultBranch, true +} + +// SetDefaultBranch sets field value +func (o *Bitbucket) SetDefaultBranch(v string) { + o.DefaultBranch = v +} + +// GetRepoVersion returns the RepoVersion field value if set, zero value otherwise. +func (o *Bitbucket) GetRepoVersion() string { + if o == nil || IsNil(o.RepoVersion) { + var ret string + return ret + } + return *o.RepoVersion +} + +// GetRepoVersionOk returns a tuple with the RepoVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Bitbucket) GetRepoVersionOk() (*string, bool) { + if o == nil || IsNil(o.RepoVersion) { + return nil, false + } + return o.RepoVersion, true +} + +// HasRepoVersion returns a boolean if a field has been set. +func (o *Bitbucket) HasRepoVersion() bool { + if o != nil && !IsNil(o.RepoVersion) { + return true + } + + return false +} + +// SetRepoVersion gets a reference to the given string and assigns it to the RepoVersion field. +func (o *Bitbucket) SetRepoVersion(v string) { + o.RepoVersion = &v +} + +func (o Bitbucket) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Bitbucket) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["provider"] = o.Provider + toSerialize["org"] = o.Org + toSerialize["repo"] = o.Repo + toSerialize["default_branch"] = o.DefaultBranch + if !IsNil(o.RepoVersion) { + toSerialize["repo_version"] = o.RepoVersion + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Bitbucket) 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{ + "config", + "provider", + "org", + "repo", + "default_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) + } + } + + varBitbucket := _Bitbucket{} + + err = json.Unmarshal(data, &varBitbucket) + + if err != nil { + return err + } + + *o = Bitbucket(varBitbucket) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + delete(additionalProperties, "provider") + delete(additionalProperties, "org") + delete(additionalProperties, "repo") + delete(additionalProperties, "default_branch") + delete(additionalProperties, "repo_version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBitbucket struct { + value *Bitbucket + isSet bool +} + +func (v NullableBitbucket) Get() *Bitbucket { + return v.value +} + +func (v *NullableBitbucket) Set(val *Bitbucket) { + v.value = val + v.isSet = true +} + +func (v NullableBitbucket) IsSet() bool { + return v.isSet +} + +func (v *NullableBitbucket) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBitbucket(val *Bitbucket) *NullableBitbucket { + return &NullableBitbucket{value: val, isSet: true} +} + +func (v NullableBitbucket) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBitbucket) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_bitbucket_config.go b/internal/sdk/api/model_bitbucket_config.go new file mode 100644 index 0000000..1df27d1 --- /dev/null +++ b/internal/sdk/api/model_bitbucket_config.go @@ -0,0 +1,105 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// BitbucketConfig struct for BitbucketConfig +type BitbucketConfig struct { + BitbucketConfigAnyOf *BitbucketConfigAnyOf + BitbucketConfigAnyOf1 *BitbucketConfigAnyOf1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *BitbucketConfig) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into BitbucketConfigAnyOf + err = json.Unmarshal(data, &dst.BitbucketConfigAnyOf); + if err == nil { + jsonBitbucketConfigAnyOf, _ := json.Marshal(dst.BitbucketConfigAnyOf) + if string(jsonBitbucketConfigAnyOf) == "{}" { // empty struct + dst.BitbucketConfigAnyOf = nil + } else { + return nil // data stored in dst.BitbucketConfigAnyOf, return on the first match + } + } else { + dst.BitbucketConfigAnyOf = nil + } + + // try to unmarshal JSON data into BitbucketConfigAnyOf1 + err = json.Unmarshal(data, &dst.BitbucketConfigAnyOf1); + if err == nil { + jsonBitbucketConfigAnyOf1, _ := json.Marshal(dst.BitbucketConfigAnyOf1) + if string(jsonBitbucketConfigAnyOf1) == "{}" { // empty struct + dst.BitbucketConfigAnyOf1 = nil + } else { + return nil // data stored in dst.BitbucketConfigAnyOf1, return on the first match + } + } else { + dst.BitbucketConfigAnyOf1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(BitbucketConfig)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src BitbucketConfig) MarshalJSON() ([]byte, error) { + if src.BitbucketConfigAnyOf != nil { + return json.Marshal(src.BitbucketConfigAnyOf) + } + + if src.BitbucketConfigAnyOf1 != nil { + return json.Marshal(src.BitbucketConfigAnyOf1) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableBitbucketConfig struct { + value *BitbucketConfig + isSet bool +} + +func (v NullableBitbucketConfig) Get() *BitbucketConfig { + return v.value +} + +func (v *NullableBitbucketConfig) Set(val *BitbucketConfig) { + v.value = val + v.isSet = true +} + +func (v NullableBitbucketConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableBitbucketConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBitbucketConfig(val *BitbucketConfig) *NullableBitbucketConfig { + return &NullableBitbucketConfig{value: val, isSet: true} +} + +func (v NullableBitbucketConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBitbucketConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_bitbucket_config_any_of.go b/internal/sdk/api/model_bitbucket_config_any_of.go new file mode 100644 index 0000000..a2b36d0 --- /dev/null +++ b/internal/sdk/api/model_bitbucket_config_any_of.go @@ -0,0 +1,298 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BitbucketConfigAnyOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BitbucketConfigAnyOf{} + +// BitbucketConfigAnyOf struct for BitbucketConfigAnyOf +type BitbucketConfigAnyOf struct { + Type *string `json:"type,omitempty"` + // Your Bitbucket username. + Username string `json:"username"` + // Your Bitbucket app password. + AppPassword string `json:"app_password"` + // The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/. + Url *string `json:"url,omitempty"` + // The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0. + EnterpriseApiUrl *string `json:"enterprise_api_url,omitempty"` +} + +type _BitbucketConfigAnyOf BitbucketConfigAnyOf + +// NewBitbucketConfigAnyOf instantiates a new BitbucketConfigAnyOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBitbucketConfigAnyOf(username string, appPassword string) *BitbucketConfigAnyOf { + this := BitbucketConfigAnyOf{} + this.Username = username + this.AppPassword = appPassword + return &this +} + +// NewBitbucketConfigAnyOfWithDefaults instantiates a new BitbucketConfigAnyOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBitbucketConfigAnyOfWithDefaults() *BitbucketConfigAnyOf { + this := BitbucketConfigAnyOf{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BitbucketConfigAnyOf) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BitbucketConfigAnyOf) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *BitbucketConfigAnyOf) SetType(v string) { + o.Type = &v +} + +// GetUsername returns the Username field value +func (o *BitbucketConfigAnyOf) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *BitbucketConfigAnyOf) SetUsername(v string) { + o.Username = v +} + +// GetAppPassword returns the AppPassword field value +func (o *BitbucketConfigAnyOf) GetAppPassword() string { + if o == nil { + var ret string + return ret + } + + return o.AppPassword +} + +// GetAppPasswordOk returns a tuple with the AppPassword field value +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf) GetAppPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AppPassword, true +} + +// SetAppPassword sets field value +func (o *BitbucketConfigAnyOf) SetAppPassword(v string) { + o.AppPassword = v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *BitbucketConfigAnyOf) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *BitbucketConfigAnyOf) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *BitbucketConfigAnyOf) SetUrl(v string) { + o.Url = &v +} + +// GetEnterpriseApiUrl returns the EnterpriseApiUrl field value if set, zero value otherwise. +func (o *BitbucketConfigAnyOf) GetEnterpriseApiUrl() string { + if o == nil || IsNil(o.EnterpriseApiUrl) { + var ret string + return ret + } + return *o.EnterpriseApiUrl +} + +// GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf) GetEnterpriseApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.EnterpriseApiUrl) { + return nil, false + } + return o.EnterpriseApiUrl, true +} + +// HasEnterpriseApiUrl returns a boolean if a field has been set. +func (o *BitbucketConfigAnyOf) HasEnterpriseApiUrl() bool { + if o != nil && !IsNil(o.EnterpriseApiUrl) { + return true + } + + return false +} + +// SetEnterpriseApiUrl gets a reference to the given string and assigns it to the EnterpriseApiUrl field. +func (o *BitbucketConfigAnyOf) SetEnterpriseApiUrl(v string) { + o.EnterpriseApiUrl = &v +} + +func (o BitbucketConfigAnyOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BitbucketConfigAnyOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + toSerialize["username"] = o.Username + toSerialize["app_password"] = o.AppPassword + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if !IsNil(o.EnterpriseApiUrl) { + toSerialize["enterprise_api_url"] = o.EnterpriseApiUrl + } + return toSerialize, nil +} + +func (o *BitbucketConfigAnyOf) 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{ + "username", + "app_password", + } + + 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) + } + } + + varBitbucketConfigAnyOf := _BitbucketConfigAnyOf{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBitbucketConfigAnyOf) + + if err != nil { + return err + } + + *o = BitbucketConfigAnyOf(varBitbucketConfigAnyOf) + + return err +} + +type NullableBitbucketConfigAnyOf struct { + value *BitbucketConfigAnyOf + isSet bool +} + +func (v NullableBitbucketConfigAnyOf) Get() *BitbucketConfigAnyOf { + return v.value +} + +func (v *NullableBitbucketConfigAnyOf) Set(val *BitbucketConfigAnyOf) { + v.value = val + v.isSet = true +} + +func (v NullableBitbucketConfigAnyOf) IsSet() bool { + return v.isSet +} + +func (v *NullableBitbucketConfigAnyOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBitbucketConfigAnyOf(val *BitbucketConfigAnyOf) *NullableBitbucketConfigAnyOf { + return &NullableBitbucketConfigAnyOf{value: val, isSet: true} +} + +func (v NullableBitbucketConfigAnyOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBitbucketConfigAnyOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_bitbucket_config_any_of_1.go b/internal/sdk/api/model_bitbucket_config_any_of_1.go new file mode 100644 index 0000000..518d769 --- /dev/null +++ b/internal/sdk/api/model_bitbucket_config_any_of_1.go @@ -0,0 +1,269 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BitbucketConfigAnyOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BitbucketConfigAnyOf1{} + +// BitbucketConfigAnyOf1 struct for BitbucketConfigAnyOf1 +type BitbucketConfigAnyOf1 struct { + Type *string `json:"type,omitempty"` + // Your Bitbucket API token. + Token string `json:"token"` + // The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/. + Url *string `json:"url,omitempty"` + // The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0. + EnterpriseApiUrl *string `json:"enterprise_api_url,omitempty"` +} + +type _BitbucketConfigAnyOf1 BitbucketConfigAnyOf1 + +// NewBitbucketConfigAnyOf1 instantiates a new BitbucketConfigAnyOf1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBitbucketConfigAnyOf1(token string) *BitbucketConfigAnyOf1 { + this := BitbucketConfigAnyOf1{} + this.Token = token + return &this +} + +// NewBitbucketConfigAnyOf1WithDefaults instantiates a new BitbucketConfigAnyOf1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBitbucketConfigAnyOf1WithDefaults() *BitbucketConfigAnyOf1 { + this := BitbucketConfigAnyOf1{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BitbucketConfigAnyOf1) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf1) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BitbucketConfigAnyOf1) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *BitbucketConfigAnyOf1) SetType(v string) { + o.Type = &v +} + +// GetToken returns the Token field value +func (o *BitbucketConfigAnyOf1) GetToken() string { + if o == nil { + var ret string + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf1) GetTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *BitbucketConfigAnyOf1) SetToken(v string) { + o.Token = v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *BitbucketConfigAnyOf1) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf1) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *BitbucketConfigAnyOf1) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *BitbucketConfigAnyOf1) SetUrl(v string) { + o.Url = &v +} + +// GetEnterpriseApiUrl returns the EnterpriseApiUrl field value if set, zero value otherwise. +func (o *BitbucketConfigAnyOf1) GetEnterpriseApiUrl() string { + if o == nil || IsNil(o.EnterpriseApiUrl) { + var ret string + return ret + } + return *o.EnterpriseApiUrl +} + +// GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BitbucketConfigAnyOf1) GetEnterpriseApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.EnterpriseApiUrl) { + return nil, false + } + return o.EnterpriseApiUrl, true +} + +// HasEnterpriseApiUrl returns a boolean if a field has been set. +func (o *BitbucketConfigAnyOf1) HasEnterpriseApiUrl() bool { + if o != nil && !IsNil(o.EnterpriseApiUrl) { + return true + } + + return false +} + +// SetEnterpriseApiUrl gets a reference to the given string and assigns it to the EnterpriseApiUrl field. +func (o *BitbucketConfigAnyOf1) SetEnterpriseApiUrl(v string) { + o.EnterpriseApiUrl = &v +} + +func (o BitbucketConfigAnyOf1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BitbucketConfigAnyOf1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + toSerialize["token"] = o.Token + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if !IsNil(o.EnterpriseApiUrl) { + toSerialize["enterprise_api_url"] = o.EnterpriseApiUrl + } + return toSerialize, nil +} + +func (o *BitbucketConfigAnyOf1) 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{ + "token", + } + + 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) + } + } + + varBitbucketConfigAnyOf1 := _BitbucketConfigAnyOf1{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBitbucketConfigAnyOf1) + + if err != nil { + return err + } + + *o = BitbucketConfigAnyOf1(varBitbucketConfigAnyOf1) + + return err +} + +type NullableBitbucketConfigAnyOf1 struct { + value *BitbucketConfigAnyOf1 + isSet bool +} + +func (v NullableBitbucketConfigAnyOf1) Get() *BitbucketConfigAnyOf1 { + return v.value +} + +func (v *NullableBitbucketConfigAnyOf1) Set(val *BitbucketConfigAnyOf1) { + v.value = val + v.isSet = true +} + +func (v NullableBitbucketConfigAnyOf1) IsSet() bool { + return v.isSet +} + +func (v *NullableBitbucketConfigAnyOf1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBitbucketConfigAnyOf1(val *BitbucketConfigAnyOf1) *NullableBitbucketConfigAnyOf1 { + return &NullableBitbucketConfigAnyOf1{value: val, isSet: true} +} + +func (v NullableBitbucketConfigAnyOf1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBitbucketConfigAnyOf1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_configuration_variable.go b/internal/sdk/api/model_configuration_variable.go index ce7f6a8..045b202 100644 --- a/internal/sdk/api/model_configuration_variable.go +++ b/internal/sdk/api/model_configuration_variable.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_copy_operation.go b/internal/sdk/api/model_copy_operation.go new file mode 100644 index 0000000..a627b51 --- /dev/null +++ b/internal/sdk/api/model_copy_operation.go @@ -0,0 +1,226 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the CopyOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CopyOperation{} + +// CopyOperation struct for CopyOperation +type CopyOperation struct { + Op string `json:"op"` + Path string `json:"path"` + From string `json:"from"` + AdditionalProperties map[string]interface{} +} + +type _CopyOperation CopyOperation + +// NewCopyOperation instantiates a new CopyOperation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCopyOperation(op string, path string, from string) *CopyOperation { + this := CopyOperation{} + this.Op = op + this.Path = path + this.From = from + return &this +} + +// NewCopyOperationWithDefaults instantiates a new CopyOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCopyOperationWithDefaults() *CopyOperation { + this := CopyOperation{} + return &this +} + +// GetOp returns the Op field value +func (o *CopyOperation) GetOp() string { + if o == nil { + var ret string + return ret + } + + return o.Op +} + +// GetOpOk returns a tuple with the Op field value +// and a boolean to check if the value has been set. +func (o *CopyOperation) GetOpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Op, true +} + +// SetOp sets field value +func (o *CopyOperation) SetOp(v string) { + o.Op = v +} + +// GetPath returns the Path field value +func (o *CopyOperation) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *CopyOperation) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *CopyOperation) SetPath(v string) { + o.Path = v +} + +// GetFrom returns the From field value +func (o *CopyOperation) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *CopyOperation) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *CopyOperation) SetFrom(v string) { + o.From = v +} + +func (o CopyOperation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CopyOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["op"] = o.Op + toSerialize["path"] = o.Path + toSerialize["from"] = o.From + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CopyOperation) 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", + "from", + } + + 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) + } + } + + varCopyOperation := _CopyOperation{} + + err = json.Unmarshal(data, &varCopyOperation) + + if err != nil { + return err + } + + *o = CopyOperation(varCopyOperation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "op") + delete(additionalProperties, "path") + delete(additionalProperties, "from") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCopyOperation struct { + value *CopyOperation + isSet bool +} + +func (v NullableCopyOperation) Get() *CopyOperation { + return v.value +} + +func (v *NullableCopyOperation) Set(val *CopyOperation) { + v.value = val + v.isSet = true +} + +func (v NullableCopyOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableCopyOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCopyOperation(val *CopyOperation) *NullableCopyOperation { + return &NullableCopyOperation{value: val, isSet: true} +} + +func (v NullableCopyOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCopyOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_custom_component_library.go b/internal/sdk/api/model_custom_component_library.go index 11b3f76..f7ee051 100644 --- a/internal/sdk/api/model_custom_component_library.go +++ b/internal/sdk/api/model_custom_component_library.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_custom_component_library_revision.go b/internal/sdk/api/model_custom_component_library_revision.go index 81c3a0a..dea8305 100644 --- a/internal/sdk/api/model_custom_component_library_revision.go +++ b/internal/sdk/api/model_custom_component_library_revision.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_custom_component_library_revision_file.go b/internal/sdk/api/model_custom_component_library_revision_file.go index 69322fa..e6b301d 100644 --- a/internal/sdk/api/model_custom_component_library_revision_file.go +++ b/internal/sdk/api/model_custom_component_library_revision_file.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_environment.go b/internal/sdk/api/model_environment.go index 63e863b..cc4ee69 100644 --- a/internal/sdk/api/model_environment.go +++ b/internal/sdk/api/model_environment.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_folder.go b/internal/sdk/api/model_folder.go index f6b6302..a450a91 100644 --- a/internal/sdk/api/model_folder.go +++ b/internal/sdk/api/model_folder.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,29 +12,18 @@ package api import ( "encoding/json" + "bytes" "fmt" ) // checks if the Folder type satisfies the MappedNullable interface at compile time var _ MappedNullable = &Folder{} -// Folder This object represents app, resource and workflows folders. +// Folder struct for Folder type Folder struct { - // The id of the folder. Currently this is the same as legacy_id but will be different in the future. + Type string `json:"type"` + // The id of the folder Id string `json:"id"` - // The legacy id of the folder. - LegacyId string `json:"legacy_id"` - // The name of the folder - Name string `json:"name"` - // The id of the parent folder - ParentFolderId NullableString `json:"parent_folder_id,omitempty"` - // Whether the folder is a system folder - IsSystemFolder bool `json:"is_system_folder"` - // The type of the folder - FolderType string `json:"folder_type"` - CreatedAt string `json:"created_at"` - UpdatedAt string `json:"updated_at"` - AdditionalProperties map[string]interface{} } type _Folder Folder @@ -43,15 +32,10 @@ type _Folder Folder // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFolder(id string, legacyId string, name string, isSystemFolder bool, folderType string, createdAt string, updatedAt string) *Folder { +func NewFolder(type_ string, id string) *Folder { this := Folder{} + this.Type = type_ this.Id = id - this.LegacyId = legacyId - this.Name = name - this.IsSystemFolder = isSystemFolder - this.FolderType = folderType - this.CreatedAt = createdAt - this.UpdatedAt = updatedAt return &this } @@ -63,214 +47,52 @@ func NewFolderWithDefaults() *Folder { return &this } -// GetId returns the Id field value -func (o *Folder) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *Folder) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *Folder) SetId(v string) { - o.Id = v -} - -// GetLegacyId returns the LegacyId field value -func (o *Folder) GetLegacyId() string { - if o == nil { - var ret string - return ret - } - - return o.LegacyId -} - -// GetLegacyIdOk returns a tuple with the LegacyId field value -// and a boolean to check if the value has been set. -func (o *Folder) GetLegacyIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LegacyId, true -} - -// SetLegacyId sets field value -func (o *Folder) SetLegacyId(v string) { - o.LegacyId = v -} - -// GetName returns the Name field value -func (o *Folder) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *Folder) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *Folder) SetName(v string) { - o.Name = v -} - -// GetParentFolderId returns the ParentFolderId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Folder) GetParentFolderId() string { - if o == nil || IsNil(o.ParentFolderId.Get()) { - var ret string - return ret - } - return *o.ParentFolderId.Get() -} - -// GetParentFolderIdOk returns a tuple with the ParentFolderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Folder) GetParentFolderIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.ParentFolderId.Get(), o.ParentFolderId.IsSet() -} - -// HasParentFolderId returns a boolean if a field has been set. -func (o *Folder) HasParentFolderId() bool { - if o != nil && o.ParentFolderId.IsSet() { - return true - } - - return false -} - -// SetParentFolderId gets a reference to the given NullableString and assigns it to the ParentFolderId field. -func (o *Folder) SetParentFolderId(v string) { - o.ParentFolderId.Set(&v) -} -// SetParentFolderIdNil sets the value for ParentFolderId to be an explicit nil -func (o *Folder) SetParentFolderIdNil() { - o.ParentFolderId.Set(nil) -} - -// UnsetParentFolderId ensures that no value is present for ParentFolderId, not even an explicit nil -func (o *Folder) UnsetParentFolderId() { - o.ParentFolderId.Unset() -} - -// GetIsSystemFolder returns the IsSystemFolder field value -func (o *Folder) GetIsSystemFolder() bool { - if o == nil { - var ret bool - return ret - } - - return o.IsSystemFolder -} - -// GetIsSystemFolderOk returns a tuple with the IsSystemFolder field value -// and a boolean to check if the value has been set. -func (o *Folder) GetIsSystemFolderOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.IsSystemFolder, true -} - -// SetIsSystemFolder sets field value -func (o *Folder) SetIsSystemFolder(v bool) { - o.IsSystemFolder = v -} - -// GetFolderType returns the FolderType field value -func (o *Folder) GetFolderType() string { +// GetType returns the Type field value +func (o *Folder) GetType() string { if o == nil { var ret string return ret } - return o.FolderType + return o.Type } -// GetFolderTypeOk returns a tuple with the FolderType field value +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *Folder) GetFolderTypeOk() (*string, bool) { +func (o *Folder) GetTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.FolderType, true + return &o.Type, true } -// SetFolderType sets field value -func (o *Folder) SetFolderType(v string) { - o.FolderType = v +// SetType sets field value +func (o *Folder) SetType(v string) { + o.Type = v } -// GetCreatedAt returns the CreatedAt field value -func (o *Folder) GetCreatedAt() string { - if o == nil { - var ret string - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *Folder) GetCreatedAtOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *Folder) SetCreatedAt(v string) { - o.CreatedAt = v -} - -// GetUpdatedAt returns the UpdatedAt field value -func (o *Folder) GetUpdatedAt() string { +// GetId returns the Id field value +func (o *Folder) GetId() string { if o == nil { var ret string return ret } - return o.UpdatedAt + return o.Id } -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *Folder) GetUpdatedAtOk() (*string, bool) { +func (o *Folder) GetIdOk() (*string, bool) { if o == nil { return nil, false } - return &o.UpdatedAt, true + return &o.Id, true } -// SetUpdatedAt sets field value -func (o *Folder) SetUpdatedAt(v string) { - o.UpdatedAt = v +// SetId sets field value +func (o *Folder) SetId(v string) { + o.Id = v } func (o Folder) MarshalJSON() ([]byte, error) { @@ -283,21 +105,8 @@ func (o Folder) MarshalJSON() ([]byte, error) { func (o Folder) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type toSerialize["id"] = o.Id - toSerialize["legacy_id"] = o.LegacyId - toSerialize["name"] = o.Name - if o.ParentFolderId.IsSet() { - toSerialize["parent_folder_id"] = o.ParentFolderId.Get() - } - toSerialize["is_system_folder"] = o.IsSystemFolder - toSerialize["folder_type"] = o.FolderType - toSerialize["created_at"] = o.CreatedAt - toSerialize["updated_at"] = o.UpdatedAt - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - return toSerialize, nil } @@ -306,13 +115,8 @@ func (o *Folder) UnmarshalJSON(data []byte) (err error) { // 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{ + "type", "id", - "legacy_id", - "name", - "is_system_folder", - "folder_type", - "created_at", - "updated_at", } allProperties := make(map[string]interface{}) @@ -331,7 +135,9 @@ func (o *Folder) UnmarshalJSON(data []byte) (err error) { varFolder := _Folder{} - err = json.Unmarshal(data, &varFolder) + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varFolder) if err != nil { return err @@ -339,20 +145,6 @@ func (o *Folder) UnmarshalJSON(data []byte) (err error) { *o = Folder(varFolder) - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "legacy_id") - delete(additionalProperties, "name") - delete(additionalProperties, "parent_folder_id") - delete(additionalProperties, "is_system_folder") - delete(additionalProperties, "folder_type") - delete(additionalProperties, "created_at") - delete(additionalProperties, "updated_at") - o.AdditionalProperties = additionalProperties - } - return err } diff --git a/internal/sdk/api/model_git_hub.go b/internal/sdk/api/model_git_hub.go new file mode 100644 index 0000000..173d4ad --- /dev/null +++ b/internal/sdk/api/model_git_hub.go @@ -0,0 +1,325 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the GitHub type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GitHub{} + +// GitHub struct for GitHub +type GitHub struct { + Config GitHubConfig `json:"config"` + Provider string `json:"provider"` + // The user or organization to which the repository belongs to. + Org string `json:"org"` + // The name of the repository you created to use with Retool. + Repo string `json:"repo"` + // The default branch, e.g., main. + DefaultBranch string `json:"default_branch"` + // Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. + RepoVersion *string `json:"repo_version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GitHub GitHub + +// NewGitHub instantiates a new GitHub object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGitHub(config GitHubConfig, provider string, org string, repo string, defaultBranch string) *GitHub { + this := GitHub{} + this.Config = config + this.Provider = provider + this.Org = org + this.Repo = repo + this.DefaultBranch = defaultBranch + return &this +} + +// NewGitHubWithDefaults instantiates a new GitHub object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGitHubWithDefaults() *GitHub { + this := GitHub{} + return &this +} + +// GetConfig returns the Config field value +func (o *GitHub) GetConfig() GitHubConfig { + if o == nil { + var ret GitHubConfig + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *GitHub) GetConfigOk() (*GitHubConfig, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *GitHub) SetConfig(v GitHubConfig) { + o.Config = v +} + +// GetProvider returns the Provider field value +func (o *GitHub) GetProvider() string { + if o == nil { + var ret string + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *GitHub) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *GitHub) SetProvider(v string) { + o.Provider = v +} + +// GetOrg returns the Org field value +func (o *GitHub) GetOrg() string { + if o == nil { + var ret string + return ret + } + + return o.Org +} + +// GetOrgOk returns a tuple with the Org field value +// and a boolean to check if the value has been set. +func (o *GitHub) GetOrgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Org, true +} + +// SetOrg sets field value +func (o *GitHub) SetOrg(v string) { + o.Org = v +} + +// GetRepo returns the Repo field value +func (o *GitHub) GetRepo() string { + if o == nil { + var ret string + return ret + } + + return o.Repo +} + +// GetRepoOk returns a tuple with the Repo field value +// and a boolean to check if the value has been set. +func (o *GitHub) GetRepoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Repo, true +} + +// SetRepo sets field value +func (o *GitHub) SetRepo(v string) { + o.Repo = v +} + +// GetDefaultBranch returns the DefaultBranch field value +func (o *GitHub) GetDefaultBranch() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultBranch +} + +// GetDefaultBranchOk returns a tuple with the DefaultBranch field value +// and a boolean to check if the value has been set. +func (o *GitHub) GetDefaultBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultBranch, true +} + +// SetDefaultBranch sets field value +func (o *GitHub) SetDefaultBranch(v string) { + o.DefaultBranch = v +} + +// GetRepoVersion returns the RepoVersion field value if set, zero value otherwise. +func (o *GitHub) GetRepoVersion() string { + if o == nil || IsNil(o.RepoVersion) { + var ret string + return ret + } + return *o.RepoVersion +} + +// GetRepoVersionOk returns a tuple with the RepoVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GitHub) GetRepoVersionOk() (*string, bool) { + if o == nil || IsNil(o.RepoVersion) { + return nil, false + } + return o.RepoVersion, true +} + +// HasRepoVersion returns a boolean if a field has been set. +func (o *GitHub) HasRepoVersion() bool { + if o != nil && !IsNil(o.RepoVersion) { + return true + } + + return false +} + +// SetRepoVersion gets a reference to the given string and assigns it to the RepoVersion field. +func (o *GitHub) SetRepoVersion(v string) { + o.RepoVersion = &v +} + +func (o GitHub) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GitHub) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["provider"] = o.Provider + toSerialize["org"] = o.Org + toSerialize["repo"] = o.Repo + toSerialize["default_branch"] = o.DefaultBranch + if !IsNil(o.RepoVersion) { + toSerialize["repo_version"] = o.RepoVersion + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GitHub) 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{ + "config", + "provider", + "org", + "repo", + "default_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) + } + } + + varGitHub := _GitHub{} + + err = json.Unmarshal(data, &varGitHub) + + if err != nil { + return err + } + + *o = GitHub(varGitHub) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + delete(additionalProperties, "provider") + delete(additionalProperties, "org") + delete(additionalProperties, "repo") + delete(additionalProperties, "default_branch") + delete(additionalProperties, "repo_version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGitHub struct { + value *GitHub + isSet bool +} + +func (v NullableGitHub) Get() *GitHub { + return v.value +} + +func (v *NullableGitHub) Set(val *GitHub) { + v.value = val + v.isSet = true +} + +func (v NullableGitHub) IsSet() bool { + return v.isSet +} + +func (v *NullableGitHub) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGitHub(val *GitHub) *NullableGitHub { + return &NullableGitHub{value: val, isSet: true} +} + +func (v NullableGitHub) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGitHub) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_git_hub_config.go b/internal/sdk/api/model_git_hub_config.go new file mode 100644 index 0000000..89382a2 --- /dev/null +++ b/internal/sdk/api/model_git_hub_config.go @@ -0,0 +1,105 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// GitHubConfig struct for GitHubConfig +type GitHubConfig struct { + GitHubConfigAnyOf *GitHubConfigAnyOf + GitHubConfigAnyOf1 *GitHubConfigAnyOf1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GitHubConfig) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into GitHubConfigAnyOf + err = json.Unmarshal(data, &dst.GitHubConfigAnyOf); + if err == nil { + jsonGitHubConfigAnyOf, _ := json.Marshal(dst.GitHubConfigAnyOf) + if string(jsonGitHubConfigAnyOf) == "{}" { // empty struct + dst.GitHubConfigAnyOf = nil + } else { + return nil // data stored in dst.GitHubConfigAnyOf, return on the first match + } + } else { + dst.GitHubConfigAnyOf = nil + } + + // try to unmarshal JSON data into GitHubConfigAnyOf1 + err = json.Unmarshal(data, &dst.GitHubConfigAnyOf1); + if err == nil { + jsonGitHubConfigAnyOf1, _ := json.Marshal(dst.GitHubConfigAnyOf1) + if string(jsonGitHubConfigAnyOf1) == "{}" { // empty struct + dst.GitHubConfigAnyOf1 = nil + } else { + return nil // data stored in dst.GitHubConfigAnyOf1, return on the first match + } + } else { + dst.GitHubConfigAnyOf1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GitHubConfig)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GitHubConfig) MarshalJSON() ([]byte, error) { + if src.GitHubConfigAnyOf != nil { + return json.Marshal(src.GitHubConfigAnyOf) + } + + if src.GitHubConfigAnyOf1 != nil { + return json.Marshal(src.GitHubConfigAnyOf1) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableGitHubConfig struct { + value *GitHubConfig + isSet bool +} + +func (v NullableGitHubConfig) Get() *GitHubConfig { + return v.value +} + +func (v *NullableGitHubConfig) Set(val *GitHubConfig) { + v.value = val + v.isSet = true +} + +func (v NullableGitHubConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableGitHubConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGitHubConfig(val *GitHubConfig) *NullableGitHubConfig { + return &NullableGitHubConfig{value: val, isSet: true} +} + +func (v NullableGitHubConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGitHubConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_git_hub_config_any_of.go b/internal/sdk/api/model_git_hub_config_any_of.go new file mode 100644 index 0000000..3b9d733 --- /dev/null +++ b/internal/sdk/api/model_git_hub_config_any_of.go @@ -0,0 +1,319 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GitHubConfigAnyOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GitHubConfigAnyOf{} + +// GitHubConfigAnyOf struct for GitHubConfigAnyOf +type GitHubConfigAnyOf struct { + Type string `json:"type"` + // The GitHub App ID. + AppId string `json:"app_id"` + // The GitHub installation ID. This can be found at the end of the installation URL. + InstallationId string `json:"installation_id"` + // The base64-encoded private key. + PrivateKey string `json:"private_key"` + // The domain used to access your self-hosted GitHub instance. + Url *string `json:"url,omitempty"` + // The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3. + EnterpriseApiUrl *string `json:"enterprise_api_url,omitempty"` +} + +type _GitHubConfigAnyOf GitHubConfigAnyOf + +// NewGitHubConfigAnyOf instantiates a new GitHubConfigAnyOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGitHubConfigAnyOf(type_ string, appId string, installationId string, privateKey string) *GitHubConfigAnyOf { + this := GitHubConfigAnyOf{} + this.Type = type_ + this.AppId = appId + this.InstallationId = installationId + this.PrivateKey = privateKey + return &this +} + +// NewGitHubConfigAnyOfWithDefaults instantiates a new GitHubConfigAnyOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGitHubConfigAnyOfWithDefaults() *GitHubConfigAnyOf { + this := GitHubConfigAnyOf{} + return &this +} + +// GetType returns the Type field value +func (o *GitHubConfigAnyOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GitHubConfigAnyOf) SetType(v string) { + o.Type = v +} + +// GetAppId returns the AppId field value +func (o *GitHubConfigAnyOf) GetAppId() string { + if o == nil { + var ret string + return ret + } + + return o.AppId +} + +// GetAppIdOk returns a tuple with the AppId field value +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf) GetAppIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AppId, true +} + +// SetAppId sets field value +func (o *GitHubConfigAnyOf) SetAppId(v string) { + o.AppId = v +} + +// GetInstallationId returns the InstallationId field value +func (o *GitHubConfigAnyOf) GetInstallationId() string { + if o == nil { + var ret string + return ret + } + + return o.InstallationId +} + +// GetInstallationIdOk returns a tuple with the InstallationId field value +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf) GetInstallationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstallationId, true +} + +// SetInstallationId sets field value +func (o *GitHubConfigAnyOf) SetInstallationId(v string) { + o.InstallationId = v +} + +// GetPrivateKey returns the PrivateKey field value +func (o *GitHubConfigAnyOf) GetPrivateKey() string { + if o == nil { + var ret string + return ret + } + + return o.PrivateKey +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf) GetPrivateKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrivateKey, true +} + +// SetPrivateKey sets field value +func (o *GitHubConfigAnyOf) SetPrivateKey(v string) { + o.PrivateKey = v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *GitHubConfigAnyOf) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *GitHubConfigAnyOf) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *GitHubConfigAnyOf) SetUrl(v string) { + o.Url = &v +} + +// GetEnterpriseApiUrl returns the EnterpriseApiUrl field value if set, zero value otherwise. +func (o *GitHubConfigAnyOf) GetEnterpriseApiUrl() string { + if o == nil || IsNil(o.EnterpriseApiUrl) { + var ret string + return ret + } + return *o.EnterpriseApiUrl +} + +// GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf) GetEnterpriseApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.EnterpriseApiUrl) { + return nil, false + } + return o.EnterpriseApiUrl, true +} + +// HasEnterpriseApiUrl returns a boolean if a field has been set. +func (o *GitHubConfigAnyOf) HasEnterpriseApiUrl() bool { + if o != nil && !IsNil(o.EnterpriseApiUrl) { + return true + } + + return false +} + +// SetEnterpriseApiUrl gets a reference to the given string and assigns it to the EnterpriseApiUrl field. +func (o *GitHubConfigAnyOf) SetEnterpriseApiUrl(v string) { + o.EnterpriseApiUrl = &v +} + +func (o GitHubConfigAnyOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GitHubConfigAnyOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["app_id"] = o.AppId + toSerialize["installation_id"] = o.InstallationId + toSerialize["private_key"] = o.PrivateKey + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if !IsNil(o.EnterpriseApiUrl) { + toSerialize["enterprise_api_url"] = o.EnterpriseApiUrl + } + return toSerialize, nil +} + +func (o *GitHubConfigAnyOf) 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{ + "type", + "app_id", + "installation_id", + "private_key", + } + + 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) + } + } + + varGitHubConfigAnyOf := _GitHubConfigAnyOf{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGitHubConfigAnyOf) + + if err != nil { + return err + } + + *o = GitHubConfigAnyOf(varGitHubConfigAnyOf) + + return err +} + +type NullableGitHubConfigAnyOf struct { + value *GitHubConfigAnyOf + isSet bool +} + +func (v NullableGitHubConfigAnyOf) Get() *GitHubConfigAnyOf { + return v.value +} + +func (v *NullableGitHubConfigAnyOf) Set(val *GitHubConfigAnyOf) { + v.value = val + v.isSet = true +} + +func (v NullableGitHubConfigAnyOf) IsSet() bool { + return v.isSet +} + +func (v *NullableGitHubConfigAnyOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGitHubConfigAnyOf(val *GitHubConfigAnyOf) *NullableGitHubConfigAnyOf { + return &NullableGitHubConfigAnyOf{value: val, isSet: true} +} + +func (v NullableGitHubConfigAnyOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGitHubConfigAnyOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_git_hub_config_any_of_1.go b/internal/sdk/api/model_git_hub_config_any_of_1.go new file mode 100644 index 0000000..8ae4d45 --- /dev/null +++ b/internal/sdk/api/model_git_hub_config_any_of_1.go @@ -0,0 +1,261 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GitHubConfigAnyOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GitHubConfigAnyOf1{} + +// GitHubConfigAnyOf1 struct for GitHubConfigAnyOf1 +type GitHubConfigAnyOf1 struct { + Type string `json:"type"` + // The GitHub project access token to authenticate to the GitHub API. + PersonalAccessToken string `json:"personal_access_token"` + // The domain used to access your self-hosted GitHub instance. + Url *string `json:"url,omitempty"` + // The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3. + EnterpriseApiUrl *string `json:"enterprise_api_url,omitempty"` +} + +type _GitHubConfigAnyOf1 GitHubConfigAnyOf1 + +// NewGitHubConfigAnyOf1 instantiates a new GitHubConfigAnyOf1 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGitHubConfigAnyOf1(type_ string, personalAccessToken string) *GitHubConfigAnyOf1 { + this := GitHubConfigAnyOf1{} + this.Type = type_ + this.PersonalAccessToken = personalAccessToken + return &this +} + +// NewGitHubConfigAnyOf1WithDefaults instantiates a new GitHubConfigAnyOf1 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGitHubConfigAnyOf1WithDefaults() *GitHubConfigAnyOf1 { + this := GitHubConfigAnyOf1{} + return &this +} + +// GetType returns the Type field value +func (o *GitHubConfigAnyOf1) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf1) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GitHubConfigAnyOf1) SetType(v string) { + o.Type = v +} + +// GetPersonalAccessToken returns the PersonalAccessToken field value +func (o *GitHubConfigAnyOf1) GetPersonalAccessToken() string { + if o == nil { + var ret string + return ret + } + + return o.PersonalAccessToken +} + +// GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field value +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf1) GetPersonalAccessTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PersonalAccessToken, true +} + +// SetPersonalAccessToken sets field value +func (o *GitHubConfigAnyOf1) SetPersonalAccessToken(v string) { + o.PersonalAccessToken = v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *GitHubConfigAnyOf1) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf1) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *GitHubConfigAnyOf1) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *GitHubConfigAnyOf1) SetUrl(v string) { + o.Url = &v +} + +// GetEnterpriseApiUrl returns the EnterpriseApiUrl field value if set, zero value otherwise. +func (o *GitHubConfigAnyOf1) GetEnterpriseApiUrl() string { + if o == nil || IsNil(o.EnterpriseApiUrl) { + var ret string + return ret + } + return *o.EnterpriseApiUrl +} + +// GetEnterpriseApiUrlOk returns a tuple with the EnterpriseApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GitHubConfigAnyOf1) GetEnterpriseApiUrlOk() (*string, bool) { + if o == nil || IsNil(o.EnterpriseApiUrl) { + return nil, false + } + return o.EnterpriseApiUrl, true +} + +// HasEnterpriseApiUrl returns a boolean if a field has been set. +func (o *GitHubConfigAnyOf1) HasEnterpriseApiUrl() bool { + if o != nil && !IsNil(o.EnterpriseApiUrl) { + return true + } + + return false +} + +// SetEnterpriseApiUrl gets a reference to the given string and assigns it to the EnterpriseApiUrl field. +func (o *GitHubConfigAnyOf1) SetEnterpriseApiUrl(v string) { + o.EnterpriseApiUrl = &v +} + +func (o GitHubConfigAnyOf1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GitHubConfigAnyOf1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["personal_access_token"] = o.PersonalAccessToken + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if !IsNil(o.EnterpriseApiUrl) { + toSerialize["enterprise_api_url"] = o.EnterpriseApiUrl + } + return toSerialize, nil +} + +func (o *GitHubConfigAnyOf1) 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{ + "type", + "personal_access_token", + } + + 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) + } + } + + varGitHubConfigAnyOf1 := _GitHubConfigAnyOf1{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGitHubConfigAnyOf1) + + if err != nil { + return err + } + + *o = GitHubConfigAnyOf1(varGitHubConfigAnyOf1) + + return err +} + +type NullableGitHubConfigAnyOf1 struct { + value *GitHubConfigAnyOf1 + isSet bool +} + +func (v NullableGitHubConfigAnyOf1) Get() *GitHubConfigAnyOf1 { + return v.value +} + +func (v *NullableGitHubConfigAnyOf1) Set(val *GitHubConfigAnyOf1) { + v.value = val + v.isSet = true +} + +func (v NullableGitHubConfigAnyOf1) IsSet() bool { + return v.isSet +} + +func (v *NullableGitHubConfigAnyOf1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGitHubConfigAnyOf1(val *GitHubConfigAnyOf1) *NullableGitHubConfigAnyOf1 { + return &NullableGitHubConfigAnyOf1{value: val, isSet: true} +} + +func (v NullableGitHubConfigAnyOf1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGitHubConfigAnyOf1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_git_lab.go b/internal/sdk/api/model_git_lab.go new file mode 100644 index 0000000..70f9c8f --- /dev/null +++ b/internal/sdk/api/model_git_lab.go @@ -0,0 +1,325 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the GitLab type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GitLab{} + +// GitLab struct for GitLab +type GitLab struct { + Config GitLabConfig `json:"config"` + Provider string `json:"provider"` + // The user or organization to which the repository belongs to. + Org string `json:"org"` + // The name of the repository you created to use with Retool. + Repo string `json:"repo"` + // The default branch, e.g., main. + DefaultBranch string `json:"default_branch"` + // Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0. + RepoVersion *string `json:"repo_version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GitLab GitLab + +// NewGitLab instantiates a new GitLab object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGitLab(config GitLabConfig, provider string, org string, repo string, defaultBranch string) *GitLab { + this := GitLab{} + this.Config = config + this.Provider = provider + this.Org = org + this.Repo = repo + this.DefaultBranch = defaultBranch + return &this +} + +// NewGitLabWithDefaults instantiates a new GitLab object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGitLabWithDefaults() *GitLab { + this := GitLab{} + return &this +} + +// GetConfig returns the Config field value +func (o *GitLab) GetConfig() GitLabConfig { + if o == nil { + var ret GitLabConfig + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *GitLab) GetConfigOk() (*GitLabConfig, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *GitLab) SetConfig(v GitLabConfig) { + o.Config = v +} + +// GetProvider returns the Provider field value +func (o *GitLab) GetProvider() string { + if o == nil { + var ret string + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *GitLab) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *GitLab) SetProvider(v string) { + o.Provider = v +} + +// GetOrg returns the Org field value +func (o *GitLab) GetOrg() string { + if o == nil { + var ret string + return ret + } + + return o.Org +} + +// GetOrgOk returns a tuple with the Org field value +// and a boolean to check if the value has been set. +func (o *GitLab) GetOrgOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Org, true +} + +// SetOrg sets field value +func (o *GitLab) SetOrg(v string) { + o.Org = v +} + +// GetRepo returns the Repo field value +func (o *GitLab) GetRepo() string { + if o == nil { + var ret string + return ret + } + + return o.Repo +} + +// GetRepoOk returns a tuple with the Repo field value +// and a boolean to check if the value has been set. +func (o *GitLab) GetRepoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Repo, true +} + +// SetRepo sets field value +func (o *GitLab) SetRepo(v string) { + o.Repo = v +} + +// GetDefaultBranch returns the DefaultBranch field value +func (o *GitLab) GetDefaultBranch() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultBranch +} + +// GetDefaultBranchOk returns a tuple with the DefaultBranch field value +// and a boolean to check if the value has been set. +func (o *GitLab) GetDefaultBranchOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultBranch, true +} + +// SetDefaultBranch sets field value +func (o *GitLab) SetDefaultBranch(v string) { + o.DefaultBranch = v +} + +// GetRepoVersion returns the RepoVersion field value if set, zero value otherwise. +func (o *GitLab) GetRepoVersion() string { + if o == nil || IsNil(o.RepoVersion) { + var ret string + return ret + } + return *o.RepoVersion +} + +// GetRepoVersionOk returns a tuple with the RepoVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GitLab) GetRepoVersionOk() (*string, bool) { + if o == nil || IsNil(o.RepoVersion) { + return nil, false + } + return o.RepoVersion, true +} + +// HasRepoVersion returns a boolean if a field has been set. +func (o *GitLab) HasRepoVersion() bool { + if o != nil && !IsNil(o.RepoVersion) { + return true + } + + return false +} + +// SetRepoVersion gets a reference to the given string and assigns it to the RepoVersion field. +func (o *GitLab) SetRepoVersion(v string) { + o.RepoVersion = &v +} + +func (o GitLab) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GitLab) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["provider"] = o.Provider + toSerialize["org"] = o.Org + toSerialize["repo"] = o.Repo + toSerialize["default_branch"] = o.DefaultBranch + if !IsNil(o.RepoVersion) { + toSerialize["repo_version"] = o.RepoVersion + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GitLab) 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{ + "config", + "provider", + "org", + "repo", + "default_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) + } + } + + varGitLab := _GitLab{} + + err = json.Unmarshal(data, &varGitLab) + + if err != nil { + return err + } + + *o = GitLab(varGitLab) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + delete(additionalProperties, "provider") + delete(additionalProperties, "org") + delete(additionalProperties, "repo") + delete(additionalProperties, "default_branch") + delete(additionalProperties, "repo_version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGitLab struct { + value *GitLab + isSet bool +} + +func (v NullableGitLab) Get() *GitLab { + return v.value +} + +func (v *NullableGitLab) Set(val *GitLab) { + v.value = val + v.isSet = true +} + +func (v NullableGitLab) IsSet() bool { + return v.isSet +} + +func (v *NullableGitLab) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGitLab(val *GitLab) *NullableGitLab { + return &NullableGitLab{value: val, isSet: true} +} + +func (v NullableGitLab) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGitLab) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_git_lab_config.go b/internal/sdk/api/model_git_lab_config.go new file mode 100644 index 0000000..4659b12 --- /dev/null +++ b/internal/sdk/api/model_git_lab_config.go @@ -0,0 +1,217 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GitLabConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GitLabConfig{} + +// GitLabConfig struct for GitLabConfig +type GitLabConfig struct { + // The numerical project ID for your GitLab project. Find this ID listed below the project's name on the project's homepage. + ProjectId float32 `json:"project_id"` + // Your base GitLab URL. On GitLab Cloud, this is always https://gitlab.com. On GitLab self-managed, this is the URL where your instance is hosted. + Url string `json:"url"` + // The GitLab project access token to authenticate to the GitLab API. + ProjectAccessToken string `json:"project_access_token"` +} + +type _GitLabConfig GitLabConfig + +// NewGitLabConfig instantiates a new GitLabConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGitLabConfig(projectId float32, url string, projectAccessToken string) *GitLabConfig { + this := GitLabConfig{} + this.ProjectId = projectId + this.Url = url + this.ProjectAccessToken = projectAccessToken + return &this +} + +// NewGitLabConfigWithDefaults instantiates a new GitLabConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGitLabConfigWithDefaults() *GitLabConfig { + this := GitLabConfig{} + return &this +} + +// GetProjectId returns the ProjectId field value +func (o *GitLabConfig) GetProjectId() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.ProjectId +} + +// GetProjectIdOk returns a tuple with the ProjectId field value +// and a boolean to check if the value has been set. +func (o *GitLabConfig) GetProjectIdOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.ProjectId, true +} + +// SetProjectId sets field value +func (o *GitLabConfig) SetProjectId(v float32) { + o.ProjectId = v +} + +// GetUrl returns the Url field value +func (o *GitLabConfig) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *GitLabConfig) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *GitLabConfig) SetUrl(v string) { + o.Url = v +} + +// GetProjectAccessToken returns the ProjectAccessToken field value +func (o *GitLabConfig) GetProjectAccessToken() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectAccessToken +} + +// GetProjectAccessTokenOk returns a tuple with the ProjectAccessToken field value +// and a boolean to check if the value has been set. +func (o *GitLabConfig) GetProjectAccessTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectAccessToken, true +} + +// SetProjectAccessToken sets field value +func (o *GitLabConfig) SetProjectAccessToken(v string) { + o.ProjectAccessToken = v +} + +func (o GitLabConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GitLabConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["project_id"] = o.ProjectId + toSerialize["url"] = o.Url + toSerialize["project_access_token"] = o.ProjectAccessToken + return toSerialize, nil +} + +func (o *GitLabConfig) 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{ + "project_id", + "url", + "project_access_token", + } + + 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) + } + } + + varGitLabConfig := _GitLabConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGitLabConfig) + + if err != nil { + return err + } + + *o = GitLabConfig(varGitLabConfig) + + return err +} + +type NullableGitLabConfig struct { + value *GitLabConfig + isSet bool +} + +func (v NullableGitLabConfig) Get() *GitLabConfig { + return v.value +} + +func (v *NullableGitLabConfig) Set(val *GitLabConfig) { + v.value = val + v.isSet = true +} + +func (v NullableGitLabConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableGitLabConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGitLabConfig(val *GitLabConfig) *NullableGitLabConfig { + return &NullableGitLabConfig{value: val, isSet: true} +} + +func (v NullableGitLabConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGitLabConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_google.go b/internal/sdk/api/model_google.go new file mode 100644 index 0000000..924cb66 --- /dev/null +++ b/internal/sdk/api/model_google.go @@ -0,0 +1,242 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Google type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Google{} + +// Google struct for Google +type Google struct { + ConfigType string `json:"config_type"` + GoogleClientId string `json:"google_client_id"` + GoogleClientSecret string `json:"google_client_secret"` + DisableEmailPasswordLogin bool `json:"disable_email_password_login"` +} + +type _Google Google + +// NewGoogle instantiates a new Google object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGoogle(configType string, googleClientId string, googleClientSecret string, disableEmailPasswordLogin bool) *Google { + this := Google{} + this.ConfigType = configType + this.GoogleClientId = googleClientId + this.GoogleClientSecret = googleClientSecret + this.DisableEmailPasswordLogin = disableEmailPasswordLogin + return &this +} + +// NewGoogleWithDefaults instantiates a new Google object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGoogleWithDefaults() *Google { + this := Google{} + return &this +} + +// GetConfigType returns the ConfigType field value +func (o *Google) GetConfigType() string { + if o == nil { + var ret string + return ret + } + + return o.ConfigType +} + +// GetConfigTypeOk returns a tuple with the ConfigType field value +// and a boolean to check if the value has been set. +func (o *Google) GetConfigTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConfigType, true +} + +// SetConfigType sets field value +func (o *Google) SetConfigType(v string) { + o.ConfigType = v +} + +// GetGoogleClientId returns the GoogleClientId field value +func (o *Google) GetGoogleClientId() string { + if o == nil { + var ret string + return ret + } + + return o.GoogleClientId +} + +// GetGoogleClientIdOk returns a tuple with the GoogleClientId field value +// and a boolean to check if the value has been set. +func (o *Google) GetGoogleClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GoogleClientId, true +} + +// SetGoogleClientId sets field value +func (o *Google) SetGoogleClientId(v string) { + o.GoogleClientId = v +} + +// GetGoogleClientSecret returns the GoogleClientSecret field value +func (o *Google) GetGoogleClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.GoogleClientSecret +} + +// GetGoogleClientSecretOk returns a tuple with the GoogleClientSecret field value +// and a boolean to check if the value has been set. +func (o *Google) GetGoogleClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GoogleClientSecret, true +} + +// SetGoogleClientSecret sets field value +func (o *Google) SetGoogleClientSecret(v string) { + o.GoogleClientSecret = v +} + +// GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field value +func (o *Google) GetDisableEmailPasswordLogin() bool { + if o == nil { + var ret bool + return ret + } + + return o.DisableEmailPasswordLogin +} + +// GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field value +// and a boolean to check if the value has been set. +func (o *Google) GetDisableEmailPasswordLoginOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DisableEmailPasswordLogin, true +} + +// SetDisableEmailPasswordLogin sets field value +func (o *Google) SetDisableEmailPasswordLogin(v bool) { + o.DisableEmailPasswordLogin = v +} + +func (o Google) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Google) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config_type"] = o.ConfigType + toSerialize["google_client_id"] = o.GoogleClientId + toSerialize["google_client_secret"] = o.GoogleClientSecret + toSerialize["disable_email_password_login"] = o.DisableEmailPasswordLogin + return toSerialize, nil +} + +func (o *Google) 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{ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + } + + 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) + } + } + + varGoogle := _Google{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGoogle) + + if err != nil { + return err + } + + *o = Google(varGoogle) + + return err +} + +type NullableGoogle struct { + value *Google + isSet bool +} + +func (v NullableGoogle) Get() *Google { + return v.value +} + +func (v *NullableGoogle) Set(val *Google) { + v.value = val + v.isSet = true +} + +func (v NullableGoogle) IsSet() bool { + return v.isSet +} + +func (v *NullableGoogle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGoogle(val *Google) *NullableGoogle { + return &NullableGoogle{value: val, isSet: true} +} + +func (v NullableGoogle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGoogle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_google___oidc.go b/internal/sdk/api/model_google___oidc.go new file mode 100644 index 0000000..f41f028 --- /dev/null +++ b/internal/sdk/api/model_google___oidc.go @@ -0,0 +1,702 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GoogleOIDC type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GoogleOIDC{} + +// GoogleOIDC struct for GoogleOIDC +type GoogleOIDC struct { + ConfigType string `json:"config_type"` + GoogleClientId string `json:"google_client_id"` + GoogleClientSecret string `json:"google_client_secret"` + DisableEmailPasswordLogin bool `json:"disable_email_password_login"` + OidcClientId string `json:"oidc_client_id"` + OidcClientSecret string `json:"oidc_client_secret"` + OidcScopes string `json:"oidc_scopes"` + OidcAuthUrl string `json:"oidc_auth_url"` + OidcTokenUrl string `json:"oidc_token_url"` + OidcUserinfoUrl *string `json:"oidc_userinfo_url,omitempty"` + OidcAudience *string `json:"oidc_audience,omitempty"` + JwtEmailKey string `json:"jwt_email_key"` + JwtRolesKey *string `json:"jwt_roles_key,omitempty"` + JwtFirstNameKey string `json:"jwt_first_name_key"` + JwtLastNameKey string `json:"jwt_last_name_key"` + RolesMapping *string `json:"roles_mapping,omitempty"` + JitEnabled bool `json:"jit_enabled"` + RestrictedDomain *string `json:"restricted_domain,omitempty"` + TriggerLoginAutomatically bool `json:"trigger_login_automatically"` +} + +type _GoogleOIDC GoogleOIDC + +// NewGoogleOIDC instantiates a new GoogleOIDC object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGoogleOIDC(configType string, googleClientId string, googleClientSecret string, disableEmailPasswordLogin bool, oidcClientId string, oidcClientSecret string, oidcScopes string, oidcAuthUrl string, oidcTokenUrl string, jwtEmailKey string, jwtFirstNameKey string, jwtLastNameKey string, jitEnabled bool, triggerLoginAutomatically bool) *GoogleOIDC { + this := GoogleOIDC{} + this.ConfigType = configType + this.GoogleClientId = googleClientId + this.GoogleClientSecret = googleClientSecret + this.DisableEmailPasswordLogin = disableEmailPasswordLogin + this.OidcClientId = oidcClientId + this.OidcClientSecret = oidcClientSecret + this.OidcScopes = oidcScopes + this.OidcAuthUrl = oidcAuthUrl + this.OidcTokenUrl = oidcTokenUrl + this.JwtEmailKey = jwtEmailKey + this.JwtFirstNameKey = jwtFirstNameKey + this.JwtLastNameKey = jwtLastNameKey + this.JitEnabled = jitEnabled + this.TriggerLoginAutomatically = triggerLoginAutomatically + return &this +} + +// NewGoogleOIDCWithDefaults instantiates a new GoogleOIDC object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGoogleOIDCWithDefaults() *GoogleOIDC { + this := GoogleOIDC{} + return &this +} + +// GetConfigType returns the ConfigType field value +func (o *GoogleOIDC) GetConfigType() string { + if o == nil { + var ret string + return ret + } + + return o.ConfigType +} + +// GetConfigTypeOk returns a tuple with the ConfigType field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetConfigTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConfigType, true +} + +// SetConfigType sets field value +func (o *GoogleOIDC) SetConfigType(v string) { + o.ConfigType = v +} + +// GetGoogleClientId returns the GoogleClientId field value +func (o *GoogleOIDC) GetGoogleClientId() string { + if o == nil { + var ret string + return ret + } + + return o.GoogleClientId +} + +// GetGoogleClientIdOk returns a tuple with the GoogleClientId field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetGoogleClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GoogleClientId, true +} + +// SetGoogleClientId sets field value +func (o *GoogleOIDC) SetGoogleClientId(v string) { + o.GoogleClientId = v +} + +// GetGoogleClientSecret returns the GoogleClientSecret field value +func (o *GoogleOIDC) GetGoogleClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.GoogleClientSecret +} + +// GetGoogleClientSecretOk returns a tuple with the GoogleClientSecret field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetGoogleClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GoogleClientSecret, true +} + +// SetGoogleClientSecret sets field value +func (o *GoogleOIDC) SetGoogleClientSecret(v string) { + o.GoogleClientSecret = v +} + +// GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field value +func (o *GoogleOIDC) GetDisableEmailPasswordLogin() bool { + if o == nil { + var ret bool + return ret + } + + return o.DisableEmailPasswordLogin +} + +// GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetDisableEmailPasswordLoginOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DisableEmailPasswordLogin, true +} + +// SetDisableEmailPasswordLogin sets field value +func (o *GoogleOIDC) SetDisableEmailPasswordLogin(v bool) { + o.DisableEmailPasswordLogin = v +} + +// GetOidcClientId returns the OidcClientId field value +func (o *GoogleOIDC) GetOidcClientId() string { + if o == nil { + var ret string + return ret + } + + return o.OidcClientId +} + +// GetOidcClientIdOk returns a tuple with the OidcClientId field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetOidcClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcClientId, true +} + +// SetOidcClientId sets field value +func (o *GoogleOIDC) SetOidcClientId(v string) { + o.OidcClientId = v +} + +// GetOidcClientSecret returns the OidcClientSecret field value +func (o *GoogleOIDC) GetOidcClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.OidcClientSecret +} + +// GetOidcClientSecretOk returns a tuple with the OidcClientSecret field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetOidcClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcClientSecret, true +} + +// SetOidcClientSecret sets field value +func (o *GoogleOIDC) SetOidcClientSecret(v string) { + o.OidcClientSecret = v +} + +// GetOidcScopes returns the OidcScopes field value +func (o *GoogleOIDC) GetOidcScopes() string { + if o == nil { + var ret string + return ret + } + + return o.OidcScopes +} + +// GetOidcScopesOk returns a tuple with the OidcScopes field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetOidcScopesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcScopes, true +} + +// SetOidcScopes sets field value +func (o *GoogleOIDC) SetOidcScopes(v string) { + o.OidcScopes = v +} + +// GetOidcAuthUrl returns the OidcAuthUrl field value +func (o *GoogleOIDC) GetOidcAuthUrl() string { + if o == nil { + var ret string + return ret + } + + return o.OidcAuthUrl +} + +// GetOidcAuthUrlOk returns a tuple with the OidcAuthUrl field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetOidcAuthUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcAuthUrl, true +} + +// SetOidcAuthUrl sets field value +func (o *GoogleOIDC) SetOidcAuthUrl(v string) { + o.OidcAuthUrl = v +} + +// GetOidcTokenUrl returns the OidcTokenUrl field value +func (o *GoogleOIDC) GetOidcTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.OidcTokenUrl +} + +// GetOidcTokenUrlOk returns a tuple with the OidcTokenUrl field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetOidcTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcTokenUrl, true +} + +// SetOidcTokenUrl sets field value +func (o *GoogleOIDC) SetOidcTokenUrl(v string) { + o.OidcTokenUrl = v +} + +// GetOidcUserinfoUrl returns the OidcUserinfoUrl field value if set, zero value otherwise. +func (o *GoogleOIDC) GetOidcUserinfoUrl() string { + if o == nil || IsNil(o.OidcUserinfoUrl) { + var ret string + return ret + } + return *o.OidcUserinfoUrl +} + +// GetOidcUserinfoUrlOk returns a tuple with the OidcUserinfoUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetOidcUserinfoUrlOk() (*string, bool) { + if o == nil || IsNil(o.OidcUserinfoUrl) { + return nil, false + } + return o.OidcUserinfoUrl, true +} + +// HasOidcUserinfoUrl returns a boolean if a field has been set. +func (o *GoogleOIDC) HasOidcUserinfoUrl() bool { + if o != nil && !IsNil(o.OidcUserinfoUrl) { + return true + } + + return false +} + +// SetOidcUserinfoUrl gets a reference to the given string and assigns it to the OidcUserinfoUrl field. +func (o *GoogleOIDC) SetOidcUserinfoUrl(v string) { + o.OidcUserinfoUrl = &v +} + +// GetOidcAudience returns the OidcAudience field value if set, zero value otherwise. +func (o *GoogleOIDC) GetOidcAudience() string { + if o == nil || IsNil(o.OidcAudience) { + var ret string + return ret + } + return *o.OidcAudience +} + +// GetOidcAudienceOk returns a tuple with the OidcAudience field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetOidcAudienceOk() (*string, bool) { + if o == nil || IsNil(o.OidcAudience) { + return nil, false + } + return o.OidcAudience, true +} + +// HasOidcAudience returns a boolean if a field has been set. +func (o *GoogleOIDC) HasOidcAudience() bool { + if o != nil && !IsNil(o.OidcAudience) { + return true + } + + return false +} + +// SetOidcAudience gets a reference to the given string and assigns it to the OidcAudience field. +func (o *GoogleOIDC) SetOidcAudience(v string) { + o.OidcAudience = &v +} + +// GetJwtEmailKey returns the JwtEmailKey field value +func (o *GoogleOIDC) GetJwtEmailKey() string { + if o == nil { + var ret string + return ret + } + + return o.JwtEmailKey +} + +// GetJwtEmailKeyOk returns a tuple with the JwtEmailKey field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetJwtEmailKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JwtEmailKey, true +} + +// SetJwtEmailKey sets field value +func (o *GoogleOIDC) SetJwtEmailKey(v string) { + o.JwtEmailKey = v +} + +// GetJwtRolesKey returns the JwtRolesKey field value if set, zero value otherwise. +func (o *GoogleOIDC) GetJwtRolesKey() string { + if o == nil || IsNil(o.JwtRolesKey) { + var ret string + return ret + } + return *o.JwtRolesKey +} + +// GetJwtRolesKeyOk returns a tuple with the JwtRolesKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetJwtRolesKeyOk() (*string, bool) { + if o == nil || IsNil(o.JwtRolesKey) { + return nil, false + } + return o.JwtRolesKey, true +} + +// HasJwtRolesKey returns a boolean if a field has been set. +func (o *GoogleOIDC) HasJwtRolesKey() bool { + if o != nil && !IsNil(o.JwtRolesKey) { + return true + } + + return false +} + +// SetJwtRolesKey gets a reference to the given string and assigns it to the JwtRolesKey field. +func (o *GoogleOIDC) SetJwtRolesKey(v string) { + o.JwtRolesKey = &v +} + +// GetJwtFirstNameKey returns the JwtFirstNameKey field value +func (o *GoogleOIDC) GetJwtFirstNameKey() string { + if o == nil { + var ret string + return ret + } + + return o.JwtFirstNameKey +} + +// GetJwtFirstNameKeyOk returns a tuple with the JwtFirstNameKey field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetJwtFirstNameKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JwtFirstNameKey, true +} + +// SetJwtFirstNameKey sets field value +func (o *GoogleOIDC) SetJwtFirstNameKey(v string) { + o.JwtFirstNameKey = v +} + +// GetJwtLastNameKey returns the JwtLastNameKey field value +func (o *GoogleOIDC) GetJwtLastNameKey() string { + if o == nil { + var ret string + return ret + } + + return o.JwtLastNameKey +} + +// GetJwtLastNameKeyOk returns a tuple with the JwtLastNameKey field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetJwtLastNameKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JwtLastNameKey, true +} + +// SetJwtLastNameKey sets field value +func (o *GoogleOIDC) SetJwtLastNameKey(v string) { + o.JwtLastNameKey = v +} + +// GetRolesMapping returns the RolesMapping field value if set, zero value otherwise. +func (o *GoogleOIDC) GetRolesMapping() string { + if o == nil || IsNil(o.RolesMapping) { + var ret string + return ret + } + return *o.RolesMapping +} + +// GetRolesMappingOk returns a tuple with the RolesMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetRolesMappingOk() (*string, bool) { + if o == nil || IsNil(o.RolesMapping) { + return nil, false + } + return o.RolesMapping, true +} + +// HasRolesMapping returns a boolean if a field has been set. +func (o *GoogleOIDC) HasRolesMapping() bool { + if o != nil && !IsNil(o.RolesMapping) { + return true + } + + return false +} + +// SetRolesMapping gets a reference to the given string and assigns it to the RolesMapping field. +func (o *GoogleOIDC) SetRolesMapping(v string) { + o.RolesMapping = &v +} + +// GetJitEnabled returns the JitEnabled field value +func (o *GoogleOIDC) GetJitEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.JitEnabled +} + +// GetJitEnabledOk returns a tuple with the JitEnabled field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetJitEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.JitEnabled, true +} + +// SetJitEnabled sets field value +func (o *GoogleOIDC) SetJitEnabled(v bool) { + o.JitEnabled = v +} + +// GetRestrictedDomain returns the RestrictedDomain field value if set, zero value otherwise. +func (o *GoogleOIDC) GetRestrictedDomain() string { + if o == nil || IsNil(o.RestrictedDomain) { + var ret string + return ret + } + return *o.RestrictedDomain +} + +// GetRestrictedDomainOk returns a tuple with the RestrictedDomain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetRestrictedDomainOk() (*string, bool) { + if o == nil || IsNil(o.RestrictedDomain) { + return nil, false + } + return o.RestrictedDomain, true +} + +// HasRestrictedDomain returns a boolean if a field has been set. +func (o *GoogleOIDC) HasRestrictedDomain() bool { + if o != nil && !IsNil(o.RestrictedDomain) { + return true + } + + return false +} + +// SetRestrictedDomain gets a reference to the given string and assigns it to the RestrictedDomain field. +func (o *GoogleOIDC) SetRestrictedDomain(v string) { + o.RestrictedDomain = &v +} + +// GetTriggerLoginAutomatically returns the TriggerLoginAutomatically field value +func (o *GoogleOIDC) GetTriggerLoginAutomatically() bool { + if o == nil { + var ret bool + return ret + } + + return o.TriggerLoginAutomatically +} + +// GetTriggerLoginAutomaticallyOk returns a tuple with the TriggerLoginAutomatically field value +// and a boolean to check if the value has been set. +func (o *GoogleOIDC) GetTriggerLoginAutomaticallyOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TriggerLoginAutomatically, true +} + +// SetTriggerLoginAutomatically sets field value +func (o *GoogleOIDC) SetTriggerLoginAutomatically(v bool) { + o.TriggerLoginAutomatically = v +} + +func (o GoogleOIDC) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GoogleOIDC) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config_type"] = o.ConfigType + toSerialize["google_client_id"] = o.GoogleClientId + toSerialize["google_client_secret"] = o.GoogleClientSecret + toSerialize["disable_email_password_login"] = o.DisableEmailPasswordLogin + toSerialize["oidc_client_id"] = o.OidcClientId + toSerialize["oidc_client_secret"] = o.OidcClientSecret + toSerialize["oidc_scopes"] = o.OidcScopes + toSerialize["oidc_auth_url"] = o.OidcAuthUrl + toSerialize["oidc_token_url"] = o.OidcTokenUrl + if !IsNil(o.OidcUserinfoUrl) { + toSerialize["oidc_userinfo_url"] = o.OidcUserinfoUrl + } + if !IsNil(o.OidcAudience) { + toSerialize["oidc_audience"] = o.OidcAudience + } + toSerialize["jwt_email_key"] = o.JwtEmailKey + if !IsNil(o.JwtRolesKey) { + toSerialize["jwt_roles_key"] = o.JwtRolesKey + } + toSerialize["jwt_first_name_key"] = o.JwtFirstNameKey + toSerialize["jwt_last_name_key"] = o.JwtLastNameKey + if !IsNil(o.RolesMapping) { + toSerialize["roles_mapping"] = o.RolesMapping + } + toSerialize["jit_enabled"] = o.JitEnabled + if !IsNil(o.RestrictedDomain) { + toSerialize["restricted_domain"] = o.RestrictedDomain + } + toSerialize["trigger_login_automatically"] = o.TriggerLoginAutomatically + return toSerialize, nil +} + +func (o *GoogleOIDC) 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{ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically", + } + + 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) + } + } + + varGoogleOIDC := _GoogleOIDC{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGoogleOIDC) + + if err != nil { + return err + } + + *o = GoogleOIDC(varGoogleOIDC) + + return err +} + +type NullableGoogleOIDC struct { + value *GoogleOIDC + isSet bool +} + +func (v NullableGoogleOIDC) Get() *GoogleOIDC { + return v.value +} + +func (v *NullableGoogleOIDC) Set(val *GoogleOIDC) { + v.value = val + v.isSet = true +} + +func (v NullableGoogleOIDC) IsSet() bool { + return v.isSet +} + +func (v *NullableGoogleOIDC) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGoogleOIDC(val *GoogleOIDC) *NullableGoogleOIDC { + return &NullableGoogleOIDC{value: val, isSet: true} +} + +func (v NullableGoogleOIDC) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGoogleOIDC) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_google___saml.go b/internal/sdk/api/model_google___saml.go new file mode 100644 index 0000000..768347a --- /dev/null +++ b/internal/sdk/api/model_google___saml.go @@ -0,0 +1,734 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GoogleSAML type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GoogleSAML{} + +// GoogleSAML struct for GoogleSAML +type GoogleSAML struct { + ConfigType string `json:"config_type"` + GoogleClientId string `json:"google_client_id"` + GoogleClientSecret string `json:"google_client_secret"` + DisableEmailPasswordLogin bool `json:"disable_email_password_login"` + IdpMetadataXml string `json:"idp_metadata_xml"` + SamlFirstNameAttribute string `json:"saml_first_name_attribute"` + SamlLastNameAttribute string `json:"saml_last_name_attribute"` + SamlGroupsAttribute *string `json:"saml_groups_attribute,omitempty"` + SamlSyncGroupClaims bool `json:"saml_sync_group_claims"` + LdapSyncGroupClaims *bool `json:"ldap_sync_group_claims,omitempty"` + LdapRoleMapping *string `json:"ldap_role_mapping,omitempty"` + LdapServerUrl *string `json:"ldap_server_url,omitempty"` + LdapBaseDomainComponents *string `json:"ldap_base_domain_components,omitempty"` + LdapServerName *string `json:"ldap_server_name,omitempty"` + LdapServerKey *string `json:"ldap_server_key,omitempty"` + LdapServerCertificate *string `json:"ldap_server_certificate,omitempty"` + JitEnabled bool `json:"jit_enabled"` + RestrictedDomain *string `json:"restricted_domain,omitempty"` + TriggerLoginAutomatically bool `json:"trigger_login_automatically"` +} + +type _GoogleSAML GoogleSAML + +// NewGoogleSAML instantiates a new GoogleSAML object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGoogleSAML(configType string, googleClientId string, googleClientSecret string, disableEmailPasswordLogin bool, idpMetadataXml string, samlFirstNameAttribute string, samlLastNameAttribute string, samlSyncGroupClaims bool, jitEnabled bool, triggerLoginAutomatically bool) *GoogleSAML { + this := GoogleSAML{} + this.ConfigType = configType + this.GoogleClientId = googleClientId + this.GoogleClientSecret = googleClientSecret + this.DisableEmailPasswordLogin = disableEmailPasswordLogin + this.IdpMetadataXml = idpMetadataXml + this.SamlFirstNameAttribute = samlFirstNameAttribute + this.SamlLastNameAttribute = samlLastNameAttribute + this.SamlSyncGroupClaims = samlSyncGroupClaims + this.JitEnabled = jitEnabled + this.TriggerLoginAutomatically = triggerLoginAutomatically + return &this +} + +// NewGoogleSAMLWithDefaults instantiates a new GoogleSAML object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGoogleSAMLWithDefaults() *GoogleSAML { + this := GoogleSAML{} + return &this +} + +// GetConfigType returns the ConfigType field value +func (o *GoogleSAML) GetConfigType() string { + if o == nil { + var ret string + return ret + } + + return o.ConfigType +} + +// GetConfigTypeOk returns a tuple with the ConfigType field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetConfigTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConfigType, true +} + +// SetConfigType sets field value +func (o *GoogleSAML) SetConfigType(v string) { + o.ConfigType = v +} + +// GetGoogleClientId returns the GoogleClientId field value +func (o *GoogleSAML) GetGoogleClientId() string { + if o == nil { + var ret string + return ret + } + + return o.GoogleClientId +} + +// GetGoogleClientIdOk returns a tuple with the GoogleClientId field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetGoogleClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GoogleClientId, true +} + +// SetGoogleClientId sets field value +func (o *GoogleSAML) SetGoogleClientId(v string) { + o.GoogleClientId = v +} + +// GetGoogleClientSecret returns the GoogleClientSecret field value +func (o *GoogleSAML) GetGoogleClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.GoogleClientSecret +} + +// GetGoogleClientSecretOk returns a tuple with the GoogleClientSecret field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetGoogleClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GoogleClientSecret, true +} + +// SetGoogleClientSecret sets field value +func (o *GoogleSAML) SetGoogleClientSecret(v string) { + o.GoogleClientSecret = v +} + +// GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field value +func (o *GoogleSAML) GetDisableEmailPasswordLogin() bool { + if o == nil { + var ret bool + return ret + } + + return o.DisableEmailPasswordLogin +} + +// GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetDisableEmailPasswordLoginOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DisableEmailPasswordLogin, true +} + +// SetDisableEmailPasswordLogin sets field value +func (o *GoogleSAML) SetDisableEmailPasswordLogin(v bool) { + o.DisableEmailPasswordLogin = v +} + +// GetIdpMetadataXml returns the IdpMetadataXml field value +func (o *GoogleSAML) GetIdpMetadataXml() string { + if o == nil { + var ret string + return ret + } + + return o.IdpMetadataXml +} + +// GetIdpMetadataXmlOk returns a tuple with the IdpMetadataXml field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetIdpMetadataXmlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IdpMetadataXml, true +} + +// SetIdpMetadataXml sets field value +func (o *GoogleSAML) SetIdpMetadataXml(v string) { + o.IdpMetadataXml = v +} + +// GetSamlFirstNameAttribute returns the SamlFirstNameAttribute field value +func (o *GoogleSAML) GetSamlFirstNameAttribute() string { + if o == nil { + var ret string + return ret + } + + return o.SamlFirstNameAttribute +} + +// GetSamlFirstNameAttributeOk returns a tuple with the SamlFirstNameAttribute field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetSamlFirstNameAttributeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SamlFirstNameAttribute, true +} + +// SetSamlFirstNameAttribute sets field value +func (o *GoogleSAML) SetSamlFirstNameAttribute(v string) { + o.SamlFirstNameAttribute = v +} + +// GetSamlLastNameAttribute returns the SamlLastNameAttribute field value +func (o *GoogleSAML) GetSamlLastNameAttribute() string { + if o == nil { + var ret string + return ret + } + + return o.SamlLastNameAttribute +} + +// GetSamlLastNameAttributeOk returns a tuple with the SamlLastNameAttribute field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetSamlLastNameAttributeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SamlLastNameAttribute, true +} + +// SetSamlLastNameAttribute sets field value +func (o *GoogleSAML) SetSamlLastNameAttribute(v string) { + o.SamlLastNameAttribute = v +} + +// GetSamlGroupsAttribute returns the SamlGroupsAttribute field value if set, zero value otherwise. +func (o *GoogleSAML) GetSamlGroupsAttribute() string { + if o == nil || IsNil(o.SamlGroupsAttribute) { + var ret string + return ret + } + return *o.SamlGroupsAttribute +} + +// GetSamlGroupsAttributeOk returns a tuple with the SamlGroupsAttribute field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetSamlGroupsAttributeOk() (*string, bool) { + if o == nil || IsNil(o.SamlGroupsAttribute) { + return nil, false + } + return o.SamlGroupsAttribute, true +} + +// HasSamlGroupsAttribute returns a boolean if a field has been set. +func (o *GoogleSAML) HasSamlGroupsAttribute() bool { + if o != nil && !IsNil(o.SamlGroupsAttribute) { + return true + } + + return false +} + +// SetSamlGroupsAttribute gets a reference to the given string and assigns it to the SamlGroupsAttribute field. +func (o *GoogleSAML) SetSamlGroupsAttribute(v string) { + o.SamlGroupsAttribute = &v +} + +// GetSamlSyncGroupClaims returns the SamlSyncGroupClaims field value +func (o *GoogleSAML) GetSamlSyncGroupClaims() bool { + if o == nil { + var ret bool + return ret + } + + return o.SamlSyncGroupClaims +} + +// GetSamlSyncGroupClaimsOk returns a tuple with the SamlSyncGroupClaims field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetSamlSyncGroupClaimsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.SamlSyncGroupClaims, true +} + +// SetSamlSyncGroupClaims sets field value +func (o *GoogleSAML) SetSamlSyncGroupClaims(v bool) { + o.SamlSyncGroupClaims = v +} + +// GetLdapSyncGroupClaims returns the LdapSyncGroupClaims field value if set, zero value otherwise. +func (o *GoogleSAML) GetLdapSyncGroupClaims() bool { + if o == nil || IsNil(o.LdapSyncGroupClaims) { + var ret bool + return ret + } + return *o.LdapSyncGroupClaims +} + +// GetLdapSyncGroupClaimsOk returns a tuple with the LdapSyncGroupClaims field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetLdapSyncGroupClaimsOk() (*bool, bool) { + if o == nil || IsNil(o.LdapSyncGroupClaims) { + return nil, false + } + return o.LdapSyncGroupClaims, true +} + +// HasLdapSyncGroupClaims returns a boolean if a field has been set. +func (o *GoogleSAML) HasLdapSyncGroupClaims() bool { + if o != nil && !IsNil(o.LdapSyncGroupClaims) { + return true + } + + return false +} + +// SetLdapSyncGroupClaims gets a reference to the given bool and assigns it to the LdapSyncGroupClaims field. +func (o *GoogleSAML) SetLdapSyncGroupClaims(v bool) { + o.LdapSyncGroupClaims = &v +} + +// GetLdapRoleMapping returns the LdapRoleMapping field value if set, zero value otherwise. +func (o *GoogleSAML) GetLdapRoleMapping() string { + if o == nil || IsNil(o.LdapRoleMapping) { + var ret string + return ret + } + return *o.LdapRoleMapping +} + +// GetLdapRoleMappingOk returns a tuple with the LdapRoleMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetLdapRoleMappingOk() (*string, bool) { + if o == nil || IsNil(o.LdapRoleMapping) { + return nil, false + } + return o.LdapRoleMapping, true +} + +// HasLdapRoleMapping returns a boolean if a field has been set. +func (o *GoogleSAML) HasLdapRoleMapping() bool { + if o != nil && !IsNil(o.LdapRoleMapping) { + return true + } + + return false +} + +// SetLdapRoleMapping gets a reference to the given string and assigns it to the LdapRoleMapping field. +func (o *GoogleSAML) SetLdapRoleMapping(v string) { + o.LdapRoleMapping = &v +} + +// GetLdapServerUrl returns the LdapServerUrl field value if set, zero value otherwise. +func (o *GoogleSAML) GetLdapServerUrl() string { + if o == nil || IsNil(o.LdapServerUrl) { + var ret string + return ret + } + return *o.LdapServerUrl +} + +// GetLdapServerUrlOk returns a tuple with the LdapServerUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetLdapServerUrlOk() (*string, bool) { + if o == nil || IsNil(o.LdapServerUrl) { + return nil, false + } + return o.LdapServerUrl, true +} + +// HasLdapServerUrl returns a boolean if a field has been set. +func (o *GoogleSAML) HasLdapServerUrl() bool { + if o != nil && !IsNil(o.LdapServerUrl) { + return true + } + + return false +} + +// SetLdapServerUrl gets a reference to the given string and assigns it to the LdapServerUrl field. +func (o *GoogleSAML) SetLdapServerUrl(v string) { + o.LdapServerUrl = &v +} + +// GetLdapBaseDomainComponents returns the LdapBaseDomainComponents field value if set, zero value otherwise. +func (o *GoogleSAML) GetLdapBaseDomainComponents() string { + if o == nil || IsNil(o.LdapBaseDomainComponents) { + var ret string + return ret + } + return *o.LdapBaseDomainComponents +} + +// GetLdapBaseDomainComponentsOk returns a tuple with the LdapBaseDomainComponents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetLdapBaseDomainComponentsOk() (*string, bool) { + if o == nil || IsNil(o.LdapBaseDomainComponents) { + return nil, false + } + return o.LdapBaseDomainComponents, true +} + +// HasLdapBaseDomainComponents returns a boolean if a field has been set. +func (o *GoogleSAML) HasLdapBaseDomainComponents() bool { + if o != nil && !IsNil(o.LdapBaseDomainComponents) { + return true + } + + return false +} + +// SetLdapBaseDomainComponents gets a reference to the given string and assigns it to the LdapBaseDomainComponents field. +func (o *GoogleSAML) SetLdapBaseDomainComponents(v string) { + o.LdapBaseDomainComponents = &v +} + +// GetLdapServerName returns the LdapServerName field value if set, zero value otherwise. +func (o *GoogleSAML) GetLdapServerName() string { + if o == nil || IsNil(o.LdapServerName) { + var ret string + return ret + } + return *o.LdapServerName +} + +// GetLdapServerNameOk returns a tuple with the LdapServerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetLdapServerNameOk() (*string, bool) { + if o == nil || IsNil(o.LdapServerName) { + return nil, false + } + return o.LdapServerName, true +} + +// HasLdapServerName returns a boolean if a field has been set. +func (o *GoogleSAML) HasLdapServerName() bool { + if o != nil && !IsNil(o.LdapServerName) { + return true + } + + return false +} + +// SetLdapServerName gets a reference to the given string and assigns it to the LdapServerName field. +func (o *GoogleSAML) SetLdapServerName(v string) { + o.LdapServerName = &v +} + +// GetLdapServerKey returns the LdapServerKey field value if set, zero value otherwise. +func (o *GoogleSAML) GetLdapServerKey() string { + if o == nil || IsNil(o.LdapServerKey) { + var ret string + return ret + } + return *o.LdapServerKey +} + +// GetLdapServerKeyOk returns a tuple with the LdapServerKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetLdapServerKeyOk() (*string, bool) { + if o == nil || IsNil(o.LdapServerKey) { + return nil, false + } + return o.LdapServerKey, true +} + +// HasLdapServerKey returns a boolean if a field has been set. +func (o *GoogleSAML) HasLdapServerKey() bool { + if o != nil && !IsNil(o.LdapServerKey) { + return true + } + + return false +} + +// SetLdapServerKey gets a reference to the given string and assigns it to the LdapServerKey field. +func (o *GoogleSAML) SetLdapServerKey(v string) { + o.LdapServerKey = &v +} + +// GetLdapServerCertificate returns the LdapServerCertificate field value if set, zero value otherwise. +func (o *GoogleSAML) GetLdapServerCertificate() string { + if o == nil || IsNil(o.LdapServerCertificate) { + var ret string + return ret + } + return *o.LdapServerCertificate +} + +// GetLdapServerCertificateOk returns a tuple with the LdapServerCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetLdapServerCertificateOk() (*string, bool) { + if o == nil || IsNil(o.LdapServerCertificate) { + return nil, false + } + return o.LdapServerCertificate, true +} + +// HasLdapServerCertificate returns a boolean if a field has been set. +func (o *GoogleSAML) HasLdapServerCertificate() bool { + if o != nil && !IsNil(o.LdapServerCertificate) { + return true + } + + return false +} + +// SetLdapServerCertificate gets a reference to the given string and assigns it to the LdapServerCertificate field. +func (o *GoogleSAML) SetLdapServerCertificate(v string) { + o.LdapServerCertificate = &v +} + +// GetJitEnabled returns the JitEnabled field value +func (o *GoogleSAML) GetJitEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.JitEnabled +} + +// GetJitEnabledOk returns a tuple with the JitEnabled field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetJitEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.JitEnabled, true +} + +// SetJitEnabled sets field value +func (o *GoogleSAML) SetJitEnabled(v bool) { + o.JitEnabled = v +} + +// GetRestrictedDomain returns the RestrictedDomain field value if set, zero value otherwise. +func (o *GoogleSAML) GetRestrictedDomain() string { + if o == nil || IsNil(o.RestrictedDomain) { + var ret string + return ret + } + return *o.RestrictedDomain +} + +// GetRestrictedDomainOk returns a tuple with the RestrictedDomain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetRestrictedDomainOk() (*string, bool) { + if o == nil || IsNil(o.RestrictedDomain) { + return nil, false + } + return o.RestrictedDomain, true +} + +// HasRestrictedDomain returns a boolean if a field has been set. +func (o *GoogleSAML) HasRestrictedDomain() bool { + if o != nil && !IsNil(o.RestrictedDomain) { + return true + } + + return false +} + +// SetRestrictedDomain gets a reference to the given string and assigns it to the RestrictedDomain field. +func (o *GoogleSAML) SetRestrictedDomain(v string) { + o.RestrictedDomain = &v +} + +// GetTriggerLoginAutomatically returns the TriggerLoginAutomatically field value +func (o *GoogleSAML) GetTriggerLoginAutomatically() bool { + if o == nil { + var ret bool + return ret + } + + return o.TriggerLoginAutomatically +} + +// GetTriggerLoginAutomaticallyOk returns a tuple with the TriggerLoginAutomatically field value +// and a boolean to check if the value has been set. +func (o *GoogleSAML) GetTriggerLoginAutomaticallyOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TriggerLoginAutomatically, true +} + +// SetTriggerLoginAutomatically sets field value +func (o *GoogleSAML) SetTriggerLoginAutomatically(v bool) { + o.TriggerLoginAutomatically = v +} + +func (o GoogleSAML) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GoogleSAML) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config_type"] = o.ConfigType + toSerialize["google_client_id"] = o.GoogleClientId + toSerialize["google_client_secret"] = o.GoogleClientSecret + toSerialize["disable_email_password_login"] = o.DisableEmailPasswordLogin + toSerialize["idp_metadata_xml"] = o.IdpMetadataXml + toSerialize["saml_first_name_attribute"] = o.SamlFirstNameAttribute + toSerialize["saml_last_name_attribute"] = o.SamlLastNameAttribute + if !IsNil(o.SamlGroupsAttribute) { + toSerialize["saml_groups_attribute"] = o.SamlGroupsAttribute + } + toSerialize["saml_sync_group_claims"] = o.SamlSyncGroupClaims + if !IsNil(o.LdapSyncGroupClaims) { + toSerialize["ldap_sync_group_claims"] = o.LdapSyncGroupClaims + } + if !IsNil(o.LdapRoleMapping) { + toSerialize["ldap_role_mapping"] = o.LdapRoleMapping + } + if !IsNil(o.LdapServerUrl) { + toSerialize["ldap_server_url"] = o.LdapServerUrl + } + if !IsNil(o.LdapBaseDomainComponents) { + toSerialize["ldap_base_domain_components"] = o.LdapBaseDomainComponents + } + if !IsNil(o.LdapServerName) { + toSerialize["ldap_server_name"] = o.LdapServerName + } + if !IsNil(o.LdapServerKey) { + toSerialize["ldap_server_key"] = o.LdapServerKey + } + if !IsNil(o.LdapServerCertificate) { + toSerialize["ldap_server_certificate"] = o.LdapServerCertificate + } + toSerialize["jit_enabled"] = o.JitEnabled + if !IsNil(o.RestrictedDomain) { + toSerialize["restricted_domain"] = o.RestrictedDomain + } + toSerialize["trigger_login_automatically"] = o.TriggerLoginAutomatically + return toSerialize, nil +} + +func (o *GoogleSAML) 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{ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "idp_metadata_xml", + "saml_first_name_attribute", + "saml_last_name_attribute", + "saml_sync_group_claims", + "jit_enabled", + "trigger_login_automatically", + } + + 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) + } + } + + varGoogleSAML := _GoogleSAML{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGoogleSAML) + + if err != nil { + return err + } + + *o = GoogleSAML(varGoogleSAML) + + return err +} + +type NullableGoogleSAML struct { + value *GoogleSAML + isSet bool +} + +func (v NullableGoogleSAML) Get() *GoogleSAML { + return v.value +} + +func (v *NullableGoogleSAML) Set(val *GoogleSAML) { + v.value = val + v.isSet = true +} + +func (v NullableGoogleSAML) IsSet() bool { + return v.isSet +} + +func (v *NullableGoogleSAML) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGoogleSAML(val *GoogleSAML) *NullableGoogleSAML { + return &NullableGoogleSAML{value: val, isSet: true} +} + +func (v NullableGoogleSAML) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGoogleSAML) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_group.go b/internal/sdk/api/model_group.go index 46684ed..696fa33 100644 --- a/internal/sdk/api/model_group.go +++ b/internal/sdk/api/model_group.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,47 +12,18 @@ package api import ( "encoding/json" + "bytes" "fmt" ) // checks if the Group type satisfies the MappedNullable interface at compile time var _ MappedNullable = &Group{} -// Group This object represents a permission group. A permission group is a list of users by which to restrict access. You add users to one or more groups and then configure the group's level of access. This applies the same permissions to all group members. See https://docs.retool.com/org-users/concepts/permission-groups or more information. +// Group struct for Group type Group struct { - // The ID of the group. Currently this is the same legacy_id but will change in the future. + Type string `json:"type"` + // The ID number of the group Id NullableFloat32 `json:"id"` - // The legacy ID of the group. - LegacyId NullableFloat32 `json:"legacy_id"` - // The name of the group. - Name string `json:"name"` - // The members of the group. - Members []GroupsGroupIdGet200ResponseDataMembersInner `json:"members"` - // The universal app access level for the group. This denotes the access level that this group has for all apps. - UniversalAppAccess string `json:"universal_app_access"` - // The universal resource access level for the group. This denotes the access level that this group has for all resources. - UniversalResourceAccess string `json:"universal_resource_access"` - // The universal workflow access level for the group. This denotes the access level that this group has for all workflows. - UniversalWorkflowAccess string `json:"universal_workflow_access"` - // Level of access that the group has to the Query Library. - UniversalQueryLibraryAccess *string `json:"universal_query_library_access,omitempty"` - // A list of user invites that will be added to the group - UserInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner `json:"user_invites"` - // Whether the group has access to the user list - UserListAccess bool `json:"user_list_access"` - // Whether the group has access to the audit log - AuditLogAccess bool `json:"audit_log_access"` - // Whether the group has access to unpublished releases - UnpublishedReleaseAccess bool `json:"unpublished_release_access"` - // Whether the group has access to usage analytics - UsageAnalyticsAccess bool `json:"usage_analytics_access"` - // Whether the group has access to account details - AccountDetailsAccess bool `json:"account_details_access"` - // The app ID of the landing page - LandingPageAppId NullableString `json:"landing_page_app_id"` - CreatedAt string `json:"created_at"` - UpdatedAt string `json:"updated_at"` - AdditionalProperties map[string]interface{} } type _Group Group @@ -61,24 +32,10 @@ type _Group Group // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGroup(id NullableFloat32, legacyId NullableFloat32, name string, members []GroupsGroupIdGet200ResponseDataMembersInner, universalAppAccess string, universalResourceAccess string, universalWorkflowAccess string, userInvites []GroupsGroupIdGet200ResponseDataUserInvitesInner, userListAccess bool, auditLogAccess bool, unpublishedReleaseAccess bool, usageAnalyticsAccess bool, accountDetailsAccess bool, landingPageAppId NullableString, createdAt string, updatedAt string) *Group { +func NewGroup(type_ string, id NullableFloat32) *Group { this := Group{} + this.Type = type_ this.Id = id - this.LegacyId = legacyId - this.Name = name - this.Members = members - this.UniversalAppAccess = universalAppAccess - this.UniversalResourceAccess = universalResourceAccess - this.UniversalWorkflowAccess = universalWorkflowAccess - this.UserInvites = userInvites - this.UserListAccess = userListAccess - this.AuditLogAccess = auditLogAccess - this.UnpublishedReleaseAccess = unpublishedReleaseAccess - this.UsageAnalyticsAccess = usageAnalyticsAccess - this.AccountDetailsAccess = accountDetailsAccess - this.LandingPageAppId = landingPageAppId - this.CreatedAt = createdAt - this.UpdatedAt = updatedAt return &this } @@ -90,426 +47,54 @@ func NewGroupWithDefaults() *Group { return &this } -// GetId returns the Id field value -// If the value is explicit nil, the zero value for float32 will be returned -func (o *Group) GetId() float32 { - if o == nil || o.Id.Get() == nil { - var ret float32 - return ret - } - - return *o.Id.Get() -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Group) GetIdOk() (*float32, bool) { - if o == nil { - return nil, false - } - return o.Id.Get(), o.Id.IsSet() -} - -// SetId sets field value -func (o *Group) SetId(v float32) { - o.Id.Set(&v) -} - -// GetLegacyId returns the LegacyId field value -// If the value is explicit nil, the zero value for float32 will be returned -func (o *Group) GetLegacyId() float32 { - if o == nil || o.LegacyId.Get() == nil { - var ret float32 - return ret - } - - return *o.LegacyId.Get() -} - -// GetLegacyIdOk returns a tuple with the LegacyId field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Group) GetLegacyIdOk() (*float32, bool) { - if o == nil { - return nil, false - } - return o.LegacyId.Get(), o.LegacyId.IsSet() -} - -// SetLegacyId sets field value -func (o *Group) SetLegacyId(v float32) { - o.LegacyId.Set(&v) -} - -// GetName returns the Name field value -func (o *Group) GetName() string { +// GetType returns the Type field value +func (o *Group) GetType() string { if o == nil { var ret string return ret } - return o.Name + return o.Type } -// GetNameOk returns a tuple with the Name field value +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *Group) GetNameOk() (*string, bool) { +func (o *Group) GetTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.Name, true -} - -// SetName sets field value -func (o *Group) SetName(v string) { - o.Name = v + return &o.Type, true } -// GetMembers returns the Members field value -func (o *Group) GetMembers() []GroupsGroupIdGet200ResponseDataMembersInner { - if o == nil { - var ret []GroupsGroupIdGet200ResponseDataMembersInner - return ret - } - - return o.Members -} - -// GetMembersOk returns a tuple with the Members field value -// and a boolean to check if the value has been set. -func (o *Group) GetMembersOk() ([]GroupsGroupIdGet200ResponseDataMembersInner, bool) { - if o == nil { - return nil, false - } - return o.Members, true -} - -// SetMembers sets field value -func (o *Group) SetMembers(v []GroupsGroupIdGet200ResponseDataMembersInner) { - o.Members = v -} - -// GetUniversalAppAccess returns the UniversalAppAccess field value -func (o *Group) GetUniversalAppAccess() string { - if o == nil { - var ret string - return ret - } - - return o.UniversalAppAccess +// SetType sets field value +func (o *Group) SetType(v string) { + o.Type = v } -// GetUniversalAppAccessOk returns a tuple with the UniversalAppAccess field value -// and a boolean to check if the value has been set. -func (o *Group) GetUniversalAppAccessOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UniversalAppAccess, true -} - -// SetUniversalAppAccess sets field value -func (o *Group) SetUniversalAppAccess(v string) { - o.UniversalAppAccess = v -} - -// GetUniversalResourceAccess returns the UniversalResourceAccess field value -func (o *Group) GetUniversalResourceAccess() string { - if o == nil { - var ret string - return ret - } - - return o.UniversalResourceAccess -} - -// GetUniversalResourceAccessOk returns a tuple with the UniversalResourceAccess field value -// and a boolean to check if the value has been set. -func (o *Group) GetUniversalResourceAccessOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UniversalResourceAccess, true -} - -// SetUniversalResourceAccess sets field value -func (o *Group) SetUniversalResourceAccess(v string) { - o.UniversalResourceAccess = v -} - -// GetUniversalWorkflowAccess returns the UniversalWorkflowAccess field value -func (o *Group) GetUniversalWorkflowAccess() string { - if o == nil { - var ret string - return ret - } - - return o.UniversalWorkflowAccess -} - -// GetUniversalWorkflowAccessOk returns a tuple with the UniversalWorkflowAccess field value -// and a boolean to check if the value has been set. -func (o *Group) GetUniversalWorkflowAccessOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UniversalWorkflowAccess, true -} - -// SetUniversalWorkflowAccess sets field value -func (o *Group) SetUniversalWorkflowAccess(v string) { - o.UniversalWorkflowAccess = v -} - -// GetUniversalQueryLibraryAccess returns the UniversalQueryLibraryAccess field value if set, zero value otherwise. -func (o *Group) GetUniversalQueryLibraryAccess() string { - if o == nil || IsNil(o.UniversalQueryLibraryAccess) { - var ret string - return ret - } - return *o.UniversalQueryLibraryAccess -} - -// GetUniversalQueryLibraryAccessOk returns a tuple with the UniversalQueryLibraryAccess field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Group) GetUniversalQueryLibraryAccessOk() (*string, bool) { - if o == nil || IsNil(o.UniversalQueryLibraryAccess) { - return nil, false - } - return o.UniversalQueryLibraryAccess, true -} - -// HasUniversalQueryLibraryAccess returns a boolean if a field has been set. -func (o *Group) HasUniversalQueryLibraryAccess() bool { - if o != nil && !IsNil(o.UniversalQueryLibraryAccess) { - return true - } - - return false -} - -// SetUniversalQueryLibraryAccess gets a reference to the given string and assigns it to the UniversalQueryLibraryAccess field. -func (o *Group) SetUniversalQueryLibraryAccess(v string) { - o.UniversalQueryLibraryAccess = &v -} - -// GetUserInvites returns the UserInvites field value -func (o *Group) GetUserInvites() []GroupsGroupIdGet200ResponseDataUserInvitesInner { - if o == nil { - var ret []GroupsGroupIdGet200ResponseDataUserInvitesInner - return ret - } - - return o.UserInvites -} - -// GetUserInvitesOk returns a tuple with the UserInvites field value -// and a boolean to check if the value has been set. -func (o *Group) GetUserInvitesOk() ([]GroupsGroupIdGet200ResponseDataUserInvitesInner, bool) { - if o == nil { - return nil, false - } - return o.UserInvites, true -} - -// SetUserInvites sets field value -func (o *Group) SetUserInvites(v []GroupsGroupIdGet200ResponseDataUserInvitesInner) { - o.UserInvites = v -} - -// GetUserListAccess returns the UserListAccess field value -func (o *Group) GetUserListAccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.UserListAccess -} - -// GetUserListAccessOk returns a tuple with the UserListAccess field value -// and a boolean to check if the value has been set. -func (o *Group) GetUserListAccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.UserListAccess, true -} - -// SetUserListAccess sets field value -func (o *Group) SetUserListAccess(v bool) { - o.UserListAccess = v -} - -// GetAuditLogAccess returns the AuditLogAccess field value -func (o *Group) GetAuditLogAccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.AuditLogAccess -} - -// GetAuditLogAccessOk returns a tuple with the AuditLogAccess field value -// and a boolean to check if the value has been set. -func (o *Group) GetAuditLogAccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AuditLogAccess, true -} - -// SetAuditLogAccess sets field value -func (o *Group) SetAuditLogAccess(v bool) { - o.AuditLogAccess = v -} - -// GetUnpublishedReleaseAccess returns the UnpublishedReleaseAccess field value -func (o *Group) GetUnpublishedReleaseAccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.UnpublishedReleaseAccess -} - -// GetUnpublishedReleaseAccessOk returns a tuple with the UnpublishedReleaseAccess field value -// and a boolean to check if the value has been set. -func (o *Group) GetUnpublishedReleaseAccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.UnpublishedReleaseAccess, true -} - -// SetUnpublishedReleaseAccess sets field value -func (o *Group) SetUnpublishedReleaseAccess(v bool) { - o.UnpublishedReleaseAccess = v -} - -// GetUsageAnalyticsAccess returns the UsageAnalyticsAccess field value -func (o *Group) GetUsageAnalyticsAccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.UsageAnalyticsAccess -} - -// GetUsageAnalyticsAccessOk returns a tuple with the UsageAnalyticsAccess field value -// and a boolean to check if the value has been set. -func (o *Group) GetUsageAnalyticsAccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.UsageAnalyticsAccess, true -} - -// SetUsageAnalyticsAccess sets field value -func (o *Group) SetUsageAnalyticsAccess(v bool) { - o.UsageAnalyticsAccess = v -} - -// GetAccountDetailsAccess returns the AccountDetailsAccess field value -func (o *Group) GetAccountDetailsAccess() bool { - if o == nil { - var ret bool - return ret - } - - return o.AccountDetailsAccess -} - -// GetAccountDetailsAccessOk returns a tuple with the AccountDetailsAccess field value -// and a boolean to check if the value has been set. -func (o *Group) GetAccountDetailsAccessOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AccountDetailsAccess, true -} - -// SetAccountDetailsAccess sets field value -func (o *Group) SetAccountDetailsAccess(v bool) { - o.AccountDetailsAccess = v -} - -// GetLandingPageAppId returns the LandingPageAppId field value -// If the value is explicit nil, the zero value for string will be returned -func (o *Group) GetLandingPageAppId() string { - if o == nil || o.LandingPageAppId.Get() == nil { - var ret string +// GetId returns the Id field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *Group) GetId() float32 { + if o == nil || o.Id.Get() == nil { + var ret float32 return ret } - return *o.LandingPageAppId.Get() + return *o.Id.Get() } -// GetLandingPageAppIdOk returns a tuple with the LandingPageAppId field value +// GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Group) GetLandingPageAppIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.LandingPageAppId.Get(), o.LandingPageAppId.IsSet() -} - -// SetLandingPageAppId sets field value -func (o *Group) SetLandingPageAppId(v string) { - o.LandingPageAppId.Set(&v) -} - -// GetCreatedAt returns the CreatedAt field value -func (o *Group) GetCreatedAt() string { - if o == nil { - var ret string - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *Group) GetCreatedAtOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *Group) SetCreatedAt(v string) { - o.CreatedAt = v -} - -// GetUpdatedAt returns the UpdatedAt field value -func (o *Group) GetUpdatedAt() string { - if o == nil { - var ret string - return ret - } - - return o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value -// and a boolean to check if the value has been set. -func (o *Group) GetUpdatedAtOk() (*string, bool) { +func (o *Group) GetIdOk() (*float32, bool) { if o == nil { return nil, false } - return &o.UpdatedAt, true + return o.Id.Get(), o.Id.IsSet() } -// SetUpdatedAt sets field value -func (o *Group) SetUpdatedAt(v string) { - o.UpdatedAt = v +// SetId sets field value +func (o *Group) SetId(v float32) { + o.Id.Set(&v) } func (o Group) MarshalJSON() ([]byte, error) { @@ -522,30 +107,8 @@ func (o Group) MarshalJSON() ([]byte, error) { func (o Group) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type toSerialize["id"] = o.Id.Get() - toSerialize["legacy_id"] = o.LegacyId.Get() - toSerialize["name"] = o.Name - toSerialize["members"] = o.Members - toSerialize["universal_app_access"] = o.UniversalAppAccess - toSerialize["universal_resource_access"] = o.UniversalResourceAccess - toSerialize["universal_workflow_access"] = o.UniversalWorkflowAccess - if !IsNil(o.UniversalQueryLibraryAccess) { - toSerialize["universal_query_library_access"] = o.UniversalQueryLibraryAccess - } - toSerialize["user_invites"] = o.UserInvites - toSerialize["user_list_access"] = o.UserListAccess - toSerialize["audit_log_access"] = o.AuditLogAccess - toSerialize["unpublished_release_access"] = o.UnpublishedReleaseAccess - toSerialize["usage_analytics_access"] = o.UsageAnalyticsAccess - toSerialize["account_details_access"] = o.AccountDetailsAccess - toSerialize["landing_page_app_id"] = o.LandingPageAppId.Get() - toSerialize["created_at"] = o.CreatedAt - toSerialize["updated_at"] = o.UpdatedAt - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - return toSerialize, nil } @@ -554,22 +117,8 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { // 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{ + "type", "id", - "legacy_id", - "name", - "members", - "universal_app_access", - "universal_resource_access", - "universal_workflow_access", - "user_invites", - "user_list_access", - "audit_log_access", - "unpublished_release_access", - "usage_analytics_access", - "account_details_access", - "landing_page_app_id", - "created_at", - "updated_at", } allProperties := make(map[string]interface{}) @@ -588,7 +137,9 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { varGroup := _Group{} - err = json.Unmarshal(data, &varGroup) + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroup) if err != nil { return err @@ -596,29 +147,6 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { *o = Group(varGroup) - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "legacy_id") - delete(additionalProperties, "name") - delete(additionalProperties, "members") - delete(additionalProperties, "universal_app_access") - delete(additionalProperties, "universal_resource_access") - delete(additionalProperties, "universal_workflow_access") - delete(additionalProperties, "universal_query_library_access") - delete(additionalProperties, "user_invites") - delete(additionalProperties, "user_list_access") - delete(additionalProperties, "audit_log_access") - delete(additionalProperties, "unpublished_release_access") - delete(additionalProperties, "usage_analytics_access") - delete(additionalProperties, "account_details_access") - delete(additionalProperties, "landing_page_app_id") - delete(additionalProperties, "created_at") - delete(additionalProperties, "updated_at") - o.AdditionalProperties = additionalProperties - } - return err } diff --git a/internal/sdk/api/model_ip_allowlist.go b/internal/sdk/api/model_ip_allowlist.go new file mode 100644 index 0000000..73f67c6 --- /dev/null +++ b/internal/sdk/api/model_ip_allowlist.go @@ -0,0 +1,158 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the IpAllowlist type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IpAllowlist{} + +// IpAllowlist struct for IpAllowlist +type IpAllowlist struct { + IpAddresses InfoIpAllowlistGet200ResponseDataIpAddresses `json:"ipAddresses"` +} + +type _IpAllowlist IpAllowlist + +// NewIpAllowlist instantiates a new IpAllowlist object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIpAllowlist(ipAddresses InfoIpAllowlistGet200ResponseDataIpAddresses) *IpAllowlist { + this := IpAllowlist{} + this.IpAddresses = ipAddresses + return &this +} + +// NewIpAllowlistWithDefaults instantiates a new IpAllowlist object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIpAllowlistWithDefaults() *IpAllowlist { + this := IpAllowlist{} + return &this +} + +// GetIpAddresses returns the IpAddresses field value +func (o *IpAllowlist) GetIpAddresses() InfoIpAllowlistGet200ResponseDataIpAddresses { + if o == nil { + var ret InfoIpAllowlistGet200ResponseDataIpAddresses + return ret + } + + return o.IpAddresses +} + +// GetIpAddressesOk returns a tuple with the IpAddresses field value +// and a boolean to check if the value has been set. +func (o *IpAllowlist) GetIpAddressesOk() (*InfoIpAllowlistGet200ResponseDataIpAddresses, bool) { + if o == nil { + return nil, false + } + return &o.IpAddresses, true +} + +// SetIpAddresses sets field value +func (o *IpAllowlist) SetIpAddresses(v InfoIpAllowlistGet200ResponseDataIpAddresses) { + o.IpAddresses = v +} + +func (o IpAllowlist) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IpAllowlist) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ipAddresses"] = o.IpAddresses + return toSerialize, nil +} + +func (o *IpAllowlist) 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{ + "ipAddresses", + } + + 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) + } + } + + varIpAllowlist := _IpAllowlist{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varIpAllowlist) + + if err != nil { + return err + } + + *o = IpAllowlist(varIpAllowlist) + + return err +} + +type NullableIpAllowlist struct { + value *IpAllowlist + isSet bool +} + +func (v NullableIpAllowlist) Get() *IpAllowlist { + return v.value +} + +func (v *NullableIpAllowlist) Set(val *IpAllowlist) { + v.value = val + v.isSet = true +} + +func (v NullableIpAllowlist) IsSet() bool { + return v.isSet +} + +func (v *NullableIpAllowlist) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIpAllowlist(val *IpAllowlist) *NullableIpAllowlist { + return &NullableIpAllowlist{value: val, isSet: true} +} + +func (v NullableIpAllowlist) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIpAllowlist) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_move_operation.go b/internal/sdk/api/model_move_operation.go new file mode 100644 index 0000000..635a081 --- /dev/null +++ b/internal/sdk/api/model_move_operation.go @@ -0,0 +1,226 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the MoveOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MoveOperation{} + +// MoveOperation struct for MoveOperation +type MoveOperation struct { + Op string `json:"op"` + Path string `json:"path"` + From string `json:"from"` + AdditionalProperties map[string]interface{} +} + +type _MoveOperation MoveOperation + +// NewMoveOperation instantiates a new MoveOperation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMoveOperation(op string, path string, from string) *MoveOperation { + this := MoveOperation{} + this.Op = op + this.Path = path + this.From = from + return &this +} + +// NewMoveOperationWithDefaults instantiates a new MoveOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMoveOperationWithDefaults() *MoveOperation { + this := MoveOperation{} + return &this +} + +// GetOp returns the Op field value +func (o *MoveOperation) GetOp() string { + if o == nil { + var ret string + return ret + } + + return o.Op +} + +// GetOpOk returns a tuple with the Op field value +// and a boolean to check if the value has been set. +func (o *MoveOperation) GetOpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Op, true +} + +// SetOp sets field value +func (o *MoveOperation) SetOp(v string) { + o.Op = v +} + +// GetPath returns the Path field value +func (o *MoveOperation) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *MoveOperation) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *MoveOperation) SetPath(v string) { + o.Path = v +} + +// GetFrom returns the From field value +func (o *MoveOperation) GetFrom() string { + if o == nil { + var ret string + return ret + } + + return o.From +} + +// GetFromOk returns a tuple with the From field value +// and a boolean to check if the value has been set. +func (o *MoveOperation) GetFromOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.From, true +} + +// SetFrom sets field value +func (o *MoveOperation) SetFrom(v string) { + o.From = v +} + +func (o MoveOperation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MoveOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["op"] = o.Op + toSerialize["path"] = o.Path + toSerialize["from"] = o.From + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MoveOperation) 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", + "from", + } + + 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) + } + } + + varMoveOperation := _MoveOperation{} + + err = json.Unmarshal(data, &varMoveOperation) + + if err != nil { + return err + } + + *o = MoveOperation(varMoveOperation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "op") + delete(additionalProperties, "path") + delete(additionalProperties, "from") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMoveOperation struct { + value *MoveOperation + isSet bool +} + +func (v NullableMoveOperation) Get() *MoveOperation { + return v.value +} + +func (v *NullableMoveOperation) Set(val *MoveOperation) { + v.value = val + v.isSet = true +} + +func (v NullableMoveOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableMoveOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMoveOperation(val *MoveOperation) *NullableMoveOperation { + return &NullableMoveOperation{value: val, isSet: true} +} + +func (v NullableMoveOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMoveOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_my_sql_options.go b/internal/sdk/api/model_my_sql_options.go index 8216df9..8e7ac95 100644 --- a/internal/sdk/api/model_my_sql_options.go +++ b/internal/sdk/api/model_my_sql_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_my_sql_options_database_options.go b/internal/sdk/api/model_my_sql_options_database_options.go index 6ffe9d5..7f4536d 100644 --- a/internal/sdk/api/model_my_sql_options_database_options.go +++ b/internal/sdk/api/model_my_sql_options_database_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_observability_configuration.go b/internal/sdk/api/model_observability_configuration.go index a98834d..b79fb7c 100644 --- a/internal/sdk/api/model_observability_configuration.go +++ b/internal/sdk/api/model_observability_configuration.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_oidc.go b/internal/sdk/api/model_oidc.go new file mode 100644 index 0000000..5742d55 --- /dev/null +++ b/internal/sdk/api/model_oidc.go @@ -0,0 +1,646 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the OIDC type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OIDC{} + +// OIDC struct for OIDC +type OIDC struct { + ConfigType string `json:"config_type"` + OidcClientId string `json:"oidc_client_id"` + OidcClientSecret string `json:"oidc_client_secret"` + OidcScopes string `json:"oidc_scopes"` + OidcAuthUrl string `json:"oidc_auth_url"` + OidcTokenUrl string `json:"oidc_token_url"` + OidcUserinfoUrl *string `json:"oidc_userinfo_url,omitempty"` + OidcAudience *string `json:"oidc_audience,omitempty"` + JwtEmailKey string `json:"jwt_email_key"` + JwtRolesKey *string `json:"jwt_roles_key,omitempty"` + JwtFirstNameKey string `json:"jwt_first_name_key"` + JwtLastNameKey string `json:"jwt_last_name_key"` + RolesMapping *string `json:"roles_mapping,omitempty"` + JitEnabled bool `json:"jit_enabled"` + RestrictedDomain *string `json:"restricted_domain,omitempty"` + TriggerLoginAutomatically bool `json:"trigger_login_automatically"` + DisableEmailPasswordLogin bool `json:"disable_email_password_login"` +} + +type _OIDC OIDC + +// NewOIDC instantiates a new OIDC object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOIDC(configType string, oidcClientId string, oidcClientSecret string, oidcScopes string, oidcAuthUrl string, oidcTokenUrl string, jwtEmailKey string, jwtFirstNameKey string, jwtLastNameKey string, jitEnabled bool, triggerLoginAutomatically bool, disableEmailPasswordLogin bool) *OIDC { + this := OIDC{} + this.ConfigType = configType + this.OidcClientId = oidcClientId + this.OidcClientSecret = oidcClientSecret + this.OidcScopes = oidcScopes + this.OidcAuthUrl = oidcAuthUrl + this.OidcTokenUrl = oidcTokenUrl + this.JwtEmailKey = jwtEmailKey + this.JwtFirstNameKey = jwtFirstNameKey + this.JwtLastNameKey = jwtLastNameKey + this.JitEnabled = jitEnabled + this.TriggerLoginAutomatically = triggerLoginAutomatically + this.DisableEmailPasswordLogin = disableEmailPasswordLogin + return &this +} + +// NewOIDCWithDefaults instantiates a new OIDC object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOIDCWithDefaults() *OIDC { + this := OIDC{} + return &this +} + +// GetConfigType returns the ConfigType field value +func (o *OIDC) GetConfigType() string { + if o == nil { + var ret string + return ret + } + + return o.ConfigType +} + +// GetConfigTypeOk returns a tuple with the ConfigType field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetConfigTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConfigType, true +} + +// SetConfigType sets field value +func (o *OIDC) SetConfigType(v string) { + o.ConfigType = v +} + +// GetOidcClientId returns the OidcClientId field value +func (o *OIDC) GetOidcClientId() string { + if o == nil { + var ret string + return ret + } + + return o.OidcClientId +} + +// GetOidcClientIdOk returns a tuple with the OidcClientId field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetOidcClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcClientId, true +} + +// SetOidcClientId sets field value +func (o *OIDC) SetOidcClientId(v string) { + o.OidcClientId = v +} + +// GetOidcClientSecret returns the OidcClientSecret field value +func (o *OIDC) GetOidcClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.OidcClientSecret +} + +// GetOidcClientSecretOk returns a tuple with the OidcClientSecret field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetOidcClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcClientSecret, true +} + +// SetOidcClientSecret sets field value +func (o *OIDC) SetOidcClientSecret(v string) { + o.OidcClientSecret = v +} + +// GetOidcScopes returns the OidcScopes field value +func (o *OIDC) GetOidcScopes() string { + if o == nil { + var ret string + return ret + } + + return o.OidcScopes +} + +// GetOidcScopesOk returns a tuple with the OidcScopes field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetOidcScopesOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcScopes, true +} + +// SetOidcScopes sets field value +func (o *OIDC) SetOidcScopes(v string) { + o.OidcScopes = v +} + +// GetOidcAuthUrl returns the OidcAuthUrl field value +func (o *OIDC) GetOidcAuthUrl() string { + if o == nil { + var ret string + return ret + } + + return o.OidcAuthUrl +} + +// GetOidcAuthUrlOk returns a tuple with the OidcAuthUrl field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetOidcAuthUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcAuthUrl, true +} + +// SetOidcAuthUrl sets field value +func (o *OIDC) SetOidcAuthUrl(v string) { + o.OidcAuthUrl = v +} + +// GetOidcTokenUrl returns the OidcTokenUrl field value +func (o *OIDC) GetOidcTokenUrl() string { + if o == nil { + var ret string + return ret + } + + return o.OidcTokenUrl +} + +// GetOidcTokenUrlOk returns a tuple with the OidcTokenUrl field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetOidcTokenUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OidcTokenUrl, true +} + +// SetOidcTokenUrl sets field value +func (o *OIDC) SetOidcTokenUrl(v string) { + o.OidcTokenUrl = v +} + +// GetOidcUserinfoUrl returns the OidcUserinfoUrl field value if set, zero value otherwise. +func (o *OIDC) GetOidcUserinfoUrl() string { + if o == nil || IsNil(o.OidcUserinfoUrl) { + var ret string + return ret + } + return *o.OidcUserinfoUrl +} + +// GetOidcUserinfoUrlOk returns a tuple with the OidcUserinfoUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OIDC) GetOidcUserinfoUrlOk() (*string, bool) { + if o == nil || IsNil(o.OidcUserinfoUrl) { + return nil, false + } + return o.OidcUserinfoUrl, true +} + +// HasOidcUserinfoUrl returns a boolean if a field has been set. +func (o *OIDC) HasOidcUserinfoUrl() bool { + if o != nil && !IsNil(o.OidcUserinfoUrl) { + return true + } + + return false +} + +// SetOidcUserinfoUrl gets a reference to the given string and assigns it to the OidcUserinfoUrl field. +func (o *OIDC) SetOidcUserinfoUrl(v string) { + o.OidcUserinfoUrl = &v +} + +// GetOidcAudience returns the OidcAudience field value if set, zero value otherwise. +func (o *OIDC) GetOidcAudience() string { + if o == nil || IsNil(o.OidcAudience) { + var ret string + return ret + } + return *o.OidcAudience +} + +// GetOidcAudienceOk returns a tuple with the OidcAudience field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OIDC) GetOidcAudienceOk() (*string, bool) { + if o == nil || IsNil(o.OidcAudience) { + return nil, false + } + return o.OidcAudience, true +} + +// HasOidcAudience returns a boolean if a field has been set. +func (o *OIDC) HasOidcAudience() bool { + if o != nil && !IsNil(o.OidcAudience) { + return true + } + + return false +} + +// SetOidcAudience gets a reference to the given string and assigns it to the OidcAudience field. +func (o *OIDC) SetOidcAudience(v string) { + o.OidcAudience = &v +} + +// GetJwtEmailKey returns the JwtEmailKey field value +func (o *OIDC) GetJwtEmailKey() string { + if o == nil { + var ret string + return ret + } + + return o.JwtEmailKey +} + +// GetJwtEmailKeyOk returns a tuple with the JwtEmailKey field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetJwtEmailKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JwtEmailKey, true +} + +// SetJwtEmailKey sets field value +func (o *OIDC) SetJwtEmailKey(v string) { + o.JwtEmailKey = v +} + +// GetJwtRolesKey returns the JwtRolesKey field value if set, zero value otherwise. +func (o *OIDC) GetJwtRolesKey() string { + if o == nil || IsNil(o.JwtRolesKey) { + var ret string + return ret + } + return *o.JwtRolesKey +} + +// GetJwtRolesKeyOk returns a tuple with the JwtRolesKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OIDC) GetJwtRolesKeyOk() (*string, bool) { + if o == nil || IsNil(o.JwtRolesKey) { + return nil, false + } + return o.JwtRolesKey, true +} + +// HasJwtRolesKey returns a boolean if a field has been set. +func (o *OIDC) HasJwtRolesKey() bool { + if o != nil && !IsNil(o.JwtRolesKey) { + return true + } + + return false +} + +// SetJwtRolesKey gets a reference to the given string and assigns it to the JwtRolesKey field. +func (o *OIDC) SetJwtRolesKey(v string) { + o.JwtRolesKey = &v +} + +// GetJwtFirstNameKey returns the JwtFirstNameKey field value +func (o *OIDC) GetJwtFirstNameKey() string { + if o == nil { + var ret string + return ret + } + + return o.JwtFirstNameKey +} + +// GetJwtFirstNameKeyOk returns a tuple with the JwtFirstNameKey field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetJwtFirstNameKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JwtFirstNameKey, true +} + +// SetJwtFirstNameKey sets field value +func (o *OIDC) SetJwtFirstNameKey(v string) { + o.JwtFirstNameKey = v +} + +// GetJwtLastNameKey returns the JwtLastNameKey field value +func (o *OIDC) GetJwtLastNameKey() string { + if o == nil { + var ret string + return ret + } + + return o.JwtLastNameKey +} + +// GetJwtLastNameKeyOk returns a tuple with the JwtLastNameKey field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetJwtLastNameKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JwtLastNameKey, true +} + +// SetJwtLastNameKey sets field value +func (o *OIDC) SetJwtLastNameKey(v string) { + o.JwtLastNameKey = v +} + +// GetRolesMapping returns the RolesMapping field value if set, zero value otherwise. +func (o *OIDC) GetRolesMapping() string { + if o == nil || IsNil(o.RolesMapping) { + var ret string + return ret + } + return *o.RolesMapping +} + +// GetRolesMappingOk returns a tuple with the RolesMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OIDC) GetRolesMappingOk() (*string, bool) { + if o == nil || IsNil(o.RolesMapping) { + return nil, false + } + return o.RolesMapping, true +} + +// HasRolesMapping returns a boolean if a field has been set. +func (o *OIDC) HasRolesMapping() bool { + if o != nil && !IsNil(o.RolesMapping) { + return true + } + + return false +} + +// SetRolesMapping gets a reference to the given string and assigns it to the RolesMapping field. +func (o *OIDC) SetRolesMapping(v string) { + o.RolesMapping = &v +} + +// GetJitEnabled returns the JitEnabled field value +func (o *OIDC) GetJitEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.JitEnabled +} + +// GetJitEnabledOk returns a tuple with the JitEnabled field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetJitEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.JitEnabled, true +} + +// SetJitEnabled sets field value +func (o *OIDC) SetJitEnabled(v bool) { + o.JitEnabled = v +} + +// GetRestrictedDomain returns the RestrictedDomain field value if set, zero value otherwise. +func (o *OIDC) GetRestrictedDomain() string { + if o == nil || IsNil(o.RestrictedDomain) { + var ret string + return ret + } + return *o.RestrictedDomain +} + +// GetRestrictedDomainOk returns a tuple with the RestrictedDomain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OIDC) GetRestrictedDomainOk() (*string, bool) { + if o == nil || IsNil(o.RestrictedDomain) { + return nil, false + } + return o.RestrictedDomain, true +} + +// HasRestrictedDomain returns a boolean if a field has been set. +func (o *OIDC) HasRestrictedDomain() bool { + if o != nil && !IsNil(o.RestrictedDomain) { + return true + } + + return false +} + +// SetRestrictedDomain gets a reference to the given string and assigns it to the RestrictedDomain field. +func (o *OIDC) SetRestrictedDomain(v string) { + o.RestrictedDomain = &v +} + +// GetTriggerLoginAutomatically returns the TriggerLoginAutomatically field value +func (o *OIDC) GetTriggerLoginAutomatically() bool { + if o == nil { + var ret bool + return ret + } + + return o.TriggerLoginAutomatically +} + +// GetTriggerLoginAutomaticallyOk returns a tuple with the TriggerLoginAutomatically field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetTriggerLoginAutomaticallyOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TriggerLoginAutomatically, true +} + +// SetTriggerLoginAutomatically sets field value +func (o *OIDC) SetTriggerLoginAutomatically(v bool) { + o.TriggerLoginAutomatically = v +} + +// GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field value +func (o *OIDC) GetDisableEmailPasswordLogin() bool { + if o == nil { + var ret bool + return ret + } + + return o.DisableEmailPasswordLogin +} + +// GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field value +// and a boolean to check if the value has been set. +func (o *OIDC) GetDisableEmailPasswordLoginOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DisableEmailPasswordLogin, true +} + +// SetDisableEmailPasswordLogin sets field value +func (o *OIDC) SetDisableEmailPasswordLogin(v bool) { + o.DisableEmailPasswordLogin = v +} + +func (o OIDC) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OIDC) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config_type"] = o.ConfigType + toSerialize["oidc_client_id"] = o.OidcClientId + toSerialize["oidc_client_secret"] = o.OidcClientSecret + toSerialize["oidc_scopes"] = o.OidcScopes + toSerialize["oidc_auth_url"] = o.OidcAuthUrl + toSerialize["oidc_token_url"] = o.OidcTokenUrl + if !IsNil(o.OidcUserinfoUrl) { + toSerialize["oidc_userinfo_url"] = o.OidcUserinfoUrl + } + if !IsNil(o.OidcAudience) { + toSerialize["oidc_audience"] = o.OidcAudience + } + toSerialize["jwt_email_key"] = o.JwtEmailKey + if !IsNil(o.JwtRolesKey) { + toSerialize["jwt_roles_key"] = o.JwtRolesKey + } + toSerialize["jwt_first_name_key"] = o.JwtFirstNameKey + toSerialize["jwt_last_name_key"] = o.JwtLastNameKey + if !IsNil(o.RolesMapping) { + toSerialize["roles_mapping"] = o.RolesMapping + } + toSerialize["jit_enabled"] = o.JitEnabled + if !IsNil(o.RestrictedDomain) { + toSerialize["restricted_domain"] = o.RestrictedDomain + } + toSerialize["trigger_login_automatically"] = o.TriggerLoginAutomatically + toSerialize["disable_email_password_login"] = o.DisableEmailPasswordLogin + return toSerialize, nil +} + +func (o *OIDC) 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{ + "config_type", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically", + "disable_email_password_login", + } + + 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) + } + } + + varOIDC := _OIDC{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOIDC) + + if err != nil { + return err + } + + *o = OIDC(varOIDC) + + return err +} + +type NullableOIDC struct { + value *OIDC + isSet bool +} + +func (v NullableOIDC) Get() *OIDC { + return v.value +} + +func (v *NullableOIDC) Set(val *OIDC) { + v.value = val + v.isSet = true +} + +func (v NullableOIDC) IsSet() bool { + return v.isSet +} + +func (v *NullableOIDC) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOIDC(val *OIDC) *NullableOIDC { + return &NullableOIDC{value: val, isSet: true} +} + +func (v NullableOIDC) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOIDC) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_organization_settings.go b/internal/sdk/api/model_organization_settings.go new file mode 100644 index 0000000..0ef44f9 --- /dev/null +++ b/internal/sdk/api/model_organization_settings.go @@ -0,0 +1,572 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the OrganizationSettings type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationSettings{} + +// OrganizationSettings This object represents the advanced settings configured on an organization. +type OrganizationSettings struct { + // The id of the organization. + Id string `json:"id"` + // Whether users can request access to join the organization. + RequestAccessEnabled bool `json:"request_access_enabled"` + // Whether the AI support bot is disabled. + AiSupportBotDisabled bool `json:"ai_support_bot_disabled"` + // Whether Retool forms are disabled. + RetoolFormsDisabled bool `json:"retool_forms_disabled"` + // Whether versions and releases on apps are disabled. + ReleaseManagementEnabled bool `json:"release_management_enabled"` + CacheQueriesPerUser NullableBool `json:"cache_queries_per_user"` + // Whether preloaded CSS is applied to the Retool homepage. + ApplyPreloadedCssToHomepage bool `json:"apply_preloaded_css_to_homepage"` + // Custom CSS rules to apply across Retool. + PreloadedCss NullableString `json:"preloaded_css"` + // Preloaded JavaScript that will apply to every Retool app. + PreloadedJavascript NullableString `json:"preloaded_javascript"` + // List of custom JavaScript libraries to load in every app. + JavascriptLinks []string `json:"javascript_links"` + // Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem) + WorkflowRunRetentionPeriodMins float32 `json:"workflow_run_retention_period_mins"` + // Whether app owners can manage permissions for their apps directly. + AppOwnersPermissionsManagement bool `json:"app_owners_permissions_management"` + // Whether two-factor authentication is required for all users in the organization. + TwoFactorAuthRequired bool `json:"two_factor_auth_required"` + // Required 2FA type, applies to the whole organization + TwoFactorAuthType NullableString `json:"two_factor_auth_type"` + // Whether notification emails for logins from new IPs are disabled. + DisableNewLoginIpNotificationEmail bool `json:"disable_new_login_ip_notification_email"` +} + +type _OrganizationSettings OrganizationSettings + +// NewOrganizationSettings instantiates a new OrganizationSettings object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationSettings(id string, requestAccessEnabled bool, aiSupportBotDisabled bool, retoolFormsDisabled bool, releaseManagementEnabled bool, cacheQueriesPerUser NullableBool, applyPreloadedCssToHomepage bool, preloadedCss NullableString, preloadedJavascript NullableString, javascriptLinks []string, workflowRunRetentionPeriodMins float32, appOwnersPermissionsManagement bool, twoFactorAuthRequired bool, twoFactorAuthType NullableString, disableNewLoginIpNotificationEmail bool) *OrganizationSettings { + this := OrganizationSettings{} + this.Id = id + this.RequestAccessEnabled = requestAccessEnabled + this.AiSupportBotDisabled = aiSupportBotDisabled + this.RetoolFormsDisabled = retoolFormsDisabled + this.ReleaseManagementEnabled = releaseManagementEnabled + this.CacheQueriesPerUser = cacheQueriesPerUser + this.ApplyPreloadedCssToHomepage = applyPreloadedCssToHomepage + this.PreloadedCss = preloadedCss + this.PreloadedJavascript = preloadedJavascript + this.JavascriptLinks = javascriptLinks + this.WorkflowRunRetentionPeriodMins = workflowRunRetentionPeriodMins + this.AppOwnersPermissionsManagement = appOwnersPermissionsManagement + this.TwoFactorAuthRequired = twoFactorAuthRequired + this.TwoFactorAuthType = twoFactorAuthType + this.DisableNewLoginIpNotificationEmail = disableNewLoginIpNotificationEmail + return &this +} + +// NewOrganizationSettingsWithDefaults instantiates a new OrganizationSettings object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationSettingsWithDefaults() *OrganizationSettings { + this := OrganizationSettings{} + return &this +} + +// GetId returns the Id field value +func (o *OrganizationSettings) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *OrganizationSettings) SetId(v string) { + o.Id = v +} + +// GetRequestAccessEnabled returns the RequestAccessEnabled field value +func (o *OrganizationSettings) GetRequestAccessEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.RequestAccessEnabled +} + +// GetRequestAccessEnabledOk returns a tuple with the RequestAccessEnabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetRequestAccessEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RequestAccessEnabled, true +} + +// SetRequestAccessEnabled sets field value +func (o *OrganizationSettings) SetRequestAccessEnabled(v bool) { + o.RequestAccessEnabled = v +} + +// GetAiSupportBotDisabled returns the AiSupportBotDisabled field value +func (o *OrganizationSettings) GetAiSupportBotDisabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AiSupportBotDisabled +} + +// GetAiSupportBotDisabledOk returns a tuple with the AiSupportBotDisabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetAiSupportBotDisabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AiSupportBotDisabled, true +} + +// SetAiSupportBotDisabled sets field value +func (o *OrganizationSettings) SetAiSupportBotDisabled(v bool) { + o.AiSupportBotDisabled = v +} + +// GetRetoolFormsDisabled returns the RetoolFormsDisabled field value +func (o *OrganizationSettings) GetRetoolFormsDisabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.RetoolFormsDisabled +} + +// GetRetoolFormsDisabledOk returns a tuple with the RetoolFormsDisabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetRetoolFormsDisabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RetoolFormsDisabled, true +} + +// SetRetoolFormsDisabled sets field value +func (o *OrganizationSettings) SetRetoolFormsDisabled(v bool) { + o.RetoolFormsDisabled = v +} + +// GetReleaseManagementEnabled returns the ReleaseManagementEnabled field value +func (o *OrganizationSettings) GetReleaseManagementEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.ReleaseManagementEnabled +} + +// GetReleaseManagementEnabledOk returns a tuple with the ReleaseManagementEnabled field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetReleaseManagementEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ReleaseManagementEnabled, true +} + +// SetReleaseManagementEnabled sets field value +func (o *OrganizationSettings) SetReleaseManagementEnabled(v bool) { + o.ReleaseManagementEnabled = v +} + +// GetCacheQueriesPerUser returns the CacheQueriesPerUser field value +// If the value is explicit nil, the zero value for bool will be returned +func (o *OrganizationSettings) GetCacheQueriesPerUser() bool { + if o == nil || o.CacheQueriesPerUser.Get() == nil { + var ret bool + return ret + } + + return *o.CacheQueriesPerUser.Get() +} + +// GetCacheQueriesPerUserOk returns a tuple with the CacheQueriesPerUser field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationSettings) GetCacheQueriesPerUserOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.CacheQueriesPerUser.Get(), o.CacheQueriesPerUser.IsSet() +} + +// SetCacheQueriesPerUser sets field value +func (o *OrganizationSettings) SetCacheQueriesPerUser(v bool) { + o.CacheQueriesPerUser.Set(&v) +} + +// GetApplyPreloadedCssToHomepage returns the ApplyPreloadedCssToHomepage field value +func (o *OrganizationSettings) GetApplyPreloadedCssToHomepage() bool { + if o == nil { + var ret bool + return ret + } + + return o.ApplyPreloadedCssToHomepage +} + +// GetApplyPreloadedCssToHomepageOk returns a tuple with the ApplyPreloadedCssToHomepage field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetApplyPreloadedCssToHomepageOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ApplyPreloadedCssToHomepage, true +} + +// SetApplyPreloadedCssToHomepage sets field value +func (o *OrganizationSettings) SetApplyPreloadedCssToHomepage(v bool) { + o.ApplyPreloadedCssToHomepage = v +} + +// GetPreloadedCss returns the PreloadedCss field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationSettings) GetPreloadedCss() string { + if o == nil || o.PreloadedCss.Get() == nil { + var ret string + return ret + } + + return *o.PreloadedCss.Get() +} + +// GetPreloadedCssOk returns a tuple with the PreloadedCss field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationSettings) GetPreloadedCssOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PreloadedCss.Get(), o.PreloadedCss.IsSet() +} + +// SetPreloadedCss sets field value +func (o *OrganizationSettings) SetPreloadedCss(v string) { + o.PreloadedCss.Set(&v) +} + +// GetPreloadedJavascript returns the PreloadedJavascript field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationSettings) GetPreloadedJavascript() string { + if o == nil || o.PreloadedJavascript.Get() == nil { + var ret string + return ret + } + + return *o.PreloadedJavascript.Get() +} + +// GetPreloadedJavascriptOk returns a tuple with the PreloadedJavascript field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationSettings) GetPreloadedJavascriptOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PreloadedJavascript.Get(), o.PreloadedJavascript.IsSet() +} + +// SetPreloadedJavascript sets field value +func (o *OrganizationSettings) SetPreloadedJavascript(v string) { + o.PreloadedJavascript.Set(&v) +} + +// GetJavascriptLinks returns the JavascriptLinks field value +func (o *OrganizationSettings) GetJavascriptLinks() []string { + if o == nil { + var ret []string + return ret + } + + return o.JavascriptLinks +} + +// GetJavascriptLinksOk returns a tuple with the JavascriptLinks field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetJavascriptLinksOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.JavascriptLinks, true +} + +// SetJavascriptLinks sets field value +func (o *OrganizationSettings) SetJavascriptLinks(v []string) { + o.JavascriptLinks = v +} + +// GetWorkflowRunRetentionPeriodMins returns the WorkflowRunRetentionPeriodMins field value +func (o *OrganizationSettings) GetWorkflowRunRetentionPeriodMins() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.WorkflowRunRetentionPeriodMins +} + +// GetWorkflowRunRetentionPeriodMinsOk returns a tuple with the WorkflowRunRetentionPeriodMins field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetWorkflowRunRetentionPeriodMinsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowRunRetentionPeriodMins, true +} + +// SetWorkflowRunRetentionPeriodMins sets field value +func (o *OrganizationSettings) SetWorkflowRunRetentionPeriodMins(v float32) { + o.WorkflowRunRetentionPeriodMins = v +} + +// GetAppOwnersPermissionsManagement returns the AppOwnersPermissionsManagement field value +func (o *OrganizationSettings) GetAppOwnersPermissionsManagement() bool { + if o == nil { + var ret bool + return ret + } + + return o.AppOwnersPermissionsManagement +} + +// GetAppOwnersPermissionsManagementOk returns a tuple with the AppOwnersPermissionsManagement field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetAppOwnersPermissionsManagementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AppOwnersPermissionsManagement, true +} + +// SetAppOwnersPermissionsManagement sets field value +func (o *OrganizationSettings) SetAppOwnersPermissionsManagement(v bool) { + o.AppOwnersPermissionsManagement = v +} + +// GetTwoFactorAuthRequired returns the TwoFactorAuthRequired field value +func (o *OrganizationSettings) GetTwoFactorAuthRequired() bool { + if o == nil { + var ret bool + return ret + } + + return o.TwoFactorAuthRequired +} + +// GetTwoFactorAuthRequiredOk returns a tuple with the TwoFactorAuthRequired field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetTwoFactorAuthRequiredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TwoFactorAuthRequired, true +} + +// SetTwoFactorAuthRequired sets field value +func (o *OrganizationSettings) SetTwoFactorAuthRequired(v bool) { + o.TwoFactorAuthRequired = v +} + +// GetTwoFactorAuthType returns the TwoFactorAuthType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OrganizationSettings) GetTwoFactorAuthType() string { + if o == nil || o.TwoFactorAuthType.Get() == nil { + var ret string + return ret + } + + return *o.TwoFactorAuthType.Get() +} + +// GetTwoFactorAuthTypeOk returns a tuple with the TwoFactorAuthType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrganizationSettings) GetTwoFactorAuthTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TwoFactorAuthType.Get(), o.TwoFactorAuthType.IsSet() +} + +// SetTwoFactorAuthType sets field value +func (o *OrganizationSettings) SetTwoFactorAuthType(v string) { + o.TwoFactorAuthType.Set(&v) +} + +// GetDisableNewLoginIpNotificationEmail returns the DisableNewLoginIpNotificationEmail field value +func (o *OrganizationSettings) GetDisableNewLoginIpNotificationEmail() bool { + if o == nil { + var ret bool + return ret + } + + return o.DisableNewLoginIpNotificationEmail +} + +// GetDisableNewLoginIpNotificationEmailOk returns a tuple with the DisableNewLoginIpNotificationEmail field value +// and a boolean to check if the value has been set. +func (o *OrganizationSettings) GetDisableNewLoginIpNotificationEmailOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DisableNewLoginIpNotificationEmail, true +} + +// SetDisableNewLoginIpNotificationEmail sets field value +func (o *OrganizationSettings) SetDisableNewLoginIpNotificationEmail(v bool) { + o.DisableNewLoginIpNotificationEmail = v +} + +func (o OrganizationSettings) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationSettings) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["request_access_enabled"] = o.RequestAccessEnabled + toSerialize["ai_support_bot_disabled"] = o.AiSupportBotDisabled + toSerialize["retool_forms_disabled"] = o.RetoolFormsDisabled + toSerialize["release_management_enabled"] = o.ReleaseManagementEnabled + toSerialize["cache_queries_per_user"] = o.CacheQueriesPerUser.Get() + toSerialize["apply_preloaded_css_to_homepage"] = o.ApplyPreloadedCssToHomepage + toSerialize["preloaded_css"] = o.PreloadedCss.Get() + toSerialize["preloaded_javascript"] = o.PreloadedJavascript.Get() + toSerialize["javascript_links"] = o.JavascriptLinks + toSerialize["workflow_run_retention_period_mins"] = o.WorkflowRunRetentionPeriodMins + toSerialize["app_owners_permissions_management"] = o.AppOwnersPermissionsManagement + toSerialize["two_factor_auth_required"] = o.TwoFactorAuthRequired + toSerialize["two_factor_auth_type"] = o.TwoFactorAuthType.Get() + toSerialize["disable_new_login_ip_notification_email"] = o.DisableNewLoginIpNotificationEmail + return toSerialize, nil +} + +func (o *OrganizationSettings) 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{ + "id", + "request_access_enabled", + "ai_support_bot_disabled", + "retool_forms_disabled", + "release_management_enabled", + "cache_queries_per_user", + "apply_preloaded_css_to_homepage", + "preloaded_css", + "preloaded_javascript", + "javascript_links", + "workflow_run_retention_period_mins", + "app_owners_permissions_management", + "two_factor_auth_required", + "two_factor_auth_type", + "disable_new_login_ip_notification_email", + } + + 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) + } + } + + varOrganizationSettings := _OrganizationSettings{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOrganizationSettings) + + if err != nil { + return err + } + + *o = OrganizationSettings(varOrganizationSettings) + + return err +} + +type NullableOrganizationSettings struct { + value *OrganizationSettings + isSet bool +} + +func (v NullableOrganizationSettings) Get() *OrganizationSettings { + return v.value +} + +func (v *NullableOrganizationSettings) Set(val *OrganizationSettings) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationSettings(val *OrganizationSettings) *NullableOrganizationSettings { + return &NullableOrganizationSettings{value: val, isSet: true} +} + +func (v NullableOrganizationSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_postgres_options.go b/internal/sdk/api/model_postgres_options.go index d71b7ce..b2e3b5c 100644 --- a/internal/sdk/api/model_postgres_options.go +++ b/internal/sdk/api/model_postgres_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_postgres_options_database_options.go b/internal/sdk/api/model_postgres_options_database_options.go index 34ec0e3..6672c4e 100644 --- a/internal/sdk/api/model_postgres_options_database_options.go +++ b/internal/sdk/api/model_postgres_options_database_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -54,13 +54,13 @@ func (dst *PostgresOptionsDatabaseOptions) UnmarshalJSON(data []byte) error { } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *PostgresOptionsDatabaseOptions) MarshalJSON() ([]byte, error) { +func (src PostgresOptionsDatabaseOptions) MarshalJSON() ([]byte, error) { if src.PostgresOptionsDatabaseOptionsAnyOf != nil { - return json.Marshal(&src.PostgresOptionsDatabaseOptionsAnyOf) + return json.Marshal(src.PostgresOptionsDatabaseOptionsAnyOf) } if src.PostgresOptionsDatabaseOptionsAnyOf1 != nil { - return json.Marshal(&src.PostgresOptionsDatabaseOptionsAnyOf1) + return json.Marshal(src.PostgresOptionsDatabaseOptionsAnyOf1) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model_postgres_options_database_options_any_of.go b/internal/sdk/api/model_postgres_options_database_options_any_of.go index a5cf7d0..893f888 100644 --- a/internal/sdk/api/model_postgres_options_database_options_any_of.go +++ b/internal/sdk/api/model_postgres_options_database_options_any_of.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_postgres_options_database_options_any_of_1.go b/internal/sdk/api/model_postgres_options_database_options_any_of_1.go index 105d6be..61e2af4 100644 --- a/internal/sdk/api/model_postgres_options_database_options_any_of_1.go +++ b/internal/sdk/api/model_postgres_options_database_options_any_of_1.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_postgres_options_database_options_any_of_ssh_tunnel_options.go b/internal/sdk/api/model_postgres_options_database_options_any_of_ssh_tunnel_options.go index 5f1b328..73e40f2 100644 --- a/internal/sdk/api/model_postgres_options_database_options_any_of_ssh_tunnel_options.go +++ b/internal/sdk/api/model_postgres_options_database_options_any_of_ssh_tunnel_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_postgres_options_database_options_any_of_ssl_settings.go b/internal/sdk/api/model_postgres_options_database_options_any_of_ssl_settings.go index d5f4a01..09ae832 100644 --- a/internal/sdk/api/model_postgres_options_database_options_any_of_ssl_settings.go +++ b/internal/sdk/api/model_postgres_options_database_options_any_of_ssl_settings.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_redshift_options.go b/internal/sdk/api/model_redshift_options.go index 5469903..b98f38b 100644 --- a/internal/sdk/api/model_redshift_options.go +++ b/internal/sdk/api/model_redshift_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_redshift_options_database_options.go b/internal/sdk/api/model_redshift_options_database_options.go index 05b014d..3f29fc2 100644 --- a/internal/sdk/api/model_redshift_options_database_options.go +++ b/internal/sdk/api/model_redshift_options_database_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_redshift_options_database_options_ssl_settings.go b/internal/sdk/api/model_redshift_options_database_options_ssl_settings.go index 4b85af6..5e57464 100644 --- a/internal/sdk/api/model_redshift_options_database_options_ssl_settings.go +++ b/internal/sdk/api/model_redshift_options_database_options_ssl_settings.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_remove_operation.go b/internal/sdk/api/model_remove_operation.go index c27fd73..5c0e008 100644 --- a/internal/sdk/api/model_remove_operation.go +++ b/internal/sdk/api/model_remove_operation.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_replace_operation.go b/internal/sdk/api/model_replace_operation.go index dde4094..6cb1e7a 100644 --- a/internal/sdk/api/model_replace_operation.go +++ b/internal/sdk/api/model_replace_operation.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_resource.go b/internal/sdk/api/model_resource.go index 9daf373..fae4fcc 100644 --- a/internal/sdk/api/model_resource.go +++ b/internal/sdk/api/model_resource.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,11 @@ import ( // checks if the Resource type satisfies the MappedNullable interface at compile time var _ MappedNullable = &Resource{} -// Resource Resource +// Resource struct for Resource type Resource struct { - Id ResourcesGet200ResponseDataInnerId `json:"id"` - // The type of resource. Type string `json:"type"` - DisplayName string `json:"display_name"` - CreatedAt string `json:"created_at"` - UpdatedAt string `json:"updated_at"` + // The uuid or name for the resource. + Id string `json:"id"` } type _Resource Resource @@ -35,13 +32,10 @@ type _Resource Resource // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewResource(id ResourcesGet200ResponseDataInnerId, type_ string, displayName string, createdAt string, updatedAt string) *Resource { +func NewResource(type_ string, id string) *Resource { this := Resource{} - this.Id = id this.Type = type_ - this.DisplayName = displayName - this.CreatedAt = createdAt - this.UpdatedAt = updatedAt + this.Id = id return &this } @@ -53,30 +47,6 @@ func NewResourceWithDefaults() *Resource { return &this } -// GetId returns the Id field value -func (o *Resource) GetId() ResourcesGet200ResponseDataInnerId { - if o == nil { - var ret ResourcesGet200ResponseDataInnerId - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *Resource) GetIdOk() (*ResourcesGet200ResponseDataInnerId, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *Resource) SetId(v ResourcesGet200ResponseDataInnerId) { - o.Id = v -} - // GetType returns the Type field value func (o *Resource) GetType() string { if o == nil { @@ -101,76 +71,28 @@ func (o *Resource) SetType(v string) { o.Type = v } -// GetDisplayName returns the DisplayName field value -func (o *Resource) GetDisplayName() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value -// and a boolean to check if the value has been set. -func (o *Resource) GetDisplayNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayName, true -} - -// SetDisplayName sets field value -func (o *Resource) SetDisplayName(v string) { - o.DisplayName = v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *Resource) GetCreatedAt() string { - if o == nil { - var ret string - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *Resource) GetCreatedAtOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *Resource) SetCreatedAt(v string) { - o.CreatedAt = v -} - -// GetUpdatedAt returns the UpdatedAt field value -func (o *Resource) GetUpdatedAt() string { +// GetId returns the Id field value +func (o *Resource) GetId() string { if o == nil { var ret string return ret } - return o.UpdatedAt + return o.Id } -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *Resource) GetUpdatedAtOk() (*string, bool) { +func (o *Resource) GetIdOk() (*string, bool) { if o == nil { return nil, false } - return &o.UpdatedAt, true + return &o.Id, true } -// SetUpdatedAt sets field value -func (o *Resource) SetUpdatedAt(v string) { - o.UpdatedAt = v +// SetId sets field value +func (o *Resource) SetId(v string) { + o.Id = v } func (o Resource) MarshalJSON() ([]byte, error) { @@ -183,11 +105,8 @@ func (o Resource) MarshalJSON() ([]byte, error) { func (o Resource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id toSerialize["type"] = o.Type - toSerialize["display_name"] = o.DisplayName - toSerialize["created_at"] = o.CreatedAt - toSerialize["updated_at"] = o.UpdatedAt + toSerialize["id"] = o.Id return toSerialize, nil } @@ -196,11 +115,8 @@ func (o *Resource) UnmarshalJSON(data []byte) (err error) { // 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{ - "id", "type", - "display_name", - "created_at", - "updated_at", + "id", } allProperties := make(map[string]interface{}) diff --git a/internal/sdk/api/model_resource_configuration.go b/internal/sdk/api/model_resource_configuration.go index f4f35f0..37c7ff3 100644 --- a/internal/sdk/api/model_resource_configuration.go +++ b/internal/sdk/api/model_resource_configuration.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,11 @@ import ( // checks if the ResourceConfiguration type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ResourceConfiguration{} -// ResourceConfiguration Resource Configuration +// ResourceConfiguration struct for ResourceConfiguration type ResourceConfiguration struct { - // The uuid for the resource configuration. + Type string `json:"type"` + // The resource configuration id. Id string `json:"id"` - Resource ResourcesGet200ResponseDataInner `json:"resource"` - Environment ResourceConfigurationsGet200ResponseDataInnerEnvironment `json:"environment"` - Options ResourcesPostRequestOptions `json:"options"` - CreatedAt string `json:"created_at"` - UpdatedAt string `json:"updated_at"` } type _ResourceConfiguration ResourceConfiguration @@ -36,14 +32,10 @@ type _ResourceConfiguration ResourceConfiguration // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewResourceConfiguration(id string, resource ResourcesGet200ResponseDataInner, environment ResourceConfigurationsGet200ResponseDataInnerEnvironment, options ResourcesPostRequestOptions, createdAt string, updatedAt string) *ResourceConfiguration { +func NewResourceConfiguration(type_ string, id string) *ResourceConfiguration { this := ResourceConfiguration{} + this.Type = type_ this.Id = id - this.Resource = resource - this.Environment = environment - this.Options = options - this.CreatedAt = createdAt - this.UpdatedAt = updatedAt return &this } @@ -55,148 +47,52 @@ func NewResourceConfigurationWithDefaults() *ResourceConfiguration { return &this } -// GetId returns the Id field value -func (o *ResourceConfiguration) GetId() string { +// GetType returns the Type field value +func (o *ResourceConfiguration) GetType() string { if o == nil { var ret string return ret } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *ResourceConfiguration) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *ResourceConfiguration) SetId(v string) { - o.Id = v -} - -// GetResource returns the Resource field value -func (o *ResourceConfiguration) GetResource() ResourcesGet200ResponseDataInner { - if o == nil { - var ret ResourcesGet200ResponseDataInner - return ret - } - - return o.Resource + return o.Type } -// GetResourceOk returns a tuple with the Resource field value +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ResourceConfiguration) GetResourceOk() (*ResourcesGet200ResponseDataInner, bool) { +func (o *ResourceConfiguration) GetTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.Resource, true -} - -// SetResource sets field value -func (o *ResourceConfiguration) SetResource(v ResourcesGet200ResponseDataInner) { - o.Resource = v + return &o.Type, true } -// GetEnvironment returns the Environment field value -func (o *ResourceConfiguration) GetEnvironment() ResourceConfigurationsGet200ResponseDataInnerEnvironment { - if o == nil { - var ret ResourceConfigurationsGet200ResponseDataInnerEnvironment - return ret - } - - return o.Environment +// SetType sets field value +func (o *ResourceConfiguration) SetType(v string) { + o.Type = v } -// GetEnvironmentOk returns a tuple with the Environment field value -// and a boolean to check if the value has been set. -func (o *ResourceConfiguration) GetEnvironmentOk() (*ResourceConfigurationsGet200ResponseDataInnerEnvironment, bool) { - if o == nil { - return nil, false - } - return &o.Environment, true -} - -// SetEnvironment sets field value -func (o *ResourceConfiguration) SetEnvironment(v ResourceConfigurationsGet200ResponseDataInnerEnvironment) { - o.Environment = v -} - -// GetOptions returns the Options field value -func (o *ResourceConfiguration) GetOptions() ResourcesPostRequestOptions { - if o == nil { - var ret ResourcesPostRequestOptions - return ret - } - - return o.Options -} - -// GetOptionsOk returns a tuple with the Options field value -// and a boolean to check if the value has been set. -func (o *ResourceConfiguration) GetOptionsOk() (*ResourcesPostRequestOptions, bool) { - if o == nil { - return nil, false - } - return &o.Options, true -} - -// SetOptions sets field value -func (o *ResourceConfiguration) SetOptions(v ResourcesPostRequestOptions) { - o.Options = v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *ResourceConfiguration) GetCreatedAt() string { - if o == nil { - var ret string - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *ResourceConfiguration) GetCreatedAtOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *ResourceConfiguration) SetCreatedAt(v string) { - o.CreatedAt = v -} - -// GetUpdatedAt returns the UpdatedAt field value -func (o *ResourceConfiguration) GetUpdatedAt() string { +// GetId returns the Id field value +func (o *ResourceConfiguration) GetId() string { if o == nil { var ret string return ret } - return o.UpdatedAt + return o.Id } -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *ResourceConfiguration) GetUpdatedAtOk() (*string, bool) { +func (o *ResourceConfiguration) GetIdOk() (*string, bool) { if o == nil { return nil, false } - return &o.UpdatedAt, true + return &o.Id, true } -// SetUpdatedAt sets field value -func (o *ResourceConfiguration) SetUpdatedAt(v string) { - o.UpdatedAt = v +// SetId sets field value +func (o *ResourceConfiguration) SetId(v string) { + o.Id = v } func (o ResourceConfiguration) MarshalJSON() ([]byte, error) { @@ -209,12 +105,8 @@ func (o ResourceConfiguration) MarshalJSON() ([]byte, error) { func (o ResourceConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type toSerialize["id"] = o.Id - toSerialize["resource"] = o.Resource - toSerialize["environment"] = o.Environment - toSerialize["options"] = o.Options - toSerialize["created_at"] = o.CreatedAt - toSerialize["updated_at"] = o.UpdatedAt return toSerialize, nil } @@ -223,12 +115,8 @@ func (o *ResourceConfiguration) UnmarshalJSON(data []byte) (err error) { // 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{ + "type", "id", - "resource", - "environment", - "options", - "created_at", - "updated_at", } allProperties := make(map[string]interface{}) diff --git a/internal/sdk/api/model_rest_api_options.go b/internal/sdk/api/model_rest_api_options.go index 3f3ccfb..8c4c955 100644 --- a/internal/sdk/api/model_rest_api_options.go +++ b/internal/sdk/api/model_rest_api_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ var _ MappedNullable = &RestAPIOptions{} // RestAPIOptions struct for RestAPIOptions type RestAPIOptions struct { - // Use the absolute URL (e.g https://example.com). + // Use the absolute URL (e.g. https://example.com). BaseUrl string `json:"base_url"` UrlParameters [][]string `json:"url_parameters,omitempty"` Headers [][]string `json:"headers,omitempty"` diff --git a/internal/sdk/api/model_rest_api_options_authentication_options.go b/internal/sdk/api/model_rest_api_options_authentication_options.go index b81c869..b8e5558 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -124,33 +124,33 @@ func (dst *RestAPIOptionsAuthenticationOptions) UnmarshalJSON(data []byte) error } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *RestAPIOptionsAuthenticationOptions) MarshalJSON() ([]byte, error) { +func (src RestAPIOptionsAuthenticationOptions) MarshalJSON() ([]byte, error) { if src.RestAPIOptionsAuthenticationOptionsAnyOf != nil { - return json.Marshal(&src.RestAPIOptionsAuthenticationOptionsAnyOf) + return json.Marshal(src.RestAPIOptionsAuthenticationOptionsAnyOf) } if src.RestAPIOptionsAuthenticationOptionsAnyOf1 != nil { - return json.Marshal(&src.RestAPIOptionsAuthenticationOptionsAnyOf1) + return json.Marshal(src.RestAPIOptionsAuthenticationOptionsAnyOf1) } if src.RestAPIOptionsAuthenticationOptionsAnyOf2 != nil { - return json.Marshal(&src.RestAPIOptionsAuthenticationOptionsAnyOf2) + return json.Marshal(src.RestAPIOptionsAuthenticationOptionsAnyOf2) } if src.RestAPIOptionsAuthenticationOptionsAnyOf3 != nil { - return json.Marshal(&src.RestAPIOptionsAuthenticationOptionsAnyOf3) + return json.Marshal(src.RestAPIOptionsAuthenticationOptionsAnyOf3) } if src.RestAPIOptionsAuthenticationOptionsAnyOf4 != nil { - return json.Marshal(&src.RestAPIOptionsAuthenticationOptionsAnyOf4) + return json.Marshal(src.RestAPIOptionsAuthenticationOptionsAnyOf4) } if src.RestAPIOptionsAuthenticationOptionsAnyOf5 != nil { - return json.Marshal(&src.RestAPIOptionsAuthenticationOptionsAnyOf5) + return json.Marshal(src.RestAPIOptionsAuthenticationOptionsAnyOf5) } if src.RestAPIOptionsAuthenticationOptionsAnyOf6 != nil { - return json.Marshal(&src.RestAPIOptionsAuthenticationOptionsAnyOf6) + return json.Marshal(src.RestAPIOptionsAuthenticationOptionsAnyOf6) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model_rest_api_options_authentication_options_any_of.go b/internal/sdk/api/model_rest_api_options_authentication_options_any_of.go index 7fa397a..992a8a2 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options_any_of.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options_any_of.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_1.go b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_1.go index 6e18e18..7d1b679 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_1.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_1.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_2.go b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_2.go index c3f7ec8..3975909 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_2.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_2.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_3.go b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_3.go index 9317a44..9de2036 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_3.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_3.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_4.go b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_4.go index 0cc3d14..1264017 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_4.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_4.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_4_oauth1_signature_method.go b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_4_oauth1_signature_method.go index d710c66..c9cd9b4 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_4_oauth1_signature_method.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_4_oauth1_signature_method.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,9 +40,9 @@ func (dst *RestAPIOptionsAuthenticationOptionsAnyOf4Oauth1SignatureMethod) Unmar } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *RestAPIOptionsAuthenticationOptionsAnyOf4Oauth1SignatureMethod) MarshalJSON() ([]byte, error) { +func (src RestAPIOptionsAuthenticationOptionsAnyOf4Oauth1SignatureMethod) MarshalJSON() ([]byte, error) { if src.string != nil { - return json.Marshal(&src.string) + return json.Marshal(src.string) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_5.go b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_5.go index 96dc0d0..b34cc76 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_5.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_5.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_6.go b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_6.go index 985e1fd..483301f 100644 --- a/internal/sdk/api/model_rest_api_options_authentication_options_any_of_6.go +++ b/internal/sdk/api/model_rest_api_options_authentication_options_any_of_6.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_role.go b/internal/sdk/api/model_role.go new file mode 100644 index 0000000..d5d8750 --- /dev/null +++ b/internal/sdk/api/model_role.go @@ -0,0 +1,437 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the Role type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Role{} + +// Role struct for Role +type Role struct { + // The id of the role. + Id string `json:"id"` + // The id of the organization + OrganizationId string `json:"organization_id"` + // The name of the role + Name string `json:"name"` + // The description of the role + Description string `json:"description"` + // Whether the role is the default role + IsDefaultRole bool `json:"is_default_role"` + // Whether the role is a migrated legacy role + IsLegacyRole bool `json:"is_legacy_role"` + // The object scopes of the role + ObjectScopes []string `json:"object_scopes"` + // The organization scopes of the role + OrganizationScopes []string `json:"organization_scopes"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _Role Role + +// NewRole instantiates a new Role object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRole(id string, organizationId string, name string, description string, isDefaultRole bool, isLegacyRole bool, objectScopes []string, organizationScopes []string, createdAt string, updatedAt string) *Role { + this := Role{} + this.Id = id + this.OrganizationId = organizationId + this.Name = name + this.Description = description + this.IsDefaultRole = isDefaultRole + this.IsLegacyRole = isLegacyRole + this.ObjectScopes = objectScopes + this.OrganizationScopes = organizationScopes + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewRoleWithDefaults instantiates a new Role object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleWithDefaults() *Role { + this := Role{} + return &this +} + +// GetId returns the Id field value +func (o *Role) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Role) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Role) SetId(v string) { + o.Id = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *Role) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *Role) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *Role) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetName returns the Name field value +func (o *Role) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Role) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Role) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *Role) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *Role) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *Role) SetDescription(v string) { + o.Description = v +} + +// GetIsDefaultRole returns the IsDefaultRole field value +func (o *Role) GetIsDefaultRole() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDefaultRole +} + +// GetIsDefaultRoleOk returns a tuple with the IsDefaultRole field value +// and a boolean to check if the value has been set. +func (o *Role) GetIsDefaultRoleOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDefaultRole, true +} + +// SetIsDefaultRole sets field value +func (o *Role) SetIsDefaultRole(v bool) { + o.IsDefaultRole = v +} + +// GetIsLegacyRole returns the IsLegacyRole field value +func (o *Role) GetIsLegacyRole() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsLegacyRole +} + +// GetIsLegacyRoleOk returns a tuple with the IsLegacyRole field value +// and a boolean to check if the value has been set. +func (o *Role) GetIsLegacyRoleOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsLegacyRole, true +} + +// SetIsLegacyRole sets field value +func (o *Role) SetIsLegacyRole(v bool) { + o.IsLegacyRole = v +} + +// GetObjectScopes returns the ObjectScopes field value +func (o *Role) GetObjectScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.ObjectScopes +} + +// GetObjectScopesOk returns a tuple with the ObjectScopes field value +// and a boolean to check if the value has been set. +func (o *Role) GetObjectScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ObjectScopes, true +} + +// SetObjectScopes sets field value +func (o *Role) SetObjectScopes(v []string) { + o.ObjectScopes = v +} + +// GetOrganizationScopes returns the OrganizationScopes field value +func (o *Role) GetOrganizationScopes() []string { + if o == nil { + var ret []string + return ret + } + + return o.OrganizationScopes +} + +// GetOrganizationScopesOk returns a tuple with the OrganizationScopes field value +// and a boolean to check if the value has been set. +func (o *Role) GetOrganizationScopesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.OrganizationScopes, true +} + +// SetOrganizationScopes sets field value +func (o *Role) SetOrganizationScopes(v []string) { + o.OrganizationScopes = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *Role) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *Role) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *Role) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *Role) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *Role) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *Role) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +func (o Role) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Role) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["organization_id"] = o.OrganizationId + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description + toSerialize["is_default_role"] = o.IsDefaultRole + toSerialize["is_legacy_role"] = o.IsLegacyRole + toSerialize["object_scopes"] = o.ObjectScopes + toSerialize["organization_scopes"] = o.OrganizationScopes + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Role) 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{ + "id", + "organization_id", + "name", + "description", + "is_default_role", + "is_legacy_role", + "object_scopes", + "organization_scopes", + "created_at", + "updated_at", + } + + 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) + } + } + + varRole := _Role{} + + err = json.Unmarshal(data, &varRole) + + if err != nil { + return err + } + + *o = Role(varRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "organization_id") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "is_default_role") + delete(additionalProperties, "is_legacy_role") + delete(additionalProperties, "object_scopes") + delete(additionalProperties, "organization_scopes") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRole struct { + value *Role + isSet bool +} + +func (v NullableRole) Get() *Role { + return v.value +} + +func (v *NullableRole) Set(val *Role) { + v.value = val + v.isSet = true +} + +func (v NullableRole) IsSet() bool { + return v.isSet +} + +func (v *NullableRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRole(val *Role) *NullableRole { + return &NullableRole{value: val, isSet: true} +} + +func (v NullableRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_saml.go b/internal/sdk/api/model_saml.go new file mode 100644 index 0000000..9f33b14 --- /dev/null +++ b/internal/sdk/api/model_saml.go @@ -0,0 +1,678 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SAML type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SAML{} + +// SAML struct for SAML +type SAML struct { + ConfigType string `json:"config_type"` + IdpMetadataXml string `json:"idp_metadata_xml"` + SamlFirstNameAttribute string `json:"saml_first_name_attribute"` + SamlLastNameAttribute string `json:"saml_last_name_attribute"` + SamlGroupsAttribute *string `json:"saml_groups_attribute,omitempty"` + SamlSyncGroupClaims bool `json:"saml_sync_group_claims"` + LdapSyncGroupClaims *bool `json:"ldap_sync_group_claims,omitempty"` + LdapRoleMapping *string `json:"ldap_role_mapping,omitempty"` + LdapServerUrl *string `json:"ldap_server_url,omitempty"` + LdapBaseDomainComponents *string `json:"ldap_base_domain_components,omitempty"` + LdapServerName *string `json:"ldap_server_name,omitempty"` + LdapServerKey *string `json:"ldap_server_key,omitempty"` + LdapServerCertificate *string `json:"ldap_server_certificate,omitempty"` + JitEnabled bool `json:"jit_enabled"` + RestrictedDomain *string `json:"restricted_domain,omitempty"` + TriggerLoginAutomatically bool `json:"trigger_login_automatically"` + DisableEmailPasswordLogin bool `json:"disable_email_password_login"` +} + +type _SAML SAML + +// NewSAML instantiates a new SAML object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSAML(configType string, idpMetadataXml string, samlFirstNameAttribute string, samlLastNameAttribute string, samlSyncGroupClaims bool, jitEnabled bool, triggerLoginAutomatically bool, disableEmailPasswordLogin bool) *SAML { + this := SAML{} + this.ConfigType = configType + this.IdpMetadataXml = idpMetadataXml + this.SamlFirstNameAttribute = samlFirstNameAttribute + this.SamlLastNameAttribute = samlLastNameAttribute + this.SamlSyncGroupClaims = samlSyncGroupClaims + this.JitEnabled = jitEnabled + this.TriggerLoginAutomatically = triggerLoginAutomatically + this.DisableEmailPasswordLogin = disableEmailPasswordLogin + return &this +} + +// NewSAMLWithDefaults instantiates a new SAML object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSAMLWithDefaults() *SAML { + this := SAML{} + return &this +} + +// GetConfigType returns the ConfigType field value +func (o *SAML) GetConfigType() string { + if o == nil { + var ret string + return ret + } + + return o.ConfigType +} + +// GetConfigTypeOk returns a tuple with the ConfigType field value +// and a boolean to check if the value has been set. +func (o *SAML) GetConfigTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConfigType, true +} + +// SetConfigType sets field value +func (o *SAML) SetConfigType(v string) { + o.ConfigType = v +} + +// GetIdpMetadataXml returns the IdpMetadataXml field value +func (o *SAML) GetIdpMetadataXml() string { + if o == nil { + var ret string + return ret + } + + return o.IdpMetadataXml +} + +// GetIdpMetadataXmlOk returns a tuple with the IdpMetadataXml field value +// and a boolean to check if the value has been set. +func (o *SAML) GetIdpMetadataXmlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IdpMetadataXml, true +} + +// SetIdpMetadataXml sets field value +func (o *SAML) SetIdpMetadataXml(v string) { + o.IdpMetadataXml = v +} + +// GetSamlFirstNameAttribute returns the SamlFirstNameAttribute field value +func (o *SAML) GetSamlFirstNameAttribute() string { + if o == nil { + var ret string + return ret + } + + return o.SamlFirstNameAttribute +} + +// GetSamlFirstNameAttributeOk returns a tuple with the SamlFirstNameAttribute field value +// and a boolean to check if the value has been set. +func (o *SAML) GetSamlFirstNameAttributeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SamlFirstNameAttribute, true +} + +// SetSamlFirstNameAttribute sets field value +func (o *SAML) SetSamlFirstNameAttribute(v string) { + o.SamlFirstNameAttribute = v +} + +// GetSamlLastNameAttribute returns the SamlLastNameAttribute field value +func (o *SAML) GetSamlLastNameAttribute() string { + if o == nil { + var ret string + return ret + } + + return o.SamlLastNameAttribute +} + +// GetSamlLastNameAttributeOk returns a tuple with the SamlLastNameAttribute field value +// and a boolean to check if the value has been set. +func (o *SAML) GetSamlLastNameAttributeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SamlLastNameAttribute, true +} + +// SetSamlLastNameAttribute sets field value +func (o *SAML) SetSamlLastNameAttribute(v string) { + o.SamlLastNameAttribute = v +} + +// GetSamlGroupsAttribute returns the SamlGroupsAttribute field value if set, zero value otherwise. +func (o *SAML) GetSamlGroupsAttribute() string { + if o == nil || IsNil(o.SamlGroupsAttribute) { + var ret string + return ret + } + return *o.SamlGroupsAttribute +} + +// GetSamlGroupsAttributeOk returns a tuple with the SamlGroupsAttribute field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetSamlGroupsAttributeOk() (*string, bool) { + if o == nil || IsNil(o.SamlGroupsAttribute) { + return nil, false + } + return o.SamlGroupsAttribute, true +} + +// HasSamlGroupsAttribute returns a boolean if a field has been set. +func (o *SAML) HasSamlGroupsAttribute() bool { + if o != nil && !IsNil(o.SamlGroupsAttribute) { + return true + } + + return false +} + +// SetSamlGroupsAttribute gets a reference to the given string and assigns it to the SamlGroupsAttribute field. +func (o *SAML) SetSamlGroupsAttribute(v string) { + o.SamlGroupsAttribute = &v +} + +// GetSamlSyncGroupClaims returns the SamlSyncGroupClaims field value +func (o *SAML) GetSamlSyncGroupClaims() bool { + if o == nil { + var ret bool + return ret + } + + return o.SamlSyncGroupClaims +} + +// GetSamlSyncGroupClaimsOk returns a tuple with the SamlSyncGroupClaims field value +// and a boolean to check if the value has been set. +func (o *SAML) GetSamlSyncGroupClaimsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.SamlSyncGroupClaims, true +} + +// SetSamlSyncGroupClaims sets field value +func (o *SAML) SetSamlSyncGroupClaims(v bool) { + o.SamlSyncGroupClaims = v +} + +// GetLdapSyncGroupClaims returns the LdapSyncGroupClaims field value if set, zero value otherwise. +func (o *SAML) GetLdapSyncGroupClaims() bool { + if o == nil || IsNil(o.LdapSyncGroupClaims) { + var ret bool + return ret + } + return *o.LdapSyncGroupClaims +} + +// GetLdapSyncGroupClaimsOk returns a tuple with the LdapSyncGroupClaims field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetLdapSyncGroupClaimsOk() (*bool, bool) { + if o == nil || IsNil(o.LdapSyncGroupClaims) { + return nil, false + } + return o.LdapSyncGroupClaims, true +} + +// HasLdapSyncGroupClaims returns a boolean if a field has been set. +func (o *SAML) HasLdapSyncGroupClaims() bool { + if o != nil && !IsNil(o.LdapSyncGroupClaims) { + return true + } + + return false +} + +// SetLdapSyncGroupClaims gets a reference to the given bool and assigns it to the LdapSyncGroupClaims field. +func (o *SAML) SetLdapSyncGroupClaims(v bool) { + o.LdapSyncGroupClaims = &v +} + +// GetLdapRoleMapping returns the LdapRoleMapping field value if set, zero value otherwise. +func (o *SAML) GetLdapRoleMapping() string { + if o == nil || IsNil(o.LdapRoleMapping) { + var ret string + return ret + } + return *o.LdapRoleMapping +} + +// GetLdapRoleMappingOk returns a tuple with the LdapRoleMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetLdapRoleMappingOk() (*string, bool) { + if o == nil || IsNil(o.LdapRoleMapping) { + return nil, false + } + return o.LdapRoleMapping, true +} + +// HasLdapRoleMapping returns a boolean if a field has been set. +func (o *SAML) HasLdapRoleMapping() bool { + if o != nil && !IsNil(o.LdapRoleMapping) { + return true + } + + return false +} + +// SetLdapRoleMapping gets a reference to the given string and assigns it to the LdapRoleMapping field. +func (o *SAML) SetLdapRoleMapping(v string) { + o.LdapRoleMapping = &v +} + +// GetLdapServerUrl returns the LdapServerUrl field value if set, zero value otherwise. +func (o *SAML) GetLdapServerUrl() string { + if o == nil || IsNil(o.LdapServerUrl) { + var ret string + return ret + } + return *o.LdapServerUrl +} + +// GetLdapServerUrlOk returns a tuple with the LdapServerUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetLdapServerUrlOk() (*string, bool) { + if o == nil || IsNil(o.LdapServerUrl) { + return nil, false + } + return o.LdapServerUrl, true +} + +// HasLdapServerUrl returns a boolean if a field has been set. +func (o *SAML) HasLdapServerUrl() bool { + if o != nil && !IsNil(o.LdapServerUrl) { + return true + } + + return false +} + +// SetLdapServerUrl gets a reference to the given string and assigns it to the LdapServerUrl field. +func (o *SAML) SetLdapServerUrl(v string) { + o.LdapServerUrl = &v +} + +// GetLdapBaseDomainComponents returns the LdapBaseDomainComponents field value if set, zero value otherwise. +func (o *SAML) GetLdapBaseDomainComponents() string { + if o == nil || IsNil(o.LdapBaseDomainComponents) { + var ret string + return ret + } + return *o.LdapBaseDomainComponents +} + +// GetLdapBaseDomainComponentsOk returns a tuple with the LdapBaseDomainComponents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetLdapBaseDomainComponentsOk() (*string, bool) { + if o == nil || IsNil(o.LdapBaseDomainComponents) { + return nil, false + } + return o.LdapBaseDomainComponents, true +} + +// HasLdapBaseDomainComponents returns a boolean if a field has been set. +func (o *SAML) HasLdapBaseDomainComponents() bool { + if o != nil && !IsNil(o.LdapBaseDomainComponents) { + return true + } + + return false +} + +// SetLdapBaseDomainComponents gets a reference to the given string and assigns it to the LdapBaseDomainComponents field. +func (o *SAML) SetLdapBaseDomainComponents(v string) { + o.LdapBaseDomainComponents = &v +} + +// GetLdapServerName returns the LdapServerName field value if set, zero value otherwise. +func (o *SAML) GetLdapServerName() string { + if o == nil || IsNil(o.LdapServerName) { + var ret string + return ret + } + return *o.LdapServerName +} + +// GetLdapServerNameOk returns a tuple with the LdapServerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetLdapServerNameOk() (*string, bool) { + if o == nil || IsNil(o.LdapServerName) { + return nil, false + } + return o.LdapServerName, true +} + +// HasLdapServerName returns a boolean if a field has been set. +func (o *SAML) HasLdapServerName() bool { + if o != nil && !IsNil(o.LdapServerName) { + return true + } + + return false +} + +// SetLdapServerName gets a reference to the given string and assigns it to the LdapServerName field. +func (o *SAML) SetLdapServerName(v string) { + o.LdapServerName = &v +} + +// GetLdapServerKey returns the LdapServerKey field value if set, zero value otherwise. +func (o *SAML) GetLdapServerKey() string { + if o == nil || IsNil(o.LdapServerKey) { + var ret string + return ret + } + return *o.LdapServerKey +} + +// GetLdapServerKeyOk returns a tuple with the LdapServerKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetLdapServerKeyOk() (*string, bool) { + if o == nil || IsNil(o.LdapServerKey) { + return nil, false + } + return o.LdapServerKey, true +} + +// HasLdapServerKey returns a boolean if a field has been set. +func (o *SAML) HasLdapServerKey() bool { + if o != nil && !IsNil(o.LdapServerKey) { + return true + } + + return false +} + +// SetLdapServerKey gets a reference to the given string and assigns it to the LdapServerKey field. +func (o *SAML) SetLdapServerKey(v string) { + o.LdapServerKey = &v +} + +// GetLdapServerCertificate returns the LdapServerCertificate field value if set, zero value otherwise. +func (o *SAML) GetLdapServerCertificate() string { + if o == nil || IsNil(o.LdapServerCertificate) { + var ret string + return ret + } + return *o.LdapServerCertificate +} + +// GetLdapServerCertificateOk returns a tuple with the LdapServerCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetLdapServerCertificateOk() (*string, bool) { + if o == nil || IsNil(o.LdapServerCertificate) { + return nil, false + } + return o.LdapServerCertificate, true +} + +// HasLdapServerCertificate returns a boolean if a field has been set. +func (o *SAML) HasLdapServerCertificate() bool { + if o != nil && !IsNil(o.LdapServerCertificate) { + return true + } + + return false +} + +// SetLdapServerCertificate gets a reference to the given string and assigns it to the LdapServerCertificate field. +func (o *SAML) SetLdapServerCertificate(v string) { + o.LdapServerCertificate = &v +} + +// GetJitEnabled returns the JitEnabled field value +func (o *SAML) GetJitEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.JitEnabled +} + +// GetJitEnabledOk returns a tuple with the JitEnabled field value +// and a boolean to check if the value has been set. +func (o *SAML) GetJitEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.JitEnabled, true +} + +// SetJitEnabled sets field value +func (o *SAML) SetJitEnabled(v bool) { + o.JitEnabled = v +} + +// GetRestrictedDomain returns the RestrictedDomain field value if set, zero value otherwise. +func (o *SAML) GetRestrictedDomain() string { + if o == nil || IsNil(o.RestrictedDomain) { + var ret string + return ret + } + return *o.RestrictedDomain +} + +// GetRestrictedDomainOk returns a tuple with the RestrictedDomain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SAML) GetRestrictedDomainOk() (*string, bool) { + if o == nil || IsNil(o.RestrictedDomain) { + return nil, false + } + return o.RestrictedDomain, true +} + +// HasRestrictedDomain returns a boolean if a field has been set. +func (o *SAML) HasRestrictedDomain() bool { + if o != nil && !IsNil(o.RestrictedDomain) { + return true + } + + return false +} + +// SetRestrictedDomain gets a reference to the given string and assigns it to the RestrictedDomain field. +func (o *SAML) SetRestrictedDomain(v string) { + o.RestrictedDomain = &v +} + +// GetTriggerLoginAutomatically returns the TriggerLoginAutomatically field value +func (o *SAML) GetTriggerLoginAutomatically() bool { + if o == nil { + var ret bool + return ret + } + + return o.TriggerLoginAutomatically +} + +// GetTriggerLoginAutomaticallyOk returns a tuple with the TriggerLoginAutomatically field value +// and a boolean to check if the value has been set. +func (o *SAML) GetTriggerLoginAutomaticallyOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TriggerLoginAutomatically, true +} + +// SetTriggerLoginAutomatically sets field value +func (o *SAML) SetTriggerLoginAutomatically(v bool) { + o.TriggerLoginAutomatically = v +} + +// GetDisableEmailPasswordLogin returns the DisableEmailPasswordLogin field value +func (o *SAML) GetDisableEmailPasswordLogin() bool { + if o == nil { + var ret bool + return ret + } + + return o.DisableEmailPasswordLogin +} + +// GetDisableEmailPasswordLoginOk returns a tuple with the DisableEmailPasswordLogin field value +// and a boolean to check if the value has been set. +func (o *SAML) GetDisableEmailPasswordLoginOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DisableEmailPasswordLogin, true +} + +// SetDisableEmailPasswordLogin sets field value +func (o *SAML) SetDisableEmailPasswordLogin(v bool) { + o.DisableEmailPasswordLogin = v +} + +func (o SAML) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SAML) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config_type"] = o.ConfigType + toSerialize["idp_metadata_xml"] = o.IdpMetadataXml + toSerialize["saml_first_name_attribute"] = o.SamlFirstNameAttribute + toSerialize["saml_last_name_attribute"] = o.SamlLastNameAttribute + if !IsNil(o.SamlGroupsAttribute) { + toSerialize["saml_groups_attribute"] = o.SamlGroupsAttribute + } + toSerialize["saml_sync_group_claims"] = o.SamlSyncGroupClaims + if !IsNil(o.LdapSyncGroupClaims) { + toSerialize["ldap_sync_group_claims"] = o.LdapSyncGroupClaims + } + if !IsNil(o.LdapRoleMapping) { + toSerialize["ldap_role_mapping"] = o.LdapRoleMapping + } + if !IsNil(o.LdapServerUrl) { + toSerialize["ldap_server_url"] = o.LdapServerUrl + } + if !IsNil(o.LdapBaseDomainComponents) { + toSerialize["ldap_base_domain_components"] = o.LdapBaseDomainComponents + } + if !IsNil(o.LdapServerName) { + toSerialize["ldap_server_name"] = o.LdapServerName + } + if !IsNil(o.LdapServerKey) { + toSerialize["ldap_server_key"] = o.LdapServerKey + } + if !IsNil(o.LdapServerCertificate) { + toSerialize["ldap_server_certificate"] = o.LdapServerCertificate + } + toSerialize["jit_enabled"] = o.JitEnabled + if !IsNil(o.RestrictedDomain) { + toSerialize["restricted_domain"] = o.RestrictedDomain + } + toSerialize["trigger_login_automatically"] = o.TriggerLoginAutomatically + toSerialize["disable_email_password_login"] = o.DisableEmailPasswordLogin + return toSerialize, nil +} + +func (o *SAML) 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{ + "config_type", + "idp_metadata_xml", + "saml_first_name_attribute", + "saml_last_name_attribute", + "saml_sync_group_claims", + "jit_enabled", + "trigger_login_automatically", + "disable_email_password_login", + } + + 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) + } + } + + varSAML := _SAML{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSAML) + + if err != nil { + return err + } + + *o = SAML(varSAML) + + return err +} + +type NullableSAML struct { + value *SAML + isSet bool +} + +func (v NullableSAML) Get() *SAML { + return v.value +} + +func (v *NullableSAML) Set(val *SAML) { + v.value = val + v.isSet = true +} + +func (v NullableSAML) IsSet() bool { + return v.isSet +} + +func (v *NullableSAML) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSAML(val *SAML) *NullableSAML { + return &NullableSAML{value: val, isSet: true} +} + +func (v NullableSAML) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSAML) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_snowflake_options.go b/internal/sdk/api/model_snowflake_options.go index aacf48a..6f603ef 100644 --- a/internal/sdk/api/model_snowflake_options.go +++ b/internal/sdk/api/model_snowflake_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_snowflake_options_authentication_options.go b/internal/sdk/api/model_snowflake_options_authentication_options.go index 3db55cf..69fbb85 100644 --- a/internal/sdk/api/model_snowflake_options_authentication_options.go +++ b/internal/sdk/api/model_snowflake_options_authentication_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -68,17 +68,17 @@ func (dst *SnowflakeOptionsAuthenticationOptions) UnmarshalJSON(data []byte) err } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *SnowflakeOptionsAuthenticationOptions) MarshalJSON() ([]byte, error) { +func (src SnowflakeOptionsAuthenticationOptions) MarshalJSON() ([]byte, error) { if src.SnowflakeOptionsAuthenticationOptionsAnyOf != nil { - return json.Marshal(&src.SnowflakeOptionsAuthenticationOptionsAnyOf) + return json.Marshal(src.SnowflakeOptionsAuthenticationOptionsAnyOf) } if src.SnowflakeOptionsAuthenticationOptionsAnyOf1 != nil { - return json.Marshal(&src.SnowflakeOptionsAuthenticationOptionsAnyOf1) + return json.Marshal(src.SnowflakeOptionsAuthenticationOptionsAnyOf1) } if src.SnowflakeOptionsAuthenticationOptionsAnyOf2 != nil { - return json.Marshal(&src.SnowflakeOptionsAuthenticationOptionsAnyOf2) + return json.Marshal(src.SnowflakeOptionsAuthenticationOptionsAnyOf2) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model_snowflake_options_authentication_options_any_of.go b/internal/sdk/api/model_snowflake_options_authentication_options_any_of.go index 735b8f1..21d001f 100644 --- a/internal/sdk/api/model_snowflake_options_authentication_options_any_of.go +++ b/internal/sdk/api/model_snowflake_options_authentication_options_any_of.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_snowflake_options_authentication_options_any_of_1.go b/internal/sdk/api/model_snowflake_options_authentication_options_any_of_1.go index c6a5352..f129161 100644 --- a/internal/sdk/api/model_snowflake_options_authentication_options_any_of_1.go +++ b/internal/sdk/api/model_snowflake_options_authentication_options_any_of_1.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_snowflake_options_authentication_options_any_of_2.go b/internal/sdk/api/model_snowflake_options_authentication_options_any_of_2.go index fdfb3cc..c1d1116 100644 --- a/internal/sdk/api/model_snowflake_options_authentication_options_any_of_2.go +++ b/internal/sdk/api/model_snowflake_options_authentication_options_any_of_2.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_snowflake_options_database_options.go b/internal/sdk/api/model_snowflake_options_database_options.go index 9a407fc..5eceaa1 100644 --- a/internal/sdk/api/model_snowflake_options_database_options.go +++ b/internal/sdk/api/model_snowflake_options_database_options.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_source_control_configuration.go b/internal/sdk/api/model_source_control_configuration.go index ca152c6..6444225 100644 --- a/internal/sdk/api/model_source_control_configuration.go +++ b/internal/sdk/api/model_source_control_configuration.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,106 +15,106 @@ import ( "fmt" ) -// SourceControlConfiguration This object represents the Source Control provider configuration for the organization or space. See https://docs.retool.com/source-control for more information. +// SourceControlConfiguration This object represents the Source Control provider configuration for the organization or space. See [docs](https://docs.retool.com/source-control) for more information. type SourceControlConfiguration struct { - SourceControlConfigGet200ResponseDataOneOf1 *SourceControlConfigGet200ResponseDataOneOf1 - SourceControlConfigGet200ResponseDataOneOf2 *SourceControlConfigGet200ResponseDataOneOf2 - SourceControlConfigGet200ResponseDataOneOf3 *SourceControlConfigGet200ResponseDataOneOf3 - SourceControlConfigGet200ResponseDataOneOf4 *SourceControlConfigGet200ResponseDataOneOf4 - SourceControlConfigurationAnyOf *SourceControlConfigurationAnyOf + AWSCodeCommit *AWSCodeCommit + AzureRepos *AzureRepos + Bitbucket *Bitbucket + GitHub *GitHub + GitLab *GitLab } // Unmarshal JSON data into any of the pointers in the struct func (dst *SourceControlConfiguration) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into SourceControlConfigGet200ResponseDataOneOf1 - err = json.Unmarshal(data, &dst.SourceControlConfigGet200ResponseDataOneOf1); + // try to unmarshal JSON data into AWSCodeCommit + err = json.Unmarshal(data, &dst.AWSCodeCommit); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf1, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf1) - if string(jsonSourceControlConfigGet200ResponseDataOneOf1) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + jsonAWSCodeCommit, _ := json.Marshal(dst.AWSCodeCommit) + if string(jsonAWSCodeCommit) == "{}" { // empty struct + dst.AWSCodeCommit = nil } else { - return nil // data stored in dst.SourceControlConfigGet200ResponseDataOneOf1, return on the first match + return nil // data stored in dst.AWSCodeCommit, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf1 = nil + dst.AWSCodeCommit = nil } - // try to unmarshal JSON data into SourceControlConfigGet200ResponseDataOneOf2 - err = json.Unmarshal(data, &dst.SourceControlConfigGet200ResponseDataOneOf2); + // try to unmarshal JSON data into AzureRepos + err = json.Unmarshal(data, &dst.AzureRepos); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf2, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf2) - if string(jsonSourceControlConfigGet200ResponseDataOneOf2) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + jsonAzureRepos, _ := json.Marshal(dst.AzureRepos) + if string(jsonAzureRepos) == "{}" { // empty struct + dst.AzureRepos = nil } else { - return nil // data stored in dst.SourceControlConfigGet200ResponseDataOneOf2, return on the first match + return nil // data stored in dst.AzureRepos, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf2 = nil + dst.AzureRepos = nil } - // try to unmarshal JSON data into SourceControlConfigGet200ResponseDataOneOf3 - err = json.Unmarshal(data, &dst.SourceControlConfigGet200ResponseDataOneOf3); + // try to unmarshal JSON data into Bitbucket + err = json.Unmarshal(data, &dst.Bitbucket); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf3, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf3) - if string(jsonSourceControlConfigGet200ResponseDataOneOf3) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + jsonBitbucket, _ := json.Marshal(dst.Bitbucket) + if string(jsonBitbucket) == "{}" { // empty struct + dst.Bitbucket = nil } else { - return nil // data stored in dst.SourceControlConfigGet200ResponseDataOneOf3, return on the first match + return nil // data stored in dst.Bitbucket, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf3 = nil + dst.Bitbucket = nil } - // try to unmarshal JSON data into SourceControlConfigGet200ResponseDataOneOf4 - err = json.Unmarshal(data, &dst.SourceControlConfigGet200ResponseDataOneOf4); + // try to unmarshal JSON data into GitHub + err = json.Unmarshal(data, &dst.GitHub); if err == nil { - jsonSourceControlConfigGet200ResponseDataOneOf4, _ := json.Marshal(dst.SourceControlConfigGet200ResponseDataOneOf4) - if string(jsonSourceControlConfigGet200ResponseDataOneOf4) == "{}" { // empty struct - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + jsonGitHub, _ := json.Marshal(dst.GitHub) + if string(jsonGitHub) == "{}" { // empty struct + dst.GitHub = nil } else { - return nil // data stored in dst.SourceControlConfigGet200ResponseDataOneOf4, return on the first match + return nil // data stored in dst.GitHub, return on the first match } } else { - dst.SourceControlConfigGet200ResponseDataOneOf4 = nil + dst.GitHub = nil } - // try to unmarshal JSON data into SourceControlConfigurationAnyOf - err = json.Unmarshal(data, &dst.SourceControlConfigurationAnyOf); + // try to unmarshal JSON data into GitLab + err = json.Unmarshal(data, &dst.GitLab); if err == nil { - jsonSourceControlConfigurationAnyOf, _ := json.Marshal(dst.SourceControlConfigurationAnyOf) - if string(jsonSourceControlConfigurationAnyOf) == "{}" { // empty struct - dst.SourceControlConfigurationAnyOf = nil + jsonGitLab, _ := json.Marshal(dst.GitLab) + if string(jsonGitLab) == "{}" { // empty struct + dst.GitLab = nil } else { - return nil // data stored in dst.SourceControlConfigurationAnyOf, return on the first match + return nil // data stored in dst.GitLab, return on the first match } } else { - dst.SourceControlConfigurationAnyOf = nil + dst.GitLab = nil } return fmt.Errorf("data failed to match schemas in anyOf(SourceControlConfiguration)") } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *SourceControlConfiguration) MarshalJSON() ([]byte, error) { - if src.SourceControlConfigGet200ResponseDataOneOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf1) +func (src SourceControlConfiguration) MarshalJSON() ([]byte, error) { + if src.AWSCodeCommit != nil { + return json.Marshal(src.AWSCodeCommit) } - if src.SourceControlConfigGet200ResponseDataOneOf2 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf2) + if src.AzureRepos != nil { + return json.Marshal(src.AzureRepos) } - if src.SourceControlConfigGet200ResponseDataOneOf3 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf3) + if src.Bitbucket != nil { + return json.Marshal(src.Bitbucket) } - if src.SourceControlConfigGet200ResponseDataOneOf4 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOf4) + if src.GitHub != nil { + return json.Marshal(src.GitHub) } - if src.SourceControlConfigurationAnyOf != nil { - return json.Marshal(&src.SourceControlConfigurationAnyOf) + if src.GitLab != nil { + return json.Marshal(src.GitLab) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model_source_control_configuration_any_of_config.go b/internal/sdk/api/model_source_control_configuration_any_of_config.go index 43d34e0..e07d30d 100644 --- a/internal/sdk/api/model_source_control_configuration_any_of_config.go +++ b/internal/sdk/api/model_source_control_configuration_any_of_config.go @@ -54,13 +54,13 @@ func (dst *SourceControlConfigurationAnyOfConfig) UnmarshalJSON(data []byte) err } // Marshal data from the first non-nil pointers in the struct to JSON -func (src *SourceControlConfigurationAnyOfConfig) MarshalJSON() ([]byte, error) { +func (src SourceControlConfigurationAnyOfConfig) MarshalJSON() ([]byte, error) { if src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf) + return json.Marshal(src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf) } if src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1 != nil { - return json.Marshal(&src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1) + return json.Marshal(src.SourceControlConfigGet200ResponseDataOneOfConfigOneOf1) } return nil, nil // no data in anyOf schemas diff --git a/internal/sdk/api/model_source_control_settings.go b/internal/sdk/api/model_source_control_settings.go index fb4d69b..8bcaf9f 100644 --- a/internal/sdk/api/model_source_control_settings.go +++ b/internal/sdk/api/model_source_control_settings.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,8 @@ type SourceControlSettings struct { VersionControlLocked bool `json:"version_control_locked"` // When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false. ForceUuidMapping bool `json:"force_uuid_mapping"` + // When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true. + AutoCleanupBranchesEnabled bool `json:"auto_cleanup_branches_enabled"` AdditionalProperties map[string]interface{} } @@ -39,13 +41,14 @@ type _SourceControlSettings SourceControlSettings // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSourceControlSettings(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool) *SourceControlSettings { +func NewSourceControlSettings(autoBranchNamingEnabled bool, customPullRequestTemplateEnabled bool, customPullRequestTemplate string, versionControlLocked bool, forceUuidMapping bool, autoCleanupBranchesEnabled bool) *SourceControlSettings { this := SourceControlSettings{} this.AutoBranchNamingEnabled = autoBranchNamingEnabled this.CustomPullRequestTemplateEnabled = customPullRequestTemplateEnabled this.CustomPullRequestTemplate = customPullRequestTemplate this.VersionControlLocked = versionControlLocked this.ForceUuidMapping = forceUuidMapping + this.AutoCleanupBranchesEnabled = autoCleanupBranchesEnabled return &this } @@ -177,6 +180,30 @@ func (o *SourceControlSettings) SetForceUuidMapping(v bool) { o.ForceUuidMapping = v } +// GetAutoCleanupBranchesEnabled returns the AutoCleanupBranchesEnabled field value +func (o *SourceControlSettings) GetAutoCleanupBranchesEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AutoCleanupBranchesEnabled +} + +// GetAutoCleanupBranchesEnabledOk returns a tuple with the AutoCleanupBranchesEnabled field value +// and a boolean to check if the value has been set. +func (o *SourceControlSettings) GetAutoCleanupBranchesEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AutoCleanupBranchesEnabled, true +} + +// SetAutoCleanupBranchesEnabled sets field value +func (o *SourceControlSettings) SetAutoCleanupBranchesEnabled(v bool) { + o.AutoCleanupBranchesEnabled = v +} + func (o SourceControlSettings) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -192,6 +219,7 @@ func (o SourceControlSettings) ToMap() (map[string]interface{}, error) { toSerialize["custom_pull_request_template"] = o.CustomPullRequestTemplate toSerialize["version_control_locked"] = o.VersionControlLocked toSerialize["force_uuid_mapping"] = o.ForceUuidMapping + toSerialize["auto_cleanup_branches_enabled"] = o.AutoCleanupBranchesEnabled for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -210,6 +238,7 @@ func (o *SourceControlSettings) UnmarshalJSON(data []byte) (err error) { "custom_pull_request_template", "version_control_locked", "force_uuid_mapping", + "auto_cleanup_branches_enabled", } allProperties := make(map[string]interface{}) @@ -244,6 +273,7 @@ func (o *SourceControlSettings) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "custom_pull_request_template") delete(additionalProperties, "version_control_locked") delete(additionalProperties, "force_uuid_mapping") + delete(additionalProperties, "auto_cleanup_branches_enabled") o.AdditionalProperties = additionalProperties } diff --git a/internal/sdk/api/model_space.go b/internal/sdk/api/model_space.go index c620fdc..eb40ed9 100644 --- a/internal/sdk/api/model_space.go +++ b/internal/sdk/api/model_space.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_sso_configuration.go b/internal/sdk/api/model_sso_configuration.go index e1ae3e4..f442ba2 100644 --- a/internal/sdk/api/model_sso_configuration.go +++ b/internal/sdk/api/model_sso_configuration.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,47 +15,47 @@ import ( "fmt" ) -// SsoConfiguration - This object represents the SSO configuration for an organization or space. See https://docs.retool.com/sso for more information. +// SsoConfiguration - This object represents the SSO configuration for an organization or space. See [docs](https://docs.retool.com/sso) for more information. type SsoConfiguration struct { - SsoConfigPostRequestDataOneOf *SsoConfigPostRequestDataOneOf - SsoConfigPostRequestDataOneOf1 *SsoConfigPostRequestDataOneOf1 - SsoConfigPostRequestDataOneOf2 *SsoConfigPostRequestDataOneOf2 - SsoConfigPostRequestDataOneOf3 *SsoConfigPostRequestDataOneOf3 - SsoConfigPostRequestDataOneOf4 *SsoConfigPostRequestDataOneOf4 + Google *Google + GoogleOIDC *GoogleOIDC + GoogleSAML *GoogleSAML + OIDC *OIDC + SAML *SAML } -// SsoConfigPostRequestDataOneOfAsSsoConfiguration is a convenience function that returns SsoConfigPostRequestDataOneOf wrapped in SsoConfiguration -func SsoConfigPostRequestDataOneOfAsSsoConfiguration(v *SsoConfigPostRequestDataOneOf) SsoConfiguration { +// GoogleAsSsoConfiguration is a convenience function that returns Google wrapped in SsoConfiguration +func GoogleAsSsoConfiguration(v *Google) SsoConfiguration { return SsoConfiguration{ - SsoConfigPostRequestDataOneOf: v, + Google: v, } } -// SsoConfigPostRequestDataOneOf1AsSsoConfiguration is a convenience function that returns SsoConfigPostRequestDataOneOf1 wrapped in SsoConfiguration -func SsoConfigPostRequestDataOneOf1AsSsoConfiguration(v *SsoConfigPostRequestDataOneOf1) SsoConfiguration { +// GoogleOIDCAsSsoConfiguration is a convenience function that returns GoogleOIDC wrapped in SsoConfiguration +func GoogleOIDCAsSsoConfiguration(v *GoogleOIDC) SsoConfiguration { return SsoConfiguration{ - SsoConfigPostRequestDataOneOf1: v, + GoogleOIDC: v, } } -// SsoConfigPostRequestDataOneOf2AsSsoConfiguration is a convenience function that returns SsoConfigPostRequestDataOneOf2 wrapped in SsoConfiguration -func SsoConfigPostRequestDataOneOf2AsSsoConfiguration(v *SsoConfigPostRequestDataOneOf2) SsoConfiguration { +// GoogleSAMLAsSsoConfiguration is a convenience function that returns GoogleSAML wrapped in SsoConfiguration +func GoogleSAMLAsSsoConfiguration(v *GoogleSAML) SsoConfiguration { return SsoConfiguration{ - SsoConfigPostRequestDataOneOf2: v, + GoogleSAML: v, } } -// SsoConfigPostRequestDataOneOf3AsSsoConfiguration is a convenience function that returns SsoConfigPostRequestDataOneOf3 wrapped in SsoConfiguration -func SsoConfigPostRequestDataOneOf3AsSsoConfiguration(v *SsoConfigPostRequestDataOneOf3) SsoConfiguration { +// OIDCAsSsoConfiguration is a convenience function that returns OIDC wrapped in SsoConfiguration +func OIDCAsSsoConfiguration(v *OIDC) SsoConfiguration { return SsoConfiguration{ - SsoConfigPostRequestDataOneOf3: v, + OIDC: v, } } -// SsoConfigPostRequestDataOneOf4AsSsoConfiguration is a convenience function that returns SsoConfigPostRequestDataOneOf4 wrapped in SsoConfiguration -func SsoConfigPostRequestDataOneOf4AsSsoConfiguration(v *SsoConfigPostRequestDataOneOf4) SsoConfiguration { +// SAMLAsSsoConfiguration is a convenience function that returns SAML wrapped in SsoConfiguration +func SAMLAsSsoConfiguration(v *SAML) SsoConfiguration { return SsoConfiguration{ - SsoConfigPostRequestDataOneOf4: v, + SAML: v, } } @@ -64,78 +64,78 @@ func SsoConfigPostRequestDataOneOf4AsSsoConfiguration(v *SsoConfigPostRequestDat func (dst *SsoConfiguration) UnmarshalJSON(data []byte) error { var err error match := 0 - // try to unmarshal data into SsoConfigPostRequestDataOneOf - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf) + // try to unmarshal data into Google + err = newStrictDecoder(data).Decode(&dst.Google) if err == nil { - jsonSsoConfigPostRequestDataOneOf, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf) - if string(jsonSsoConfigPostRequestDataOneOf) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf = nil + jsonGoogle, _ := json.Marshal(dst.Google) + if string(jsonGoogle) == "{}" { // empty struct + dst.Google = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf = nil + dst.Google = nil } - // try to unmarshal data into SsoConfigPostRequestDataOneOf1 - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf1) + // try to unmarshal data into GoogleOIDC + err = newStrictDecoder(data).Decode(&dst.GoogleOIDC) if err == nil { - jsonSsoConfigPostRequestDataOneOf1, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf1) - if string(jsonSsoConfigPostRequestDataOneOf1) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf1 = nil + jsonGoogleOIDC, _ := json.Marshal(dst.GoogleOIDC) + if string(jsonGoogleOIDC) == "{}" { // empty struct + dst.GoogleOIDC = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf1 = nil + dst.GoogleOIDC = nil } - // try to unmarshal data into SsoConfigPostRequestDataOneOf2 - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf2) + // try to unmarshal data into GoogleSAML + err = newStrictDecoder(data).Decode(&dst.GoogleSAML) if err == nil { - jsonSsoConfigPostRequestDataOneOf2, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf2) - if string(jsonSsoConfigPostRequestDataOneOf2) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf2 = nil + jsonGoogleSAML, _ := json.Marshal(dst.GoogleSAML) + if string(jsonGoogleSAML) == "{}" { // empty struct + dst.GoogleSAML = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf2 = nil + dst.GoogleSAML = nil } - // try to unmarshal data into SsoConfigPostRequestDataOneOf3 - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf3) + // try to unmarshal data into OIDC + err = newStrictDecoder(data).Decode(&dst.OIDC) if err == nil { - jsonSsoConfigPostRequestDataOneOf3, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf3) - if string(jsonSsoConfigPostRequestDataOneOf3) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf3 = nil + jsonOIDC, _ := json.Marshal(dst.OIDC) + if string(jsonOIDC) == "{}" { // empty struct + dst.OIDC = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf3 = nil + dst.OIDC = nil } - // try to unmarshal data into SsoConfigPostRequestDataOneOf4 - err = newStrictDecoder(data).Decode(&dst.SsoConfigPostRequestDataOneOf4) + // try to unmarshal data into SAML + err = newStrictDecoder(data).Decode(&dst.SAML) if err == nil { - jsonSsoConfigPostRequestDataOneOf4, _ := json.Marshal(dst.SsoConfigPostRequestDataOneOf4) - if string(jsonSsoConfigPostRequestDataOneOf4) == "{}" { // empty struct - dst.SsoConfigPostRequestDataOneOf4 = nil + jsonSAML, _ := json.Marshal(dst.SAML) + if string(jsonSAML) == "{}" { // empty struct + dst.SAML = nil } else { match++ } } else { - dst.SsoConfigPostRequestDataOneOf4 = nil + dst.SAML = nil } if match > 1 { // more than 1 match // reset to nil - dst.SsoConfigPostRequestDataOneOf = nil - dst.SsoConfigPostRequestDataOneOf1 = nil - dst.SsoConfigPostRequestDataOneOf2 = nil - dst.SsoConfigPostRequestDataOneOf3 = nil - dst.SsoConfigPostRequestDataOneOf4 = nil + dst.Google = nil + dst.GoogleOIDC = nil + dst.GoogleSAML = nil + dst.OIDC = nil + dst.SAML = nil return fmt.Errorf("data matches more than one schema in oneOf(SsoConfiguration)") } else if match == 1 { @@ -147,24 +147,24 @@ func (dst *SsoConfiguration) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src SsoConfiguration) MarshalJSON() ([]byte, error) { - if src.SsoConfigPostRequestDataOneOf != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf) + if src.Google != nil { + return json.Marshal(src.Google) } - if src.SsoConfigPostRequestDataOneOf1 != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf1) + if src.GoogleOIDC != nil { + return json.Marshal(src.GoogleOIDC) } - if src.SsoConfigPostRequestDataOneOf2 != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf2) + if src.GoogleSAML != nil { + return json.Marshal(src.GoogleSAML) } - if src.SsoConfigPostRequestDataOneOf3 != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf3) + if src.OIDC != nil { + return json.Marshal(src.OIDC) } - if src.SsoConfigPostRequestDataOneOf4 != nil { - return json.Marshal(&src.SsoConfigPostRequestDataOneOf4) + if src.SAML != nil { + return json.Marshal(src.SAML) } return nil, nil // no data in oneOf schemas @@ -175,24 +175,24 @@ func (obj *SsoConfiguration) GetActualInstance() (interface{}) { if obj == nil { return nil } - if obj.SsoConfigPostRequestDataOneOf != nil { - return obj.SsoConfigPostRequestDataOneOf + if obj.Google != nil { + return obj.Google } - if obj.SsoConfigPostRequestDataOneOf1 != nil { - return obj.SsoConfigPostRequestDataOneOf1 + if obj.GoogleOIDC != nil { + return obj.GoogleOIDC } - if obj.SsoConfigPostRequestDataOneOf2 != nil { - return obj.SsoConfigPostRequestDataOneOf2 + if obj.GoogleSAML != nil { + return obj.GoogleSAML } - if obj.SsoConfigPostRequestDataOneOf3 != nil { - return obj.SsoConfigPostRequestDataOneOf3 + if obj.OIDC != nil { + return obj.OIDC } - if obj.SsoConfigPostRequestDataOneOf4 != nil { - return obj.SsoConfigPostRequestDataOneOf4 + if obj.SAML != nil { + return obj.SAML } // all schemas are nil diff --git a/internal/sdk/api/model_test_operation.go b/internal/sdk/api/model_test_operation.go new file mode 100644 index 0000000..a09caa0 --- /dev/null +++ b/internal/sdk/api/model_test_operation.go @@ -0,0 +1,236 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the TestOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TestOperation{} + +// TestOperation struct for TestOperation +type TestOperation struct { + Op string `json:"op"` + Path string `json:"path"` + // A JSON value + Value interface{} `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TestOperation TestOperation + +// NewTestOperation instantiates a new TestOperation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTestOperation(op string, path string) *TestOperation { + this := TestOperation{} + this.Op = op + this.Path = path + return &this +} + +// NewTestOperationWithDefaults instantiates a new TestOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTestOperationWithDefaults() *TestOperation { + this := TestOperation{} + return &this +} + +// GetOp returns the Op field value +func (o *TestOperation) GetOp() string { + if o == nil { + var ret string + return ret + } + + return o.Op +} + +// GetOpOk returns a tuple with the Op field value +// and a boolean to check if the value has been set. +func (o *TestOperation) GetOpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Op, true +} + +// SetOp sets field value +func (o *TestOperation) SetOp(v string) { + o.Op = v +} + +// GetPath returns the Path field value +func (o *TestOperation) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *TestOperation) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *TestOperation) SetPath(v string) { + o.Path = v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TestOperation) GetValue() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TestOperation) GetValueOk() (*interface{}, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return &o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *TestOperation) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given interface{} and assigns it to the Value field. +func (o *TestOperation) SetValue(v interface{}) { + o.Value = v +} + +func (o TestOperation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TestOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["op"] = o.Op + toSerialize["path"] = o.Path + if o.Value != nil { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TestOperation) 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) + } + } + + varTestOperation := _TestOperation{} + + err = json.Unmarshal(data, &varTestOperation) + + if err != nil { + return err + } + + *o = TestOperation(varTestOperation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "op") + delete(additionalProperties, "path") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTestOperation struct { + value *TestOperation + isSet bool +} + +func (v NullableTestOperation) Get() *TestOperation { + return v.value +} + +func (v *NullableTestOperation) Set(val *TestOperation) { + v.value = val + v.isSet = true +} + +func (v NullableTestOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableTestOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTestOperation(val *TestOperation) *NullableTestOperation { + return &NullableTestOperation{value: val, isSet: true} +} + +func (v NullableTestOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTestOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_usage.go b/internal/sdk/api/model_usage.go index a60c201..b3a631c 100644 --- a/internal/sdk/api/model_usage.go +++ b/internal/sdk/api/model_usage.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/model_usage_analytics_organization.go b/internal/sdk/api/model_usage_analytics_organization.go new file mode 100644 index 0000000..eedb6d6 --- /dev/null +++ b/internal/sdk/api/model_usage_analytics_organization.go @@ -0,0 +1,217 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the UsageAnalyticsOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UsageAnalyticsOrganization{} + +// UsageAnalyticsOrganization An organization in the context of usage analytics +type UsageAnalyticsOrganization struct { + // The id of the organization + OrgId string `json:"org_id"` + // The host of the organization + Host string `json:"host"` + LastActive time.Time `json:"last_active"` +} + +type _UsageAnalyticsOrganization UsageAnalyticsOrganization + +// NewUsageAnalyticsOrganization instantiates a new UsageAnalyticsOrganization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUsageAnalyticsOrganization(orgId string, host string, lastActive time.Time) *UsageAnalyticsOrganization { + this := UsageAnalyticsOrganization{} + this.OrgId = orgId + this.Host = host + this.LastActive = lastActive + return &this +} + +// NewUsageAnalyticsOrganizationWithDefaults instantiates a new UsageAnalyticsOrganization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUsageAnalyticsOrganizationWithDefaults() *UsageAnalyticsOrganization { + this := UsageAnalyticsOrganization{} + return &this +} + +// GetOrgId returns the OrgId field value +func (o *UsageAnalyticsOrganization) GetOrgId() string { + if o == nil { + var ret string + return ret + } + + return o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value +// and a boolean to check if the value has been set. +func (o *UsageAnalyticsOrganization) GetOrgIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgId, true +} + +// SetOrgId sets field value +func (o *UsageAnalyticsOrganization) SetOrgId(v string) { + o.OrgId = v +} + +// GetHost returns the Host field value +func (o *UsageAnalyticsOrganization) GetHost() string { + if o == nil { + var ret string + return ret + } + + return o.Host +} + +// GetHostOk returns a tuple with the Host field value +// and a boolean to check if the value has been set. +func (o *UsageAnalyticsOrganization) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Host, true +} + +// SetHost sets field value +func (o *UsageAnalyticsOrganization) SetHost(v string) { + o.Host = v +} + +// GetLastActive returns the LastActive field value +func (o *UsageAnalyticsOrganization) GetLastActive() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.LastActive +} + +// GetLastActiveOk returns a tuple with the LastActive field value +// and a boolean to check if the value has been set. +func (o *UsageAnalyticsOrganization) GetLastActiveOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.LastActive, true +} + +// SetLastActive sets field value +func (o *UsageAnalyticsOrganization) SetLastActive(v time.Time) { + o.LastActive = v +} + +func (o UsageAnalyticsOrganization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UsageAnalyticsOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["org_id"] = o.OrgId + toSerialize["host"] = o.Host + toSerialize["last_active"] = o.LastActive + return toSerialize, nil +} + +func (o *UsageAnalyticsOrganization) 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{ + "org_id", + "host", + "last_active", + } + + 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) + } + } + + varUsageAnalyticsOrganization := _UsageAnalyticsOrganization{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUsageAnalyticsOrganization) + + if err != nil { + return err + } + + *o = UsageAnalyticsOrganization(varUsageAnalyticsOrganization) + + return err +} + +type NullableUsageAnalyticsOrganization struct { + value *UsageAnalyticsOrganization + isSet bool +} + +func (v NullableUsageAnalyticsOrganization) Get() *UsageAnalyticsOrganization { + return v.value +} + +func (v *NullableUsageAnalyticsOrganization) Set(val *UsageAnalyticsOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableUsageAnalyticsOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableUsageAnalyticsOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUsageAnalyticsOrganization(val *UsageAnalyticsOrganization) *NullableUsageAnalyticsOrganization { + return &NullableUsageAnalyticsOrganization{value: val, isSet: true} +} + +func (v NullableUsageAnalyticsOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUsageAnalyticsOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_user.go b/internal/sdk/api/model_user.go index 379f22d..0e386a3 100644 --- a/internal/sdk/api/model_user.go +++ b/internal/sdk/api/model_user.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,6 @@ package api import ( "encoding/json" - "time" "bytes" "fmt" ) @@ -20,23 +19,10 @@ import ( // checks if the User type satisfies the MappedNullable interface at compile time var _ MappedNullable = &User{} -// User This object represents a user. +// User struct for User type User struct { - // The id of the user + Type string `json:"type"` Id string `json:"id"` - // The legacy id of the user - LegacyId string `json:"legacy_id"` - // The email of the user - Email string `json:"email"` - // Whether the user is active or not - Active bool `json:"active"` - CreatedAt time.Time `json:"created_at"` - LastActive NullableTime `json:"last_active"` - // The first name of the user - FirstName NullableString `json:"first_name"` - // The last name of the user - LastName NullableString `json:"last_name"` - Metadata map[string]interface{} `json:"metadata"` } type _User User @@ -45,17 +31,10 @@ type _User User // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUser(id string, legacyId string, email string, active bool, createdAt time.Time, lastActive NullableTime, firstName NullableString, lastName NullableString, metadata map[string]interface{}) *User { +func NewUser(type_ string, id string) *User { this := User{} + this.Type = type_ this.Id = id - this.LegacyId = legacyId - this.Email = email - this.Active = active - this.CreatedAt = createdAt - this.LastActive = lastActive - this.FirstName = firstName - this.LastName = lastName - this.Metadata = metadata return &this } @@ -67,226 +46,52 @@ func NewUserWithDefaults() *User { return &this } -// GetId returns the Id field value -func (o *User) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *User) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *User) SetId(v string) { - o.Id = v -} - -// GetLegacyId returns the LegacyId field value -func (o *User) GetLegacyId() string { - if o == nil { - var ret string - return ret - } - - return o.LegacyId -} - -// GetLegacyIdOk returns a tuple with the LegacyId field value -// and a boolean to check if the value has been set. -func (o *User) GetLegacyIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LegacyId, true -} - -// SetLegacyId sets field value -func (o *User) SetLegacyId(v string) { - o.LegacyId = v -} - -// GetEmail returns the Email field value -func (o *User) GetEmail() string { +// GetType returns the Type field value +func (o *User) GetType() string { if o == nil { var ret string return ret } - return o.Email + return o.Type } -// GetEmailOk returns a tuple with the Email field value +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *User) GetEmailOk() (*string, bool) { +func (o *User) GetTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.Email, true + return &o.Type, true } -// SetEmail sets field value -func (o *User) SetEmail(v string) { - o.Email = v +// SetType sets field value +func (o *User) SetType(v string) { + o.Type = v } -// GetActive returns the Active field value -func (o *User) GetActive() bool { - if o == nil { - var ret bool - return ret - } - - return o.Active -} - -// GetActiveOk returns a tuple with the Active field value -// and a boolean to check if the value has been set. -func (o *User) GetActiveOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Active, true -} - -// SetActive sets field value -func (o *User) SetActive(v bool) { - o.Active = v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *User) GetCreatedAt() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *User) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *User) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -// GetLastActive returns the LastActive field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *User) GetLastActive() time.Time { - if o == nil || o.LastActive.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastActive.Get() -} - -// GetLastActiveOk returns a tuple with the LastActive field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *User) GetLastActiveOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastActive.Get(), o.LastActive.IsSet() -} - -// SetLastActive sets field value -func (o *User) SetLastActive(v time.Time) { - o.LastActive.Set(&v) -} - -// GetFirstName returns the FirstName field value -// If the value is explicit nil, the zero value for string will be returned -func (o *User) GetFirstName() string { - if o == nil || o.FirstName.Get() == nil { - var ret string - return ret - } - - return *o.FirstName.Get() -} - -// GetFirstNameOk returns a tuple with the FirstName field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *User) GetFirstNameOk() (*string, bool) { +// GetId returns the Id field value +func (o *User) GetId() string { if o == nil { - return nil, false - } - return o.FirstName.Get(), o.FirstName.IsSet() -} - -// SetFirstName sets field value -func (o *User) SetFirstName(v string) { - o.FirstName.Set(&v) -} - -// GetLastName returns the LastName field value -// If the value is explicit nil, the zero value for string will be returned -func (o *User) GetLastName() string { - if o == nil || o.LastName.Get() == nil { var ret string return ret } - return *o.LastName.Get() + return o.Id } -// GetLastNameOk returns a tuple with the LastName field value +// GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *User) GetLastNameOk() (*string, bool) { +func (o *User) GetIdOk() (*string, bool) { if o == nil { return nil, false } - return o.LastName.Get(), o.LastName.IsSet() -} - -// SetLastName sets field value -func (o *User) SetLastName(v string) { - o.LastName.Set(&v) -} - -// GetMetadata returns the Metadata field value -func (o *User) GetMetadata() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - - return o.Metadata -} - -// GetMetadataOk returns a tuple with the Metadata field value -// and a boolean to check if the value has been set. -func (o *User) GetMetadataOk() (map[string]interface{}, bool) { - if o == nil { - return map[string]interface{}{}, false - } - return o.Metadata, true + return &o.Id, true } -// SetMetadata sets field value -func (o *User) SetMetadata(v map[string]interface{}) { - o.Metadata = v +// SetId sets field value +func (o *User) SetId(v string) { + o.Id = v } func (o User) MarshalJSON() ([]byte, error) { @@ -299,15 +104,8 @@ func (o User) MarshalJSON() ([]byte, error) { func (o User) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type toSerialize["id"] = o.Id - toSerialize["legacy_id"] = o.LegacyId - toSerialize["email"] = o.Email - toSerialize["active"] = o.Active - toSerialize["created_at"] = o.CreatedAt - toSerialize["last_active"] = o.LastActive.Get() - toSerialize["first_name"] = o.FirstName.Get() - toSerialize["last_name"] = o.LastName.Get() - toSerialize["metadata"] = o.Metadata return toSerialize, nil } @@ -316,15 +114,8 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { // 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{ + "type", "id", - "legacy_id", - "email", - "active", - "created_at", - "last_active", - "first_name", - "last_name", - "metadata", } allProperties := make(map[string]interface{}) diff --git a/internal/sdk/api/model_user_attributes.go b/internal/sdk/api/model_user_attributes.go index 5bb2a5b..c0c44ec 100644 --- a/internal/sdk/api/model_user_attributes.go +++ b/internal/sdk/api/model_user_attributes.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,7 +26,7 @@ type UserAttributes struct { Name string `json:"name"` // The label of the user attribute Label string `json:"label"` - // The data type of the user attribute. One of types `string`, `number`, or `json` + // The data type of the user attribute. Valid types are `string`, `number`, or `json` DataType string `json:"data_type"` // The default value of the user attribute, assigned to all users without the attribute set DefaultValue NullableString `json:"default_value"` diff --git a/internal/sdk/api/model_user_invite.go b/internal/sdk/api/model_user_invite.go index f1a6ca3..e4e5f5c 100644 --- a/internal/sdk/api/model_user_invite.go +++ b/internal/sdk/api/model_user_invite.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,7 @@ type UserInvite struct { UserType NullableString `json:"user_type"` Metadata map[string]interface{} `json:"metadata"` CreatedAt string `json:"created_at"` + // User invite link expires 7 days after generation. InviteLink *string `json:"invite_link,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/internal/sdk/api/model_user_task.go b/internal/sdk/api/model_user_task.go new file mode 100644 index 0000000..f1152eb --- /dev/null +++ b/internal/sdk/api/model_user_task.go @@ -0,0 +1,572 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UserTask type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserTask{} + +// UserTask User-defined context for the task. +type UserTask struct { + // The ID of the user task. + Id string `json:"id"` + // The ID of the workflow this task belongs to. + WorkflowId string `json:"workflow_id"` + // The name of the workflow. + WorkflowName string `json:"workflow_name"` + // The ID of the workflow run. + WorkflowRunId string `json:"workflow_run_id"` + // The name of the task. + TaskName string `json:"task_name"` + // The current status of the task. + Status string `json:"status"` + // Additional context for the task. + Context map[string]interface{} `json:"context"` + // The creation date time of the task. + CreatedAt string `json:"created_at"` + // The completion date time of the task. + CompletedAt NullableString `json:"completed_at"` + // URL links to apps associated with the task. + TaskUrl []string `json:"task_url"` + // The groups or users assigned to this task. + Assignees []UserTasksGet200ResponseDataInnerAssigneesInner `json:"assignees"` + // The workflow release version, if any. + WorkflowRelease NullableString `json:"workflow_release"` + // The expiration date time of the task, if set. + ExpiresAt NullableString `json:"expires_at"` + Output map[string]interface{} `json:"output,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UserTask UserTask + +// NewUserTask instantiates a new UserTask object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserTask(id string, workflowId string, workflowName string, workflowRunId string, taskName string, status string, context map[string]interface{}, createdAt string, completedAt NullableString, taskUrl []string, assignees []UserTasksGet200ResponseDataInnerAssigneesInner, workflowRelease NullableString, expiresAt NullableString) *UserTask { + this := UserTask{} + this.Id = id + this.WorkflowId = workflowId + this.WorkflowName = workflowName + this.WorkflowRunId = workflowRunId + this.TaskName = taskName + this.Status = status + this.Context = context + this.CreatedAt = createdAt + this.CompletedAt = completedAt + this.TaskUrl = taskUrl + this.Assignees = assignees + this.WorkflowRelease = workflowRelease + this.ExpiresAt = expiresAt + return &this +} + +// NewUserTaskWithDefaults instantiates a new UserTask object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserTaskWithDefaults() *UserTask { + this := UserTask{} + return &this +} + +// GetId returns the Id field value +func (o *UserTask) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *UserTask) SetId(v string) { + o.Id = v +} + +// GetWorkflowId returns the WorkflowId field value +func (o *UserTask) GetWorkflowId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowId, true +} + +// SetWorkflowId sets field value +func (o *UserTask) SetWorkflowId(v string) { + o.WorkflowId = v +} + +// GetWorkflowName returns the WorkflowName field value +func (o *UserTask) GetWorkflowName() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowName +} + +// GetWorkflowNameOk returns a tuple with the WorkflowName field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetWorkflowNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowName, true +} + +// SetWorkflowName sets field value +func (o *UserTask) SetWorkflowName(v string) { + o.WorkflowName = v +} + +// GetWorkflowRunId returns the WorkflowRunId field value +func (o *UserTask) GetWorkflowRunId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowRunId +} + +// GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetWorkflowRunIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowRunId, true +} + +// SetWorkflowRunId sets field value +func (o *UserTask) SetWorkflowRunId(v string) { + o.WorkflowRunId = v +} + +// GetTaskName returns the TaskName field value +func (o *UserTask) GetTaskName() string { + if o == nil { + var ret string + return ret + } + + return o.TaskName +} + +// GetTaskNameOk returns a tuple with the TaskName field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetTaskNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TaskName, true +} + +// SetTaskName sets field value +func (o *UserTask) SetTaskName(v string) { + o.TaskName = v +} + +// GetStatus returns the Status field value +func (o *UserTask) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *UserTask) SetStatus(v string) { + o.Status = v +} + +// GetContext returns the Context field value +func (o *UserTask) GetContext() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Context +} + +// GetContextOk returns a tuple with the Context field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetContextOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Context, true +} + +// SetContext sets field value +func (o *UserTask) SetContext(v map[string]interface{}) { + o.Context = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *UserTask) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *UserTask) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetCompletedAt returns the CompletedAt field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserTask) GetCompletedAt() string { + if o == nil || o.CompletedAt.Get() == nil { + var ret string + return ret + } + + return *o.CompletedAt.Get() +} + +// GetCompletedAtOk returns a tuple with the CompletedAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserTask) GetCompletedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CompletedAt.Get(), o.CompletedAt.IsSet() +} + +// SetCompletedAt sets field value +func (o *UserTask) SetCompletedAt(v string) { + o.CompletedAt.Set(&v) +} + +// GetTaskUrl returns the TaskUrl field value +func (o *UserTask) GetTaskUrl() []string { + if o == nil { + var ret []string + return ret + } + + return o.TaskUrl +} + +// GetTaskUrlOk returns a tuple with the TaskUrl field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetTaskUrlOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.TaskUrl, true +} + +// SetTaskUrl sets field value +func (o *UserTask) SetTaskUrl(v []string) { + o.TaskUrl = v +} + +// GetAssignees returns the Assignees field value +func (o *UserTask) GetAssignees() []UserTasksGet200ResponseDataInnerAssigneesInner { + if o == nil { + var ret []UserTasksGet200ResponseDataInnerAssigneesInner + return ret + } + + return o.Assignees +} + +// GetAssigneesOk returns a tuple with the Assignees field value +// and a boolean to check if the value has been set. +func (o *UserTask) GetAssigneesOk() ([]UserTasksGet200ResponseDataInnerAssigneesInner, bool) { + if o == nil { + return nil, false + } + return o.Assignees, true +} + +// SetAssignees sets field value +func (o *UserTask) SetAssignees(v []UserTasksGet200ResponseDataInnerAssigneesInner) { + o.Assignees = v +} + +// GetWorkflowRelease returns the WorkflowRelease field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserTask) GetWorkflowRelease() string { + if o == nil || o.WorkflowRelease.Get() == nil { + var ret string + return ret + } + + return *o.WorkflowRelease.Get() +} + +// GetWorkflowReleaseOk returns a tuple with the WorkflowRelease field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserTask) GetWorkflowReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowRelease.Get(), o.WorkflowRelease.IsSet() +} + +// SetWorkflowRelease sets field value +func (o *UserTask) SetWorkflowRelease(v string) { + o.WorkflowRelease.Set(&v) +} + +// GetExpiresAt returns the ExpiresAt field value +// If the value is explicit nil, the zero value for string will be returned +func (o *UserTask) GetExpiresAt() string { + if o == nil || o.ExpiresAt.Get() == nil { + var ret string + return ret + } + + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserTask) GetExpiresAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// SetExpiresAt sets field value +func (o *UserTask) SetExpiresAt(v string) { + o.ExpiresAt.Set(&v) +} + +// GetOutput returns the Output field value if set, zero value otherwise. +func (o *UserTask) GetOutput() map[string]interface{} { + if o == nil || IsNil(o.Output) { + var ret map[string]interface{} + return ret + } + return o.Output +} + +// GetOutputOk returns a tuple with the Output field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserTask) GetOutputOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Output) { + return map[string]interface{}{}, false + } + return o.Output, true +} + +// HasOutput returns a boolean if a field has been set. +func (o *UserTask) HasOutput() bool { + if o != nil && !IsNil(o.Output) { + return true + } + + return false +} + +// SetOutput gets a reference to the given map[string]interface{} and assigns it to the Output field. +func (o *UserTask) SetOutput(v map[string]interface{}) { + o.Output = v +} + +func (o UserTask) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserTask) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["workflow_id"] = o.WorkflowId + toSerialize["workflow_name"] = o.WorkflowName + toSerialize["workflow_run_id"] = o.WorkflowRunId + toSerialize["task_name"] = o.TaskName + toSerialize["status"] = o.Status + toSerialize["context"] = o.Context + toSerialize["created_at"] = o.CreatedAt + toSerialize["completed_at"] = o.CompletedAt.Get() + toSerialize["task_url"] = o.TaskUrl + toSerialize["assignees"] = o.Assignees + toSerialize["workflow_release"] = o.WorkflowRelease.Get() + toSerialize["expires_at"] = o.ExpiresAt.Get() + if !IsNil(o.Output) { + toSerialize["output"] = o.Output + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UserTask) 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{ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at", + } + + 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) + } + } + + varUserTask := _UserTask{} + + err = json.Unmarshal(data, &varUserTask) + + if err != nil { + return err + } + + *o = UserTask(varUserTask) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "workflow_id") + delete(additionalProperties, "workflow_name") + delete(additionalProperties, "workflow_run_id") + delete(additionalProperties, "task_name") + delete(additionalProperties, "status") + delete(additionalProperties, "context") + delete(additionalProperties, "created_at") + delete(additionalProperties, "completed_at") + delete(additionalProperties, "task_url") + delete(additionalProperties, "assignees") + delete(additionalProperties, "workflow_release") + delete(additionalProperties, "expires_at") + delete(additionalProperties, "output") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUserTask struct { + value *UserTask + isSet bool +} + +func (v NullableUserTask) Get() *UserTask { + return v.value +} + +func (v *NullableUserTask) Set(val *UserTask) { + v.value = val + v.isSet = true +} + +func (v NullableUserTask) IsSet() bool { + return v.isSet +} + +func (v *NullableUserTask) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserTask(val *UserTask) *NullableUserTask { + return &NullableUserTask{value: val, isSet: true} +} + +func (v NullableUserTask) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserTask) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_workflow.go b/internal/sdk/api/model_workflow.go new file mode 100644 index 0000000..521b666 --- /dev/null +++ b/internal/sdk/api/model_workflow.go @@ -0,0 +1,476 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the Workflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Workflow{} + +// Workflow This object represents a Workflow. +type Workflow struct { + // The Workflow ID. + Id string `json:"id"` + // The name of the Workflow + Name string `json:"name"` + // The description of the Workflow + Description NullableString `json:"description"` + // The cron tab of the Workflow + Crontab NullableString `json:"crontab"` + // The timezone of the Workflow + Timezone NullableString `json:"timezone"` + // Whether the Workflow is enabled + IsEnabled bool `json:"is_enabled"` + // The folder ID of the Workflow + FolderId string `json:"folder_id"` + // Whether the Workflow is protected + Protected bool `json:"protected"` + // The user ID of the creator of the Workflow + CreatedBy NullableFloat32 `json:"created_by"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _Workflow Workflow + +// NewWorkflow instantiates a new Workflow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflow(id string, name string, description NullableString, crontab NullableString, timezone NullableString, isEnabled bool, folderId string, protected bool, createdBy NullableFloat32, createdAt time.Time, updatedAt time.Time) *Workflow { + this := Workflow{} + this.Id = id + this.Name = name + this.Description = description + this.Crontab = crontab + this.Timezone = timezone + this.IsEnabled = isEnabled + this.FolderId = folderId + this.Protected = protected + this.CreatedBy = createdBy + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewWorkflowWithDefaults instantiates a new Workflow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowWithDefaults() *Workflow { + this := Workflow{} + return &this +} + +// GetId returns the Id field value +func (o *Workflow) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Workflow) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Workflow) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *Workflow) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Workflow) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Workflow) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned +func (o *Workflow) GetDescription() string { + if o == nil || o.Description.Get() == nil { + var ret string + return ret + } + + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Workflow) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// SetDescription sets field value +func (o *Workflow) SetDescription(v string) { + o.Description.Set(&v) +} + +// GetCrontab returns the Crontab field value +// If the value is explicit nil, the zero value for string will be returned +func (o *Workflow) GetCrontab() string { + if o == nil || o.Crontab.Get() == nil { + var ret string + return ret + } + + return *o.Crontab.Get() +} + +// GetCrontabOk returns a tuple with the Crontab field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Workflow) GetCrontabOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Crontab.Get(), o.Crontab.IsSet() +} + +// SetCrontab sets field value +func (o *Workflow) SetCrontab(v string) { + o.Crontab.Set(&v) +} + +// GetTimezone returns the Timezone field value +// If the value is explicit nil, the zero value for string will be returned +func (o *Workflow) GetTimezone() string { + if o == nil || o.Timezone.Get() == nil { + var ret string + return ret + } + + return *o.Timezone.Get() +} + +// GetTimezoneOk returns a tuple with the Timezone field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Workflow) GetTimezoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Timezone.Get(), o.Timezone.IsSet() +} + +// SetTimezone sets field value +func (o *Workflow) SetTimezone(v string) { + o.Timezone.Set(&v) +} + +// GetIsEnabled returns the IsEnabled field value +func (o *Workflow) GetIsEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsEnabled +} + +// GetIsEnabledOk returns a tuple with the IsEnabled field value +// and a boolean to check if the value has been set. +func (o *Workflow) GetIsEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsEnabled, true +} + +// SetIsEnabled sets field value +func (o *Workflow) SetIsEnabled(v bool) { + o.IsEnabled = v +} + +// GetFolderId returns the FolderId field value +func (o *Workflow) GetFolderId() string { + if o == nil { + var ret string + return ret + } + + return o.FolderId +} + +// GetFolderIdOk returns a tuple with the FolderId field value +// and a boolean to check if the value has been set. +func (o *Workflow) GetFolderIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FolderId, true +} + +// SetFolderId sets field value +func (o *Workflow) SetFolderId(v string) { + o.FolderId = v +} + +// GetProtected returns the Protected field value +func (o *Workflow) GetProtected() bool { + if o == nil { + var ret bool + return ret + } + + return o.Protected +} + +// GetProtectedOk returns a tuple with the Protected field value +// and a boolean to check if the value has been set. +func (o *Workflow) GetProtectedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Protected, true +} + +// SetProtected sets field value +func (o *Workflow) SetProtected(v bool) { + o.Protected = v +} + +// GetCreatedBy returns the CreatedBy field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *Workflow) GetCreatedBy() float32 { + if o == nil || o.CreatedBy.Get() == nil { + var ret float32 + return ret + } + + return *o.CreatedBy.Get() +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Workflow) GetCreatedByOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.CreatedBy.Get(), o.CreatedBy.IsSet() +} + +// SetCreatedBy sets field value +func (o *Workflow) SetCreatedBy(v float32) { + o.CreatedBy.Set(&v) +} + +// GetCreatedAt returns the CreatedAt field value +func (o *Workflow) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *Workflow) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *Workflow) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *Workflow) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *Workflow) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *Workflow) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o Workflow) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Workflow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description.Get() + toSerialize["crontab"] = o.Crontab.Get() + toSerialize["timezone"] = o.Timezone.Get() + toSerialize["is_enabled"] = o.IsEnabled + toSerialize["folder_id"] = o.FolderId + toSerialize["protected"] = o.Protected + toSerialize["created_by"] = o.CreatedBy.Get() + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Workflow) 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{ + "id", + "name", + "description", + "crontab", + "timezone", + "is_enabled", + "folder_id", + "protected", + "created_by", + "created_at", + "updated_at", + } + + 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) + } + } + + varWorkflow := _Workflow{} + + err = json.Unmarshal(data, &varWorkflow) + + if err != nil { + return err + } + + *o = Workflow(varWorkflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "crontab") + delete(additionalProperties, "timezone") + delete(additionalProperties, "is_enabled") + delete(additionalProperties, "folder_id") + delete(additionalProperties, "protected") + delete(additionalProperties, "created_by") + delete(additionalProperties, "created_at") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWorkflow struct { + value *Workflow + isSet bool +} + +func (v NullableWorkflow) Get() *Workflow { + return v.value +} + +func (v *NullableWorkflow) Set(val *Workflow) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflow) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflow(val *Workflow) *NullableWorkflow { + return &NullableWorkflow{value: val, isSet: true} +} + +func (v NullableWorkflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/model_workflow_run_with_user_task.go b/internal/sdk/api/model_workflow_run_with_user_task.go new file mode 100644 index 0000000..9f26707 --- /dev/null +++ b/internal/sdk/api/model_workflow_run_with_user_task.go @@ -0,0 +1,357 @@ +/* +Retool API + +Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. + +API version: 2.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" + "fmt" +) + +// checks if the WorkflowRunWithUserTask type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowRunWithUserTask{} + +// WorkflowRunWithUserTask A workflow run and related data. +type WorkflowRunWithUserTask struct { + // The status of the workflow run. + Status string `json:"status"` + // The ID of the workflow. + WorkflowId string `json:"workflow_id"` + // The ID of the workflow run. + Id string `json:"id"` + // The type of trigger that started the workflow. + TriggerType string `json:"trigger_type"` + // The ID of the trigger. + TriggerId string `json:"trigger_id"` + // The creation date time of the workflow run. + CreatedAt string `json:"created_at"` + // List of user tasks of the workfow run. + UserTasks []UserTasksGet200ResponseDataInner `json:"user_tasks,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WorkflowRunWithUserTask WorkflowRunWithUserTask + +// NewWorkflowRunWithUserTask instantiates a new WorkflowRunWithUserTask object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowRunWithUserTask(status string, workflowId string, id string, triggerType string, triggerId string, createdAt string) *WorkflowRunWithUserTask { + this := WorkflowRunWithUserTask{} + this.Status = status + this.WorkflowId = workflowId + this.Id = id + this.TriggerType = triggerType + this.TriggerId = triggerId + this.CreatedAt = createdAt + return &this +} + +// NewWorkflowRunWithUserTaskWithDefaults instantiates a new WorkflowRunWithUserTask object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowRunWithUserTaskWithDefaults() *WorkflowRunWithUserTask { + this := WorkflowRunWithUserTask{} + return &this +} + +// GetStatus returns the Status field value +func (o *WorkflowRunWithUserTask) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunWithUserTask) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *WorkflowRunWithUserTask) SetStatus(v string) { + o.Status = v +} + +// GetWorkflowId returns the WorkflowId field value +func (o *WorkflowRunWithUserTask) GetWorkflowId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunWithUserTask) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowId, true +} + +// SetWorkflowId sets field value +func (o *WorkflowRunWithUserTask) SetWorkflowId(v string) { + o.WorkflowId = v +} + +// GetId returns the Id field value +func (o *WorkflowRunWithUserTask) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunWithUserTask) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *WorkflowRunWithUserTask) SetId(v string) { + o.Id = v +} + +// GetTriggerType returns the TriggerType field value +func (o *WorkflowRunWithUserTask) GetTriggerType() string { + if o == nil { + var ret string + return ret + } + + return o.TriggerType +} + +// GetTriggerTypeOk returns a tuple with the TriggerType field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunWithUserTask) GetTriggerTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TriggerType, true +} + +// SetTriggerType sets field value +func (o *WorkflowRunWithUserTask) SetTriggerType(v string) { + o.TriggerType = v +} + +// GetTriggerId returns the TriggerId field value +func (o *WorkflowRunWithUserTask) GetTriggerId() string { + if o == nil { + var ret string + return ret + } + + return o.TriggerId +} + +// GetTriggerIdOk returns a tuple with the TriggerId field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunWithUserTask) GetTriggerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TriggerId, true +} + +// SetTriggerId sets field value +func (o *WorkflowRunWithUserTask) SetTriggerId(v string) { + o.TriggerId = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *WorkflowRunWithUserTask) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *WorkflowRunWithUserTask) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *WorkflowRunWithUserTask) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUserTasks returns the UserTasks field value if set, zero value otherwise. +func (o *WorkflowRunWithUserTask) GetUserTasks() []UserTasksGet200ResponseDataInner { + if o == nil || IsNil(o.UserTasks) { + var ret []UserTasksGet200ResponseDataInner + return ret + } + return o.UserTasks +} + +// GetUserTasksOk returns a tuple with the UserTasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowRunWithUserTask) GetUserTasksOk() ([]UserTasksGet200ResponseDataInner, bool) { + if o == nil || IsNil(o.UserTasks) { + return nil, false + } + return o.UserTasks, true +} + +// HasUserTasks returns a boolean if a field has been set. +func (o *WorkflowRunWithUserTask) HasUserTasks() bool { + if o != nil && !IsNil(o.UserTasks) { + return true + } + + return false +} + +// SetUserTasks gets a reference to the given []UserTasksGet200ResponseDataInner and assigns it to the UserTasks field. +func (o *WorkflowRunWithUserTask) SetUserTasks(v []UserTasksGet200ResponseDataInner) { + o.UserTasks = v +} + +func (o WorkflowRunWithUserTask) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowRunWithUserTask) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["workflow_id"] = o.WorkflowId + toSerialize["id"] = o.Id + toSerialize["trigger_type"] = o.TriggerType + toSerialize["trigger_id"] = o.TriggerId + toSerialize["created_at"] = o.CreatedAt + if !IsNil(o.UserTasks) { + toSerialize["user_tasks"] = o.UserTasks + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WorkflowRunWithUserTask) 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{ + "status", + "workflow_id", + "id", + "trigger_type", + "trigger_id", + "created_at", + } + + 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) + } + } + + varWorkflowRunWithUserTask := _WorkflowRunWithUserTask{} + + err = json.Unmarshal(data, &varWorkflowRunWithUserTask) + + if err != nil { + return err + } + + *o = WorkflowRunWithUserTask(varWorkflowRunWithUserTask) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "workflow_id") + delete(additionalProperties, "id") + delete(additionalProperties, "trigger_type") + delete(additionalProperties, "trigger_id") + delete(additionalProperties, "created_at") + delete(additionalProperties, "user_tasks") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWorkflowRunWithUserTask struct { + value *WorkflowRunWithUserTask + isSet bool +} + +func (v NullableWorkflowRunWithUserTask) Get() *WorkflowRunWithUserTask { + return v.value +} + +func (v *NullableWorkflowRunWithUserTask) Set(val *WorkflowRunWithUserTask) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowRunWithUserTask) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowRunWithUserTask) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowRunWithUserTask(val *WorkflowRunWithUserTask) *NullableWorkflowRunWithUserTask { + return &NullableWorkflowRunWithUserTask{value: val, isSet: true} +} + +func (v NullableWorkflowRunWithUserTask) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowRunWithUserTask) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/internal/sdk/api/response.go b/internal/sdk/api/response.go index 1f8696e..23ba4fa 100644 --- a/internal/sdk/api/response.go +++ b/internal/sdk/api/response.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/api/utils.go b/internal/sdk/api/utils.go index bcc7adb..eaa2671 100644 --- a/internal/sdk/api/utils.go +++ b/internal/sdk/api/utils.go @@ -3,7 +3,7 @@ Retool API Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. -API version: 2.4.0 +API version: 2.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/internal/sdk/fix_generated_code.sh b/internal/sdk/fix_generated_code.sh new file mode 100755 index 0000000..9918c09 --- /dev/null +++ b/internal/sdk/fix_generated_code.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Post-generation script to fix bugs in OpenAPI-generated Go code + +echo "Fixing OpenAPI generator bugs..." + +# 1. Fix pointer-to-pointer marshaling bug: json.Marshal(&src.Field) -> json.Marshal(src.Field) +find ./api -name "*.go" -type f -exec sed -i '' 's/json\.Marshal(\&src\.\([A-Za-z0-9_]*\))/json.Marshal(src.\1)/g' {} \; + +# 2. Fix value receiver issue: Change pointer receivers to value receivers for MarshalJSON in anyOf types +# The OpenAPI generator creates pointer receiver MarshalJSON methods, but when the struct +# is used as a value type in another struct, Go won't call the pointer receiver method. +find ./api -name "*.go" -type f -exec sed -i '' 's/func (src \*\([A-Za-z0-9_]*\)) MarshalJSON()/func (src \1) MarshalJSON()/g' {} \; + +echo "Fixed marshaling bugs in generated code" + +# Note: Permissions oneOf unmarshaling is not fixed automatically. +# See README.md for details on the known limitations. + diff --git a/internal/sdk/generate.go b/internal/sdk/generate.go index 3b4c742..bb47edc 100644 --- a/internal/sdk/generate.go +++ b/internal/sdk/generate.go @@ -1,4 +1,4 @@ // Package sdk : contains the generated code from the openAPI spec // -//go:generate sh -c "OPENAPI_GENERATOR_VERSION=7.6.0 openapi-generator-cli generate -i openAPISpec.json -g go -o ./api -c generatorConfig.yaml --minimal-update" +//go:generate sh -c "OPENAPI_GENERATOR_VERSION=7.6.0 openapi-generator-cli generate -i openAPISpec.json -g go -o ./api -c generatorConfig.yaml --minimal-update && ./fix_generated_code.sh" package sdk diff --git a/internal/sdk/openAPISpec.json b/internal/sdk/openAPISpec.json index cd90b0d..d28ab8f 100644 --- a/internal/sdk/openAPISpec.json +++ b/internal/sdk/openAPISpec.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "2.4.0", + "version": "2.9.0", "title": "Retool API", "description": "Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests." }, @@ -9,8 +9,16 @@ "description": "Retool API Documentation", "url": "https://docs.retool.com/reference/api-ref" }, - "servers": [{ "url": "./" }], - "security": [{ "BearerAuth": [] }], + "servers": [ + { + "url": "./" + } + ], + "security": [ + { + "BearerAuth": [] + } + ], "components": { "schemas": { "user": { @@ -22,8 +30,7 @@ "description": "The id of the user" }, "legacy_id": { - "type": "string", - "pattern": "user_([a-z0-9]+)", + "type": "number", "description": "The legacy id of the user" }, "email": { @@ -62,8 +69,27 @@ }, "metadata": { "type": "object", - "additionalProperties": { "nullable": true }, + "additionalProperties": { + "nullable": true + }, "default": {} + }, + "is_admin": { + "type": "boolean", + "description": "Whether the user is an admin or not" + }, + "user_type": { + "type": "string", + "enum": [ + "default", + "mobile", + "embed" + ], + "description": "The user type" + }, + "two_factor_auth_enabled": { + "type": "boolean", + "description": "Whether two factor authentication is enabled for this user" } }, "required": [ @@ -75,7 +101,10 @@ "last_active", "first_name", "last_name", - "metadata" + "metadata", + "is_admin", + "user_type", + "two_factor_auth_enabled" ], "additionalProperties": false, "description": "This object represents a user." @@ -93,13 +122,19 @@ "nullable": true, "description": "The legacy ID of the group." }, - "name": { "type": "string", "description": "The name of the group." }, + "name": { + "type": "string", + "description": "The name of the group." + }, "members": { "type": "array", "items": { "type": "object", "properties": { - "id": { "type": "string", "pattern": "user_([a-z0-9]+)" }, + "id": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + }, "email": { "type": "string", "format": "email", @@ -111,23 +146,42 @@ "description": "Whether the user is a group admin" } }, - "required": ["id", "email", "is_group_admin"] + "required": [ + "id", + "email", + "is_group_admin" + ] }, "description": "The members of the group." }, "universal_app_access": { "type": "string", - "enum": ["none", "use", "edit", "own"], + "enum": [ + "none", + "use", + "edit", + "own" + ], "description": "The universal app access level for the group. This denotes the access level that this group has for all apps." }, "universal_resource_access": { "type": "string", - "enum": ["none", "use", "edit", "own"], + "enum": [ + "none", + "use", + "edit", + "own" + ], "description": "The universal resource access level for the group. This denotes the access level that this group has for all resources." }, "universal_workflow_access": { "type": "string", - "enum": ["none", "use", "edit", "own"], + "enum": [ + "none", + "use", + "edit", + "own" + ], "description": "The universal workflow access level for the group. This denotes the access level that this group has for all workflows." }, "universal_query_library_access": { @@ -144,26 +198,55 @@ "items": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "invited_by": { "type": "string" }, - "invited_email": { "type": "string", "format": "email" }, - "expires_at": { "type": "string" }, - "claimed_by": { "type": "string", "nullable": true }, - "claimed_at": { "type": "string", "nullable": true }, + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "invited_by": { + "type": "string" + }, + "invited_email": { + "type": "string", + "format": "email" + }, + "expires_at": { + "type": "string" + }, + "claimed_by": { + "type": "string", + "nullable": true + }, + "claimed_at": { + "type": "string", + "nullable": true + }, "user_type": { "type": "string", "nullable": true, - "enum": ["default", "mobile", "external"] + "enum": [ + "default", + "mobile", + "external" + ] }, "metadata": { "type": "object", "nullable": true, - "additionalProperties": { "nullable": true }, + "additionalProperties": { + "nullable": true + }, "default": {} }, - "created_at": { "type": "string" }, - "invite_link": { "type": "string", "format": "uri" } + "created_at": { + "type": "string" + }, + "invite_link": { + "type": "string", + "format": "uri", + "description": "User invite link expires 7 days after generation." + } }, "required": [ "id", @@ -197,6 +280,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -224,11 +311,13 @@ "universal_app_access", "universal_resource_access", "universal_workflow_access", + "universal_query_library_access", "user_invites", "user_list_access", "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -241,19 +330,22 @@ "properties": { "id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder. Currently this is the same as legacy_id but will be different in the future." }, "legacy_id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The legacy id of the folder." }, - "name": { "type": "string", "description": "The name of the folder" }, + "name": { + "type": "string", + "description": "The name of the folder" + }, "parent_folder_id": { "type": "string", "nullable": true, - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the parent folder" }, "is_system_folder": { @@ -262,7 +354,12 @@ }, "folder_type": { "type": "string", - "enum": ["app", "workflow", "resource"], + "enum": [ + "app", + "workflow", + "resource", + "agent" + ], "description": "The type of the folder" }, "created_at": { @@ -293,8 +390,14 @@ "format": "uuid", "description": "The id of the space." }, - "name": { "type": "string", "minLength": 1 }, - "domain": { "type": "string", "minLength": 1 }, + "name": { + "type": "string", + "minLength": 1 + }, + "domain": { + "type": "string", + "minLength": 1 + }, "created_at": { "type": "string", "format": "date-time", @@ -306,7 +409,13 @@ "example": "2019-02-24T18:28:18.790Z" } }, - "required": ["id", "name", "domain", "created_at", "updated_at"], + "required": [ + "id", + "name", + "domain", + "created_at", + "updated_at" + ], "additionalProperties": false, "description": "This object represents a space. Spaces can be used to separate your organization's data." }, @@ -320,7 +429,12 @@ { "type": "object", "properties": { - "type": { "type": "string", "enum": ["App"] }, + "type": { + "type": "string", + "enum": [ + "App" + ] + }, "app_id": { "type": "string", "description": "The GitHub App ID." @@ -353,7 +467,12 @@ { "type": "object", "properties": { - "type": { "type": "string", "enum": ["Personal"] }, + "type": { + "type": "string", + "enum": [ + "Personal" + ] + }, "personal_access_token": { "type": "string", "description": "The GitHub project access token to authenticate to the GitHub API.\t" @@ -367,12 +486,20 @@ "description": "The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3." } }, - "required": ["type", "personal_access_token"], + "required": [ + "type", + "personal_access_token" + ], "additionalProperties": false } ] }, - "provider": { "type": "string", "enum": ["GitHub"] }, + "provider": { + "type": "string", + "enum": [ + "GitHub" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -390,7 +517,14 @@ "description": "Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0." } }, - "required": ["config", "provider", "org", "repo", "default_branch"] + "required": [ + "config", + "provider", + "org", + "repo", + "default_branch" + ], + "title": "GitHub" }, { "type": "object", @@ -411,10 +545,19 @@ "description": "The GitLab project access token to authenticate to the GitLab API." } }, - "required": ["project_id", "url", "project_access_token"], + "required": [ + "project_id", + "url", + "project_access_token" + ], "additionalProperties": false }, - "provider": { "type": "string", "enum": ["GitLab"] }, + "provider": { + "type": "string", + "enum": [ + "GitLab" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -432,7 +575,14 @@ "description": "Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0." } }, - "required": ["config", "provider", "org", "repo", "default_branch"] + "required": [ + "config", + "provider", + "org", + "repo", + "default_branch" + ], + "title": "GitLab" }, { "type": "object", @@ -475,7 +625,12 @@ ], "additionalProperties": false }, - "provider": { "type": "string", "enum": ["AWS CodeCommit"] }, + "provider": { + "type": "string", + "enum": [ + "AWS CodeCommit" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -493,35 +648,87 @@ "description": "Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0." } }, - "required": ["config", "provider", "org", "repo", "default_branch"] + "required": [ + "config", + "provider", + "org", + "repo", + "default_branch" + ], + "title": "AWS CodeCommit" }, { "type": "object", "properties": { "config": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "Your Bitbucket username." - }, - "url": { - "type": "string", - "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." - }, - "enterprise_api_url": { - "type": "string", - "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "AppPassword" + ] + }, + "username": { + "type": "string", + "description": "Your Bitbucket username." + }, + "app_password": { + "type": "string", + "description": "Your Bitbucket app password." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "username", + "app_password" + ], + "additionalProperties": false }, - "app_password": { - "type": "string", - "description": "Your Bitbucket app password." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Token" + ] + }, + "token": { + "type": "string", + "description": "Your Bitbucket API token." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "token" + ], + "additionalProperties": false } - }, - "required": ["username", "app_password"], - "additionalProperties": false + ] + }, + "provider": { + "type": "string", + "enum": [ + "Bitbucket" + ] }, - "provider": { "type": "string", "enum": ["Bitbucket"] }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -539,7 +746,14 @@ "description": "Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0." } }, - "required": ["config", "provider", "org", "repo", "default_branch"] + "required": [ + "config", + "provider", + "org", + "repo", + "default_branch" + ], + "title": "Bitbucket" }, { "type": "object", @@ -577,7 +791,12 @@ ], "additionalProperties": false }, - "provider": { "type": "string", "enum": ["Azure Repos"] }, + "provider": { + "type": "string", + "enum": [ + "Azure Repos" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -595,10 +814,17 @@ "description": "Repositories using Toolscript are 2.0.0. Repositories using legacy YAML are 1.0.0." } }, - "required": ["config", "provider", "org", "repo", "default_branch"] + "required": [ + "config", + "provider", + "org", + "repo", + "default_branch" + ], + "title": "Azure Repos" } ], - "description": "This object represents the Source Control provider configuration for the organization or space. See https://docs.retool.com/source-control for more information." + "description": "This object represents the Source Control provider configuration for the organization or space. See [docs](https://docs.retool.com/source-control) for more information." }, "source_control_settings": { "type": "object", @@ -622,6 +848,10 @@ "force_uuid_mapping": { "type": "boolean", "description": "When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false." + }, + "auto_cleanup_branches_enabled": { + "type": "boolean", + "description": "When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true." } }, "required": [ @@ -629,25 +859,49 @@ "custom_pull_request_template_enabled", "custom_pull_request_template", "version_control_locked", - "force_uuid_mapping" + "force_uuid_mapping", + "auto_cleanup_branches_enabled" ] }, "app_theme": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, "name": { "type": "string", "description": "The name of the app theme." }, "theme": { "type": "object", - "additionalProperties": { "nullable": true }, + "additionalProperties": { + "nullable": true + }, "description": "The theme object." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was last updated." } }, - "required": ["id", "legacy_id", "name", "theme"], + "required": [ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at" + ], "description": "This object represents an app theme. App themes allow you to customize the look of your app. See https://docs.retool.com/apps/web/concepts/themes for more information." }, "app": { @@ -658,7 +912,10 @@ "format": "uuid", "description": "The app ID." }, - "name": { "type": "string", "description": "The name of the App" }, + "name": { + "type": "string", + "description": "The name of the App" + }, "description": { "type": "string", "nullable": true, @@ -666,7 +923,7 @@ }, "folder_id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder" }, "protected": { @@ -689,6 +946,18 @@ "is_mobile_app": { "type": "boolean", "description": "Whether the App is a mobile app" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + }, + "release_version": { + "type": "string", + "description": "The live release version of the app. 'latest' if releases are disabled or the app has no live release yet" } }, "required": [ @@ -700,7 +969,10 @@ "synced", "shortlink", "is_module", - "is_mobile_app" + "is_mobile_app", + "created_at", + "updated_at", + "release_version" ], "description": "This object represents an app." }, @@ -709,10 +981,21 @@ { "type": "object", "properties": { - "config_type": { "type": "string", "enum": ["google"] }, - "google_client_id": { "type": "string" }, - "google_client_secret": { "type": "string" }, - "disable_email_password_login": { "type": "boolean" } + "config_type": { + "type": "string", + "enum": [ + "google" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + } }, "required": [ "config_type", @@ -720,28 +1003,76 @@ "google_client_secret", "disable_email_password_login" ], - "additionalProperties": false + "additionalProperties": false, + "title": "Google" }, { "type": "object", "properties": { - "config_type": { "type": "string", "enum": ["oidc"] }, - "oidc_client_id": { "type": "string", "minLength": 1 }, - "oidc_client_secret": { "type": "string", "minLength": 1 }, - "oidc_scopes": { "type": "string", "minLength": 1 }, - "oidc_auth_url": { "type": "string", "minLength": 1 }, - "oidc_token_url": { "type": "string", "minLength": 1 }, - "oidc_userinfo_url": { "type": "string", "minLength": 1 }, - "oidc_audience": { "type": "string" }, - "jwt_email_key": { "type": "string", "minLength": 1 }, - "jwt_roles_key": { "type": "string", "minLength": 1 }, - "jwt_first_name_key": { "type": "string", "minLength": 1 }, - "jwt_last_name_key": { "type": "string", "minLength": 1 }, - "roles_mapping": { "type": "string" }, - "jit_enabled": { "type": "boolean" }, - "restricted_domain": { "type": "string" }, - "trigger_login_automatically": { "type": "boolean" }, - "disable_email_password_login": { "type": "boolean" } + "config_type": { + "type": "string", + "enum": [ + "oidc" + ] + }, + "oidc_client_id": { + "type": "string", + "minLength": 1 + }, + "oidc_client_secret": { + "type": "string", + "minLength": 1 + }, + "oidc_scopes": { + "type": "string", + "minLength": 1 + }, + "oidc_auth_url": { + "type": "string", + "minLength": 1 + }, + "oidc_token_url": { + "type": "string", + "minLength": 1 + }, + "oidc_userinfo_url": { + "type": "string", + "minLength": 1 + }, + "oidc_audience": { + "type": "string" + }, + "jwt_email_key": { + "type": "string", + "minLength": 1 + }, + "jwt_roles_key": { + "type": "string", + "minLength": 1 + }, + "jwt_first_name_key": { + "type": "string", + "minLength": 1 + }, + "jwt_last_name_key": { + "type": "string", + "minLength": 1 + }, + "roles_mapping": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + }, + "disable_email_password_login": { + "type": "boolean" + } }, "required": [ "config_type", @@ -757,69 +1088,162 @@ "trigger_login_automatically", "disable_email_password_login" ], - "additionalProperties": false + "additionalProperties": false, + "title": "OIDC" }, { "type": "object", "properties": { - "config_type": { "type": "string", "enum": ["google & oidc"] }, - "google_client_id": { "type": "string" }, - "google_client_secret": { "type": "string" }, - "disable_email_password_login": { "type": "boolean" }, - "oidc_client_id": { "type": "string", "minLength": 1 }, - "oidc_client_secret": { "type": "string", "minLength": 1 }, - "oidc_scopes": { "type": "string", "minLength": 1 }, - "oidc_auth_url": { "type": "string", "minLength": 1 }, - "oidc_token_url": { "type": "string", "minLength": 1 }, - "oidc_userinfo_url": { "type": "string", "minLength": 1 }, - "oidc_audience": { "type": "string" }, - "jwt_email_key": { "type": "string", "minLength": 1 }, - "jwt_roles_key": { "type": "string", "minLength": 1 }, - "jwt_first_name_key": { "type": "string", "minLength": 1 }, - "jwt_last_name_key": { "type": "string", "minLength": 1 }, - "roles_mapping": { "type": "string" }, - "jit_enabled": { "type": "boolean" }, - "restricted_domain": { "type": "string" }, - "trigger_login_automatically": { "type": "boolean" } - }, - "required": [ - "config_type", - "google_client_id", - "google_client_secret", - "disable_email_password_login", - "oidc_client_id", - "oidc_client_secret", - "oidc_scopes", - "oidc_auth_url", - "oidc_token_url", - "jwt_email_key", - "jwt_first_name_key", - "jwt_last_name_key", - "jit_enabled", - "trigger_login_automatically" - ], - "additionalProperties": false - }, + "config_type": { + "type": "string", + "enum": [ + "google & oidc" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + }, + "oidc_client_id": { + "type": "string", + "minLength": 1 + }, + "oidc_client_secret": { + "type": "string", + "minLength": 1 + }, + "oidc_scopes": { + "type": "string", + "minLength": 1 + }, + "oidc_auth_url": { + "type": "string", + "minLength": 1 + }, + "oidc_token_url": { + "type": "string", + "minLength": 1 + }, + "oidc_userinfo_url": { + "type": "string", + "minLength": 1 + }, + "oidc_audience": { + "type": "string" + }, + "jwt_email_key": { + "type": "string", + "minLength": 1 + }, + "jwt_roles_key": { + "type": "string", + "minLength": 1 + }, + "jwt_first_name_key": { + "type": "string", + "minLength": 1 + }, + "jwt_last_name_key": { + "type": "string", + "minLength": 1 + }, + "roles_mapping": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically" + ], + "additionalProperties": false, + "title": "Google & OIDC" + }, { "type": "object", "properties": { - "config_type": { "type": "string", "enum": ["saml"] }, - "idp_metadata_xml": { "type": "string", "minLength": 1 }, - "saml_first_name_attribute": { "type": "string", "minLength": 1 }, - "saml_last_name_attribute": { "type": "string", "minLength": 1 }, - "saml_groups_attribute": { "type": "string" }, - "saml_sync_group_claims": { "type": "boolean" }, - "ldap_sync_group_claims": { "type": "boolean" }, - "ldap_role_mapping": { "type": "string" }, - "ldap_server_url": { "type": "string" }, - "ldap_base_domain_components": { "type": "string" }, - "ldap_server_name": { "type": "string" }, - "ldap_server_key": { "type": "string" }, - "ldap_server_certificate": { "type": "string" }, - "jit_enabled": { "type": "boolean" }, - "restricted_domain": { "type": "string" }, - "trigger_login_automatically": { "type": "boolean" }, - "disable_email_password_login": { "type": "boolean" } + "config_type": { + "type": "string", + "enum": [ + "saml" + ] + }, + "idp_metadata_xml": { + "type": "string", + "minLength": 1 + }, + "saml_first_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_last_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_groups_attribute": { + "type": "string" + }, + "saml_sync_group_claims": { + "type": "boolean" + }, + "ldap_sync_group_claims": { + "type": "boolean" + }, + "ldap_role_mapping": { + "type": "string" + }, + "ldap_server_url": { + "type": "string" + }, + "ldap_base_domain_components": { + "type": "string" + }, + "ldap_server_name": { + "type": "string" + }, + "ldap_server_key": { + "type": "string" + }, + "ldap_server_certificate": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + }, + "disable_email_password_login": { + "type": "boolean" + } }, "required": [ "config_type", @@ -831,30 +1255,75 @@ "trigger_login_automatically", "disable_email_password_login" ], - "additionalProperties": false + "additionalProperties": false, + "title": "SAML" }, { "type": "object", "properties": { - "config_type": { "type": "string", "enum": ["google & saml"] }, - "google_client_id": { "type": "string" }, - "google_client_secret": { "type": "string" }, - "disable_email_password_login": { "type": "boolean" }, - "idp_metadata_xml": { "type": "string", "minLength": 1 }, - "saml_first_name_attribute": { "type": "string", "minLength": 1 }, - "saml_last_name_attribute": { "type": "string", "minLength": 1 }, - "saml_groups_attribute": { "type": "string" }, - "saml_sync_group_claims": { "type": "boolean" }, - "ldap_sync_group_claims": { "type": "boolean" }, - "ldap_role_mapping": { "type": "string" }, - "ldap_server_url": { "type": "string" }, - "ldap_base_domain_components": { "type": "string" }, - "ldap_server_name": { "type": "string" }, - "ldap_server_key": { "type": "string" }, - "ldap_server_certificate": { "type": "string" }, - "jit_enabled": { "type": "boolean" }, - "restricted_domain": { "type": "string" }, - "trigger_login_automatically": { "type": "boolean" } + "config_type": { + "type": "string", + "enum": [ + "google & saml" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + }, + "idp_metadata_xml": { + "type": "string", + "minLength": 1 + }, + "saml_first_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_last_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_groups_attribute": { + "type": "string" + }, + "saml_sync_group_claims": { + "type": "boolean" + }, + "ldap_sync_group_claims": { + "type": "boolean" + }, + "ldap_role_mapping": { + "type": "string" + }, + "ldap_server_url": { + "type": "string" + }, + "ldap_base_domain_components": { + "type": "string" + }, + "ldap_server_name": { + "type": "string" + }, + "ldap_server_key": { + "type": "string" + }, + "ldap_server_certificate": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + } }, "required": [ "config_type", @@ -868,10 +1337,11 @@ "jit_enabled", "trigger_login_automatically" ], - "additionalProperties": false + "additionalProperties": false, + "title": "Google & SAML" } ], - "description": "This object represents the SSO configuration for an organization or space. See https://docs.retool.com/sso for more information." + "description": "This object represents the SSO configuration for an organization or space. See [docs](https://docs.retool.com/sso) for more information." }, "user_attributes": { "type": "object", @@ -894,8 +1364,12 @@ }, "data_type": { "type": "string", - "enum": ["string", "number", "json"], - "description": "The data type of the user attribute. One of types `string`, `number`, or `json`" + "enum": [ + "string", + "number", + "json" + ], + "description": "The data type of the user attribute. Valid types are `string`, `number`, or `json`" }, "default_value": { "type": "string", @@ -921,50 +1395,222 @@ ], "description": "This object represents user attributes." }, + "role": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the role." + }, + "organization_id": { + "type": "string", + "description": "The id of the organization" + }, + "name": { + "type": "string", + "description": "The name of the role" + }, + "description": { + "type": "string", + "description": "The description of the role" + }, + "is_default_role": { + "type": "boolean", + "description": "Whether the role is the default role" + }, + "is_legacy_role": { + "type": "boolean", + "description": "Whether the role is a migrated legacy role" + }, + "object_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The object scopes of the role" + }, + "organization_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The organization scopes of the role" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "organization_id", + "name", + "description", + "is_default_role", + "is_legacy_role", + "object_scopes", + "organization_scopes", + "created_at", + "updated_at" + ] + }, "access_request": { "type": "object", "properties": { - "id": { "type": "number" }, + "id": { + "type": "number" + }, "status": { "type": "string", - "enum": ["PENDING", "APPROVED", "DENIED"] + "enum": [ + "PENDING", + "APPROVED", + "DENIED" + ] + }, + "legacy_id": { + "type": "number" + }, + "requesting_email": { + "type": "string" + }, + "updated_by_id": { + "type": "string", + "nullable": true }, - "legacy_id": { "type": "number" }, - "requesting_email": { "type": "string" }, - "updated_by_id": { "type": "string", "nullable": true } + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } }, "required": [ "id", "status", "legacy_id", "requesting_email", - "updated_by_id" + "updated_by_id", + "created_at", + "updated_at" ], "description": "Access Request" }, + "accessToken": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The uuid of the access token." + }, + "label": { + "type": "string", + "minLength": 1, + "description": "The name of the access token." + }, + "description": { + "type": "string", + "nullable": true, + "description": "The description of the access token." + }, + "last4": { + "type": "string", + "description": "Last 4 characters of the access token secret" + }, + "owner_legacy_id": { + "type": "number", + "description": "The legacy id of the user that created the token" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "label", + "description", + "last4", + "owner_legacy_id", + "scopes", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "This object represents an API access token." + }, "user_invite": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "invited_by": { "type": "string" }, - "invited_email": { "type": "string", "format": "email" }, - "expires_at": { "type": "string" }, - "claimed_by": { "type": "string", "nullable": true }, - "claimed_at": { "type": "string", "nullable": true }, + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "invited_by": { + "type": "string" + }, + "invited_email": { + "type": "string", + "format": "email" + }, + "expires_at": { + "type": "string" + }, + "claimed_by": { + "type": "string", + "nullable": true + }, + "claimed_at": { + "type": "string", + "nullable": true + }, "user_type": { "type": "string", "nullable": true, - "enum": ["default", "mobile", "external"] + "enum": [ + "default", + "mobile", + "external" + ] }, "metadata": { "type": "object", "nullable": true, - "additionalProperties": { "nullable": true }, + "additionalProperties": { + "nullable": true + }, "default": {} }, - "created_at": { "type": "string" }, - "invite_link": { "type": "string", "format": "uri" } + "created_at": { + "type": "string" + }, + "invite_link": { + "type": "string", + "format": "uri", + "description": "User invite link expires 7 days after generation." + } }, "required": [ "id", @@ -984,15 +1630,8 @@ "type": "object", "properties": { "id": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } - ], - "description": "The uuid for the resource." + "type": "string", + "description": "The uuid or name for the resource." }, "type": { "type": "string", @@ -1010,8 +1649,10 @@ "cosmosdb", "couchdb", "databricks", + "databricksLakebase", "datadog", "datastore", + "dbServer", "denodo", "dynamodb", "elasticsearch", @@ -1020,6 +1661,8 @@ "gcs", "github", "googleAnalytics", + "googleCalendar", + "googleDocs", "googleMaps", "googleSearchConsole", "googlesheets", @@ -1045,7 +1688,6 @@ "redshift", "restapi", "rethinkdb", - "rockset", "retoolEmail", "retoolAI", "retoolDb", @@ -1061,11 +1703,19 @@ "snowflake", "stripe", "twilio", - "vertica" + "vertica", + "aiProvider" ], "description": "The type of resource." }, - "display_name": { "type": "string", "minLength": 1 }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, "created_at": { "type": "string", "example": "2019-02-08T11:45:48.899Z" @@ -1075,7 +1725,14 @@ "example": "2019-02-24T18:28:18.790Z" } }, - "required": ["id", "type", "display_name", "created_at", "updated_at"], + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], "additionalProperties": false, "description": "Resource" }, @@ -1091,15 +1748,8 @@ "type": "object", "properties": { "id": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } - ], - "description": "The uuid for the resource." + "type": "string", + "description": "The uuid or name for the resource." }, "type": { "type": "string", @@ -1117,8 +1767,10 @@ "cosmosdb", "couchdb", "databricks", + "databricksLakebase", "datadog", "datastore", + "dbServer", "denodo", "dynamodb", "elasticsearch", @@ -1127,6 +1779,8 @@ "gcs", "github", "googleAnalytics", + "googleCalendar", + "googleDocs", "googleMaps", "googleSearchConsole", "googlesheets", @@ -1152,7 +1806,6 @@ "redshift", "restapi", "rethinkdb", - "rockset", "retoolEmail", "retoolAI", "retoolDb", @@ -1168,11 +1821,19 @@ "snowflake", "stripe", "twilio", - "vertica" + "vertica", + "aiProvider" ], "description": "The type of resource." }, - "display_name": { "type": "string", "minLength": 1 }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, "created_at": { "type": "string", "example": "2019-02-08T11:45:48.899Z" @@ -1186,6 +1847,7 @@ "id", "type", "display_name", + "protected", "created_at", "updated_at" ], @@ -1195,23 +1857,41 @@ "environment": { "type": "object", "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { "type": "string" }, - "description": { "type": "string", "nullable": true }, - "color": { "type": "string" }, - "default": { "type": "boolean" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } - }, - "required": [ - "id", - "name", - "description", - "color", - "default", - "created_at", - "updated_at" - ], + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], "description": "Environment" }, "options": { @@ -1224,15 +1904,27 @@ { "type": "object", "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, "ssl_settings": { "type": "object", "properties": { - "enabled": { "type": "boolean" }, + "enabled": { + "type": "boolean" + }, "client_key": { "type": "string", "nullable": true @@ -1241,21 +1933,40 @@ "type": "string", "nullable": true }, - "ca_cert": { "type": "string", "nullable": true } + "ca_cert": { + "type": "string", + "nullable": true + } }, "additionalProperties": false }, "ssh_tunnel_options": { "type": "object", "properties": { - "enabled": { "type": "boolean" }, - "host": { "type": "string" }, - "port": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "private_key_name": { "type": "string" } - }, - "required": ["enabled", "host", "port"], + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], "additionalProperties": false }, "disable_converting_queries_to_prepared_statements": { @@ -1267,13 +1978,18 @@ "description": "This allows you to enable writing via only the restrictive GUI query editor." } }, - "required": ["host", "port"], + "required": [ + "host", + "port" + ], "additionalProperties": false }, { "type": "object", "properties": { - "connection_string": { "type": "string" }, + "connection_string": { + "type": "string" + }, "disable_converting_queries_to_prepared_statements": { "type": "boolean", "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." @@ -1288,7 +2004,9 @@ ] } }, - "required": ["database_options"], + "required": [ + "database_options" + ], "additionalProperties": false, "title": "Postgres Options" }, @@ -1298,32 +2016,69 @@ "database_options": { "type": "object", "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, "ssl_settings": { "type": "object", "properties": { - "enabled": { "type": "boolean" }, - "client_key": { "type": "string", "nullable": true }, - "client_cert": { "type": "string", "nullable": true }, - "ca_cert": { "type": "string", "nullable": true } + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } }, "additionalProperties": false }, "ssh_tunnel_options": { "type": "object", "properties": { - "enabled": { "type": "boolean" }, - "host": { "type": "string" }, - "port": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "private_key_name": { "type": "string" } - }, - "required": ["enabled", "host", "port"], + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], "additionalProperties": false }, "disable_converting_queries_to_prepared_statements": { @@ -1348,11 +2103,16 @@ "description": "This allows you to turn your MySQL date strings into Javascript Date objects." } }, - "required": ["host", "port"], + "required": [ + "host", + "port" + ], "additionalProperties": false } }, - "required": ["database_options"], + "required": [ + "database_options" + ], "additionalProperties": false, "title": "MySQL Options" }, @@ -1362,14 +2122,28 @@ "database_options": { "type": "object", "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, "ssl_settings": { "type": "object", - "properties": { "enabled": { "type": "boolean" } }, + "properties": { + "enabled": { + "type": "boolean" + } + }, "additionalProperties": false }, "disable_converting_queries_to_prepared_statements": { @@ -1381,24 +2155,37 @@ "description": "This allows you to enable writing via only the restrictive GUI query editor." } }, - "required": ["host", "port"], + "required": [ + "host", + "port" + ], "additionalProperties": false } }, - "required": ["database_options"], + "required": [ + "database_options" + ], "additionalProperties": false, "title": "Redshift Options" }, { "type": "object", "properties": { - "account_identifier": { "type": "string" }, + "account_identifier": { + "type": "string" + }, "database_options": { "type": "object", "properties": { - "name": { "type": "string" }, - "schema": { "type": "string" }, - "warehouse": { "type": "string" }, + "name": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "warehouse": { + "type": "string" + }, "disable_converting_queries_to_prepared_statements": { "type": "boolean", "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." @@ -1408,10 +2195,14 @@ "description": "This allows you to enable writing via only the restrictive GUI query editor." } }, - "required": ["name"], + "required": [ + "name" + ], "additionalProperties": false }, - "user_role": { "type": "string" }, + "user_role": { + "type": "string" + }, "authentication_options": { "anyOf": [ { @@ -1419,10 +2210,16 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["snowflake"] + "enum": [ + "snowflake" + ] + }, + "username": { + "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" } + "password": { + "type": "string" + } }, "required": [ "authentication_type", @@ -1436,11 +2233,19 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["snowflake_jwt"] + "enum": [ + "snowflake_jwt" + ] + }, + "username": { + "type": "string" }, - "username": { "type": "string" }, - "private_key": { "type": "string" }, - "private_key_passphrase": { "type": "string" } + "private_key": { + "type": "string" + }, + "private_key_passphrase": { + "type": "string" + } }, "required": [ "authentication_type", @@ -1454,11 +2259,19 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["oauth2"] + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" }, - "oauth2_client_id": { "type": "string" }, - "oauth2_client_secret": { "type": "string" }, - "oauth2_callback_url": { "type": "string" } + "oauth2_callback_url": { + "type": "string" + } }, "required": [ "authentication_type", @@ -1483,24 +2296,41 @@ "properties": { "base_url": { "type": "string", - "description": "Use the absolute URL (e.g https://example.com)." + "description": "Use the absolute URL (e.g. https://example.com)." }, "url_parameters": { "type": "array", - "items": { "type": "array", "items": { "type": "string" } } + "items": { + "type": "array", + "items": { + "type": "string" + } + } }, "headers": { "type": "array", - "items": { "type": "array", "items": { "type": "string" } } + "items": { + "type": "array", + "items": { + "type": "string" + } + } }, "extra_body_values": { "type": "array", - "items": { "type": "array", "items": { "type": "string" } }, + "items": { + "type": "array", + "items": { + "type": "string" + } + }, "description": "Extra body values are not passed for GET or HEAD requests." }, "cookies_to_forward": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." }, "forward_all_cookies": { @@ -1514,12 +2344,22 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["auth0"] + "enum": [ + "auth0" + ] }, - "auth0_domain": { "type": "string" }, - "auth0_client_id": { "type": "string" }, - "auth0_client_secret": { "type": "string" }, - "auth0_custom_audience": { "type": "string" } + "auth0_domain": { + "type": "string" + }, + "auth0_client_id": { + "type": "string" + }, + "auth0_client_secret": { + "type": "string" + }, + "auth0_custom_audience": { + "type": "string" + } }, "required": [ "authentication_type", @@ -1535,12 +2375,22 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["aws4"] + "enum": [ + "aws4" + ] + }, + "amazon_aws_region": { + "type": "string" + }, + "amazon_service_name": { + "type": "string" + }, + "amazon_access_key_id": { + "type": "string" + }, + "amazon_secret_access_key": { + "type": "string" }, - "amazon_aws_region": { "type": "string" }, - "amazon_service_name": { "type": "string" }, - "amazon_access_key_id": { "type": "string" }, - "amazon_secret_access_key": { "type": "string" }, "auth_with_default_credential_provider_chain": { "type": "boolean" }, @@ -1562,12 +2412,21 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["basic"] + "enum": [ + "basic" + ] }, - "basic_username": { "type": "string" }, - "basic_password": { "type": "string" } + "basic_username": { + "type": "string" + }, + "basic_password": { + "type": "string" + } }, - "required": ["authentication_type", "basic_username"], + "required": [ + "authentication_type", + "basic_username" + ], "additionalProperties": false }, { @@ -1575,10 +2434,16 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["digest"] + "enum": [ + "digest" + ] + }, + "digest_username": { + "type": "string" }, - "digest_username": { "type": "string" }, - "digest_password": { "type": "string" } + "digest_password": { + "type": "string" + } }, "required": [ "authentication_type", @@ -1592,20 +2457,47 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["oauth1"] + "enum": [ + "oauth1" + ] }, "oauth1_signature_method": { "anyOf": [ - { "type": "string", "enum": ["HMAC-SHA1"] }, - { "type": "string", "enum": ["HMAC-SHA256"] }, - { "type": "string", "enum": ["PLAINTEXT"] } + { + "type": "string", + "enum": [ + "HMAC-SHA1" + ] + }, + { + "type": "string", + "enum": [ + "HMAC-SHA256" + ] + }, + { + "type": "string", + "enum": [ + "PLAINTEXT" + ] + } ] }, - "oauth1_consumer_key": { "type": "string" }, - "oauth1_consumer_secret": { "type": "string" }, - "oauth1_token_key": { "type": "string" }, - "oauth1_token_secret": { "type": "string" }, - "oauth1_realm_parameter": { "type": "string" } + "oauth1_consumer_key": { + "type": "string" + }, + "oauth1_consumer_secret": { + "type": "string" + }, + "oauth1_token_key": { + "type": "string" + }, + "oauth1_token_secret": { + "type": "string" + }, + "oauth1_realm_parameter": { + "type": "string" + } }, "required": [ "authentication_type", @@ -1623,22 +2515,46 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["oauth2"] + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + }, + "oauth2_auth_url": { + "type": "string" + }, + "oauth2_access_token_url": { + "type": "string" + }, + "oauth2_scope": { + "type": "string" + }, + "oauth2_audience": { + "type": "string" }, - "oauth2_client_id": { "type": "string" }, - "oauth2_client_secret": { "type": "string" }, - "oauth2_callback_url": { "type": "string" }, - "oauth2_auth_url": { "type": "string" }, - "oauth2_access_token_url": { "type": "string" }, - "oauth2_scope": { "type": "string" }, - "oauth2_audience": { "type": "string" }, "oauth2_share_user_credentials": { "type": "boolean" }, - "verify_session_url": { "type": "string" }, - "oauth2_access_token": { "type": "string" }, - "oauth2_refresh_token": { "type": "string" }, - "oauth2_id_token": { "type": "string" }, + "verify_session_url": { + "type": "string" + }, + "oauth2_access_token": { + "type": "string" + }, + "oauth2_refresh_token": { + "type": "string" + }, + "oauth2_id_token": { + "type": "string" + }, "oauth2_access_token_lifespan_seconds": { "type": "number", "nullable": true @@ -1658,17 +2574,23 @@ "properties": { "authentication_type": { "type": "string", - "enum": ["none"] + "enum": [ + "none" + ] } }, - "required": ["authentication_type"], + "required": [ + "authentication_type" + ], "additionalProperties": false } ], "description": "Note that custom auth is not yet supported." } }, - "required": ["base_url"], + "required": [ + "base_url" + ], "additionalProperties": false, "title": "Rest API Options" } @@ -1697,13 +2619,31 @@ "environment": { "type": "object", "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { "type": "string" }, - "description": { "type": "string", "nullable": true }, - "color": { "type": "string" }, - "default": { "type": "boolean" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } }, "required": [ "id", @@ -1719,18 +2659,30 @@ "customComponentLibrary": { "type": "object", "properties": { - "id": { "type": "string", "format": "uuid" }, + "id": { + "type": "string", + "format": "uuid" + }, "name": { "type": "string", "description": "How the library will be referred to in Toolscript, and other code based usages." }, - "description": { "type": "string", "nullable": true }, + "description": { + "type": "string", + "nullable": true + }, "label": { "type": "string", "description": "How the library will be referred to in the Retool UI. Should be human readable." }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" } + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } }, "required": [ "id", @@ -1745,11 +2697,24 @@ "customComponentLibraryRevision": { "type": "object", "properties": { - "id": { "type": "string", "format": "uuid" }, - "version": { "type": "string" }, - "custom_component_library_id": { "type": "string" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" } + "id": { + "type": "string", + "format": "uuid" + }, + "version": { + "type": "string" + }, + "custom_component_library_id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } }, "required": [ "id", @@ -1763,12 +2728,27 @@ "customComponentLibraryRevisionFile": { "type": "object", "properties": { - "filepath": { "type": "string" }, - "file_contents": { "type": "string" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" } + "filepath": { + "type": "string" + }, + "file_contents": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } }, - "required": ["filepath", "file_contents", "created_at", "updated_at"], + "required": [ + "filepath", + "file_contents", + "created_at", + "updated_at" + ], "description": "Custom Component Library Revision" }, "configuration_variable": { @@ -1805,11 +2785,19 @@ "description": "The value of the configuration variable" } }, - "required": ["environment_id", "value"] + "required": [ + "environment_id", + "value" + ] } } }, - "required": ["id", "name", "secret", "values"] + "required": [ + "id", + "name", + "secret", + "values" + ] }, "observability_configuration": { "type": "object", @@ -1826,30 +2814,61 @@ "properties": { "provider": { "type": "string", - "enum": ["Sentry"], + "enum": [ + "Sentry" + ], "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." }, "dsn": { "type": "string", "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." + }, + "ca_certs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient" } }, - "required": ["provider", "dsn"] + "required": [ + "provider", + "dsn" + ] }, { "type": "object", "properties": { "provider": { "type": "string", - "enum": ["Datadog"], + "enum": [ + "Datadog" + ], "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." }, "api_key": { "type": "string", "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." + }, + "site": { + "type": "string", + "enum": [ + "US1", + "US3", + "US5", + "EU1", + "US1-FED", + "AP1" + ], + "default": "US1", + "description": "This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com." } }, - "required": ["provider", "api_key"] + "required": [ + "provider", + "api_key", + "site" + ] } ], "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." @@ -1859,11 +2878,15 @@ "description": "When enabled, use this provider for apps observability monitoring." } }, - "required": ["id", "config", "enabled"], + "required": [ + "id", + "config", + "enabled" + ], "additionalProperties": false, "description": "Shape of external Observability provider config" }, - "organization": { + "usage_analytics_organization": { "type": "object", "properties": { "org_id": { @@ -1880,9 +2903,13 @@ "example": "2019-02-08T11:45:48.899Z" } }, - "required": ["org_id", "host", "last_active"], + "required": [ + "org_id", + "host", + "last_active" + ], "additionalProperties": false, - "description": "An organization in Retool" + "description": "An organization in the context of usage analytics" }, "usage": { "type": "object", @@ -1924,7 +2951,9 @@ "items": { "type": "object", "properties": { - "day": { "type": "string" }, + "day": { + "type": "string" + }, "maa": { "type": "number", "description": "The number of distinct applications that were active on the given day" @@ -1934,7 +2963,11 @@ "description": "The number of distinct users who were active on the given day" } }, - "required": ["day", "maa", "mau"] + "required": [ + "day", + "maa", + "mau" + ] } } }, @@ -1958,7 +2991,10 @@ "type": "string", "description": "The name of the app" }, - "host": { "type": "string", "description": "The organization host" }, + "host": { + "type": "string", + "description": "The organization host" + }, "count_app_views": { "type": "number", "description": "The number of views of the app in the time range specified" @@ -1985,197 +3021,581 @@ "count_editors" ], "additionalProperties": false - } - }, - "parameters": {}, - "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer" } } - }, - "paths": { - "/users/{userId}": { - "get": { - "summary": "Get user", - "description": "Returns the user. The API token must have the \"Users > Read\" scope.", - "tags": ["Users"], - "parameters": [ - { - "schema": { "type": "string", "pattern": "user_([a-z0-9]+)" }, - "required": true, - "name": "userId", - "in": "path" + }, + "userTask": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the user task." + }, + "workflow_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow this task belongs to." + }, + "workflow_name": { + "type": "string", + "description": "The name of the workflow." + }, + "workflow_run_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "task_name": { + "type": "string", + "description": "The name of the task." + }, + "status": { + "type": "string", + "enum": [ + "submitted", + "pending", + "cancelled", + "expired" + ], + "description": "The current status of the task." + }, + "context": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "description": "Additional context for the task." + }, + "created_at": { + "type": "string", + "description": "The creation date time of the task." + }, + "completed_at": { + "type": "string", + "nullable": true, + "description": "The completion date time of the task." + }, + "task_url": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URL links to apps associated with the task." + }, + "assignees": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "id": { + "type": "number" + }, + "name": { + "type": "string" + } + }, + "required": [ + "type", + "id", + "name" + ] + }, + "description": "The groups or users assigned to this task." + }, + "workflow_release": { + "type": "string", + "nullable": true, + "description": "The workflow release version, if any." + }, + "expires_at": { + "type": "string", + "nullable": true, + "description": "The expiration date time of the task, if set." + }, + "output": { + "type": "object", + "additionalProperties": { + "nullable": true + } } + }, + "required": [ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at" ], - "responses": { - "200": { - "description": "The requested user.", - "content": { - "application/json": { - "schema": { + "description": "User-defined context for the task." + }, + "workflowRunWithUserTask": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the workflow run." + }, + "workflow_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow." + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "trigger_type": { + "type": "string", + "description": "The type of trigger that started the workflow." + }, + "trigger_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the trigger." + }, + "created_at": { + "type": "string", + "description": "The creation date time of the workflow run." + }, + "user_tasks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the user task." + }, + "workflow_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow this task belongs to." + }, + "workflow_name": { + "type": "string", + "description": "The name of the workflow." + }, + "workflow_run_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "task_name": { + "type": "string", + "description": "The name of the task." + }, + "status": { + "type": "string", + "enum": [ + "submitted", + "pending", + "cancelled", + "expired" + ], + "description": "The current status of the task." + }, + "context": { "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "user_([a-z0-9]+)", - "description": "The id of the user" - }, - "legacy_id": { - "type": "string", - "pattern": "user_([a-z0-9]+)", - "description": "The legacy id of the user" - }, - "email": { - "type": "string", - "format": "email", - "description": "The email of the user" - }, - "active": { - "type": "boolean", - "description": "Whether the user is active or not" - }, - "created_at": { - "type": "string", - "format": "date-time", - "example": "2019-02-08T11:45:48.899Z" - }, - "last_active": { - "type": "string", - "nullable": true, - "format": "date-time", - "example": "2019-02-08T11:45:48.899Z" - }, - "first_name": { - "type": "string", - "nullable": true, - "minLength": 1, - "maxLength": 36, - "description": "The first name of the user" - }, - "last_name": { - "type": "string", - "nullable": true, - "minLength": 1, - "maxLength": 36, - "description": "The last name of the user" - }, - "metadata": { - "type": "object", - "additionalProperties": { "nullable": true }, - "default": {} - } + "additionalProperties": { + "nullable": true + }, + "description": "Additional context for the task." + }, + "created_at": { + "type": "string", + "description": "The creation date time of the task." + }, + "completed_at": { + "type": "string", + "nullable": true, + "description": "The completion date time of the task." + }, + "task_url": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URL links to apps associated with the task." + }, + "assignees": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "required": [ - "id", - "legacy_id", - "email", - "active", - "created_at", - "last_active", - "first_name", - "last_name", - "metadata" - ], - "additionalProperties": false, - "description": "This object represents a user." - } + "id": { + "type": "number" + }, + "name": { + "type": "string" + } + }, + "required": [ + "type", + "id", + "name" + ] }, - "required": ["success", "data"], - "description": "A single user" + "description": "The groups or users assigned to this task." + }, + "workflow_release": { + "type": "string", + "nullable": true, + "description": "The workflow release version, if any." + }, + "expires_at": { + "type": "string", + "nullable": true, + "description": "The expiration date time of the task, if set." + }, + "output": { + "type": "object", + "additionalProperties": { + "nullable": true + } } - } - } + }, + "required": [ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at" + ], + "description": "User-defined context for the task." + }, + "description": "List of user tasks of the workfow run." } - } - }, - "delete": { - "summary": "Delete a user", - "description": "Deletes a user. The API token must have the \"Users > Write\" scope.", - "tags": ["Users"], - "parameters": [ + }, + "required": [ + "status", + "workflow_id", + "id", + "trigger_type", + "trigger_id", + "created_at" + ], + "description": "A workflow run and related data." + }, + "organization_settings": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The id of the organization." + }, + "request_access_enabled": { + "type": "boolean", + "description": "Whether users can request access to join the organization." + }, + "ai_support_bot_disabled": { + "type": "boolean", + "description": "Whether the AI support bot is disabled." + }, + "retool_forms_disabled": { + "type": "boolean", + "description": "Whether Retool forms are disabled." + }, + "release_management_enabled": { + "type": "boolean", + "description": "Whether versions and releases on apps are disabled." + }, + "cache_queries_per_user": { + "type": "boolean", + "nullable": true + }, + "apply_preloaded_css_to_homepage": { + "type": "boolean", + "description": "Whether preloaded CSS is applied to the Retool homepage." + }, + "preloaded_css": { + "type": "string", + "nullable": true, + "description": "Custom CSS rules to apply across Retool." + }, + "preloaded_javascript": { + "type": "string", + "nullable": true, + "description": "Preloaded JavaScript that will apply to every Retool app." + }, + "javascript_links": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of custom JavaScript libraries to load in every app." + }, + "workflow_run_retention_period_mins": { + "type": "number", + "description": "Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem)" + }, + "app_owners_permissions_management": { + "type": "boolean", + "description": "Whether app owners can manage permissions for their apps directly." + }, + "two_factor_auth_required": { + "type": "boolean", + "description": "Whether two-factor authentication is required for all users in the organization." + }, + "two_factor_auth_type": { + "type": "string", + "nullable": true, + "enum": [ + "fido2", + "otp" + ], + "description": "Required 2FA type, applies to the whole organization" + }, + "disable_new_login_ip_notification_email": { + "type": "boolean", + "description": "Whether notification emails for logins from new IPs are disabled." + } + }, + "required": [ + "id", + "request_access_enabled", + "ai_support_bot_disabled", + "retool_forms_disabled", + "release_management_enabled", + "cache_queries_per_user", + "apply_preloaded_css_to_homepage", + "preloaded_css", + "preloaded_javascript", + "javascript_links", + "workflow_run_retention_period_mins", + "app_owners_permissions_management", + "two_factor_auth_required", + "two_factor_auth_type", + "disable_new_login_ip_notification_email" + ], + "additionalProperties": false, + "description": "This object represents the advanced settings configured on an organization." + }, + "analytics_integrations_settings": { + "oneOf": [ { - "schema": { "type": "string", "pattern": "user_([a-z0-9]+)" }, - "required": true, - "name": "userId", - "in": "path" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "google" + ] + }, + "measurement_id": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "type", + "measurement_id", + "enabled" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "segment" + ] + }, + "host": { + "type": "string", + "enum": [ + "US", + "EU" + ] + }, + "api_key": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "type", + "host", + "api_key", + "enabled" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "stdout" + ] + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "type", + "enabled" + ] + } + ] + }, + "workflow": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The Workflow ID." + }, + "name": { + "type": "string", + "description": "The name of the Workflow" + }, + "description": { + "type": "string", + "nullable": true, + "description": "The description of the Workflow" + }, + "crontab": { + "type": "string", + "nullable": true, + "description": "The cron tab of the Workflow" + }, + "timezone": { + "type": "string", + "nullable": true, + "description": "The timezone of the Workflow" + }, + "is_enabled": { + "type": "boolean", + "description": "Whether the Workflow is enabled" + }, + "folder_id": { + "type": "string", + "description": "The folder ID of the Workflow" + }, + "protected": { + "type": "boolean", + "description": "Whether the Workflow is protected" + }, + "created_by": { + "type": "number", + "nullable": true, + "description": "The user ID of the creator of the Workflow" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-24T18:28:18.790Z" } + }, + "required": [ + "id", + "name", + "description", + "crontab", + "timezone", + "is_enabled", + "folder_id", + "protected", + "created_by", + "created_at", + "updated_at" ], - "responses": { "204": { "description": "Successfully deleted user." } } + "description": "This object represents a Workflow." }, - "patch": { - "summary": "Update a user", - "description": "Updates and returns the updated user. The API token must have the \"Users > Write\" scope.", - "tags": ["Users"], + "ip_allowlist": { + "type": "object", + "properties": { + "ipAddresses": { + "type": "object", + "properties": { + "us-west-2": { + "type": "string" + }, + "eu-central-1": { + "type": "string" + }, + "ap-southeast-1": { + "type": "string" + } + }, + "required": [ + "us-west-2", + "eu-central-1", + "ap-southeast-1" + ] + } + }, + "required": [ + "ipAddresses" + ], + "additionalProperties": false + } + }, + "parameters": {}, + "securitySchemes": { + "BearerAuth": { + "type": "http", + "scheme": "bearer" + } + } + }, + "paths": { + "/users/{userId}": { + "get": { + "summary": "Get a user", + "description": "Returns the specified user. The API token must have the \"Users > Read\" scope.", + "tags": [ + "Users" + ], "parameters": [ { - "schema": { "type": "string", "pattern": "user_([a-z0-9]+)" }, + "schema": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + }, "required": true, "name": "userId", "in": "path" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "operations": { - "type": "array", - "items": { - "anyOf": [ - { - "type": "object", - "properties": { - "op": { "type": "string", "enum": ["add"] }, - "path": { "type": "string" }, - "value": { - "nullable": true, - "description": "A JSON value" - } - }, - "required": ["op", "path"] - }, - { - "type": "object", - "properties": { - "op": { "type": "string", "enum": ["remove"] }, - "path": { "type": "string" } - }, - "required": ["op", "path"] - }, - { - "type": "object", - "properties": { - "op": { "type": "string", "enum": ["replace"] }, - "path": { "type": "string" }, - "value": { - "nullable": true, - "description": "A JSON value" - } - }, - "required": ["op", "path"] - } - ] - }, - "description": "A list of operations to apply to the user. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." - } - }, - "required": ["operations"], - "additionalProperties": false, - "description": "The body of a request to update a user." - } - } - } - }, "responses": { "200": { - "description": "Returns the updated user.", + "description": "The requested user.", "content": { "application/json": { "schema": { @@ -2183,7 +3603,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -2195,8 +3617,7 @@ "description": "The id of the user" }, "legacy_id": { - "type": "string", - "pattern": "user_([a-z0-9]+)", + "type": "number", "description": "The legacy id of the user" }, "email": { @@ -2235,8 +3656,27 @@ }, "metadata": { "type": "object", - "additionalProperties": { "nullable": true }, + "additionalProperties": { + "nullable": true + }, "default": {} + }, + "is_admin": { + "type": "boolean", + "description": "Whether the user is an admin or not" + }, + "user_type": { + "type": "string", + "enum": [ + "default", + "mobile", + "embed" + ], + "description": "The user type" + }, + "two_factor_auth_enabled": { + "type": "boolean", + "description": "Whether two factor authentication is enabled for this user" } }, "required": [ @@ -2248,184 +3688,158 @@ "last_active", "first_name", "last_name", - "metadata" + "metadata", + "is_admin", + "user_type", + "two_factor_auth_enabled" ], "additionalProperties": false, "description": "This object represents a user." } }, - "required": ["success", "data"], - "description": "A single user" - } - } - } - } - } - } - }, - "/users": { - "get": { - "summary": "List users", - "description": "Returns a list of users. The API token must have the \"Users > Read\" scope.", - "tags": ["Users"], - "responses": { - "200": { - "description": "List of users.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "user_([a-z0-9]+)", - "description": "The id of the user" - }, - "legacy_id": { - "type": "string", - "pattern": "user_([a-z0-9]+)", - "description": "The legacy id of the user" - }, - "email": { - "type": "string", - "format": "email", - "description": "The email of the user" - }, - "active": { - "type": "boolean", - "description": "Whether the user is active or not" - }, - "created_at": { - "type": "string", - "format": "date-time", - "example": "2019-02-08T11:45:48.899Z" - }, - "last_active": { - "type": "string", - "nullable": true, - "format": "date-time", - "example": "2019-02-08T11:45:48.899Z" - }, - "first_name": { - "type": "string", - "nullable": true, - "minLength": 1, - "maxLength": 36, - "description": "The first name of the user" - }, - "last_name": { - "type": "string", - "nullable": true, - "minLength": 1, - "maxLength": 36, - "description": "The last name of the user" - }, - "metadata": { - "type": "object", - "additionalProperties": { "nullable": true }, - "default": {} - } - }, - "required": [ - "id", - "legacy_id", - "email", - "active", - "created_at", - "last_active", - "first_name", - "last_name", - "metadata" - ], - "additionalProperties": false, - "description": "This object represents a user." - }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" - }, - "next_token": { - "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" - } - }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" + "data" ], - "description": "A paginated list of users." + "description": "A single user" } } } } } }, - "post": { - "summary": "Create user", - "description": "Creates a user and returns the created user. The API token must have the \"Users > Write\" scope.", - "tags": ["Users"], + "delete": { + "summary": "Delete a user", + "description": "Disables a user from the organization. The API token must have the \"Users > Write\" scope.", + "tags": [ + "Users" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + }, + "required": true, + "name": "userId", + "in": "path" + } + ], + "responses": { + "204": { + "description": "Successfully disabled user." + } + } + }, + "patch": { + "summary": "Update a user", + "description": "Updates and returns the updated user. The API token must have the \"Users > Write\" scope.", + "tags": [ + "Users" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + }, + "required": true, + "name": "userId", + "in": "path" + } + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "email": { - "type": "string", - "format": "email", - "description": "The email of the user" - }, - "first_name": { - "type": "string", - "minLength": 1, - "description": "The first name of the user" - }, - "last_name": { - "type": "string", - "minLength": 1, - "description": "The last name of the user" - }, - "active": { - "type": "boolean", - "default": true, - "description": "Whether the user is enabled or not" - }, - "metadata": { - "type": "object", - "additionalProperties": { "nullable": true }, - "default": {} + "operations": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "add" + ] + }, + "path": { + "type": "string" + }, + "value": { + "nullable": true, + "description": "A JSON value" + } + }, + "required": [ + "op", + "path" + ], + "title": "Add Operation" + }, + { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "remove" + ] + }, + "path": { + "type": "string" + } + }, + "required": [ + "op", + "path" + ], + "title": "Remove Operation" + }, + { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "replace" + ] + }, + "path": { + "type": "string" + }, + "value": { + "nullable": true, + "description": "A JSON value" + } + }, + "required": [ + "op", + "path" + ], + "title": "Replace Operation" + } + ] + }, + "description": "A list of operations to apply to the user. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." } }, - "required": ["email", "first_name", "last_name"], + "required": [ + "operations" + ], "additionalProperties": false, - "description": "Body of request to create a user" + "description": "The body of a request to update a user." } } } }, "responses": { "200": { - "description": "The created user.", + "description": "Returns the updated user.", "content": { "application/json": { "schema": { @@ -2433,7 +3847,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -2445,8 +3861,7 @@ "description": "The id of the user" }, "legacy_id": { - "type": "string", - "pattern": "user_([a-z0-9]+)", + "type": "number", "description": "The legacy id of the user" }, "email": { @@ -2485,8 +3900,27 @@ }, "metadata": { "type": "object", - "additionalProperties": { "nullable": true }, + "additionalProperties": { + "nullable": true + }, "default": {} + }, + "is_admin": { + "type": "boolean", + "description": "Whether the user is an admin or not" + }, + "user_type": { + "type": "string", + "enum": [ + "default", + "mobile", + "embed" + ], + "description": "The user type" + }, + "two_factor_auth_enabled": { + "type": "boolean", + "description": "Whether two factor authentication is enabled for this user" } }, "required": [ @@ -2498,13 +3932,20 @@ "last_active", "first_name", "last_name", - "metadata" + "metadata", + "is_admin", + "user_type", + "two_factor_auth_enabled" ], "additionalProperties": false, - "description": "The created user" + "description": "This object represents a user." } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ], + "description": "A single user" } } } @@ -2512,45 +3953,48 @@ } } }, - "/users/{userId}/user_attributes": { - "post": { - "summary": "Add or update a user attribute", - "description": "Available from API version 2.1.0+ and onprem version 3.20.1+. Adds or updates a user attribute, and returns the updated user metadata. The API token must have the \"Users > Write\" scope.", - "tags": ["Users"], + "/users": { + "get": { + "summary": "List users", + "description": "Returns a list of users. The API token must have the \"Users > Read\" scope.", + "tags": [ + "Users" + ], "parameters": [ { - "schema": { "type": "string", "pattern": "user_([a-z0-9]+)" }, - "required": true, - "name": "userId", - "in": "path" + "schema": { + "type": "string", + "description": "Email address of user" + }, + "required": false, + "name": "email", + "in": "query", + "description": "Email address of user" + }, + { + "schema": { + "type": "string", + "description": "First name of user" + }, + "required": false, + "name": "first_name", + "in": "query", + "description": "First name of user" + }, + { + "schema": { + "type": "string", + "description": "Last name of user" + }, + "required": false, + "name": "last_name", + "in": "query", + "description": "Last name of user" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the user attribute (must match an existing attribute exactly)" - }, - "value": { - "type": "string", - "nullable": true, - "description": "The value of the user attribute" - } - }, - "required": ["name", "value"], - "additionalProperties": false, - "description": "The body of a request to add a user attribute to a user or update an existing user attribute." - } - } - } - }, "responses": { "200": { - "description": "Returns the updated user metadata.", + "description": "List of users.", "content": { "application/json": { "schema": { @@ -2558,55 +4002,194 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "object", - "properties": { - "metadata": { - "type": "object", - "additionalProperties": { "nullable": true }, - "default": {}, - "description": "The updated user metadata, containing the new attribute value" - } + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "user_([a-z0-9]+)", + "description": "The id of the user" + }, + "legacy_id": { + "type": "number", + "description": "The legacy id of the user" + }, + "email": { + "type": "string", + "format": "email", + "description": "The email of the user" + }, + "active": { + "type": "boolean", + "description": "Whether the user is active or not" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "last_active": { + "type": "string", + "nullable": true, + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "first_name": { + "type": "string", + "nullable": true, + "minLength": 1, + "maxLength": 36, + "description": "The first name of the user" + }, + "last_name": { + "type": "string", + "nullable": true, + "minLength": 1, + "maxLength": 36, + "description": "The last name of the user" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "default": {} + }, + "is_admin": { + "type": "boolean", + "description": "Whether the user is an admin or not" + }, + "user_type": { + "type": "string", + "enum": [ + "default", + "mobile", + "embed" + ], + "description": "The user type" + }, + "two_factor_auth_enabled": { + "type": "boolean", + "description": "Whether two factor authentication is enabled for this user" + } + }, + "required": [ + "id", + "legacy_id", + "email", + "active", + "created_at", + "last_active", + "first_name", + "last_name", + "metadata", + "is_admin", + "user_type", + "two_factor_auth_enabled" + ], + "additionalProperties": false, + "description": "This object represents a user." }, - "required": ["metadata"] + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" } }, - "required": ["success", "data"] + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ], + "description": "A paginated list of users." } } } } } - } - }, - "/users/{userId}/user_attributes/{attributeName}": { - "delete": { - "summary": "Delete a user attribute.", - "description": "Available from API version 2.1.0+ and onprem version 3.20.1+. Deletes a user attribute, and returns the updated user metadata. The API token must have the \"Users > Write\" scope.", - "tags": ["Users"], - "parameters": [ - { - "schema": { "type": "string", "pattern": "user_([a-z0-9]+)" }, - "required": true, - "name": "userId", - "in": "path" - }, - { - "schema": { - "type": "string", - "description": "The name of the user attribute to delete" - }, - "required": true, - "name": "attributeName", - "in": "path" - } + }, + "post": { + "summary": "Create user", + "description": "Creates a user and returns the created user. The API token must have the \"Users > Write\" scope.", + "tags": [ + "Users" ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "The email of the user" + }, + "first_name": { + "type": "string", + "minLength": 1, + "description": "The first name of the user" + }, + "last_name": { + "type": "string", + "minLength": 1, + "description": "The last name of the user" + }, + "active": { + "type": "boolean", + "default": true, + "description": "Whether the user is enabled or not" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "default": {} + }, + "user_type": { + "type": "string", + "enum": [ + "default", + "mobile", + "embed" + ], + "description": "The user type" + } + }, + "required": [ + "email", + "first_name", + "last_name" + ], + "additionalProperties": false, + "description": "Body of request to create a user" + } + } + } + }, "responses": { "200": { - "description": "Returns the updated user metadata.", + "description": "The created user.", "content": { "application/json": { "schema": { @@ -2614,7 +4197,264 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "user_([a-z0-9]+)", + "description": "The id of the user" + }, + "legacy_id": { + "type": "number", + "description": "The legacy id of the user" + }, + "email": { + "type": "string", + "format": "email", + "description": "The email of the user" + }, + "active": { + "type": "boolean", + "description": "Whether the user is active or not" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "last_active": { + "type": "string", + "nullable": true, + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "first_name": { + "type": "string", + "nullable": true, + "minLength": 1, + "maxLength": 36, + "description": "The first name of the user" + }, + "last_name": { + "type": "string", + "nullable": true, + "minLength": 1, + "maxLength": 36, + "description": "The last name of the user" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "default": {} + }, + "is_admin": { + "type": "boolean", + "description": "Whether the user is an admin or not" + }, + "user_type": { + "type": "string", + "enum": [ + "default", + "mobile", + "embed" + ], + "description": "The user type" + }, + "two_factor_auth_enabled": { + "type": "boolean", + "description": "Whether two factor authentication is enabled for this user" + } + }, + "required": [ + "id", + "legacy_id", + "email", + "active", + "created_at", + "last_active", + "first_name", + "last_name", + "metadata", + "is_admin", + "user_type", + "two_factor_auth_enabled" + ], + "additionalProperties": false, + "description": "The created user" + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/users/reset2fa/{userId}": { + "put": { + "summary": "Resets a user's existing two factor authentication setting", + "description": "Available on version 3.124+. Disables any existing 2FA settings for a user. The API token must have the \"Users > Write\" scope.", + "tags": [ + "Users" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + }, + "required": true, + "name": "userId", + "in": "path" + } + ], + "responses": { + "204": { + "description": "Successfully reset 2FA." + } + } + } + }, + "/users/{userId}/user_attributes": { + "post": { + "summary": "Add or update a user attribute", + "description": "Available from API version 2.1.0+ and onprem version 3.20.1+. Adds or updates a user attribute, and returns the updated user metadata. The API token must have either the \"Users > Write\" or \"User Attributes > Write\" scope.", + "tags": [ + "Users" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + }, + "required": true, + "name": "userId", + "in": "path" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the user attribute (must match an existing attribute exactly)" + }, + "value": { + "type": "string", + "nullable": true, + "description": "The value of the user attribute" + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false, + "description": "The body of a request to add a user attribute to a user or update an existing user attribute." + } + } + } + }, + "responses": { + "200": { + "description": "Returns the updated user metadata.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "default": {}, + "description": "The updated user metadata, containing the new attribute value" + } + }, + "required": [ + "metadata" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/users/{userId}/user_attributes/{attributeName}": { + "delete": { + "summary": "Delete a user attribute", + "description": "Available from API version 2.1.0+ and onprem version 3.20.1+. Deletes a user attribute, and returns the updated user metadata. The API token must have either the \"Users > Write\" or \"User Attributes > Write\" scope.", + "tags": [ + "Users" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + }, + "required": true, + "name": "userId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The name of the user attribute to delete" + }, + "required": true, + "name": "attributeName", + "in": "path", + "description": "The name of the user attribute to delete" + } + ], + "responses": { + "200": { + "description": "Returns the updated user metadata.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -2622,15 +4462,22 @@ "properties": { "metadata": { "type": "object", - "additionalProperties": { "nullable": true }, + "additionalProperties": { + "nullable": true + }, "default": {}, "description": "The updated user metadata, without the deleted attribute" } }, - "required": ["metadata"] + "required": [ + "metadata" + ] } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -2641,7 +4488,7 @@ "/groups/{groupId}": { "delete": { "summary": "Delete group", - "description": "Deletes a group with the given groupId. The API token must have the \"Groups \u003E Write\" scope.", + "description": "Deletes a group with the given groupId. The API token must have the \"Groups > Write\" scope.", "tags": [ "Groups" ], @@ -2654,7 +4501,8 @@ }, "required": true, "name": "groupId", - "in": "path" + "in": "path", + "description": "The group's ID number" } ], "responses": { @@ -2665,7 +4513,7 @@ }, "get": { "summary": "Get group", - "description": "Get a group with a given groupId. The API token must have the \"Groups \u003E Read\" scope.", + "description": "Get a group with a given groupId. The API token must have the \"Groups > Read\" scope.", "tags": [ "Groups" ], @@ -2678,7 +4526,8 @@ }, "required": true, "name": "groupId", - "in": "path" + "in": "path", + "description": "The group's ID number" } ], "responses": { @@ -2691,7 +4540,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -2822,16 +4673,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -2866,6 +4716,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -2899,6 +4753,7 @@ "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -2919,7 +4774,7 @@ }, "patch": { "summary": "Update group", - "description": "Update a group in an organization using JSON Patch (RFC 6902). Returns the updated group. The API token must have the \"Groups \u003E Write\" scope.", + "description": "Update a group in an organization using JSON Patch (RFC 6902). Returns the updated group. The API token must have the \"Groups > Write\" scope.", "tags": [ "Groups" ], @@ -2932,7 +4787,8 @@ }, "required": true, "name": "groupId", - "in": "path" + "in": "path", + "description": "The group's ID number" } ], "requestBody": { @@ -3034,7 +4890,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -3165,16 +5023,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -3209,6 +5066,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -3242,6 +5103,7 @@ "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -3262,7 +5124,7 @@ }, "put": { "summary": "Update group", - "description": "Update the entire group and returns the updated group. The API token must have the \"Groups \u003E Write\" scope.", + "description": "Update the entire group and returns the updated group. The API token must have the \"Groups > Write\" scope.", "tags": [ "Groups" ], @@ -3275,7 +5137,8 @@ }, "required": true, "name": "groupId", - "in": "path" + "in": "path", + "description": "The group's ID number" } ], "requestBody": { @@ -3309,7 +5172,7 @@ "is_group_admin" ] }, - "description": "Users to add to the group. Pass in an empty list to create a group with no members." + "description": "Users to add to the group." }, "universal_app_access": { "type": "string", @@ -3394,16 +5257,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -3438,7 +5300,11 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, - "account_details_access": { + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, + "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" }, @@ -3471,7 +5337,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -3602,16 +5470,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -3646,6 +5513,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -3679,6 +5550,7 @@ "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -3701,7 +5573,7 @@ "/groups": { "get": { "summary": "List groups", - "description": "Get all permission groups for an organization or space. The API token must have the \"Groups \u003E Read\" scope.", + "description": "Get all permission groups for an organization or space. The API token must have the \"Groups > Read\" scope.", "tags": [ "Groups" ], @@ -3715,7 +5587,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -3848,16 +5722,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -3892,6 +5765,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -3925,6 +5802,7 @@ "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -3964,7 +5842,7 @@ }, "post": { "summary": "Create group", - "description": "Creates a group and returns the created group. The API token must have the \"Groups \u003E Write\" scope.", + "description": "Creates a group and returns the created group. The API token must have the \"Groups > Write\" scope.", "tags": [ "Groups" ], @@ -3999,7 +5877,7 @@ "is_group_admin" ] }, - "description": "Users to add to the group. Pass in an empty list to create a group with no members." + "description": "Users to add to the group." }, "universal_app_access": { "type": "string", @@ -4084,16 +5962,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -4128,6 +6005,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -4164,7 +6045,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -4295,16 +6178,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -4339,6 +6221,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -4372,6 +6258,7 @@ "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -4394,7 +6281,7 @@ "/groups/{groupId}/user_invites": { "post": { "summary": "Add user invites to group", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Adds a user invite to specified group and returns the group. The API token must have the \"Groups \u003E Write\" scope.", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Adds a user invite to specified group and returns the group. The API token must have the \"Groups > Write\" scope.", "tags": [ "Groups" ], @@ -4407,7 +6294,8 @@ }, "required": true, "name": "groupId", - "in": "path" + "in": "path", + "description": "The group's ID number" } ], "requestBody": { @@ -4441,7 +6329,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -4572,16 +6462,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -4616,6 +6505,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -4649,6 +6542,7 @@ "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -4671,7 +6565,7 @@ "/groups/{groupId}/members": { "post": { "summary": "Add users to group", - "description": "Adds a user to specified group and returns the group. Can optionally set or unset group admins by using the `is_group_admin` property. The API token must have the \"Groups \u003E Write\" scope.", + "description": "Adds specified user(s) to group and returns the group. Can optionally set or unset group admins by using the `is_group_admin` property. If existing members are passed in, group admin status will be updated. You cannot remove members using this endpoint. The API token must have the \"Groups > Write\" scope.", "tags": [ "Groups" ], @@ -4684,7 +6578,8 @@ }, "required": true, "name": "groupId", - "in": "path" + "in": "path", + "description": "The group's ID number" } ], "requestBody": { @@ -4713,7 +6608,7 @@ "is_group_admin" ] }, - "description": "Users to add to the group. Pass in an empty list to create a group with no members." + "description": "Users to add to the group." } }, "required": [ @@ -4733,7 +6628,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -4864,16 +6761,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -4908,6 +6804,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -4941,6 +6841,7 @@ "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -4963,7 +6864,7 @@ "/groups/{groupId}/members/{userSid}": { "delete": { "summary": "Remove user from group", - "description": "Removes the user from the group and returns the group. The API token must have the \"Groups \u003E Write\" scope.", + "description": "Removes the user from the group and returns the group. The API token must have the \"Groups > Write\" scope.", "tags": [ "Groups" ], @@ -4976,7 +6877,8 @@ }, "required": true, "name": "groupId", - "in": "path" + "in": "path", + "description": "The group's ID number" }, { "schema": { @@ -4998,7 +6900,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -5129,16 +7033,15 @@ "additionalProperties": { "nullable": true }, - "default": { - - } + "default": {} }, "created_at": { "type": "string" }, "invite_link": { "type": "string", - "format": "uri" + "format": "uri", + "description": "User invite link expires 7 days after generation." } }, "required": [ @@ -5173,6 +7076,10 @@ "type": "boolean", "description": "Whether the group has access to usage analytics" }, + "theme_access": { + "type": "boolean", + "description": "Whether the group has access to edit themes" + }, "account_details_access": { "type": "boolean", "description": "Whether the group has access to account details" @@ -5206,6 +7113,7 @@ "audit_log_access", "unpublished_release_access", "usage_analytics_access", + "theme_access", "account_details_access", "landing_page_app_id", "created_at", @@ -5228,7 +7136,7 @@ "/groups/{groupId}/user_invites/{userInviteId}": { "delete": { "summary": "Remove user invite from group", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Removes the user invite from the group. The API token must have the \"Groups \u003E Write\" scope.", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Removes the user invite from the group. The API token must have the \"Groups > Write\" scope.", "tags": [ "Groups" ], @@ -5241,7 +7149,8 @@ }, "required": true, "name": "groupId", - "in": "path" + "in": "path", + "description": "The group's ID number" }, { "schema": { @@ -5251,15 +7160,14 @@ }, "required": true, "name": "userInviteId", - "in": "path" + "in": "path", + "description": "The user invite's ID number" } ], "responses": { "204": { "description": "Successfully deleted user invite from group.", - "content": { - - } + "content": {} } } } @@ -5268,7 +7176,9 @@ "get": { "summary": "List folders", "description": "Returns a list of folders. The API token must have the \"Folders > Read\" scope.", - "tags": ["Folders"], + "tags": [ + "Folders" + ], "responses": { "200": { "description": "Paginated list of folders", @@ -5279,7 +7189,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -5289,12 +7201,12 @@ "properties": { "id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder. Currently this is the same as legacy_id but will be different in the future." }, "legacy_id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The legacy id of the folder." }, "name": { @@ -5304,7 +7216,7 @@ "parent_folder_id": { "type": "string", "nullable": true, - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the parent folder" }, "is_system_folder": { @@ -5313,7 +7225,12 @@ }, "folder_type": { "type": "string", - "enum": ["app", "workflow", "resource"], + "enum": [ + "app", + "workflow", + "resource", + "agent" + ], "description": "The type of the folder" }, "created_at": { @@ -5368,7 +7285,9 @@ "post": { "summary": "Create folder", "description": "Creates and returns a folder. The API token must have the \"Folders > Write\" scope.", - "tags": ["Folders"], + "tags": [ + "Folders" + ], "requestBody": { "content": { "application/json": { @@ -5383,16 +7302,24 @@ "parent_folder_id": { "type": "string", "nullable": true, - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The ID of the parent folder." }, "folder_type": { "type": "string", - "enum": ["app", "workflow", "resource"], + "enum": [ + "app", + "workflow", + "resource", + "agent" + ], "description": "The type of the folder." } }, - "required": ["name", "folder_type"] + "required": [ + "name", + "folder_type" + ] } } } @@ -5407,7 +7334,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -5415,12 +7344,12 @@ "properties": { "id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder. Currently this is the same as legacy_id but will be different in the future." }, "legacy_id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The legacy id of the folder." }, "name": { @@ -5430,7 +7359,7 @@ "parent_folder_id": { "type": "string", "nullable": true, - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the parent folder" }, "is_system_folder": { @@ -5439,7 +7368,12 @@ }, "folder_type": { "type": "string", - "enum": ["app", "workflow", "resource"], + "enum": [ + "app", + "workflow", + "resource", + "agent" + ], "description": "The type of the folder" }, "created_at": { @@ -5463,7 +7397,10 @@ "description": "The created folder." } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -5477,7 +7414,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -5485,7 +7424,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -5500,7 +7442,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -5508,7 +7452,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -5521,17 +7468,20 @@ "get": { "summary": "Get a folder", "description": "Returns the folder with the given ID. The API token must have the \"Folders > Read\" scope.", - "tags": ["Folders"], + "tags": [ + "Folders" + ], "parameters": [ { "schema": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder" }, "required": true, "name": "folderId", - "in": "path" + "in": "path", + "description": "The id of the folder" } ], "responses": { @@ -5544,7 +7494,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -5552,12 +7504,12 @@ "properties": { "id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder. Currently this is the same as legacy_id but will be different in the future." }, "legacy_id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The legacy id of the folder." }, "name": { @@ -5567,7 +7519,7 @@ "parent_folder_id": { "type": "string", "nullable": true, - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the parent folder" }, "is_system_folder": { @@ -5576,7 +7528,12 @@ }, "folder_type": { "type": "string", - "enum": ["app", "workflow", "resource"], + "enum": [ + "app", + "workflow", + "resource", + "agent" + ], "description": "The type of the folder" }, "created_at": { @@ -5600,7 +7557,10 @@ "description": "The requested folder." } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -5614,7 +7574,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -5622,7 +7584,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -5633,34 +7598,33 @@ "delete": { "summary": "Delete folder", "description": "Deletes a folder by ID. The API token must have the \"Folders > Write\" scope.", - "tags": ["Folders"], + "tags": [ + "Folders" + ], "parameters": [ { "schema": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder" }, "required": true, "name": "folderId", - "in": "path" + "in": "path", + "description": "The id of the folder" + }, + { + "schema": { + "type": "boolean", + "nullable": true, + "description": "Should the folder's contents also be deleted? (Only supported for app folders.)" + }, + "required": false, + "name": "recursive", + "in": "query", + "description": "Should the folder's contents also be deleted? (Only supported for app folders.)" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "recursive": { - "type": "boolean", - "description": "Should the folder's contents also be deleted?" - } - } - } - } - } - }, "responses": { "204": { "description": "Folder deleted" @@ -5674,7 +7638,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -5696,17 +7662,20 @@ "patch": { "summary": "Update folder", "description": "Updates a folder by ID. The API token must have the \"Folders > Write\" scope.", - "tags": ["Folders"], + "tags": [ + "Folders" + ], "parameters": [ { "schema": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder" }, "required": true, "name": "folderId", - "in": "path" + "in": "path", + "description": "The id of the folder" } ], "requestBody": { @@ -5722,71 +7691,145 @@ { "type": "object", "properties": { - "op": { "type": "string", "enum": ["add"] }, - "path": { "type": "string" }, + "op": { + "type": "string", + "enum": [ + "add" + ] + }, + "path": { + "type": "string" + }, "value": { "nullable": true, "description": "A JSON value" } }, - "required": ["op", "path"] + "required": [ + "op", + "path" + ], + "title": "Add Operation" }, { "type": "object", "properties": { - "op": { "type": "string", "enum": ["remove"] }, - "path": { "type": "string" } + "op": { + "type": "string", + "enum": [ + "remove" + ] + }, + "path": { + "type": "string" + } }, - "required": ["op", "path"] + "required": [ + "op", + "path" + ], + "title": "Remove Operation" }, { "type": "object", "properties": { - "op": { "type": "string", "enum": ["replace"] }, - "path": { "type": "string" }, + "op": { + "type": "string", + "enum": [ + "replace" + ] + }, + "path": { + "type": "string" + }, "value": { "nullable": true, "description": "A JSON value" } }, - "required": ["op", "path"] + "required": [ + "op", + "path" + ], + "title": "Replace Operation" }, { "type": "object", "properties": { - "op": { "type": "string", "enum": ["move"] }, - "path": { "type": "string" }, - "from": { "type": "string" } + "op": { + "type": "string", + "enum": [ + "move" + ] + }, + "path": { + "type": "string" + }, + "from": { + "type": "string" + } }, - "required": ["op", "path", "from"] + "required": [ + "op", + "path", + "from" + ], + "title": "Move Operation" }, { "type": "object", "properties": { - "op": { "type": "string", "enum": ["copy"] }, - "path": { "type": "string" }, - "from": { "type": "string" } + "op": { + "type": "string", + "enum": [ + "copy" + ] + }, + "path": { + "type": "string" + }, + "from": { + "type": "string" + } }, - "required": ["op", "path", "from"] + "required": [ + "op", + "path", + "from" + ], + "title": "Copy Operation" }, { "type": "object", "properties": { - "op": { "type": "string", "enum": ["test"] }, - "path": { "type": "string" }, + "op": { + "type": "string", + "enum": [ + "test" + ] + }, + "path": { + "type": "string" + }, "value": { "nullable": true, "description": "A JSON value" } }, - "required": ["op", "path"] + "required": [ + "op", + "path" + ], + "title": "Test Operation" } ] }, "description": "A list of operations to apply to the folder. See https://tools.ietf.org/html/rfc6902 for details." } }, - "required": ["operations"], + "required": [ + "operations" + ], "additionalProperties": false } } @@ -5802,7 +7845,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -5810,12 +7855,12 @@ "properties": { "id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the folder. Currently this is the same as legacy_id but will be different in the future." }, "legacy_id": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The legacy id of the folder." }, "name": { @@ -5825,7 +7870,7 @@ "parent_folder_id": { "type": "string", "nullable": true, - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", "description": "The id of the parent folder" }, "is_system_folder": { @@ -5834,7 +7879,12 @@ }, "folder_type": { "type": "string", - "enum": ["app", "workflow", "resource"], + "enum": [ + "app", + "workflow", + "resource", + "agent" + ], "description": "The type of the folder" }, "created_at": { @@ -5858,7 +7908,10 @@ "description": "The updated folder." } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -5872,7 +7925,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -5880,7 +7935,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -5895,7 +7953,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -5903,7 +7963,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -5918,7 +7981,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -5926,7 +7991,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -5939,14 +8007,19 @@ "post": { "summary": "Create a space", "description": "Available for orgs with Spaces enabled. Creates a new child space and returns it. The API token must have the \"Spaces > Write\" scope.", - "tags": ["Spaces"], + "tags": [ + "Spaces" + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "name": { "type": "string", "minLength": 1 }, + "name": { + "type": "string", + "minLength": 1 + }, "domain": { "type": "string", "minLength": 1, @@ -5965,7 +8038,9 @@ }, "users_to_copy_as_admins": { "type": "array", - "items": { "type": "string" }, + "items": { + "type": "string" + }, "description": "List of emails of users from the admin space that need to be added to the new space as admins." }, "create_admin_user": { @@ -5975,7 +8050,10 @@ } } }, - "required": ["name", "domain"], + "required": [ + "name", + "domain" + ], "additionalProperties": false } } @@ -5991,7 +8069,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -6002,8 +8082,14 @@ "format": "uuid", "description": "The id of the space." }, - "name": { "type": "string", "minLength": 1 }, - "domain": { "type": "string", "minLength": 1 }, + "name": { + "type": "string", + "minLength": 1 + }, + "domain": { + "type": "string", + "minLength": 1 + }, "created_at": { "type": "string", "format": "date-time", @@ -6026,7 +8112,10 @@ "description": "The created space" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -6036,7 +8125,9 @@ "get": { "summary": "List spaces", "description": "Available for orgs with Spaces enabled. List all child spaces of the current space. The API token must have the \"Spaces > Read\" scope.", - "tags": ["Spaces"], + "tags": [ + "Spaces" + ], "responses": { "200": { "description": "List of subspaces.", @@ -6047,7 +8138,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -6060,8 +8153,14 @@ "format": "uuid", "description": "The id of the space." }, - "name": { "type": "string", "minLength": 1 }, - "domain": { "type": "string", "minLength": 1 }, + "name": { + "type": "string", + "minLength": 1 + }, + "domain": { + "type": "string", + "minLength": 1 + }, "created_at": { "type": "string", "format": "date-time", @@ -6117,10 +8216,14 @@ "get": { "summary": "Get space", "description": "Available for orgs with Spaces enabled. Get space by ID. The API token must have the \"Spaces > Read\" scope.", - "tags": ["Spaces"], + "tags": [ + "Spaces" + ], "parameters": [ { - "schema": { "type": "string" }, + "schema": { + "type": "string" + }, "required": true, "name": "spaceId", "in": "path" @@ -6136,7 +8239,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -6147,9 +8252,15 @@ "format": "uuid", "description": "The id of the space." }, - "name": { "type": "string", "minLength": 1 }, - "domain": { "type": "string", "minLength": 1 }, - "created_at": { + "name": { + "type": "string", + "minLength": 1 + }, + "domain": { + "type": "string", + "minLength": 1 + }, + "created_at": { "type": "string", "format": "date-time", "example": "2019-02-08T11:45:48.899Z" @@ -6171,7 +8282,10 @@ "description": "The requested space" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -6185,7 +8299,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -6193,7 +8309,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -6203,11 +8322,15 @@ }, "put": { "summary": "Update space", - "description": "Available for orgs with Spaces enabled. Get space by ID. The API token must have the \"Spaces > Write\" scope.", - "tags": ["Spaces"], + "description": "Available for orgs with Spaces enabled. Update space by ID. The API token must have the \"Spaces > Write\" scope.", + "tags": [ + "Spaces" + ], "parameters": [ { - "schema": { "type": "string" }, + "schema": { + "type": "string" + }, "required": true, "name": "spaceId", "in": "path" @@ -6230,7 +8353,10 @@ "description": "The domain of the space. On Retool Cloud, specify subdomain of the space instead." } }, - "required": ["name", "domain"] + "required": [ + "name", + "domain" + ] } } } @@ -6245,7 +8371,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -6256,8 +8384,14 @@ "format": "uuid", "description": "The id of the space." }, - "name": { "type": "string", "minLength": 1 }, - "domain": { "type": "string", "minLength": 1 }, + "name": { + "type": "string", + "minLength": 1 + }, + "domain": { + "type": "string", + "minLength": 1 + }, "created_at": { "type": "string", "format": "date-time", @@ -6280,7 +8414,10 @@ "description": "Updated space" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -6294,7 +8431,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -6302,7 +8441,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -6317,7 +8459,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -6325,7 +8469,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -6336,7 +8483,9 @@ "delete": { "summary": "Delete a space", "description": "Available for orgs with Spaces enabled. Delete a space by ID. The API token must have the \"Spaces > Write\" scope.", - "tags": ["Spaces"], + "tags": [ + "Spaces" + ], "parameters": [ { "schema": { @@ -6345,11 +8494,14 @@ }, "required": true, "name": "spaceId", - "in": "path" + "in": "path", + "description": "The id of the space to delete." } ], "responses": { - "204": { "description": "Space successful delete message." }, + "204": { + "description": "Space successful delete message." + }, "404": { "description": "Space not found.", "content": { @@ -6359,7 +8511,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -6367,7 +8521,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -6378,9 +8535,11 @@ }, "/spaces/copyElements": { "post": { - "summary": "Copies apps, queries, resources, and workflows from one space to another", - "description": "Available for orgs with Spaces enabled. Copy elements by ID. The API token must have the \"Spaces > Write\" scope.", - "tags": ["Spaces"], + "summary": "Copy elements to another space", + "description": "Available for orgs with Spaces enabled. Copies apps, queries, resources, and workflows from one space to another. The API token must have the \"Spaces > Write\" scope.", + "tags": [ + "Spaces" + ], "requestBody": { "content": { "application/json": { @@ -6391,12 +8550,18 @@ "type": "array", "items": { "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" } + { + "type": "string", + "format": "uuid" + }, + { + "type": "string", + "format": "uuid" + } ], "description": "The uuid for the resource." }, - "description": "List of resource uuids to copy to the new space." + "description": "List of resource configuration uuids to copy to the new space." }, "query_library_query_ids": { "type": "array", @@ -6452,7 +8617,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -6462,8 +8629,14 @@ "type": "array", "items": { "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" } + { + "type": "string", + "format": "uuid" + }, + { + "type": "string", + "format": "uuid" + } ], "description": "The uuid for the resource." }, @@ -6506,7 +8679,10 @@ "description": "The copied elements" } }, - "required": ["success", "data"], + "required": [ + "success", + "data" + ], "description": "Elements copied successfully" } } @@ -6521,7 +8697,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -6529,7 +8707,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -6542,7 +8723,9 @@ "get": { "summary": "Get source control configuration", "description": "Returns the source control provider configuration for the organization or space. The API token must have the \"Source Control > Read\" scope.", - "tags": ["Source Control"], + "tags": [ + "Source Control" + ], "responses": { "200": { "description": "Source control provider configuration for the organization or space.", @@ -6553,22 +8736,26 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "config": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "type": { "type": "string", - "enum": ["App"] + "enum": [ + "App" + ] }, "app_id": { "type": "string", @@ -6604,7 +8791,9 @@ "properties": { "type": { "type": "string", - "enum": ["Personal"] + "enum": [ + "Personal" + ] }, "personal_access_token": { "type": "string", @@ -6619,14 +8808,19 @@ "description": "The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3." } }, - "required": ["type", "personal_access_token"], + "required": [ + "type", + "personal_access_token" + ], "additionalProperties": false } ] }, "provider": { "type": "string", - "enum": ["GitHub"] + "enum": [ + "GitHub" + ] }, "org": { "type": "string", @@ -6651,7 +8845,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitHub" }, { "type": "object", @@ -6681,7 +8876,9 @@ }, "provider": { "type": "string", - "enum": ["GitLab"] + "enum": [ + "GitLab" + ] }, "org": { "type": "string", @@ -6706,7 +8903,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitLab" }, { "type": "object", @@ -6751,7 +8949,9 @@ }, "provider": { "type": "string", - "enum": ["AWS CodeCommit"] + "enum": [ + "AWS CodeCommit" + ] }, "org": { "type": "string", @@ -6776,37 +8976,80 @@ "org", "repo", "default_branch" - ] + ], + "title": "AWS CodeCommit" }, { "type": "object", "properties": { "config": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "Your Bitbucket username." - }, - "url": { - "type": "string", - "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." - }, - "enterprise_api_url": { - "type": "string", - "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "AppPassword" + ] + }, + "username": { + "type": "string", + "description": "Your Bitbucket username." + }, + "app_password": { + "type": "string", + "description": "Your Bitbucket app password." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "username", + "app_password" + ], + "additionalProperties": false }, - "app_password": { - "type": "string", - "description": "Your Bitbucket app password." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Token" + ] + }, + "token": { + "type": "string", + "description": "Your Bitbucket API token." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "token" + ], + "additionalProperties": false } - }, - "required": ["username", "app_password"], - "additionalProperties": false + ] }, "provider": { "type": "string", - "enum": ["Bitbucket"] + "enum": [ + "Bitbucket" + ] }, "org": { "type": "string", @@ -6831,7 +9074,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "Bitbucket" }, { "type": "object", @@ -6871,7 +9115,9 @@ }, "provider": { "type": "string", - "enum": ["Azure Repos"] + "enum": [ + "Azure Repos" + ] }, "org": { "type": "string", @@ -6896,13 +9142,17 @@ "org", "repo", "default_branch" - ] + ], + "title": "Azure Repos" } ], "description": "Source Control Provider Config" } }, - "required": ["success", "data"], + "required": [ + "success", + "data" + ], "additionalProperties": false } } @@ -6913,7 +9163,9 @@ "post": { "summary": "Create source control configuration", "description": "Create source control provider configuration for the organization or space and returns the created configuration. This will result in an error if configuration already is already set. The API token must have the \"Source Control > Write\" scope.", - "tags": ["Source Control"], + "tags": [ + "Source Control" + ], "requestBody": { "content": { "application/json": { @@ -6921,16 +9173,21 @@ "type": "object", "properties": { "config": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "config": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { - "type": { "type": "string", "enum": ["App"] }, + "type": { + "type": "string", + "enum": [ + "App" + ] + }, "app_id": { "type": "string", "description": "The GitHub App ID." @@ -6965,7 +9222,9 @@ "properties": { "type": { "type": "string", - "enum": ["Personal"] + "enum": [ + "Personal" + ] }, "personal_access_token": { "type": "string", @@ -6980,12 +9239,20 @@ "description": "The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3." } }, - "required": ["type", "personal_access_token"], + "required": [ + "type", + "personal_access_token" + ], "additionalProperties": false } ] }, - "provider": { "type": "string", "enum": ["GitHub"] }, + "provider": { + "type": "string", + "enum": [ + "GitHub" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -7009,7 +9276,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitHub" }, { "type": "object", @@ -7037,7 +9305,12 @@ ], "additionalProperties": false }, - "provider": { "type": "string", "enum": ["GitLab"] }, + "provider": { + "type": "string", + "enum": [ + "GitLab" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -7061,7 +9334,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitLab" }, { "type": "object", @@ -7106,7 +9380,9 @@ }, "provider": { "type": "string", - "enum": ["AWS CodeCommit"] + "enum": [ + "AWS CodeCommit" + ] }, "org": { "type": "string", @@ -7131,37 +9407,80 @@ "org", "repo", "default_branch" - ] + ], + "title": "AWS CodeCommit" }, { "type": "object", "properties": { "config": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "Your Bitbucket username." - }, - "url": { - "type": "string", - "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." - }, - "enterprise_api_url": { - "type": "string", - "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "AppPassword" + ] + }, + "username": { + "type": "string", + "description": "Your Bitbucket username." + }, + "app_password": { + "type": "string", + "description": "Your Bitbucket app password." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "username", + "app_password" + ], + "additionalProperties": false }, - "app_password": { - "type": "string", - "description": "Your Bitbucket app password." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Token" + ] + }, + "token": { + "type": "string", + "description": "Your Bitbucket API token." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "token" + ], + "additionalProperties": false } - }, - "required": ["username", "app_password"], - "additionalProperties": false + ] }, "provider": { "type": "string", - "enum": ["Bitbucket"] + "enum": [ + "Bitbucket" + ] }, "org": { "type": "string", @@ -7186,7 +9505,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "Bitbucket" }, { "type": "object", @@ -7226,8 +9546,10 @@ }, "provider": { "type": "string", - "enum": ["Azure Repos"] - }, + "enum": [ + "Azure Repos" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -7251,13 +9573,16 @@ "org", "repo", "default_branch" - ] + ], + "title": "Azure Repos" } ], - "description": "This object represents the Source Control provider configuration for the organization or space. See https://docs.retool.com/source-control for more information." + "description": "This object represents the Source Control provider configuration for the organization or space. See [docs](https://docs.retool.com/source-control) for more information." } }, - "required": ["config"], + "required": [ + "config" + ], "additionalProperties": false, "description": "Shape of Source Control provider config request" } @@ -7274,22 +9599,26 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "config": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "type": { "type": "string", - "enum": ["App"] + "enum": [ + "App" + ] }, "app_id": { "type": "string", @@ -7325,7 +9654,9 @@ "properties": { "type": { "type": "string", - "enum": ["Personal"] + "enum": [ + "Personal" + ] }, "personal_access_token": { "type": "string", @@ -7340,14 +9671,19 @@ "description": "The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3." } }, - "required": ["type", "personal_access_token"], + "required": [ + "type", + "personal_access_token" + ], "additionalProperties": false } ] }, "provider": { "type": "string", - "enum": ["GitHub"] + "enum": [ + "GitHub" + ] }, "org": { "type": "string", @@ -7372,7 +9708,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitHub" }, { "type": "object", @@ -7402,7 +9739,9 @@ }, "provider": { "type": "string", - "enum": ["GitLab"] + "enum": [ + "GitLab" + ] }, "org": { "type": "string", @@ -7427,7 +9766,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitLab" }, { "type": "object", @@ -7472,7 +9812,9 @@ }, "provider": { "type": "string", - "enum": ["AWS CodeCommit"] + "enum": [ + "AWS CodeCommit" + ] }, "org": { "type": "string", @@ -7497,37 +9839,80 @@ "org", "repo", "default_branch" - ] + ], + "title": "AWS CodeCommit" }, { "type": "object", "properties": { "config": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "Your Bitbucket username." - }, - "url": { - "type": "string", - "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." - }, - "enterprise_api_url": { - "type": "string", - "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "AppPassword" + ] + }, + "username": { + "type": "string", + "description": "Your Bitbucket username." + }, + "app_password": { + "type": "string", + "description": "Your Bitbucket app password." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "username", + "app_password" + ], + "additionalProperties": false }, - "app_password": { - "type": "string", - "description": "Your Bitbucket app password." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Token" + ] + }, + "token": { + "type": "string", + "description": "Your Bitbucket API token." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "token" + ], + "additionalProperties": false } - }, - "required": ["username", "app_password"], - "additionalProperties": false + ] }, "provider": { "type": "string", - "enum": ["Bitbucket"] + "enum": [ + "Bitbucket" + ] }, "org": { "type": "string", @@ -7552,7 +9937,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "Bitbucket" }, { "type": "object", @@ -7592,7 +9978,9 @@ }, "provider": { "type": "string", - "enum": ["Azure Repos"] + "enum": [ + "Azure Repos" + ] }, "org": { "type": "string", @@ -7617,13 +10005,17 @@ "org", "repo", "default_branch" - ] + ], + "title": "Azure Repos" } ], "description": "Created Source Control Provider Config" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -7637,7 +10029,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -7645,7 +10039,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -7660,7 +10057,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -7668,7 +10067,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -7679,7 +10081,9 @@ "put": { "summary": "Set source control configuration", "description": "Creates or updates the source control provider configuration for the organization or space. This will overwrite any existing configuration. The API token must have the \"Source Control > Write\" scope.", - "tags": ["Source Control"], + "tags": [ + "Source Control" + ], "requestBody": { "content": { "application/json": { @@ -7687,16 +10091,21 @@ "type": "object", "properties": { "config": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "config": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { - "type": { "type": "string", "enum": ["App"] }, + "type": { + "type": "string", + "enum": [ + "App" + ] + }, "app_id": { "type": "string", "description": "The GitHub App ID." @@ -7731,7 +10140,9 @@ "properties": { "type": { "type": "string", - "enum": ["Personal"] + "enum": [ + "Personal" + ] }, "personal_access_token": { "type": "string", @@ -7746,12 +10157,20 @@ "description": "The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3." } }, - "required": ["type", "personal_access_token"], + "required": [ + "type", + "personal_access_token" + ], "additionalProperties": false } ] }, - "provider": { "type": "string", "enum": ["GitHub"] }, + "provider": { + "type": "string", + "enum": [ + "GitHub" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -7775,7 +10194,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitHub" }, { "type": "object", @@ -7803,7 +10223,12 @@ ], "additionalProperties": false }, - "provider": { "type": "string", "enum": ["GitLab"] }, + "provider": { + "type": "string", + "enum": [ + "GitLab" + ] + }, "org": { "type": "string", "description": "The user or organization to which the repository belongs to." @@ -7827,7 +10252,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitLab" }, { "type": "object", @@ -7872,7 +10298,9 @@ }, "provider": { "type": "string", - "enum": ["AWS CodeCommit"] + "enum": [ + "AWS CodeCommit" + ] }, "org": { "type": "string", @@ -7897,37 +10325,80 @@ "org", "repo", "default_branch" - ] + ], + "title": "AWS CodeCommit" }, { "type": "object", "properties": { "config": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "Your Bitbucket username." - }, - "url": { - "type": "string", - "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." - }, - "enterprise_api_url": { - "type": "string", - "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "AppPassword" + ] + }, + "username": { + "type": "string", + "description": "Your Bitbucket username." + }, + "app_password": { + "type": "string", + "description": "Your Bitbucket app password." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "username", + "app_password" + ], + "additionalProperties": false }, - "app_password": { - "type": "string", - "description": "Your Bitbucket app password." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Token" + ] + }, + "token": { + "type": "string", + "description": "Your Bitbucket API token." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "token" + ], + "additionalProperties": false } - }, - "required": ["username", "app_password"], - "additionalProperties": false + ] }, "provider": { "type": "string", - "enum": ["Bitbucket"] + "enum": [ + "Bitbucket" + ] }, "org": { "type": "string", @@ -7952,7 +10423,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "Bitbucket" }, { "type": "object", @@ -7992,7 +10464,9 @@ }, "provider": { "type": "string", - "enum": ["Azure Repos"] + "enum": [ + "Azure Repos" + ] }, "org": { "type": "string", @@ -8017,13 +10491,16 @@ "org", "repo", "default_branch" - ] + ], + "title": "Azure Repos" } ], - "description": "This object represents the Source Control provider configuration for the organization or space. See https://docs.retool.com/source-control for more information." + "description": "This object represents the Source Control provider configuration for the organization or space. See [docs](https://docs.retool.com/source-control) for more information." } }, - "required": ["config"], + "required": [ + "config" + ], "additionalProperties": false, "description": "Shape of Source Control provider config request" } @@ -8040,22 +10517,26 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "config": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "type": { "type": "string", - "enum": ["App"] + "enum": [ + "App" + ] }, "app_id": { "type": "string", @@ -8091,7 +10572,9 @@ "properties": { "type": { "type": "string", - "enum": ["Personal"] + "enum": [ + "Personal" + ] }, "personal_access_token": { "type": "string", @@ -8106,14 +10589,19 @@ "description": "The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3." } }, - "required": ["type", "personal_access_token"], + "required": [ + "type", + "personal_access_token" + ], "additionalProperties": false } ] }, "provider": { "type": "string", - "enum": ["GitHub"] + "enum": [ + "GitHub" + ] }, "org": { "type": "string", @@ -8138,7 +10626,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitHub" }, { "type": "object", @@ -8168,7 +10657,9 @@ }, "provider": { "type": "string", - "enum": ["GitLab"] + "enum": [ + "GitLab" + ] }, "org": { "type": "string", @@ -8193,7 +10684,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitLab" }, { "type": "object", @@ -8238,7 +10730,9 @@ }, "provider": { "type": "string", - "enum": ["AWS CodeCommit"] + "enum": [ + "AWS CodeCommit" + ] }, "org": { "type": "string", @@ -8263,37 +10757,80 @@ "org", "repo", "default_branch" - ] + ], + "title": "AWS CodeCommit" }, { "type": "object", "properties": { "config": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "Your Bitbucket username." - }, - "url": { - "type": "string", - "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." - }, - "enterprise_api_url": { - "type": "string", - "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "AppPassword" + ] + }, + "username": { + "type": "string", + "description": "Your Bitbucket username." + }, + "app_password": { + "type": "string", + "description": "Your Bitbucket app password." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "username", + "app_password" + ], + "additionalProperties": false }, - "app_password": { - "type": "string", - "description": "Your Bitbucket app password." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Token" + ] + }, + "token": { + "type": "string", + "description": "Your Bitbucket API token." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "token" + ], + "additionalProperties": false } - }, - "required": ["username", "app_password"], - "additionalProperties": false + ] }, "provider": { "type": "string", - "enum": ["Bitbucket"] + "enum": [ + "Bitbucket" + ] }, "org": { "type": "string", @@ -8318,7 +10855,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "Bitbucket" }, { "type": "object", @@ -8358,7 +10896,9 @@ }, "provider": { "type": "string", - "enum": ["Azure Repos"] + "enum": [ + "Azure Repos" + ] }, "org": { "type": "string", @@ -8383,13 +10923,17 @@ "org", "repo", "default_branch" - ] + ], + "title": "Azure Repos" } ], "description": "Created or updated Source Control Provider Config" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -8403,22 +10947,26 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "config": { - "oneOf": [ + "anyOf": [ { "type": "object", "properties": { "type": { "type": "string", - "enum": ["App"] + "enum": [ + "App" + ] }, "app_id": { "type": "string", @@ -8454,7 +11002,9 @@ "properties": { "type": { "type": "string", - "enum": ["Personal"] + "enum": [ + "Personal" + ] }, "personal_access_token": { "type": "string", @@ -8469,14 +11019,19 @@ "description": "The REST API route for your self-hosted GitHub instance. Defaults to https://[hostname]/api/v3." } }, - "required": ["type", "personal_access_token"], + "required": [ + "type", + "personal_access_token" + ], "additionalProperties": false } ] }, "provider": { "type": "string", - "enum": ["GitHub"] + "enum": [ + "GitHub" + ] }, "org": { "type": "string", @@ -8501,7 +11056,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitHub" }, { "type": "object", @@ -8531,7 +11087,9 @@ }, "provider": { "type": "string", - "enum": ["GitLab"] + "enum": [ + "GitLab" + ] }, "org": { "type": "string", @@ -8556,7 +11114,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "GitLab" }, { "type": "object", @@ -8601,7 +11160,9 @@ }, "provider": { "type": "string", - "enum": ["AWS CodeCommit"] + "enum": [ + "AWS CodeCommit" + ] }, "org": { "type": "string", @@ -8626,37 +11187,80 @@ "org", "repo", "default_branch" - ] + ], + "title": "AWS CodeCommit" }, { "type": "object", "properties": { "config": { - "type": "object", - "properties": { - "username": { - "type": "string", - "description": "Your Bitbucket username." - }, - "url": { - "type": "string", - "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." - }, - "enterprise_api_url": { - "type": "string", - "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "AppPassword" + ] + }, + "username": { + "type": "string", + "description": "Your Bitbucket username." + }, + "app_password": { + "type": "string", + "description": "Your Bitbucket app password." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "username", + "app_password" + ], + "additionalProperties": false }, - "app_password": { - "type": "string", - "description": "Your Bitbucket app password." + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "Token" + ] + }, + "token": { + "type": "string", + "description": "Your Bitbucket API token." + }, + "url": { + "type": "string", + "description": "The domain used to access your self-hosted Bitbucket instance. Defaults to https://bitbucket.org/." + }, + "enterprise_api_url": { + "type": "string", + "description": "The REST API route for your self-hosted Bitbucket instance. Defaults to https://api.bitbucket.org/2.0.\t" + } + }, + "required": [ + "token" + ], + "additionalProperties": false } - }, - "required": ["username", "app_password"], - "additionalProperties": false + ] }, "provider": { "type": "string", - "enum": ["Bitbucket"] + "enum": [ + "Bitbucket" + ] }, "org": { "type": "string", @@ -8681,7 +11285,8 @@ "org", "repo", "default_branch" - ] + ], + "title": "Bitbucket" }, { "type": "object", @@ -8721,7 +11326,9 @@ }, "provider": { "type": "string", - "enum": ["Azure Repos"] + "enum": [ + "Azure Repos" + ] }, "org": { "type": "string", @@ -8746,13 +11353,17 @@ "org", "repo", "default_branch" - ] + ], + "title": "Azure Repos" } ], "description": "Created or updated Source Control Provider Config" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -8766,7 +11377,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -8774,7 +11387,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -8785,9 +11401,13 @@ "delete": { "summary": "Delete source control provider configuration", "description": "Deletes source control provider configuration for organization or space. The API token must have the \"Source Control > Write\" scope.", - "tags": ["Source Control"], + "tags": [ + "Source Control" + ], "responses": { - "204": { "description": "Successful deletion" }, + "204": { + "description": "Successful deletion" + }, "404": { "description": "Error message", "content": { @@ -8797,7 +11417,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -8805,7 +11427,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -8818,7 +11443,9 @@ "get": { "summary": "Tests source control connection", "description": "Tests the connection to the source control provider. Returns a boolean for whether the connection was successful or not. The API token must have the \"Source Control > Read\" scope.", - "tags": ["Source Control"], + "tags": [ + "Source Control" + ], "responses": { "200": { "description": "Success message.", @@ -8829,7 +11456,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -8839,7 +11468,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "Test connection failed" }, "message": { @@ -8847,24 +11478,34 @@ "description": "Error message" } }, - "required": ["success", "message"] + "required": [ + "success", + "message" + ] }, { "type": "object", "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "Test connection succeeded" } }, - "required": ["success"] + "required": [ + "success" + ] } ], "description": "Test connection response" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -8878,7 +11519,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -8886,7 +11529,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -8898,8 +11544,10 @@ "/source_control/test_deploy": { "post": { "summary": "Test source control changes", - "description": "Attempts to do a dry deployment (no db changes) on the instance with provided commit sha to see if those changes are valid.", - "tags": ["Source Control"], + "description": "Attempts a test deployment (no permanent changes) using the provided commit SHA in order to determine whether the commit is valid.", + "tags": [ + "Source Control" + ], "requestBody": { "content": { "application/json": { @@ -8911,14 +11559,20 @@ "properties": { "commit_sha": { "type": "string", - "description": "The commit SHA to dry deploy" + "description": "The full commit SHA to dry deploy" }, - "is_full_sync": { "type": "boolean" } + "is_full_sync": { + "type": "boolean" + } }, - "required": ["commit_sha"] + "required": [ + "commit_sha" + ] } }, - "required": ["deploy_params"], + "required": [ + "deploy_params" + ], "additionalProperties": false, "description": "Parameters for running a deployment" } @@ -8935,7 +11589,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -8945,7 +11601,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "Deployment failed" }, "message": { @@ -8953,24 +11611,34 @@ "description": "Error message" } }, - "required": ["success", "message"] + "required": [ + "success", + "message" + ] }, { "type": "object", "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "Deployment succeeded" } }, - "required": ["success"] + "required": [ + "success" + ] } ], "description": "Source control test deploy response" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -8982,7 +11650,9 @@ "post": { "summary": "Trigger deployment of latest changes", "description": "Deploys the latest changes from the source control provider to the instance. You can use the GET /deployment/{id} endpoint to check the status of the deployment.", - "tags": ["Source Control"], + "tags": [ + "Source Control" + ], "responses": { "200": { "description": "The deployment id of the triggered deployment.", @@ -8993,7 +11663,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -9014,11 +11686,17 @@ ] } }, - "required": ["id", "status"], + "required": [ + "id", + "status" + ], "description": "Source control deploy response" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -9028,9 +11706,11 @@ }, "/source_control/deployment/{id}": { "get": { - "summary": "Get deployment by id", - "description": "Get the status of a deployment", - "tags": ["Source Control"], + "summary": "Get a deployment", + "description": "Get the status of a deployment.", + "tags": [ + "Source Control" + ], "parameters": [ { "schema": { @@ -9040,7 +11720,8 @@ }, "required": true, "name": "id", - "in": "path" + "in": "path", + "description": "The deployment ID" } ], "responses": { @@ -9053,7 +11734,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -9074,11 +11757,17 @@ ] } }, - "required": ["id", "status"], + "required": [ + "id", + "status" + ], "description": "Source control deploy response" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -9092,7 +11781,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -9100,7 +11791,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -9113,7 +11807,9 @@ "get": { "summary": "Get source control settings", "description": "Returns the source control settings for the organization or space. The API token must have the \"Source Control > Read\" scope.", - "tags": ["Source Control"], + "tags": [ + "Source Control" + ], "responses": { "200": { "description": "Source control settings for the organization or space.", @@ -9124,7 +11820,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -9149,6 +11847,10 @@ "force_uuid_mapping": { "type": "boolean", "description": "When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false." + }, + "auto_cleanup_branches_enabled": { + "type": "boolean", + "description": "When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true." } }, "required": [ @@ -9156,12 +11858,16 @@ "custom_pull_request_template_enabled", "custom_pull_request_template", "version_control_locked", - "force_uuid_mapping" + "force_uuid_mapping", + "auto_cleanup_branches_enabled" ], "description": "Source Control Settings" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -9171,7 +11877,9 @@ "put": { "summary": "Set source control settings", "description": "Creates or updates source control settings for the organization or space. This will overwrite existing settings. The API token must have the \"Source Control > Write\" scope.", - "tags": ["Source Control"], + "tags": [ + "Source Control" + ], "requestBody": { "content": { "application/json": { @@ -9200,12 +11908,18 @@ "force_uuid_mapping": { "type": "boolean", "description": "When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false." + }, + "auto_cleanup_branches_enabled": { + "type": "boolean", + "description": "When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true." } }, "additionalProperties": false } }, - "required": ["settings"], + "required": [ + "settings" + ], "additionalProperties": false, "description": "Shape of Source Control Settings" } @@ -9222,7 +11936,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -9247,6 +11963,10 @@ "force_uuid_mapping": { "type": "boolean", "description": "When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false." + }, + "auto_cleanup_branches_enabled": { + "type": "boolean", + "description": "When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true." } }, "required": [ @@ -9254,12 +11974,16 @@ "custom_pull_request_template_enabled", "custom_pull_request_template", "version_control_locked", - "force_uuid_mapping" + "force_uuid_mapping", + "auto_cleanup_branches_enabled" ], "description": "Result of creating Source Control Settings" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -9273,7 +11997,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -9298,6 +12024,10 @@ "force_uuid_mapping": { "type": "boolean", "description": "When set to true, creates a uuid mapping for protected elements to be used in the source control repo. Defaults to false." + }, + "auto_cleanup_branches_enabled": { + "type": "boolean", + "description": "When set to true, Retool will automatically delete branches after changes are merged if the remote branch no longer exists and there are no uncommitted changes. Defaults to true." } }, "required": [ @@ -9305,12 +12035,16 @@ "custom_pull_request_template_enabled", "custom_pull_request_template", "version_control_locked", - "force_uuid_mapping" + "force_uuid_mapping", + "auto_cleanup_branches_enabled" ], "description": "Result of creating Source Control Settings" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } @@ -9324,7 +12058,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -9332,7 +12068,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -9341,22 +12080,16 @@ } } }, - "/app_themes/{id}": { + "/source_control/manifests": { "get": { - "summary": "Get app theme", - "description": "Returns the app theme matching the ID for the organization or space. The API token must have the \"App Themes > Read\" scope.", - "tags": ["App Themes"], - "parameters": [ - { - "schema": { "type": "string" }, - "required": true, - "name": "id", - "in": "path" - } + "summary": "Lists all release manifests", + "description": "Returns a list of all release manifests available in the source control repository. The API token must have the \"Source control > Releases (Read)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" ], "responses": { "200": { - "description": "App theme for the organization or space.", + "description": "List of release manifests.", "content": { "application/json": { "schema": { @@ -9364,35 +12097,105 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "name": { - "type": "string", - "description": "The name of the app theme." - }, - "theme": { - "type": "object", - "additionalProperties": { "nullable": true }, - "description": "The theme object." - } + "manifests": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "apps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "format": "uuid" + }, + "release": { + "anyOf": [ + { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + }, + { + "type": "string", + "enum": [ + "latest" + ] + } + ] + } + }, + "required": [ + "uuid", + "release" + ] + } + }, + "workflows": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "format": "uuid" + }, + "release": { + "anyOf": [ + { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + }, + { + "type": "string", + "enum": [ + "latest" + ] + } + ] + } + }, + "required": [ + "uuid", + "release" + ] + } + } + }, + "required": [ + "name" + ] + }, + "description": "Array of release manifests" + } }, - "required": ["id", "legacy_id", "name", "theme"], - "description": "The app theme." + "required": [ + "manifests" + ] } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } }, - "404": { - "description": "App theme does not exist.", + "400": { + "description": "Error message.", "content": { "application/json": { "schema": { @@ -9400,7 +12203,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -9408,30 +12213,143 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } } } } - }, - "delete": { - "summary": "Delete app theme", - "description": "Deletes specified app theme for organization or space. The API token must have the \"App Themes > Write\" scope.", - "tags": ["App Themes"], + } + }, + "/source_control/manifests/{manifestName}": { + "get": { + "summary": "Get a specific release manifest", + "description": "Returns the release manifest with the specified name from the source control repository if it exists. The API token must have the \"Source control > Releases (Read)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], "parameters": [ { - "schema": { "type": "string" }, + "schema": { + "type": "string", + "description": "Identifier for the manifest of interest" + }, "required": true, - "name": "id", - "in": "path" + "name": "manifestName", + "in": "path", + "description": "Identifier for the manifest of interest" } ], "responses": { - "204": { "description": "Successful deletion." }, - "404": { - "description": "The app theme was not found.", + "200": { + "description": "A release manifest", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "manifest": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "apps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "format": "uuid" + }, + "release": { + "anyOf": [ + { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + }, + { + "type": "string", + "enum": [ + "latest" + ] + } + ] + } + }, + "required": [ + "uuid", + "release" + ] + } + }, + "workflows": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "format": "uuid" + }, + "release": { + "anyOf": [ + { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + }, + { + "type": "string", + "enum": [ + "latest" + ] + } + ] + } + }, + "required": [ + "uuid", + "release" + ] + } + } + }, + "required": [ + "name" + ], + "description": "The specified release manifest" + } + }, + "required": [ + "manifest" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "400": { + "description": "Error message.", "content": { "application/json": { "schema": { @@ -9439,7 +12357,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -9447,47 +12367,105 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } } } } - } - }, - "/app_themes": { - "post": { - "summary": "Create app theme", - "description": "Creates and returns a new app theme. If a theme with the same name already exists, it returns 409 and does not modify the theme. The API token must have the \"App Themes > Write\" scope.", - "tags": ["App Themes"], + }, + "put": { + "summary": "Set release manifest", + "description": "Push a branch to the source control repository that creates or updates the named release manifest. If the manifest exists, it will be overwritten in the branch. The API token must have the \"Source control > Releases (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Identifier for the manifest of interest" + }, + "required": true, + "name": "manifestName", + "in": "path", + "description": "Identifier for the manifest of interest" + } + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "name": { - "type": "string", - "description": "The name of the app theme." - }, - "theme": { + "manifest": { "type": "object", - "additionalProperties": { "nullable": true }, - "description": "The theme object." + "properties": { + "apps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "format": "uuid" + }, + "release": { + "anyOf": [ + { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + }, + { + "type": "string", + "enum": [ + "latest" + ] + } + ] + } + }, + "required": [ + "uuid", + "release" + ] + } + } + }, + "description": "A list of source controlled elements and the corresponding version to publish for that element", + "example": { + "apps": [ + { + "uuid": "2ab90f76-c234-428e-9896-40c3a9bdbb2b", + "release": "latest" + }, + { + "uuid": "100186a5-d6cf-4476-8f84-7a71ab2fbef2", + "release": "1.0.1" + }, + { + "uuid": "200be837-2558-4f88-bb3b-07bea668c23e", + "release": "27.18.0" + } + ] + } + }, + "commit_message": { + "type": "string", + "description": "Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used." } - }, - "required": ["id", "legacy_id", "name", "theme"], - "description": "This object represents an app theme. App themes allow you to customize the look of your app. See https://docs.retool.com/apps/web/concepts/themes for more information." + } } } } }, "responses": { "200": { - "description": "Creates an app theme and returns it.", + "description": "Pushed a branch with the named release manifest.", "content": { "application/json": { "schema": { @@ -9495,35 +12473,44 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "name": { + "commit_sha": { "type": "string", - "description": "The name of the app theme." + "description": "The SHA1 hash for the git commit that the created branch points to" }, - "theme": { - "type": "object", - "additionalProperties": { "nullable": true }, - "description": "The theme object." + "url": { + "type": "string", + "description": "A URL to create a pull/merge request to merge the created branch into the default branch" + }, + "branch_name": { + "type": "string", + "description": "The name for the created branch" } }, - "required": ["id", "legacy_id", "name", "theme"], - "description": "The updated app theme." + "required": [ + "commit_sha", + "url", + "branch_name" + ] } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } }, - "409": { - "description": "Error when there is a naming conflict.", + "400": { + "description": "Error message.", "content": { "application/json": { "schema": { @@ -9531,7 +12518,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -9539,45 +12528,55 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } } } } - }, - "put": { - "summary": "Update app theme", - "description": "Creates or updates an app theme and returns it. The API token must have the \"App Themes > Write\" scope.", - "tags": ["App Themes"], - "requestBody": { + } + }, + "/source_control/manifests/{manifestName}/delete": { + "post": { + "summary": "Delete a release manifest", + "description": "Push a branch to the source control repository that deletes the named release manifest. The API token must have the \"Source control > Releases (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Identifier for the manifest of interest" + }, + "required": true, + "name": "manifestName", + "in": "path", + "description": "Identifier for the manifest of interest" + } + ], + "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "name": { + "commit_message": { "type": "string", - "description": "The name of the app theme." - }, - "theme": { - "type": "object", - "additionalProperties": { "nullable": true }, - "description": "The theme object." + "description": "Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used." } - }, - "required": ["id", "legacy_id", "name", "theme"], - "description": "This object represents an app theme. App themes allow you to customize the look of your app. See https://docs.retool.com/apps/web/concepts/themes for more information." + } } } } }, "responses": { "200": { - "description": "The updated app theme for the organization or space.", + "description": "Pushed a branch with the named release manifest.", "content": { "application/json": { "schema": { @@ -9585,35 +12584,141 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "name": { + "commit_sha": { "type": "string", - "description": "The name of the app theme." + "description": "The SHA1 hash for the git commit that the created branch points to" }, - "theme": { - "type": "object", - "additionalProperties": { "nullable": true }, - "description": "The theme object." + "url": { + "type": "string", + "description": "A URL to create a pull/merge request to merge the created branch into the default branch" + }, + "branch_name": { + "type": "string", + "description": "The name for the created branch" } }, - "required": ["id", "legacy_id", "name", "theme"], - "description": "The updated app theme." + "required": [ + "commit_sha", + "url", + "branch_name" + ] } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } }, - "201": { - "description": "The created app theme for the organization or space.", + "400": { + "description": "Error message.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/source_control/manifests/{manifestName}/apps/{appUuid}": { + "put": { + "deprecated": true, + "summary": "Set release manifest", + "description": "NOTE: This endpoint is deprecated. Use the PUT /manifests/{manifestName}/{elementUuid} endpoint instead. \n\nPush a branch to the source control repository that updates the release version of the specified app in the named release manifest. If the manifest does not already exist, it will be created in the branch. The API token must have the \"Source control > Releases (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid." + }, + "required": true, + "name": "appUuid", + "in": "path", + "description": "The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid." + }, + { + "schema": { + "type": "string", + "description": "Identifier for the manifest of interest" + }, + "required": true, + "name": "manifestName", + "in": "path", + "description": "Identifier for the manifest of interest" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "release": { + "anyOf": [ + { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + }, + { + "type": "string", + "enum": [ + "latest" + ] + } + ], + "description": "The release version to set for the specified app in the named release manifest", + "example": "27.18.0" + }, + "commit_message": { + "type": "string", + "description": "Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used." + } + }, + "required": [ + "release" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Pushed a branch with the updated release version for the specified app in the named release manifest.", "content": { "application/json": { "schema": { @@ -9621,35 +12726,44 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "name": { + "commit_sha": { "type": "string", - "description": "The name of the app theme." + "description": "The SHA1 hash for the git commit that the created branch points to" }, - "theme": { - "type": "object", - "additionalProperties": { "nullable": true }, - "description": "The theme object." + "url": { + "type": "string", + "description": "A URL to create a pull/merge request to merge the created branch into the default branch" + }, + "branch_name": { + "type": "string", + "description": "The name for the created branch" } }, - "required": ["id", "legacy_id", "name", "theme"], - "description": "The updated app theme." + "required": [ + "commit_sha", + "url", + "branch_name" + ] } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } }, - "409": { - "description": "Naming conflict exists", + "400": { + "description": "Error message.", "content": { "application/json": { "schema": { @@ -9657,7 +12771,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -9665,7 +12781,10 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } @@ -9674,44 +12793,87 @@ } } }, - "/apps/{appId}": { - "delete": { - "summary": "Delete app", - "description": "Deletes an app with the given appId. The API token must have the \"Apps > Write\" scope.", - "tags": ["Apps"], + "/source_control/manifests/{manifestName}/{elementUuid}": { + "put": { + "summary": "Set release manifest", + "description": "Push a branch to the source control repository that updates the release version of the specified element in the named release manifest. If the manifest does not already exist, it will be created in the branch. The API token must have the \"Source control > Releases (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], "parameters": [ { "schema": { "type": "string", "format": "uuid", - "description": "The app ID." + "description": "The uuid to specify an element of interest within the release manifest." }, "required": true, - "name": "appId", - "in": "path" - } - ], - "responses": { "204": { "description": "App deleted" } } - }, - "get": { - "summary": "Get app", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Returns the App. The API token must have the \"Apps > Read\" scope.", - "tags": ["Apps"], - "parameters": [ + "name": "elementUuid", + "in": "path", + "description": "The uuid to specify an element of interest within the release manifest." + }, { "schema": { "type": "string", - "format": "uuid", - "description": "The app ID." + "description": "Identifier for the manifest of interest" }, "required": true, - "name": "appId", - "in": "path" + "name": "manifestName", + "in": "path", + "description": "Identifier for the manifest of interest" + }, + { + "schema": { + "type": "string", + "enum": [ + "PAGE", + "WORKFLOW" + ], + "description": "The type of the element." + }, + "required": true, + "name": "elementType", + "in": "query", + "description": "The type of the element." } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "release": { + "anyOf": [ + { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + }, + { + "type": "string", + "enum": [ + "latest" + ] + } + ], + "description": "The release version to set for the specified app in the named release manifest", + "example": "27.18.0" + }, + "commit_message": { + "type": "string", + "description": "Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used." + } + }, + "required": [ + "release" + ] + } + } + } + }, "responses": { "200": { - "description": "The requested app.", + "description": "Pushed a branch with the updated release version for the specified element in the named release manifest.", "content": { "application/json": { "schema": { @@ -9719,84 +12881,122 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The app ID." - }, - "name": { - "type": "string", - "description": "The name of the App" - }, - "description": { + "commit_sha": { "type": "string", - "nullable": true, - "description": "The description of the App" + "description": "The SHA1 hash for the git commit that the created branch points to" }, - "folder_id": { + "url": { "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", - "description": "The id of the folder" - }, - "protected": { - "type": "boolean", - "description": "Whether the App is protected" + "description": "A URL to create a pull/merge request to merge the created branch into the default branch" }, - "synced": { - "type": "boolean", - "description": "Whether the App is synced" - }, - "shortlink": { + "branch_name": { "type": "string", - "nullable": true, - "description": "The shortlink of the App" - }, - "is_module": { - "type": "boolean", - "description": "Whether the App is a module" - }, - "is_mobile_app": { - "type": "boolean", - "description": "Whether the App is a mobile app" + "description": "The name for the created branch" } }, "required": [ - "id", - "name", - "description", - "folder_id", - "protected", - "synced", - "shortlink", - "is_module", - "is_mobile_app" - ], - "description": "This object represents an app." + "commit_sha", + "url", + "branch_name" + ] } }, - "required": ["success", "data"], - "description": "A single app" + "required": [ + "success", + "data" + ] } } } - } - } - } - }, - "/apps": { - "get": { - "summary": "List apps", - "description": "Get all apps for an organization or space. The API token must have the \"Apps > Read\" scope. ", - "tags": ["Apps"], - "responses": { + }, + "400": { + "description": "Error message.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/source_control/manifests/{manifestName}/apps/{appUuid}/delete": { + "post": { + "deprecated": true, + "summary": "Delete the entry for an app from a release manifest", + "description": "NOTE: This endpoint is deprecated. Use the DELETE /manifests/{manifestName}/{elementUuid} endpoint instead. \n\nPush a branch to the source control repository that deletes the entry for the specified app from the named release manifest. The API token must have the \"Source control > Releases (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid." + }, + "required": true, + "name": "appUuid", + "in": "path", + "description": "The uuid to specify an app of interest within the release manifest. This should be the uuid found in the source control repository, which may differ from the organization specific uuid." + }, + { + "schema": { + "type": "string", + "description": "Identifier for the manifest of interest" + }, + "required": true, + "name": "manifestName", + "in": "path", + "description": "Identifier for the manifest of interest" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "commit_message": { + "type": "string", + "description": "Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used." + } + } + } + } + } + }, + "responses": { "200": { - "description": "List of apps", + "description": "Pushed a branch that removes the entry for the specified app from the named release manifest.", "content": { "application/json": { "schema": { @@ -9804,92 +13004,66 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The app ID." - }, - "name": { - "type": "string", - "description": "The name of the App" - }, - "description": { - "type": "string", - "nullable": true, - "description": "The description of the App" - }, - "folder_id": { - "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", - "description": "The id of the folder" - }, - "protected": { - "type": "boolean", - "description": "Whether the App is protected" - }, - "synced": { - "type": "boolean", - "description": "Whether the App is synced" - }, - "shortlink": { - "type": "string", - "nullable": true, - "description": "The shortlink of the App" - }, - "is_module": { - "type": "boolean", - "description": "Whether the App is a module" - }, - "is_mobile_app": { - "type": "boolean", - "description": "Whether the App is a mobile app" - } + "type": "object", + "properties": { + "commit_sha": { + "type": "string", + "description": "The SHA1 hash for the git commit that the created branch points to" }, - "required": [ - "id", - "name", - "description", - "folder_id", - "protected", - "synced", - "shortlink", - "is_module", - "is_mobile_app" - ], - "description": "This object represents an app." + "url": { + "type": "string", + "description": "A URL to create a pull/merge request to merge the created branch into the default branch" + }, + "branch_name": { + "type": "string", + "description": "The name for the created branch" + } }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" + "required": [ + "commit_sha", + "url", + "branch_name" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "400": { + "description": "Error message.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" }, - "next_token": { + "message": { "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" + "description": "Error message" } }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" + "message" ], - "description": "A dictionary with a `data` property that contains an array of groups" + "description": "API error response" } } } @@ -9897,260 +13071,213 @@ } } }, - "/sso/config": { + "/source_control/manifests/{manifestName}/{elementUuid}/delete": { "post": { - "summary": "Set SSO configuration", - "description": "Sets SSO configuration for organization or space. The API token must have the \"Spaces > Write\" scope.", - "tags": ["SSO"], + "summary": "Delete the entry for an app from a release manifest", + "description": "Push a branch to the source control repository that deletes the entry for the specified element from the named release manifest. The API token must have the \"Source control > Releases (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The uuid to specify an element of interest within the release manifest." + }, + "required": true, + "name": "elementUuid", + "in": "path", + "description": "The uuid to specify an element of interest within the release manifest." + }, + { + "schema": { + "type": "string", + "description": "Identifier for the manifest of interest" + }, + "required": true, + "name": "manifestName", + "in": "path", + "description": "Identifier for the manifest of interest" + }, + { + "schema": { + "type": "string", + "enum": [ + "PAGE", + "WORKFLOW" + ], + "description": "The type of the element." + }, + "required": true, + "name": "elementType", + "in": "query", + "description": "The type of the element." + } + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "data": { - "oneOf": [ - { - "type": "object", - "properties": { - "config_type": { - "type": "string", - "enum": ["google"] - }, - "google_client_id": { "type": "string" }, - "google_client_secret": { "type": "string" }, - "disable_email_password_login": { "type": "boolean" } + "commit_message": { + "type": "string", + "description": "Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used." + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Pushed a branch that removes the entry for the specified element from the named release manifest.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "commit_sha": { + "type": "string", + "description": "The SHA1 hash for the git commit that the created branch points to" }, - "required": [ - "config_type", - "google_client_id", - "google_client_secret", - "disable_email_password_login" - ], - "additionalProperties": false + "url": { + "type": "string", + "description": "A URL to create a pull/merge request to merge the created branch into the default branch" + }, + "branch_name": { + "type": "string", + "description": "The name for the created branch" + } }, - { - "type": "object", - "properties": { - "config_type": { "type": "string", "enum": ["oidc"] }, - "oidc_client_id": { - "type": "string", - "minLength": 1 - }, - "oidc_client_secret": { - "type": "string", - "minLength": 1 - }, - "oidc_scopes": { "type": "string", "minLength": 1 }, - "oidc_auth_url": { "type": "string", "minLength": 1 }, - "oidc_token_url": { - "type": "string", - "minLength": 1 - }, - "oidc_userinfo_url": { - "type": "string", - "minLength": 1 - }, - "oidc_audience": { "type": "string" }, - "jwt_email_key": { "type": "string", "minLength": 1 }, - "jwt_roles_key": { "type": "string", "minLength": 1 }, - "jwt_first_name_key": { - "type": "string", - "minLength": 1 - }, - "jwt_last_name_key": { - "type": "string", - "minLength": 1 - }, - "roles_mapping": { "type": "string" }, - "jit_enabled": { "type": "boolean" }, - "restricted_domain": { "type": "string" }, - "trigger_login_automatically": { "type": "boolean" }, - "disable_email_password_login": { "type": "boolean" } - }, - "required": [ - "config_type", - "oidc_client_id", - "oidc_client_secret", - "oidc_scopes", - "oidc_auth_url", - "oidc_token_url", - "jwt_email_key", - "jwt_first_name_key", - "jwt_last_name_key", - "jit_enabled", - "trigger_login_automatically", - "disable_email_password_login" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "config_type": { - "type": "string", - "enum": ["google & oidc"] - }, - "google_client_id": { "type": "string" }, - "google_client_secret": { "type": "string" }, - "disable_email_password_login": { "type": "boolean" }, - "oidc_client_id": { - "type": "string", - "minLength": 1 - }, - "oidc_client_secret": { - "type": "string", - "minLength": 1 - }, - "oidc_scopes": { "type": "string", "minLength": 1 }, - "oidc_auth_url": { "type": "string", "minLength": 1 }, - "oidc_token_url": { - "type": "string", - "minLength": 1 - }, - "oidc_userinfo_url": { - "type": "string", - "minLength": 1 - }, - "oidc_audience": { "type": "string" }, - "jwt_email_key": { "type": "string", "minLength": 1 }, - "jwt_roles_key": { "type": "string", "minLength": 1 }, - "jwt_first_name_key": { - "type": "string", - "minLength": 1 - }, - "jwt_last_name_key": { - "type": "string", - "minLength": 1 - }, - "roles_mapping": { "type": "string" }, - "jit_enabled": { "type": "boolean" }, - "restricted_domain": { "type": "string" }, - "trigger_login_automatically": { "type": "boolean" } - }, - "required": [ - "config_type", - "google_client_id", - "google_client_secret", - "disable_email_password_login", - "oidc_client_id", - "oidc_client_secret", - "oidc_scopes", - "oidc_auth_url", - "oidc_token_url", - "jwt_email_key", - "jwt_first_name_key", - "jwt_last_name_key", - "jit_enabled", - "trigger_login_automatically" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "config_type": { "type": "string", "enum": ["saml"] }, - "idp_metadata_xml": { - "type": "string", - "minLength": 1 - }, - "saml_first_name_attribute": { - "type": "string", - "minLength": 1 - }, - "saml_last_name_attribute": { - "type": "string", - "minLength": 1 - }, - "saml_groups_attribute": { "type": "string" }, - "saml_sync_group_claims": { "type": "boolean" }, - "ldap_sync_group_claims": { "type": "boolean" }, - "ldap_role_mapping": { "type": "string" }, - "ldap_server_url": { "type": "string" }, - "ldap_base_domain_components": { "type": "string" }, - "ldap_server_name": { "type": "string" }, - "ldap_server_key": { "type": "string" }, - "ldap_server_certificate": { "type": "string" }, - "jit_enabled": { "type": "boolean" }, - "restricted_domain": { "type": "string" }, - "trigger_login_automatically": { "type": "boolean" }, - "disable_email_password_login": { "type": "boolean" } - }, - "required": [ - "config_type", - "idp_metadata_xml", - "saml_first_name_attribute", - "saml_last_name_attribute", - "saml_sync_group_claims", - "jit_enabled", - "trigger_login_automatically", - "disable_email_password_login" - ], - "additionalProperties": false - }, - { + "required": [ + "commit_sha", + "url", + "branch_name" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "400": { + "description": "Error message.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/source_control/releases/apps/{appUuid}": { + "get": { + "deprecated": true, + "summary": "Lists all available releases for the given app.", + "description": "NOTE: This endpoint is deprecated. Use the GET /releases/{elementUuid} endpoint instead. \n\nReturns a list of the available releases for the app. The API token must have the \"Source control > Releases (Read)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The uuid of the app." + }, + "required": true, + "name": "appUuid", + "in": "path", + "description": "The uuid of the app." + } + ], + "responses": { + "200": { + "description": "List of source control releases.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { "type": "object", "properties": { - "config_type": { - "type": "string", - "enum": ["google & saml"] - }, - "google_client_id": { "type": "string" }, - "google_client_secret": { "type": "string" }, - "disable_email_password_login": { "type": "boolean" }, - "idp_metadata_xml": { + "release_version": { "type": "string", - "minLength": 1 + "description": "The version of the release." }, - "saml_first_name_attribute": { + "release_description": { "type": "string", - "minLength": 1 + "description": "The description of the release." }, - "saml_last_name_attribute": { + "created_at": { "type": "string", - "minLength": 1 - }, - "saml_groups_attribute": { "type": "string" }, - "saml_sync_group_claims": { "type": "boolean" }, - "ldap_sync_group_claims": { "type": "boolean" }, - "ldap_role_mapping": { "type": "string" }, - "ldap_server_url": { "type": "string" }, - "ldap_base_domain_components": { "type": "string" }, - "ldap_server_name": { "type": "string" }, - "ldap_server_key": { "type": "string" }, - "ldap_server_certificate": { "type": "string" }, - "jit_enabled": { "type": "boolean" }, - "restricted_domain": { "type": "string" }, - "trigger_login_automatically": { "type": "boolean" } + "description": "The timestamp when the release was created.", + "example": "2024-10-08T11:45:48.899Z" + } }, "required": [ - "config_type", - "google_client_id", - "google_client_secret", - "disable_email_password_login", - "idp_metadata_xml", - "saml_first_name_attribute", - "saml_last_name_attribute", - "saml_sync_group_claims", - "jit_enabled", - "trigger_login_automatically" - ], - "additionalProperties": false + "release_version", + "created_at" + ] } - ], - "description": "This object represents the SSO configuration for an organization or space. See https://docs.retool.com/sso for more information." - } - }, - "required": ["data"], - "additionalProperties": false, - "description": "Shape of SSO config" + } + }, + "required": [ + "success", + "data" + ] + } } } - } - }, - "responses": { - "200": { - "description": "SSO configuration for the organization or space.", + }, + "400": { + "description": "Error message.", "content": { "application/json": { "schema": { @@ -10158,142 +13285,123 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" + "enum": [ + false + ], + "description": "API request failed" }, - "data": { - "oneOf": [ - { - "type": "object", - "properties": { - "config_type": { - "type": "string", - "enum": [ - "google & oidc", "google", "saml", "google & saml", "oidc" - ] - }, - "google_client_id": { - "type": "string" - }, - "google_client_secret": { - "type": "string" - }, - "disable_email_password_login": { - "type": "boolean" - }, - "oidc_client_id": { - "type": "string", - "minLength": 1 - }, - "oidc_client_secret": { - "type": "string", - "minLength": 1 - }, - "oidc_scopes": { - "type": "string", - "minLength": 1 - }, - "oidc_auth_url": { - "type": "string", - "minLength": 1 - }, - "oidc_token_url": { - "type": "string", - "minLength": 1 - }, - "oidc_userinfo_url": { - "type": "string", - "minLength": 1 - }, - "oidc_audience": { - "type": "string" - }, - "jwt_email_key": { - "type": "string", - "minLength": 1 - }, - "jwt_roles_key": { - "type": "string", - "minLength": 1 - }, - "jwt_first_name_key": { - "type": "string", - "minLength": 1 - }, - "jwt_last_name_key": { - "type": "string", - "minLength": 1 - }, - "roles_mapping": { - "type": "string" - }, - "jit_enabled": { - "type": "boolean" - }, - "restricted_domain": { - "type": "string" - }, - "trigger_login_automatically": { - "type": "boolean" - }, - "idp_metadata_xml": { - "type": "string", - "minLength": 1 - }, - "saml_first_name_attribute": { - "type": "string", - "minLength": 1 - }, - "saml_last_name_attribute": { - "type": "string", - "minLength": 1 - }, - "saml_groups_attribute": { - "type": "string" - }, - "saml_sync_group_claims": { - "type": "boolean" - }, - "ldap_sync_group_claims": { - "type": "boolean" - }, - "ldap_role_mapping": { - "type": "string" - }, - "ldap_server_url": { - "type": "string" - }, - "ldap_base_domain_components": { - "type": "string" - }, - "ldap_server_name": { - "type": "string" - }, - "ldap_server_key": { - "type": "string" - }, - "ldap_server_certificate": { - "type": "string" - } - }, - "required": [ - "config_type", - "disable_email_password_login" - ], - "additionalProperties": false, - "title": "SSO Config" - } + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + }, + "post": { + "deprecated": true, + "summary": "Create a release artifact", + "description": "NOTE: This endpoint is deprecated. Use the POST /releases/{elementUuid} endpoint instead. \n\nPush a branch to the source control repository that creates a new release artifact with the provided version for the app based on the latest version. The API token must have the \"Source control > Releases (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The uuid of the app." + }, + "required": true, + "name": "appUuid", + "in": "path", + "description": "The uuid of the app." + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "release_version": { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$", + "description": "The version of the release.", + "example": "1.0.0" + }, + "release_description": { + "type": "string", + "description": "The description of the release.", + "example": "Updated theme for better consistency and dark mode support." + }, + "commit_message": { + "type": "string", + "description": "Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used." + } + }, + "required": [ + "release_version" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Pushed a branch with the new release artifact", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true ], - "description": "Result of setting SSO configuration" + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "commit_sha": { + "type": "string", + "description": "The SHA1 hash for the git commit that the created branch points to" + }, + "url": { + "type": "string", + "description": "A URL to create a pull/merge request to merge the created branch into the default branch" + }, + "branch_name": { + "type": "string", + "description": "The name for the created branch" + } + }, + "required": [ + "commit_sha", + "url", + "branch_name" + ] } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } }, "400": { - "description": "Error", + "description": "Error message.", "content": { "application/json": { "schema": { @@ -10301,7 +13409,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -10309,35 +13419,54 @@ "description": "Error message" } }, - "required": ["success", "message"], + "required": [ + "success", + "message" + ], "description": "API error response" } } } } } - }, - "delete": { - "summary": "Remove SSO configuration", - "description": "Removes SSO configuration for organization or space. The API token must have the \"Spaces \u003E Write\" scope. Note that this will not remove the SSO configuration if it is configured via env variables.", + } + }, + "/source_control/releases/{elementUuid}": { + "get": { + "summary": "Lists all available releases for the given element.", + "description": "Returns a list of the available releases for the element. The API token must have the \"Source control > Releases (Read)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", "tags": [ - "SSO" + "Source Control" ], - "responses": { - "204": { - "description": "SSO configuration for the organization or space has been successfully removed." + "parameters": [ + { + "schema": { + "type": "string", + "description": "The uuid of the element." + }, + "required": true, + "name": "elementUuid", + "in": "path", + "description": "The uuid of the element." + }, + { + "schema": { + "type": "string", + "enum": [ + "PAGE", + "WORKFLOW" + ], + "description": "The type of the element." + }, + "required": true, + "name": "elementType", + "in": "query", + "description": "The type of the element." } - } - }, - "get": { - "summary": "Get SSO configuration", - "description": "Reads SSO configuration of organization or space. The API token must have the \"Spaces \u003E Read\" scope. Note that this will not return the SSO configuration if it is configured via env variables.", - "tags": [ - "SSO" ], "responses": { "200": { - "description": "SSO configuration for the organization or space.", + "description": "List of source control releases for the given element", "content": { "application/json": { "schema": { @@ -10345,133 +13474,35 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "oneOf": [ - { - "type": "object", - "properties": { - "config_type": { - "type": "string", - "enum": [ - "google & oidc", "google", "saml", "google & saml", "oidc" - ] - }, - "google_client_id": { - "type": "string" - }, - "google_client_secret": { - "type": "string" - }, - "disable_email_password_login": { - "type": "boolean" - }, - "oidc_client_id": { - "type": "string", - "minLength": 1 - }, - "oidc_client_secret": { - "type": "string", - "minLength": 1 - }, - "oidc_scopes": { - "type": "string", - "minLength": 1 - }, - "oidc_auth_url": { - "type": "string", - "minLength": 1 - }, - "oidc_token_url": { - "type": "string", - "minLength": 1 - }, - "oidc_userinfo_url": { - "type": "string", - "minLength": 1 - }, - "oidc_audience": { - "type": "string" - }, - "jwt_email_key": { - "type": "string", - "minLength": 1 - }, - "jwt_roles_key": { - "type": "string", - "minLength": 1 - }, - "jwt_first_name_key": { - "type": "string", - "minLength": 1 - }, - "jwt_last_name_key": { - "type": "string", - "minLength": 1 - }, - "roles_mapping": { - "type": "string" - }, - "jit_enabled": { - "type": "boolean" - }, - "restricted_domain": { - "type": "string" - }, - "trigger_login_automatically": { - "type": "boolean" - }, - "idp_metadata_xml": { - "type": "string", - "minLength": 1 - }, - "saml_first_name_attribute": { - "type": "string", - "minLength": 1 - }, - "saml_last_name_attribute": { - "type": "string", - "minLength": 1 - }, - "saml_groups_attribute": { - "type": "string" - }, - "saml_sync_group_claims": { - "type": "boolean" - }, - "ldap_sync_group_claims": { - "type": "boolean" - }, - "ldap_role_mapping": { - "type": "string" - }, - "ldap_server_url": { - "type": "string" - }, - "ldap_base_domain_components": { - "type": "string" - }, - "ldap_server_name": { - "type": "string" - }, - "ldap_server_key": { - "type": "string" - }, - "ldap_server_certificate": { - "type": "string" - } + "type": "array", + "items": { + "type": "object", + "properties": { + "release_version": { + "type": "string", + "description": "The version of the release." }, - "required": [ - "config_type", - "disable_email_password_login" - ], - "additionalProperties": false, - "title": "SSO Config" - } - ], - "description": "SSO configuration" + "release_description": { + "type": "string", + "description": "The description of the release." + }, + "created_at": { + "type": "string", + "description": "The timestamp when the release was created.", + "example": "2024-10-08T11:45:48.899Z" + } + }, + "required": [ + "release_version", + "created_at" + ] + } } }, "required": [ @@ -10482,8 +13513,8 @@ } } }, - "404": { - "description": "SSO is not configured for this organization or space.", + "400": { + "description": "Error message.", "content": { "application/json": { "schema": { @@ -10491,7 +13522,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -10507,9 +13540,118 @@ } } } + } + } + }, + "post": { + "summary": "Create a release artifact", + "description": "Push a branch to the source control repository that creates a new release artifact with the provided version for the element based on the latest version. The API token must have the \"Source control > Releases (Write)\" scope.\n\nThis feature is in beta. Reach out to support if you\u2019d like to join the beta.", + "tags": [ + "Source Control" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The uuid of the element." + }, + "required": true, + "name": "elementUuid", + "in": "path", + "description": "The uuid of the element." }, - "422": { - "description": "The organization has unsupported type of SSO configurations.", + { + "schema": { + "type": "string", + "enum": [ + "PAGE", + "WORKFLOW" + ], + "description": "The type of the element." + }, + "required": true, + "name": "elementType", + "in": "query", + "description": "The type of the element." + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "release_version": { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$", + "description": "The version of the release.", + "example": "1.0.0" + }, + "release_description": { + "type": "string", + "description": "The description of the release.", + "example": "Updated theme for better consistency and dark mode support." + }, + "commit_message": { + "type": "string", + "description": "Message to use for the commit that updates the specified manifest. If a message is not provided, a default will be used." + } + }, + "required": [ + "release_version" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Pushed a branch with the new release artifact", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "commit_sha": { + "type": "string", + "description": "The SHA1 hash for the git commit that the created branch points to" + }, + "url": { + "type": "string", + "description": "A URL to create a pull/merge request to merge the created branch into the default branch" + }, + "branch_name": { + "type": "string", + "description": "The name for the created branch" + } + }, + "required": [ + "commit_sha", + "url", + "branch_name" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "400": { + "description": "Error message.", "content": { "application/json": { "schema": { @@ -10517,7 +13659,9 @@ "properties": { "success": { "type": "boolean", - "enum": [false], + "enum": [ + false + ], "description": "API request failed" }, "message": { @@ -10537,14 +13681,26 @@ } } }, - "/user_attributes": { + "/app_themes/{id}": { "get": { - "summary": "Get organization user attributes.", - "description": "Gets the list of currently configured user attributes for the organization. The API token must have the \"Users > Read\" scope.", - "tags": ["User Attributes"], + "summary": "Get app theme", + "description": "Returns the app theme matching the ID for the organization or space. The API token must have the \"App Themes > Read\" scope.", + "tags": [ + "App Themes" + ], + "parameters": [ + { + "schema": { + "type": "string" + }, + "required": true, + "name": "id", + "in": "path" + } + ], "responses": { "200": { - "description": "List of currently configured user attributes.", + "description": "App theme for the organization or space.", "content": { "application/json": { "schema": { @@ -10552,149 +13708,152 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The id of the user attribute" - }, - "name": { - "type": "string", - "minLength": 1, - "maxLength": 255, - "pattern": "^[a-z0-9\\_]+$", - "description": "The name of the user attribute" - }, - "label": { - "type": "string", - "description": "The label of the user attribute" - }, - "data_type": { - "type": "string", - "enum": ["string", "number", "json"], - "description": "The data type of the user attribute. One of types `string`, `number`, or `json`" - }, - "default_value": { - "type": "string", - "nullable": true, - "description": "The default value of the user attribute, assigned to all users without the attribute set" + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "name": { + "type": "string", + "description": "The name of the app theme." + }, + "theme": { + "type": "object", + "additionalProperties": { + "nullable": true }, - "intercom_attribute_name": { - "type": "string", - "nullable": true, - "minLength": 1, - "maxLength": 255, - "pattern": "^[a-z0-9\\_]+$", - "description": "The name of the Intercom user attribute that this attribute should be mapped to" - } + "description": "The theme object." }, - "required": [ - "id", - "name", - "label", - "data_type", - "default_value", - "intercom_attribute_name" - ], - "description": "This object represents user attributes." + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was last updated." + } }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" - }, - "next_token": { - "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { + "required": [ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at" + ], + "description": "The app theme." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "404": { + "description": "App theme does not exist.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { "type": "boolean", - "description": "Whether there are more items in the collection" + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" } }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" + "message" ], - "description": "A list of user attributes." + "description": "API error response" } } } } } - } - }, - "/permissions/listObjects": { - "post": { - "summary": "List objects a group can access", - "description": "Returns the list of objects with corresponding access levels that a subject (group) has access to. The API token must have the \"Permissions > Read\" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.26.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+", - "tags": ["Permissions"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "subject": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { "type": "string", "enum": ["group"] }, - "id": { - "type": "number", - "nullable": true, - "description": "The ID number of the group" - } - }, - "required": ["type", "id"], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "type": { "type": "string", "enum": ["user"] }, - "id": { - "type": "string", - "pattern": "user_([a-z0-9]+)" - } - }, - "required": ["type", "id"], - "additionalProperties": false - } - ] + }, + "delete": { + "summary": "Delete app theme", + "description": "Deletes specified app theme for organization or space. The API token must have the \"App Themes > Write\" scope.", + "tags": [ + "App Themes" + ], + "parameters": [ + { + "schema": { + "type": "string" + }, + "required": true, + "name": "id", + "in": "path" + } + ], + "responses": { + "204": { + "description": "Successful deletion." + }, + "404": { + "description": "The app theme was not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } }, - "object_type": { - "type": "string", - "enum": [ - "folder", - "app", - "resource", - "resource_configuration" - ] - } - }, - "required": ["subject", "object_type"], - "additionalProperties": false + "required": [ + "success", + "message" + ], + "description": "API error response" + } } } } - }, + } + } + }, + "/app_themes": { + "get": { + "summary": "List all app themes", + "description": "Available on Retool v3.139+. Returns all app themes for the organization or space. The API token must have the \"App Themes > Read\" scope.", + "tags": [ + "App Themes" + ], "responses": { "200": { - "description": "A list of folders with corresponding access levels.", + "description": "List of app themes for the organization or space.", "content": { "application/json": { "schema": { @@ -10702,38 +13861,53 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "array", "items": { - "oneOf": [ - { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "name": { + "type": "string", + "description": "The name of the app theme." + }, + "theme": { "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "folder", - "app", - "resource", - "resource_configuration" - ] - }, - "id": { - "type": "string", - "description": "The id of the object" - }, - "access_level": { - "type": "string", - "enum": ["own", "edit", "use"], - "description": "The access level of the object" - } + "additionalProperties": { + "nullable": true }, - "required": ["type", "id", "access_level"] + "description": "The theme object." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was last updated." } - ] + }, + "required": [ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at" + ], + "description": "This object represents an app theme. App themes allow you to customize the look of your app. See https://docs.retool.com/apps/web/concepts/themes for more information." }, "description": "An array of requested items" }, @@ -10757,92 +13931,70 @@ "total_count", "next_token", "has_more" - ] + ], + "description": "A list of all app themes in the organization" } } } } } - } - }, - "/permissions/grant": { + }, "post": { - "summary": "Grant permissions", - "description": "Grant a group (subject) access to an object. Returns the updated list of objects with corresponding access levels that the subject has access to. The API token must have the \"Permissions > Write\" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+. Only subject type supported is groups. Also grants or updates access for all the objects within the folder. ", - "tags": ["Permissions"], + "summary": "Create app theme", + "description": "Creates and returns a new app theme. If a theme with the same name already exists, it returns 409 and does not modify the theme. The API token must have the \"App Themes > Write\" scope.", + "tags": [ + "App Themes" + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "subject": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { "type": "string", "enum": ["group"] }, - "id": { - "type": "number", - "nullable": true, - "description": "The ID number of the group" - } - }, - "required": ["type", "id"], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "type": { "type": "string", "enum": ["user"] }, - "id": { - "type": "string", - "pattern": "user_([a-z0-9]+)" - } - }, - "required": ["type", "id"], - "additionalProperties": false - } - ] + "id": { + "type": "number" }, - "object": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "folder", - "app", - "resource", - "resource_configuration" - ] - }, - "id": { - "type": "string", - "description": "The id of the object" - } - }, - "required": ["type", "id"] - } - ] + "legacy_id": { + "type": "number" }, - "access_level": { + "name": { "type": "string", - "enum": ["own", "edit", "use"], - "description": "The access level that the group should have for the object" + "description": "The name of the app theme." + }, + "theme": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "description": "The theme object." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was last updated." } }, - "required": ["subject", "object", "access_level"], - "additionalProperties": false + "required": [ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at" + ], + "description": "This object represents an app theme. App themes allow you to customize the look of your app. See https://docs.retool.com/apps/web/concepts/themes for more information." } } } }, "responses": { "200": { - "description": "A list of folders with corresponding access levels", + "description": "Creates an app theme and returns it.", "content": { "application/json": { "schema": { @@ -10850,142 +14002,147 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "folder", - "app", - "resource", - "resource_configuration" - ] - }, - "id": { - "type": "string", - "description": "The id of the object" - }, - "access_level": { - "type": "string", - "enum": ["own", "edit", "use"], - "description": "The access level of the object" - } - }, - "required": ["type", "id", "access_level"] - } - ] + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "name": { + "type": "string", + "description": "The name of the app theme." + }, + "theme": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "description": "The theme object." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was last updated." + } }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" + "required": [ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at" + ], + "description": "The updated app theme." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "409": { + "description": "Error when there is a naming conflict.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" }, - "next_token": { + "message": { "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" + "description": "Error message" } }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" - ] + "message" + ], + "description": "API error response" } } } } } - } - }, - "/permissions/revoke": { - "post": { - "summary": "Revoke permissions", - "description": "Revoke access to an object for a group. Returns the updated list of objects with corresponding access levels that the subject has access to. The API token must have the \"Permissions > Write\" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+. Only subject type supported is groups. Also revokes access to all the objects within the folder.", - "tags": ["Permissions"], + }, + "put": { + "summary": "Update app theme", + "description": "Creates or updates an app theme and returns it. The API token must have the \"App Themes > Write\" scope.", + "tags": [ + "App Themes" + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "subject": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { "type": "string", "enum": ["group"] }, - "id": { - "type": "number", - "nullable": true, - "description": "The ID number of the group" - } - }, - "required": ["type", "id"], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "type": { "type": "string", "enum": ["user"] }, - "id": { - "type": "string", - "pattern": "user_([a-z0-9]+)" - } - }, - "required": ["type", "id"], - "additionalProperties": false - } - ] + "id": { + "type": "number" }, - "object": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "folder", - "app", - "resource", - "resource_configuration" - ] - }, - "id": { - "type": "string", - "description": "The id of the object" - } - }, - "required": ["type", "id"] - } - ] + "legacy_id": { + "type": "number" + }, + "name": { + "type": "string", + "description": "The name of the app theme." + }, + "theme": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "description": "The theme object." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was last updated." } }, - "required": ["subject", "object"], - "additionalProperties": false + "required": [ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at" + ], + "description": "This object represents an app theme. App themes allow you to customize the look of your app. See https://docs.retool.com/apps/web/concepts/themes for more information." } } } }, "responses": { "200": { - "description": "A list of folders with corresponding access levels", + "description": "The updated app theme for the organization or space.", "content": { "application/json": { "schema": { @@ -10993,123 +14150,63 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "array", - "items": { - "anyOf": [ - { - "type": "object", - "properties": { - "type": { "type": "string", "enum": ["folder"] }, - "id": { - "type": "string", - "pattern": "^(app|workflow|resource)_([0-9]\\d*)$", - "description": "The id of the folder" - }, - "access_level": { - "type": "string", - "enum": ["own", "edit", "use"], - "description": "The access level of the folder" - } - }, - "required": ["type", "id", "access_level"] - }, - { - "type": "object", - "properties": { - "type": { "type": "string", "enum": ["app"] }, - "id": { - "type": "string", - "format": "uuid", - "description": "The app ID." - }, - "access_level": { - "type": "string", - "enum": ["own", "edit", "use"], - "description": "The access level of the app" - } - }, - "required": ["type", "id", "access_level"] + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "name": { + "type": "string", + "description": "The name of the app theme." + }, + "theme": { + "type": "object", + "additionalProperties": { + "nullable": true }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "folder", - "app", - "resource", - "resource_configuration" - ] - }, - "id": { - "type": "string", - "description": "The id of the object" - }, - "access_level": { - "type": "string", - "enum": ["own", "edit", "use"], - "description": "The access level of the object" - } - }, - "required": ["type", "id", "access_level"] - } - ] + "description": "The theme object." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was last updated." + } }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" - }, - "next_token": { - "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" + "required": [ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at" + ], + "description": "The updated app theme." } }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" + "data" ] } } } - } - } - } - }, - "/access_requests": { - "get": { - "summary": "Get organization access requests", - "description": "Available from API version 2.3.0+ and onprem version 3.24.0+. Gets a list of access requests. The API token must have the \"Users > Read\" scope.", - "tags": ["Access Request"], - "parameters": [ - { - "schema": { - "type": "string", - "enum": ["PENDING", "APPROVED", "DENIED"], - "description": "The status of the access request" - }, - "required": false, - "name": "status", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Returns all access requests.", + }, + "201": { + "description": "The created app theme for the organization or space.", "content": { "application/json": { "schema": { @@ -11117,59 +14214,85 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { "type": "number" }, - "status": { - "type": "string", - "enum": ["PENDING", "APPROVED", "DENIED"] - }, - "legacy_id": { "type": "number" }, - "requesting_email": { "type": "string" }, - "updated_by_id": { - "type": "string", + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "name": { + "type": "string", + "description": "The name of the app theme." + }, + "theme": { + "type": "object", + "additionalProperties": { "nullable": true - } + }, + "description": "The theme object." }, - "required": [ - "id", - "status", - "legacy_id", - "requesting_email", - "updated_by_id" - ], - "description": "Access Request" + "created_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Date and time when the app theme was last updated." + } }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" + "required": [ + "id", + "legacy_id", + "name", + "theme", + "created_at", + "updated_at" + ], + "description": "The updated app theme." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "409": { + "description": "Naming conflict exists", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" }, - "next_token": { + "message": { "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" + "description": "Error message" } }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" + "message" ], - "description": "A paginated list of access requests." + "description": "API error response" } } } @@ -11177,114 +14300,54 @@ } } }, - "/access_requests/{accessRequestId}": { - "get": { - "summary": "Get access request", - "description": "Available from API version 2.2.0+ and onprem version 3.24.0+. Returns the access request. The API token must have the \"Users > Read\" scope.", - "tags": ["Access Request"], + "/apps/{appId}": { + "delete": { + "summary": "Delete app", + "description": "Deletes an app with the given appId. The API token must have the \"Apps > Write\" scope.", + "tags": [ + "Apps" + ], "parameters": [ { "schema": { "type": "string", - "pattern": "^\\d+$", - "description": "The access request's ID number" + "format": "uuid", + "description": "The app ID." }, "required": true, - "name": "accessRequestId", - "in": "path" + "name": "appId", + "in": "path", + "description": "The app ID." } ], "responses": { - "200": { - "description": "The requested access request.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "id": { "type": "number" }, - "status": { - "type": "string", - "enum": ["PENDING", "APPROVED", "DENIED"] - }, - "legacy_id": { "type": "number" }, - "requesting_email": { "type": "string" }, - "updated_by_id": { "type": "string", "nullable": true } - }, - "required": [ - "id", - "status", - "legacy_id", - "requesting_email", - "updated_by_id" - ], - "description": "Access Request" - } - }, - "required": ["success", "data"], - "description": "A single access request." - } - } - } + "204": { + "description": "App deleted" } } }, - "patch": { - "summary": "Approve or deny an access request", - "description": "Available from API version 2.3.0+ and onprem version 3.24.0+. Approve or deny an access request in your organization. The API token must have the \"Users > Write\" scope.", - "tags": ["Access Request"], + "get": { + "summary": "Get app", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Returns the App. The API token must have the \"Apps > Read\" scope.", + "tags": [ + "Apps" + ], "parameters": [ { "schema": { "type": "string", - "description": "The ID of the access request" + "format": "uuid", + "description": "The app ID." }, "required": true, - "name": "accessRequestId", - "in": "path" + "name": "appId", + "in": "path", + "description": "The app ID." } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "operations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "op": { "type": "string", "enum": ["replace"] }, - "path": { "type": "string" }, - "value": { - "nullable": true, - "description": "A JSON value" - } - }, - "required": ["op", "path"] - }, - "description": "A list of operations to apply to the access request. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." - } - }, - "required": ["operations"], - "additionalProperties": false, - "description": "The body of a request to update an access request's status." - } - } - } - }, "responses": { "200": { - "description": "Returns an approved or denied access request", + "description": "The requested app.", "content": { "application/json": { "schema": { @@ -11292,48 +14355,106 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { "type": "number" }, - "status": { + "id": { "type": "string", - "enum": ["PENDING", "APPROVED", "DENIED"] + "format": "uuid", + "description": "The app ID." }, - "legacy_id": { "type": "number" }, - "requesting_email": { "type": "string" }, - "updated_by_id": { "type": "string", "nullable": true } - }, - "required": [ - "id", - "status", - "legacy_id", - "requesting_email", - "updated_by_id" - ], - "description": "Access Request" - } - }, - "required": ["success", "data"], - "description": "An approved or denied access request object." - } - } - } - } - } - } - }, - "/user_invites": { + "name": { + "type": "string", + "description": "The name of the App" + }, + "description": { + "type": "string", + "nullable": true, + "description": "The description of the App" + }, + "folder_id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" + }, + "protected": { + "type": "boolean", + "description": "Whether the App is protected" + }, + "synced": { + "type": "boolean", + "description": "Whether the App is synced" + }, + "shortlink": { + "type": "string", + "nullable": true, + "description": "The shortlink of the App" + }, + "is_module": { + "type": "boolean", + "description": "Whether the App is a module" + }, + "is_mobile_app": { + "type": "boolean", + "description": "Whether the App is a mobile app" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + }, + "release_version": { + "type": "string", + "description": "The live release version of the app. 'latest' if releases are disabled or the app has no live release yet" + } + }, + "required": [ + "id", + "name", + "description", + "folder_id", + "protected", + "synced", + "shortlink", + "is_module", + "is_mobile_app", + "created_at", + "updated_at", + "release_version" + ], + "description": "This object represents an app." + } + }, + "required": [ + "success", + "data" + ], + "description": "A single app" + } + } + } + } + } + } + }, + "/apps": { "get": { - "summary": "Get organization user invites", - "description": "Available from API version 2.3.0+ and onprem version 3.24.0+. Gets a list of user invites", - "tags": ["User Invite"], + "summary": "List apps", + "description": "Get all apps for an organization or space. The API token must have the \"Apps > Read\" scope. ", + "tags": [ + "Apps" + ], "responses": { "200": { - "description": "Returns all user invites.", + "description": "List of apps", "content": { "application/json": { "schema": { @@ -11341,7 +14462,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -11349,43 +14472,74 @@ "items": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "invited_by": { "type": "string" }, - "invited_email": { + "id": { "type": "string", - "format": "email" + "format": "uuid", + "description": "The app ID." }, - "expires_at": { "type": "string" }, - "claimed_by": { "type": "string", "nullable": true }, - "claimed_at": { "type": "string", "nullable": true }, - "user_type": { + "name": { + "type": "string", + "description": "The name of the App" + }, + "description": { "type": "string", "nullable": true, - "enum": ["default", "mobile", "external"] + "description": "The description of the App" }, - "metadata": { - "type": "object", + "folder_id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" + }, + "protected": { + "type": "boolean", + "description": "Whether the App is protected" + }, + "synced": { + "type": "boolean", + "description": "Whether the App is synced" + }, + "shortlink": { + "type": "string", "nullable": true, - "additionalProperties": { "nullable": true }, - "default": {} + "description": "The shortlink of the App" + }, + "is_module": { + "type": "boolean", + "description": "Whether the App is a module" + }, + "is_mobile_app": { + "type": "boolean", + "description": "Whether the App is a mobile app" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" }, - "created_at": { "type": "string" }, - "invite_link": { "type": "string", "format": "uri" } + "release_version": { + "type": "string", + "description": "The live release version of the app. 'latest' if releases are disabled or the app has no live release yet" + } }, "required": [ "id", - "legacy_id", - "invited_by", - "invited_email", - "expires_at", - "claimed_by", - "claimed_at", - "user_type", - "metadata", - "created_at" + "name", + "description", + "folder_id", + "protected", + "synced", + "shortlink", + "is_module", + "is_mobile_app", + "created_at", + "updated_at", + "release_version" ], - "description": "User Invite" + "description": "This object represents an app." }, "description": "An array of requested items" }, @@ -11410,48 +14564,55 @@ "next_token", "has_more" ], - "description": "A list of user invites." + "description": "A list of all apps in the organization" } } } } } - }, + } + }, + "/apps/cloneApp": { "post": { - "summary": "Create a new user invite", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Create a new user invite", - "tags": ["User Invite"], + "summary": "Clone app", + "description": "Make a copy of an existing app into a chosen folder (defaults to root if not provided). The API token must have the \"Apps > Write\" scope. Available on Retool versions 3.105.0+.", + "tags": [ + "Apps" + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "email": { + "app_id": { "type": "string", - "format": "email", - "description": "The email of the invitee" + "format": "uuid", + "description": "The app ID." }, - "defaultGroupIds": { - "type": "array", - "items": { "type": "number" }, - "description": "Group IDs to invite the user to" + "new_app_name": { + "type": "string", + "minLength": 1, + "description": "The name of the new app" }, - "metadata": { - "type": "object", - "additionalProperties": { "nullable": true } + "folder_id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" } }, - "required": ["email"], - "additionalProperties": false, - "description": "Body of request to create a user invite" + "required": [ + "app_id", + "new_app_name" + ], + "additionalProperties": false } } } }, "responses": { "200": { - "description": "Returns the newly created user invite.", + "description": "The newly cloned app.", "content": { "application/json": { "schema": { @@ -11459,79 +14620,95 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "invited_by": { "type": "string" }, - "invited_email": { + "id": { "type": "string", - "format": "email" + "format": "uuid", + "description": "The app ID." }, - "expires_at": { "type": "string" }, - "claimed_by": { "type": "string", "nullable": true }, - "claimed_at": { "type": "string", "nullable": true }, - "user_type": { + "name": { + "type": "string", + "description": "The name of the App" + }, + "description": { "type": "string", "nullable": true, - "enum": ["default", "mobile", "external"] + "description": "The description of the App" }, - "metadata": { - "type": "object", + "folder_id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" + }, + "protected": { + "type": "boolean", + "description": "Whether the App is protected" + }, + "synced": { + "type": "boolean", + "description": "Whether the App is synced" + }, + "shortlink": { + "type": "string", "nullable": true, - "additionalProperties": { "nullable": true }, - "default": {} + "description": "The shortlink of the App" + }, + "is_module": { + "type": "boolean", + "description": "Whether the App is a module" + }, + "is_mobile_app": { + "type": "boolean", + "description": "Whether the App is a mobile app" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" }, - "created_at": { "type": "string" }, - "invite_link": { "type": "string", "format": "uri" } + "release_version": { + "type": "string", + "description": "The live release version of the app. 'latest' if releases are disabled or the app has no live release yet" + } }, "required": [ "id", - "legacy_id", - "invited_by", - "invited_email", - "expires_at", - "claimed_by", - "claimed_at", - "user_type", - "metadata", - "created_at" + "name", + "description", + "folder_id", + "protected", + "synced", + "shortlink", + "is_module", + "is_mobile_app", + "created_at", + "updated_at", + "release_version" ], - "description": "The created user invite with an invite link" + "description": "This object represents an app." } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ], + "description": "A single app" } } } - } - } - } - }, - "/user_invites/{userInviteId}": { - "get": { - "summary": "Get user invite", - "description": "Available from API version 2.4.0+ and onprem version 3.26.0+. Returns the user invite. The API token must have the \"Users > Read\" scope.", - "tags": ["User Invite"], - "parameters": [ - { - "schema": { - "type": "string", - "pattern": "^\\d+$", - "description": "The user invite's ID" - }, - "required": true, - "name": "userInviteId", - "in": "path" - } - ], - "responses": { - "200": { - "description": "The requested user invite.", + }, + "404": { + "description": "App to clone from could not be found.", "content": { "application/json": { "schema": { @@ -11539,99 +14716,34 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "id": { "type": "number" }, - "legacy_id": { "type": "number" }, - "invited_by": { "type": "string" }, - "invited_email": { - "type": "string", - "format": "email" - }, - "expires_at": { "type": "string" }, - "claimed_by": { "type": "string", "nullable": true }, - "claimed_at": { "type": "string", "nullable": true }, - "user_type": { - "type": "string", - "nullable": true, - "enum": ["default", "mobile", "external"] - }, - "metadata": { - "type": "object", - "nullable": true, - "additionalProperties": { "nullable": true }, - "default": {} - }, - "created_at": { "type": "string" }, - "invite_link": { "type": "string", "format": "uri" } - }, - "required": [ - "id", - "legacy_id", - "invited_by", - "invited_email", - "expires_at", - "claimed_by", - "claimed_at", - "user_type", - "metadata", - "created_at" + "enum": [ + false ], - "description": "User Invite" + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" } }, - "required": ["success", "data"], - "description": "A single user invite." + "required": [ + "success", + "message" + ], + "description": "API error response" } } } } } - }, - "delete": { - "summary": "Delete user invite", - "description": "Available from API version 2.4.0+ and onprem version 3.26.0+. Returns the deleted user invite. The API token must have the \"Users > Write\" scope.", - "tags": ["User Invite"], - "parameters": [ - { - "schema": { - "type": "string", - "pattern": "^\\d+$", - "description": "The user invite's ID" - }, - "required": true, - "name": "userInviteId", - "in": "path" - } - ], - "responses": { - "204": { - "description": "Successfully deleted user invite.", - "content": {} - } - } } }, - "/user_invites/{userInviteId}/user_attributes": { + "/sso/config": { "post": { - "summary": "Add or update user attributes on a user invite", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Add or update the user attributes of a user invite", - "tags": ["User Invite"], - "parameters": [ - { - "schema": { - "type": "string", - "pattern": "^\\d+$", - "description": "The user invite's ID" - }, - "required": true, - "name": "userInviteId", - "in": "path" - } + "summary": "Set SSO configuration", + "description": "Sets SSO configuration for organization or space. The API token must have the \"Spaces > Write\" scope.", + "tags": [ + "SSO" ], "requestBody": { "content": { @@ -11639,1037 +14751,825 @@ "schema": { "type": "object", "properties": { - "name": { - "type": "string", - "description": "The name of the user attribute (must match an existing attribute exactly)" - }, - "value": { - "type": "string", - "nullable": true, - "description": "The value of the user attribute" - } - }, - "required": ["name", "value"], - "description": "The body of a request to add a user attribute or update an existing user attribute on a user invite." - } - } - } - }, - "responses": { - "200": { - "description": "Returns the updated user attributes.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "metadata": { - "type": "object", - "additionalProperties": { "nullable": true }, - "default": {}, - "description": "The updated user invite metadata, containing the new attribute value" - } - }, - "required": ["metadata"] - } - }, - "required": ["success", "data"] - } - } - } - } - } - } - }, - "/user_invites/{userInviteId}/user_attributes/{attributeName}": { - "delete": { - "summary": "Delete a user attribute on a user invite", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Delete a specified user attribute from an user invite", - "tags": ["User Invite"], - "parameters": [ - { - "schema": { - "type": "string", - "pattern": "^\\d+$", - "description": "The user invite's ID" - }, - "required": true, - "name": "userInviteId", - "in": "path" - }, - { - "schema": { "type": "string" }, - "required": true, - "name": "attributeName", - "in": "path" - } - ], - "responses": { - "200": { - "description": "Returns the updated user attributes.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "metadata": { - "type": "object", - "additionalProperties": { "nullable": true }, - "default": {}, - "description": "The updated user metadata" - } + "data": { + "oneOf": [ + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "google" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login" + ], + "additionalProperties": false, + "title": "Google" }, - "required": ["metadata"] - } - }, - "required": ["success", "data"] - } - } - } - } - } - } - }, - "/resources": { - "get": { - "summary": "Get resources", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Gets a paginated list of resources. The API token must have the \"Resources > Read\" scope.", - "tags": ["Resources"], - "parameters": [ - { - "schema": { - "type": "string", - "description": "The token of the current page" - }, - "required": false, - "name": "next_token", - "in": "query" - }, - { - "schema": { - "type": "string", - "enum": [ - "airflow", - "alloydb", - "asana", - "athena", - "basecamp", - "bigid", - "bigquery", - "cassandra", - "circleci", - "closeio", - "cosmosdb", - "couchdb", - "databricks", - "datadog", - "datastore", - "denodo", - "dynamodb", - "elasticsearch", - "firebase", - "front", - "gcs", - "github", - "googleAnalytics", - "googleMaps", - "googleSearchConsole", - "googlesheets", - "graphql", - "grpc", - "hubspot", - "jdbc", - "jira", - "lambda", - "launchdarkly", - "microsoftTeams", - "mongodb", - "mssql", - "mysql", - "notion", - "onesignal", - "openAI", - "openapi", - "oracledb", - "postgresql", - "presto", - "redis", - "redshift", - "restapi", - "rethinkdb", - "rockset", - "retoolEmail", - "retoolAI", - "retoolDb", - "retoolStorage", - "s3", - "salesforce", - "saphana", - "sendgrid", - "shell", - "slack", - "slackopenapi", - "smtp", - "snowflake", - "stripe", - "twilio", - "vertica" - ], - "description": "The type of resource." - }, - "required": false, - "name": "resource_type", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Returns a paginated list of resources.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "array", - "items": { + { "type": "object", "properties": { - "id": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } - ], - "description": "The uuid for the resource." - }, - "type": { + "config_type": { "type": "string", "enum": [ - "airflow", - "alloydb", - "asana", - "athena", - "basecamp", - "bigid", - "bigquery", - "cassandra", - "circleci", - "closeio", - "cosmosdb", - "couchdb", - "databricks", - "datadog", - "datastore", - "denodo", - "dynamodb", - "elasticsearch", - "firebase", - "front", - "gcs", - "github", - "googleAnalytics", - "googleMaps", - "googleSearchConsole", - "googlesheets", - "graphql", - "grpc", - "hubspot", - "jdbc", - "jira", - "lambda", - "launchdarkly", - "microsoftTeams", - "mongodb", - "mssql", - "mysql", - "notion", - "onesignal", - "openAI", - "openapi", - "oracledb", - "postgresql", - "presto", - "redis", - "redshift", - "restapi", - "rethinkdb", - "rockset", - "retoolEmail", - "retoolAI", - "retoolDb", - "retoolStorage", - "s3", - "salesforce", - "saphana", - "sendgrid", - "shell", - "slack", - "slackopenapi", - "smtp", - "snowflake", - "stripe", - "twilio", - "vertica" - ], - "description": "The type of resource." + "oidc" + ] }, - "display_name": { "type": "string", "minLength": 1 }, - "created_at": { + "oidc_client_id": { "type": "string", - "example": "2019-02-08T11:45:48.899Z" + "minLength": 1 }, - "updated_at": { + "oidc_client_secret": { "type": "string", - "example": "2019-02-24T18:28:18.790Z" + "minLength": 1 + }, + "oidc_scopes": { + "type": "string", + "minLength": 1 + }, + "oidc_auth_url": { + "type": "string", + "minLength": 1 + }, + "oidc_token_url": { + "type": "string", + "minLength": 1 + }, + "oidc_userinfo_url": { + "type": "string", + "minLength": 1 + }, + "oidc_audience": { + "type": "string" + }, + "jwt_email_key": { + "type": "string", + "minLength": 1 + }, + "jwt_roles_key": { + "type": "string", + "minLength": 1 + }, + "jwt_first_name_key": { + "type": "string", + "minLength": 1 + }, + "jwt_last_name_key": { + "type": "string", + "minLength": 1 + }, + "roles_mapping": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + }, + "disable_email_password_login": { + "type": "boolean" } }, "required": [ - "id", - "type", - "display_name", - "created_at", - "updated_at" + "config_type", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically", + "disable_email_password_login" ], "additionalProperties": false, - "description": "Resource" + "title": "OIDC" }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" - }, - "next_token": { - "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" - } - }, - "required": [ - "success", - "data", - "total_count", - "next_token", - "has_more" - ], - "description": "A paginated list of resources." - } - } - } - } - } - }, - "post": { - "summary": "Create a resource", - "description": "Available from onprem version 3.72.0+. Creates a resource. The API token must have the \"Resources > Write\" scope.", - "tags": ["Resources"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "mysql", - "postgresql", - "redshift", - "restapi", - "snowflake" - ], - "description": "The type of resource." - }, - "display_name": { "type": "string", "minLength": 1 }, - "options": { - "anyOf": [ { "type": "object", "properties": { - "database_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "client_key": { - "type": "string", - "nullable": true - }, - "client_cert": { - "type": "string", - "nullable": true - }, - "ca_cert": { - "type": "string", - "nullable": true - } - }, - "additionalProperties": false - }, - "ssh_tunnel_options": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "host": { "type": "string" }, - "port": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "private_key_name": { "type": "string" } - }, - "required": ["enabled", "host", "port"], - "additionalProperties": false - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "required": ["host", "port"], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "connection_string": { "type": "string" }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "additionalProperties": false - } + "config_type": { + "type": "string", + "enum": [ + "google & oidc" ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + }, + "oidc_client_id": { + "type": "string", + "minLength": 1 + }, + "oidc_client_secret": { + "type": "string", + "minLength": 1 + }, + "oidc_scopes": { + "type": "string", + "minLength": 1 + }, + "oidc_auth_url": { + "type": "string", + "minLength": 1 + }, + "oidc_token_url": { + "type": "string", + "minLength": 1 + }, + "oidc_userinfo_url": { + "type": "string", + "minLength": 1 + }, + "oidc_audience": { + "type": "string" + }, + "jwt_email_key": { + "type": "string", + "minLength": 1 + }, + "jwt_roles_key": { + "type": "string", + "minLength": 1 + }, + "jwt_first_name_key": { + "type": "string", + "minLength": 1 + }, + "jwt_last_name_key": { + "type": "string", + "minLength": 1 + }, + "roles_mapping": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" } }, - "required": ["database_options"], - "additionalProperties": false, - "title": "Postgres Options" - }, - { - "type": "object", - "properties": { - "database_options": { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "client_key": { - "type": "string", - "nullable": true - }, - "client_cert": { - "type": "string", - "nullable": true - }, - "ca_cert": { - "type": "string", - "nullable": true - } - }, - "additionalProperties": false - }, - "ssh_tunnel_options": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "host": { "type": "string" }, - "port": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "private_key_name": { "type": "string" } - }, - "required": ["enabled", "host", "port"], - "additionalProperties": false - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - }, - "use_dynamic_database_names": { - "type": "boolean", - "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." - }, - "use_dynamic_database_hosts": { - "type": "boolean", - "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." - }, - "convert_mysql_dates_to_javascript": { - "type": "boolean", - "default": true, - "description": "This allows you to turn your MySQL date strings into Javascript Date objects." - } - }, - "required": ["host", "port"], - "additionalProperties": false - } - }, - "required": ["database_options"], + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically" + ], "additionalProperties": false, - "title": "MySQL Options" + "title": "Google & OIDC" }, { "type": "object", "properties": { - "database_options": { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" } - }, - "additionalProperties": false - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "required": ["host", "port"], - "additionalProperties": false + "config_type": { + "type": "string", + "enum": [ + "saml" + ] + }, + "idp_metadata_xml": { + "type": "string", + "minLength": 1 + }, + "saml_first_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_last_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_groups_attribute": { + "type": "string" + }, + "saml_sync_group_claims": { + "type": "boolean" + }, + "ldap_sync_group_claims": { + "type": "boolean" + }, + "ldap_role_mapping": { + "type": "string" + }, + "ldap_server_url": { + "type": "string" + }, + "ldap_base_domain_components": { + "type": "string" + }, + "ldap_server_name": { + "type": "string" + }, + "ldap_server_key": { + "type": "string" + }, + "ldap_server_certificate": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + }, + "disable_email_password_login": { + "type": "boolean" } }, - "required": ["database_options"], + "required": [ + "config_type", + "idp_metadata_xml", + "saml_first_name_attribute", + "saml_last_name_attribute", + "saml_sync_group_claims", + "jit_enabled", + "trigger_login_automatically", + "disable_email_password_login" + ], "additionalProperties": false, - "title": "Redshift Options" + "title": "SAML" }, { "type": "object", "properties": { - "account_identifier": { "type": "string" }, - "database_options": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "schema": { "type": "string" }, - "warehouse": { "type": "string" }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "required": ["name"], - "additionalProperties": false - }, - "user_role": { "type": "string" }, - "authentication_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["snowflake"] - }, - "username": { "type": "string" }, - "password": { "type": "string" } - }, - "required": [ - "authentication_type", - "username", - "password" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["snowflake_jwt"] - }, - "username": { "type": "string" }, - "private_key": { "type": "string" }, - "private_key_passphrase": { "type": "string" } - }, - "required": [ - "authentication_type", - "username", - "private_key" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth2"] - }, - "oauth2_client_id": { "type": "string" }, - "oauth2_client_secret": { "type": "string" }, - "oauth2_callback_url": { "type": "string" } - }, - "required": [ - "authentication_type", - "oauth2_client_id", - "oauth2_client_secret" - ], - "additionalProperties": false - } + "config_type": { + "type": "string", + "enum": [ + "google & saml" ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + }, + "idp_metadata_xml": { + "type": "string", + "minLength": 1 + }, + "saml_first_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_last_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_groups_attribute": { + "type": "string" + }, + "saml_sync_group_claims": { + "type": "boolean" + }, + "ldap_sync_group_claims": { + "type": "boolean" + }, + "ldap_role_mapping": { + "type": "string" + }, + "ldap_server_url": { + "type": "string" + }, + "ldap_base_domain_components": { + "type": "string" + }, + "ldap_server_name": { + "type": "string" + }, + "ldap_server_key": { + "type": "string" + }, + "ldap_server_certificate": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" } }, "required": [ - "account_identifier", - "database_options", - "authentication_options" + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "idp_metadata_xml", + "saml_first_name_attribute", + "saml_last_name_attribute", + "saml_sync_group_claims", + "jit_enabled", + "trigger_login_automatically" ], "additionalProperties": false, - "title": "Snowflake Options" - }, - { - "type": "object", - "properties": { - "base_url": { - "type": "string", - "description": "Use the absolute URL (e.g https://example.com)." - }, - "url_parameters": { - "type": "array", - "items": { - "type": "array", - "items": { "type": "string" } + "title": "Google & SAML" + } + ], + "description": "This object represents the SSO configuration for an organization or space. See [docs](https://docs.retool.com/sso) for more information." + } + }, + "required": [ + "data" + ], + "additionalProperties": false, + "description": "Shape of SSO config" + } + } + } + }, + "responses": { + "200": { + "description": "SSO configuration for the organization or space.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "oneOf": [ + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "google" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" } }, - "headers": { - "type": "array", - "items": { - "type": "array", - "items": { "type": "string" } + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login" + ], + "additionalProperties": false, + "title": "Google" + }, + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "oidc" + ] + }, + "oidc_client_id": { + "type": "string", + "minLength": 1 + }, + "oidc_client_secret": { + "type": "string", + "minLength": 1 + }, + "oidc_scopes": { + "type": "string", + "minLength": 1 + }, + "oidc_auth_url": { + "type": "string", + "minLength": 1 + }, + "oidc_token_url": { + "type": "string", + "minLength": 1 + }, + "oidc_userinfo_url": { + "type": "string", + "minLength": 1 + }, + "oidc_audience": { + "type": "string" + }, + "jwt_email_key": { + "type": "string", + "minLength": 1 + }, + "jwt_roles_key": { + "type": "string", + "minLength": 1 + }, + "jwt_first_name_key": { + "type": "string", + "minLength": 1 + }, + "jwt_last_name_key": { + "type": "string", + "minLength": 1 + }, + "roles_mapping": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + }, + "disable_email_password_login": { + "type": "boolean" } }, - "extra_body_values": { - "type": "array", - "items": { - "type": "array", - "items": { "type": "string" } + "required": [ + "config_type", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically", + "disable_email_password_login" + ], + "additionalProperties": false, + "title": "OIDC" + }, + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "google & oidc" + ] }, - "description": "Extra body values are not passed for GET or HEAD requests." - }, - "cookies_to_forward": { - "type": "array", - "items": { "type": "string" }, - "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." - }, - "forward_all_cookies": { - "type": "boolean", - "description": "This is useful if you have dynamic cookie names." - }, - "authentication_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["auth0"] - }, - "auth0_domain": { "type": "string" }, - "auth0_client_id": { "type": "string" }, - "auth0_client_secret": { "type": "string" }, - "auth0_custom_audience": { "type": "string" } - }, - "required": [ - "authentication_type", - "auth0_domain", - "auth0_client_id", - "auth0_client_secret", - "auth0_custom_audience" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["aws4"] - }, - "amazon_aws_region": { "type": "string" }, - "amazon_service_name": { "type": "string" }, - "amazon_access_key_id": { "type": "string" }, - "amazon_secret_access_key": { - "type": "string" - }, - "auth_with_default_credential_provider_chain": { - "type": "boolean" - }, - "enable_awsv4_authentication_via_headers": { - "type": "boolean" - } - }, - "required": [ - "authentication_type", - "amazon_aws_region", - "amazon_service_name", - "amazon_access_key_id", - "amazon_secret_access_key" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["basic"] - }, - "basic_username": { "type": "string" }, - "basic_password": { "type": "string" } - }, - "required": [ - "authentication_type", - "basic_username" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["digest"] - }, - "digest_username": { "type": "string" }, - "digest_password": { "type": "string" } - }, - "required": [ - "authentication_type", - "digest_username", - "digest_password" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth1"] - }, - "oauth1_signature_method": { - "anyOf": [ - { - "type": "string", - "enum": ["HMAC-SHA1"] - }, - { - "type": "string", - "enum": ["HMAC-SHA256"] - }, - { - "type": "string", - "enum": ["PLAINTEXT"] - } - ] - }, - "oauth1_consumer_key": { "type": "string" }, - "oauth1_consumer_secret": { - "type": "string" - }, - "oauth1_token_key": { "type": "string" }, - "oauth1_token_secret": { "type": "string" }, - "oauth1_realm_parameter": { "type": "string" } - }, - "required": [ - "authentication_type", - "oauth1_signature_method", - "oauth1_consumer_key", - "oauth1_consumer_secret", - "oauth1_token_key", - "oauth1_token_secret", - "oauth1_realm_parameter" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth2"] - }, - "oauth2_client_id": { "type": "string" }, - "oauth2_client_secret": { "type": "string" }, - "oauth2_callback_url": { "type": "string" }, - "oauth2_auth_url": { "type": "string" }, - "oauth2_access_token_url": { - "type": "string" - }, - "oauth2_scope": { "type": "string" }, - "oauth2_audience": { "type": "string" }, - "oauth2_share_user_credentials": { - "type": "boolean" - }, - "verify_session_url": { "type": "string" }, - "oauth2_access_token": { "type": "string" }, - "oauth2_refresh_token": { "type": "string" }, - "oauth2_id_token": { "type": "string" }, - "oauth2_access_token_lifespan_seconds": { - "type": "number", - "nullable": true - } - }, - "required": [ - "authentication_type", - "oauth2_client_id", - "oauth2_client_secret", - "oauth2_auth_url", - "oauth2_access_token_url" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["none"] - } - }, - "required": ["authentication_type"], - "additionalProperties": false - } - ], - "description": "Note that custom auth is not yet supported." - } - }, - "required": ["base_url"], - "additionalProperties": false, - "title": "Rest API Options" - } - ] - } - }, - "required": ["type", "display_name", "options"] - } - } - } - }, - "responses": { - "200": { - "description": "The created resource.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "id": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + }, + "oidc_client_id": { + "type": "string", + "minLength": 1 + }, + "oidc_client_secret": { + "type": "string", + "minLength": 1 + }, + "oidc_scopes": { + "type": "string", + "minLength": 1 + }, + "oidc_auth_url": { + "type": "string", + "minLength": 1 + }, + "oidc_token_url": { + "type": "string", + "minLength": 1 + }, + "oidc_userinfo_url": { + "type": "string", + "minLength": 1 + }, + "oidc_audience": { + "type": "string" + }, + "jwt_email_key": { + "type": "string", + "minLength": 1 + }, + "jwt_roles_key": { + "type": "string", + "minLength": 1 + }, + "jwt_first_name_key": { + "type": "string", + "minLength": 1 + }, + "jwt_last_name_key": { + "type": "string", + "minLength": 1 + }, + "roles_mapping": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically" ], - "description": "The uuid for the resource." + "additionalProperties": false, + "title": "Google & OIDC" }, - "type": { - "type": "string", - "enum": [ - "airflow", - "alloydb", - "asana", - "athena", - "basecamp", - "bigid", - "bigquery", - "cassandra", - "circleci", - "closeio", - "cosmosdb", - "couchdb", - "databricks", - "datadog", - "datastore", - "denodo", - "dynamodb", - "elasticsearch", - "firebase", - "front", - "gcs", - "github", - "googleAnalytics", - "googleMaps", - "googleSearchConsole", - "googlesheets", - "graphql", - "grpc", - "hubspot", - "jdbc", - "jira", - "lambda", - "launchdarkly", - "microsoftTeams", - "mongodb", - "mssql", - "mysql", - "notion", - "onesignal", - "openAI", - "openapi", - "oracledb", - "postgresql", - "presto", - "redis", - "redshift", - "restapi", - "rethinkdb", - "rockset", - "retoolEmail", - "retoolAI", - "retoolDb", - "retoolStorage", - "s3", - "salesforce", - "saphana", - "sendgrid", - "shell", - "slack", - "slackopenapi", - "smtp", - "snowflake", - "stripe", - "twilio", - "vertica" + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "saml" + ] + }, + "idp_metadata_xml": { + "type": "string", + "minLength": 1 + }, + "saml_first_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_last_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_groups_attribute": { + "type": "string" + }, + "saml_sync_group_claims": { + "type": "boolean" + }, + "ldap_sync_group_claims": { + "type": "boolean" + }, + "ldap_role_mapping": { + "type": "string" + }, + "ldap_server_url": { + "type": "string" + }, + "ldap_base_domain_components": { + "type": "string" + }, + "ldap_server_name": { + "type": "string" + }, + "ldap_server_key": { + "type": "string" + }, + "ldap_server_certificate": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + }, + "disable_email_password_login": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "idp_metadata_xml", + "saml_first_name_attribute", + "saml_last_name_attribute", + "saml_sync_group_claims", + "jit_enabled", + "trigger_login_automatically", + "disable_email_password_login" ], - "description": "The type of resource." - }, - "display_name": { "type": "string", "minLength": 1 }, - "created_at": { - "type": "string", - "example": "2019-02-08T11:45:48.899Z" + "additionalProperties": false, + "title": "SAML" }, - "updated_at": { - "type": "string", - "example": "2019-02-24T18:28:18.790Z" + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "google & saml" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + }, + "idp_metadata_xml": { + "type": "string", + "minLength": 1 + }, + "saml_first_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_last_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_groups_attribute": { + "type": "string" + }, + "saml_sync_group_claims": { + "type": "boolean" + }, + "ldap_sync_group_claims": { + "type": "boolean" + }, + "ldap_role_mapping": { + "type": "string" + }, + "ldap_server_url": { + "type": "string" + }, + "ldap_base_domain_components": { + "type": "string" + }, + "ldap_server_name": { + "type": "string" + }, + "ldap_server_key": { + "type": "string" + }, + "ldap_server_certificate": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "idp_metadata_xml", + "saml_first_name_attribute", + "saml_last_name_attribute", + "saml_sync_group_claims", + "jit_enabled", + "trigger_login_automatically" + ], + "additionalProperties": false, + "title": "Google & SAML" } - }, - "required": [ - "id", - "type", - "display_name", - "created_at", - "updated_at" ], - "additionalProperties": false, - "description": "The created resource." + "description": "Result of setting SSO configuration" + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "400": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" } }, - "required": ["success", "data"] + "required": [ + "success", + "message" + ], + "description": "API error response" } } } } } - } - }, - "/resources/{resourceId}": { - "get": { - "summary": "Get resource by id", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a specific resource. The API token must have the \"Resources > Read\" scope.", - "tags": ["Resources"], - "parameters": [ - { - "schema": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } - ], - "description": "The uuid for the resource." - }, - "required": true, - "name": "resourceId", - "in": "path" + }, + "delete": { + "summary": "Remove SSO configuration", + "description": "Removes SSO configuration for organization or space. The API token must have the \"Spaces > Write\" scope. Note that this will not remove the SSO configuration if it is configured via env variables.", + "tags": [ + "SSO" + ], + "responses": { + "204": { + "description": "SSO configuration for the organization or space has been successfully removed." } + } + }, + "get": { + "summary": "Get SSO configuration", + "description": "Reads SSO configuration of organization or space. The API token must have the \"Spaces > Read\" scope. Note that this will not return the SSO configuration if it is configured via env variables.", + "tags": [ + "SSO" ], "responses": { "200": { - "description": "The requested resource.", + "description": "SSO configuration for the organization or space.", "content": { "application/json": { "schema": { @@ -12677,265 +15577,456 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "object", - "properties": { - "id": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } + "oneOf": [ + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "google" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login" ], - "description": "The uuid for the resource." + "additionalProperties": false, + "title": "Google" }, - "type": { - "type": "string", - "enum": [ - "airflow", - "alloydb", - "asana", - "athena", - "basecamp", - "bigid", - "bigquery", - "cassandra", - "circleci", - "closeio", - "cosmosdb", - "couchdb", - "databricks", - "datadog", - "datastore", - "denodo", - "dynamodb", - "elasticsearch", - "firebase", - "front", - "gcs", - "github", - "googleAnalytics", - "googleMaps", - "googleSearchConsole", - "googlesheets", - "graphql", - "grpc", - "hubspot", - "jdbc", - "jira", - "lambda", - "launchdarkly", - "microsoftTeams", - "mongodb", - "mssql", - "mysql", - "notion", - "onesignal", - "openAI", - "openapi", - "oracledb", - "postgresql", - "presto", - "redis", - "redshift", - "restapi", - "rethinkdb", - "rockset", - "retoolEmail", - "retoolAI", - "retoolDb", - "retoolStorage", - "s3", - "salesforce", - "saphana", - "sendgrid", - "shell", - "slack", - "slackopenapi", - "smtp", - "snowflake", - "stripe", - "twilio", - "vertica" + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "oidc" + ] + }, + "oidc_client_id": { + "type": "string", + "minLength": 1 + }, + "oidc_client_secret": { + "type": "string", + "minLength": 1 + }, + "oidc_scopes": { + "type": "string", + "minLength": 1 + }, + "oidc_auth_url": { + "type": "string", + "minLength": 1 + }, + "oidc_token_url": { + "type": "string", + "minLength": 1 + }, + "oidc_userinfo_url": { + "type": "string", + "minLength": 1 + }, + "oidc_audience": { + "type": "string" + }, + "jwt_email_key": { + "type": "string", + "minLength": 1 + }, + "jwt_roles_key": { + "type": "string", + "minLength": 1 + }, + "jwt_first_name_key": { + "type": "string", + "minLength": 1 + }, + "jwt_last_name_key": { + "type": "string", + "minLength": 1 + }, + "roles_mapping": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + }, + "disable_email_password_login": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically", + "disable_email_password_login" ], - "description": "The type of resource." + "additionalProperties": false, + "title": "OIDC" }, - "display_name": { "type": "string", "minLength": 1 }, - "created_at": { - "type": "string", - "example": "2019-02-08T11:45:48.899Z" + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "google & oidc" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + }, + "oidc_client_id": { + "type": "string", + "minLength": 1 + }, + "oidc_client_secret": { + "type": "string", + "minLength": 1 + }, + "oidc_scopes": { + "type": "string", + "minLength": 1 + }, + "oidc_auth_url": { + "type": "string", + "minLength": 1 + }, + "oidc_token_url": { + "type": "string", + "minLength": 1 + }, + "oidc_userinfo_url": { + "type": "string", + "minLength": 1 + }, + "oidc_audience": { + "type": "string" + }, + "jwt_email_key": { + "type": "string", + "minLength": 1 + }, + "jwt_roles_key": { + "type": "string", + "minLength": 1 + }, + "jwt_first_name_key": { + "type": "string", + "minLength": 1 + }, + "jwt_last_name_key": { + "type": "string", + "minLength": 1 + }, + "roles_mapping": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "oidc_client_id", + "oidc_client_secret", + "oidc_scopes", + "oidc_auth_url", + "oidc_token_url", + "jwt_email_key", + "jwt_first_name_key", + "jwt_last_name_key", + "jit_enabled", + "trigger_login_automatically" + ], + "additionalProperties": false, + "title": "Google & OIDC" }, - "updated_at": { - "type": "string", - "example": "2019-02-24T18:28:18.790Z" - } - }, - "required": [ - "id", - "type", - "display_name", - "created_at", - "updated_at" - ], - "additionalProperties": false, - "description": "Resource" + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "saml" + ] + }, + "idp_metadata_xml": { + "type": "string", + "minLength": 1 + }, + "saml_first_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_last_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_groups_attribute": { + "type": "string" + }, + "saml_sync_group_claims": { + "type": "boolean" + }, + "ldap_sync_group_claims": { + "type": "boolean" + }, + "ldap_role_mapping": { + "type": "string" + }, + "ldap_server_url": { + "type": "string" + }, + "ldap_base_domain_components": { + "type": "string" + }, + "ldap_server_name": { + "type": "string" + }, + "ldap_server_key": { + "type": "string" + }, + "ldap_server_certificate": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + }, + "disable_email_password_login": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "idp_metadata_xml", + "saml_first_name_attribute", + "saml_last_name_attribute", + "saml_sync_group_claims", + "jit_enabled", + "trigger_login_automatically", + "disable_email_password_login" + ], + "additionalProperties": false, + "title": "SAML" + }, + { + "type": "object", + "properties": { + "config_type": { + "type": "string", + "enum": [ + "google & saml" + ] + }, + "google_client_id": { + "type": "string" + }, + "google_client_secret": { + "type": "string" + }, + "disable_email_password_login": { + "type": "boolean" + }, + "idp_metadata_xml": { + "type": "string", + "minLength": 1 + }, + "saml_first_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_last_name_attribute": { + "type": "string", + "minLength": 1 + }, + "saml_groups_attribute": { + "type": "string" + }, + "saml_sync_group_claims": { + "type": "boolean" + }, + "ldap_sync_group_claims": { + "type": "boolean" + }, + "ldap_role_mapping": { + "type": "string" + }, + "ldap_server_url": { + "type": "string" + }, + "ldap_base_domain_components": { + "type": "string" + }, + "ldap_server_name": { + "type": "string" + }, + "ldap_server_key": { + "type": "string" + }, + "ldap_server_certificate": { + "type": "string" + }, + "jit_enabled": { + "type": "boolean" + }, + "restricted_domain": { + "type": "string" + }, + "trigger_login_automatically": { + "type": "boolean" + } + }, + "required": [ + "config_type", + "google_client_id", + "google_client_secret", + "disable_email_password_login", + "idp_metadata_xml", + "saml_first_name_attribute", + "saml_last_name_attribute", + "saml_sync_group_claims", + "jit_enabled", + "trigger_login_automatically" + ], + "additionalProperties": false, + "title": "Google & SAML" + } + ], + "description": "SSO configuration" } }, - "required": ["success", "data"], - "description": "A single resource" + "required": [ + "success", + "data" + ] + } + } + } + }, + "404": { + "description": "SSO is not configured for this organization or space.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "422": { + "description": "The organization has unsupported type of SSO configurations.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" } } } } } - }, - "delete": { - "summary": "Delete resource", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Deletes a resource with the given id. The API token must have the \"Resources > Write\" scope.", - "tags": ["Resources"], - "parameters": [ - { - "schema": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } - ], - "description": "The uuid for the resource." - }, - "required": true, - "name": "resourceId", - "in": "path" - } - ], - "responses": { "204": { "description": "Resource deleted" } } } }, - "/resource_configurations": { + "/user_attributes": { "get": { - "summary": "Get resource configurations", - "description": "Available from API version 2.4.0+ and onprem version 3.34.0+. Gets a paginated list of resource configurations. The API token must have the \"Resources > Read\" scope.", - "tags": ["Resource configurations"], - "parameters": [ - { - "schema": { - "type": "string", - "description": "The token of the current page" - }, - "required": false, - "name": "next_token", - "in": "query" - }, - { - "schema": { - "type": "string", - "enum": [ - "airflow", - "alloydb", - "asana", - "athena", - "basecamp", - "bigid", - "bigquery", - "cassandra", - "circleci", - "closeio", - "cosmosdb", - "couchdb", - "databricks", - "datadog", - "datastore", - "denodo", - "dynamodb", - "elasticsearch", - "firebase", - "front", - "gcs", - "github", - "googleAnalytics", - "googleMaps", - "googleSearchConsole", - "googlesheets", - "graphql", - "grpc", - "hubspot", - "jdbc", - "jira", - "lambda", - "launchdarkly", - "microsoftTeams", - "mongodb", - "mssql", - "mysql", - "notion", - "onesignal", - "openAI", - "openapi", - "oracledb", - "postgresql", - "presto", - "redis", - "redshift", - "restapi", - "rethinkdb", - "rockset", - "retoolEmail", - "retoolAI", - "retoolDb", - "retoolStorage", - "s3", - "salesforce", - "saphana", - "sendgrid", - "shell", - "slack", - "slackopenapi", - "smtp", - "snowflake", - "stripe", - "twilio", - "vertica" - ], - "description": "The type of resource." - }, - "required": false, - "name": "resource_type", - "in": "query" - }, - { - "schema": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } - ], - "description": "The uuid for the resource." - }, - "required": false, - "name": "resource_id", - "in": "query" - }, - { - "schema": { "type": "string", "format": "uuid" }, - "required": false, - "name": "environment_id", - "in": "query" - } + "summary": "Get organization user attributes", + "description": "Gets the list of currently configured user attributes for the organization. The API token must have either the \"Users > Read\" or \"User Attributes > Read\" scope.", + "tags": [ + "User Attributes" ], "responses": { "200": { - "description": "Returns a paginated list of resource configurations.", + "description": "List of currently configured user attributes.", "content": { "application/json": { "schema": { @@ -12943,7 +16034,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -12954,729 +16047,11196 @@ "id": { "type": "string", "format": "uuid", - "description": "The uuid for the resource configuration." + "description": "The id of the user attribute" }, - "resource": { - "type": "object", - "properties": { - "id": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { - "type": "string", - "enum": ["retool_email"] - }, - { - "type": "string", - "enum": ["retool_storage"] - }, - { "type": "string", "enum": ["retool_ai"] } - ], - "description": "The uuid for the resource." - }, - "type": { - "type": "string", - "enum": [ - "airflow", - "alloydb", - "asana", - "athena", - "basecamp", - "bigid", - "bigquery", - "cassandra", - "circleci", - "closeio", - "cosmosdb", - "couchdb", - "databricks", - "datadog", - "datastore", - "denodo", - "dynamodb", - "elasticsearch", - "firebase", - "front", - "gcs", - "github", - "googleAnalytics", - "googleMaps", - "googleSearchConsole", - "googlesheets", - "graphql", - "grpc", - "hubspot", - "jdbc", - "jira", - "lambda", - "launchdarkly", - "microsoftTeams", - "mongodb", - "mssql", - "mysql", - "notion", - "onesignal", - "openAI", - "openapi", - "oracledb", - "postgresql", - "presto", - "redis", - "redshift", - "restapi", - "rethinkdb", - "rockset", - "retoolEmail", - "retoolAI", - "retoolDb", - "retoolStorage", - "s3", - "salesforce", - "saphana", - "sendgrid", - "shell", - "slack", - "slackopenapi", - "smtp", - "snowflake", - "stripe", - "twilio", - "vertica" - ], - "description": "The type of resource." - }, - "display_name": { - "type": "string", - "minLength": 1 - }, - "created_at": { - "type": "string", - "example": "2019-02-08T11:45:48.899Z" - }, - "updated_at": { - "type": "string", - "example": "2019-02-24T18:28:18.790Z" - } - }, - "required": [ - "id", - "type", - "display_name", - "created_at", - "updated_at" - ], - "additionalProperties": false, - "description": "Resource" + "name": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "pattern": "^[a-z0-9\\_]+$", + "description": "The name of the user attribute" }, - "environment": { - "type": "object", - "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { "type": "string" }, - "description": { - "type": "string", - "nullable": true - }, - "color": { "type": "string" }, - "default": { "type": "boolean" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } - }, - "required": [ - "id", - "name", - "description", - "color", - "default", - "created_at", - "updated_at" + "label": { + "type": "string", + "description": "The label of the user attribute" + }, + "data_type": { + "type": "string", + "enum": [ + "string", + "number", + "json" ], - "description": "Environment" + "description": "The data type of the user attribute. Valid types are `string`, `number`, or `json`" }, - "options": { - "anyOf": [ - { - "type": "object", - "properties": { - "database_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "client_key": { - "type": "string", - "nullable": true - }, - "client_cert": { - "type": "string", - "nullable": true - }, - "ca_cert": { - "type": "string", - "nullable": true - } - }, - "additionalProperties": false - }, - "ssh_tunnel_options": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "host": { "type": "string" }, - "port": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "private_key_name": { - "type": "string" - } - }, - "required": [ - "enabled", - "host", - "port" - ], - "additionalProperties": false - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "required": ["host", "port"], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "connection_string": { - "type": "string" - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + "default_value": { + "type": "string", + "nullable": true, + "description": "The default value of the user attribute, assigned to all users without the attribute set" + }, + "intercom_attribute_name": { + "type": "string", + "nullable": true, + "minLength": 1, + "maxLength": 255, + "pattern": "^[a-z0-9\\_]+$", + "description": "The name of the Intercom user attribute that this attribute should be mapped to" + } + }, + "required": [ + "id", + "name", + "label", + "data_type", + "default_value", + "intercom_attribute_name" + ], + "description": "This object represents user attributes." + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ], + "description": "A list of user attributes." + } + } + } + } + } + }, + "post": { + "summary": "Create a new user attribute for the organization", + "description": "Available on Retool version 3.128+. Creates a new user attribute for the organization. The API token must have the \"User Attributes > Write\" scope.", + "tags": [ + "User Attributes" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "pattern": "^[a-z0-9\\_]+$", + "description": "The name of the user attribute. Must be alphanumeric and without spaces." + }, + "label": { + "type": "string", + "minLength": 2, + "description": "A short description of the user attribute." + }, + "dataType": { + "type": "string", + "enum": [ + "string", + "json", + "number" + ], + "description": "The data type of the attribute, can be one of string | json | number." + }, + "defaultValue": { + "type": "string", + "nullable": true, + "description": "A default value to apply to users that don't have an attribute set." + } + }, + "required": [ + "name", + "label", + "dataType" + ] + } + } + } + }, + "responses": { + "200": { + "description": "The newly created organization user attribute.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the user attribute" + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "pattern": "^[a-z0-9\\_]+$", + "description": "The name of the user attribute" + }, + "label": { + "type": "string", + "description": "The label of the user attribute" + }, + "data_type": { + "type": "string", + "enum": [ + "string", + "number", + "json" + ], + "description": "The data type of the user attribute. Valid types are `string`, `number`, or `json`" + }, + "default_value": { + "type": "string", + "nullable": true, + "description": "The default value of the user attribute, assigned to all users without the attribute set" + }, + "intercom_attribute_name": { + "type": "string", + "nullable": true, + "minLength": 1, + "maxLength": 255, + "pattern": "^[a-z0-9\\_]+$", + "description": "The name of the Intercom user attribute that this attribute should be mapped to" + } + }, + "required": [ + "id", + "name", + "label", + "data_type", + "default_value", + "intercom_attribute_name" + ], + "description": "The created user attribute." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "409": { + "description": "A user attribute with the provided name already exists" + } + } + } + }, + "/user_attributes/{id}": { + "patch": { + "summary": "Update organization user attribute", + "description": "Available on Retool version 3.131.0+. Update the user attribute on an organization. The API token must have the \"User Attributes > Write\" scope.", + "tags": [ + "User Attributes" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The id of the user attribute" + }, + "required": true, + "name": "id", + "in": "path", + "description": "The id of the user attribute" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "replace" + ] + }, + "path": { + "type": "string" + }, + "value": { + "nullable": true, + "description": "A JSON value" + } + }, + "required": [ + "op", + "path" + ], + "title": "Replace Operation" + }, + "description": "A list of operations to apply to the user attribute. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." + }, + "update_existing": { + "type": "boolean", + "description": "Whether to update existing users with the deleted attribute" + } + }, + "required": [ + "operations" + ], + "additionalProperties": false, + "description": "The body of a request to update an environment." + } + } + } + }, + "responses": { + "200": { + "description": "Returns an updated user attribute", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the user attribute" + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "pattern": "^[a-z0-9\\_]+$", + "description": "The name of the user attribute" + }, + "label": { + "type": "string", + "description": "The label of the user attribute" + }, + "data_type": { + "type": "string", + "enum": [ + "string", + "number", + "json" + ], + "description": "The data type of the user attribute. Valid types are `string`, `number`, or `json`" + }, + "default_value": { + "type": "string", + "nullable": true, + "description": "The default value of the user attribute, assigned to all users without the attribute set" + }, + "intercom_attribute_name": { + "type": "string", + "nullable": true, + "minLength": 1, + "maxLength": 255, + "pattern": "^[a-z0-9\\_]+$", + "description": "The name of the Intercom user attribute that this attribute should be mapped to" + } + }, + "required": [ + "id", + "name", + "label", + "data_type", + "default_value", + "intercom_attribute_name" + ], + "description": "The updated user attribute." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + }, + "delete": { + "summary": "Delete an user attribute from the organization", + "description": "Deletes the defined user attribute from the organization. Optionally also deletes it on any users if specified by query parameter. The API token must have the \"User Attributes > Write\" scope.", + "tags": [ + "User Attributes" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The id of the user attribute" + }, + "required": true, + "name": "id", + "in": "path", + "description": "The id of the user attribute" + }, + { + "schema": { + "type": "string", + "enum": [ + "true", + "false" + ], + "description": "Whether to update existing users with the deleted attribute" + }, + "required": false, + "name": "update_existing_users", + "in": "query", + "description": "Whether to update existing users with the deleted attribute" + } + ], + "responses": { + "204": { + "description": "User attribute deleted" + } + } + } + }, + "/permissions/accessList/{objectType}/{objectId}": { + "get": { + "summary": "Get the access list of an app or folder", + "description": "Returns the list of users/groups and corresponding access levels whom have access to a selected folder, app, resource, workflow, or agent. The API token must have the \"Permissions > Read\" scope. Apps and folders are supported from onprem edge version 3.96.0+ and 3.114-stable+. Resources, workflows, and agents are supported from onprem edge version 3.236.0+.", + "tags": [ + "Permissions" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Object ID. Apps can be accessed by numeric id or UUID. Folders can be accessed by numeric id." + }, + "required": true, + "name": "objectId", + "in": "path", + "description": "Object ID. Apps can be accessed by numeric id or UUID. Folders can be accessed by numeric id." + }, + { + "schema": { + "type": "string", + "enum": [ + "app", + "folder", + "resource", + "workflow", + "agent" + ] + }, + "required": true, + "name": "objectType", + "in": "path" + } + ], + "responses": { + "200": { + "description": "A list of users, user invites, and groups that have access to the object", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "group": { + "type": "array", + "items": { + "type": "object", + "properties": { + "subject": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "group", + "user", + "userInvite" + ] + } + }, + "required": [ + "id", + "type" + ] + }, + "sources": { + "type": "object", + "properties": { + "direct": { + "type": "boolean" + }, + "universal": { + "type": "boolean" + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "group" + ] + } + }, + "required": [ + "id", + "type" + ] + } + }, + "inherited": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "app", + "folder", + "resource", + "workflow", + "agent" + ] + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "accessLevel": { + "type": "string", + "enum": [ + "own", + "edit", + "use", + "none" + ] + } + }, + "required": [ + "subject", + "accessLevel" + ] + } + }, + "user": { + "type": "array", + "items": { + "type": "object", + "properties": { + "subject": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "group", + "user", + "userInvite" + ] + } + }, + "required": [ + "id", + "type" + ] + }, + "sources": { + "type": "object", + "properties": { + "direct": { + "type": "boolean" + }, + "universal": { + "type": "boolean" + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "group" + ] + } + }, + "required": [ + "id", + "type" + ] + } + }, + "inherited": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "app", + "folder", + "resource", + "workflow", + "agent" + ] + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "accessLevel": { + "type": "string", + "enum": [ + "own", + "edit", + "use", + "none" + ] + } + }, + "required": [ + "subject", + "accessLevel" + ] + } + }, + "userInvite": { + "type": "array", + "items": { + "type": "object", + "properties": { + "subject": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "group", + "user", + "userInvite" + ] + } + }, + "required": [ + "id", + "type" + ] + }, + "sources": { + "type": "object", + "properties": { + "direct": { + "type": "boolean" + }, + "universal": { + "type": "boolean" + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "group" + ] + } + }, + "required": [ + "id", + "type" + ] + } + }, + "inherited": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "app", + "folder", + "resource", + "workflow", + "agent" + ] + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "accessLevel": { + "type": "string", + "enum": [ + "own", + "edit", + "use", + "none" + ] + } + }, + "required": [ + "subject", + "accessLevel" + ] + } + } + } + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/permissions/listObjects": { + "post": { + "summary": "List objects a group can access", + "description": "Returns the list of objects with corresponding access levels that a subject (group) has access to. The API token must have the \"Permissions > Read\" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.26.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+", + "tags": [ + "Permissions" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "subject": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "group" + ] + }, + "id": { + "type": "number", + "nullable": true, + "description": "The ID number of the group" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Group" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "user" + ] + }, + "id": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "User" + } + ] + }, + "object_type": { + "type": "string", + "enum": [ + "folder", + "app", + "resource", + "resource_configuration" + ] + }, + "include_inherited_access": { + "type": "boolean" + } + }, + "required": [ + "subject", + "object_type" + ], + "additionalProperties": false + } + } + } + }, + "responses": { + "200": { + "description": "A list of folders with corresponding access levels.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "folder" + ] + }, + "id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the folder" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "app" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The app ID." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the app" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource" + ] + }, + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the resource" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource_configuration" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The resource configuration id." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the resource configuration. Note that the access level in practice of this resource configuration could be different dependent on what the access level of the resource with the same id as the \"name\" of this resource_configuration. " + } + }, + "required": [ + "type", + "id", + "access_level" + ] + } + ], + "discriminator": { + "propertyName": "type" + } + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ] + } + } + } + } + } + } + }, + "/permissions/grant": { + "post": { + "summary": "Grant permissions", + "description": "Grant a group or user (subject) access to an object. Returns the updated list of objects with corresponding access levels that the subject has access to. The API token must have the \"Permissions > Write\" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+. User permissions for folders and apps are supported from API version 2.7.0+ and Retool version 3.187.0+. Also grants or updates access for all the objects directly under the folder. However it does not grant or update access for subfolders and subsequent objects under them.", + "tags": [ + "Permissions" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "subject": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "group" + ] + }, + "id": { + "type": "number", + "nullable": true, + "description": "The ID number of the group" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Group" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "user" + ] + }, + "id": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "User" + } + ] + }, + "object": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "folder" + ] + }, + "id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Folder" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "app" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The app ID." + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "App" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource" + ] + }, + "id": { + "type": "string", + "description": "The uuid or name for the resource." + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Resource" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource_configuration" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The resource configuration id." + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Resource Configuration" + } + ] + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level that the group should have for the object" + } + }, + "required": [ + "subject", + "object", + "access_level" + ], + "additionalProperties": false + } + } + } + }, + "responses": { + "200": { + "description": "A list of folders with corresponding access levels", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "folder" + ] + }, + "id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the folder" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "app" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The app ID." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the app" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource" + ] + }, + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the resource" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource_configuration" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The resource configuration id." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the resource configuration. Note that the access level in practice of this resource configuration could be different dependent on what the access level of the resource with the same id as the \"name\" of this resource_configuration. " + } + }, + "required": [ + "type", + "id", + "access_level" + ] + } + ], + "discriminator": { + "propertyName": "type" + } + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ] + } + } + } + } + } + } + }, + "/permissions/revoke": { + "post": { + "summary": "Revoke permissions", + "description": "Revoke access to an object for a group or user (subject). Returns the updated list of objects with corresponding access levels that the subject has access to. The API token must have the \"Permissions > Write\" scope. Folders are supported from API version 2.0.0 + and onprem version 3.18+, apps are supported from API version 2.4.0+ and onprem version 3.34.0+, resources and resource_configurations are supported from onprem edge version 3.37.0+ and 3.47-stable+. User permissions for folders and apps are supported from API version 2.7.0+ and Retool version 3.187.0+. Also revokes access to all the objects directly under the folder. However it does not revoke access for subfolders and subsequent objects under them.", + "tags": [ + "Permissions" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "subject": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "group" + ] + }, + "id": { + "type": "number", + "nullable": true, + "description": "The ID number of the group" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Group" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "user" + ] + }, + "id": { + "type": "string", + "pattern": "user_([a-z0-9]+)" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "User" + } + ] + }, + "object": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "folder" + ] + }, + "id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Folder" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "app" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The app ID." + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "App" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource" + ] + }, + "id": { + "type": "string", + "description": "The uuid or name for the resource." + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Resource" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource_configuration" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The resource configuration id." + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": false, + "title": "Resource Configuration" + } + ] + } + }, + "required": [ + "subject", + "object" + ], + "additionalProperties": false + } + } + } + }, + "responses": { + "200": { + "description": "A list of folders with corresponding access levels", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "folder" + ] + }, + "id": { + "type": "string", + "pattern": "^(app|workflow|resource|agent)_([0-9]\\d*)$", + "description": "The id of the folder" + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the folder" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "app" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The app ID." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the app" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource" + ] + }, + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the resource" + } + }, + "required": [ + "type", + "id", + "access_level" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "resource_configuration" + ] + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The resource configuration id." + }, + "access_level": { + "type": "string", + "enum": [ + "own", + "edit", + "use" + ], + "description": "The access level of the resource configuration. Note that the access level in practice of this resource configuration could be different dependent on what the access level of the resource with the same id as the \"name\" of this resource_configuration. " + } + }, + "required": [ + "type", + "id", + "access_level" + ] + } + ], + "discriminator": { + "propertyName": "type" + } + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ] + } + } + } + } + } + } + }, + "/role_permissions/roles": { + "get": { + "summary": "List roles", + "description": "Available from API version 2.9.0+. Returns a list of roles. The API token must have the \"Permissions > Read\" scope.", + "tags": [ + "Permissions" + ], + "responses": { + "200": { + "description": "Paginated list of roles", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the role." + }, + "organization_id": { + "type": "string", + "description": "The id of the organization" + }, + "name": { + "type": "string", + "description": "The name of the role" + }, + "description": { + "type": "string", + "description": "The description of the role" + }, + "is_default_role": { + "type": "boolean", + "description": "Whether the role is the default role" + }, + "is_legacy_role": { + "type": "boolean", + "description": "Whether the role is a migrated legacy role" + }, + "object_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The object scopes of the role" + }, + "organization_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The organization scopes of the role" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "organization_id", + "name", + "description", + "is_default_role", + "is_legacy_role", + "object_scopes", + "organization_scopes", + "created_at", + "updated_at" + ], + "description": "Roles" + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ] + } + } + } + }, + "401": { + "description": "Authentication failure", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + }, + "post": { + "summary": "Create a role", + "description": "Available from API version 2.9.0+. Creates a role. The API token must have the \"Permissions > Write\" scope.", + "tags": [ + "Permissions" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "description": "The name of the role." + }, + "description": { + "type": "string", + "description": "The description of the role" + }, + "object_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The object scopes of the role" + }, + "organization_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The organization scopes of the role" + } + }, + "required": [ + "name", + "object_scopes", + "organization_scopes" + ] + } + } + } + }, + "responses": { + "201": { + "description": "Role created successfully", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the role." + }, + "organization_id": { + "type": "string", + "description": "The id of the organization" + }, + "name": { + "type": "string", + "description": "The name of the role" + }, + "description": { + "type": "string", + "description": "The description of the role" + }, + "is_default_role": { + "type": "boolean", + "description": "Whether the role is the default role" + }, + "is_legacy_role": { + "type": "boolean", + "description": "Whether the role is a migrated legacy role" + }, + "object_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The object scopes of the role" + }, + "organization_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The organization scopes of the role" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "organization_id", + "name", + "description", + "is_default_role", + "is_legacy_role", + "object_scopes", + "organization_scopes", + "created_at", + "updated_at" + ] + } + } + } + }, + "400": { + "description": "Missing required body parameter:", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "401": { + "description": "Authentication failure", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "409": { + "description": "An object with the given value already exists.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "422": { + "description": "Encountered ValidationError when processing your request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/role_permissions/roles/{roleId}": { + "delete": { + "summary": "Delete a role", + "description": "Available from API version 2.9.0+. Deletes a role. The API token must have the \"Permissions > Write\" scope.", + "tags": [ + "Permissions" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The id of the role" + }, + "required": true, + "name": "roleId", + "in": "path", + "description": "The id of the role" + } + ], + "responses": { + "204": { + "description": "Role deleted successfully" + }, + "400": { + "description": "Cannot delete default role.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "401": { + "description": "Authentication failure", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "404": { + "description": "Role with id {roleId} not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + }, + "patch": { + "summary": "Update a role", + "description": "Available from API version 2.9.0+. Updates a role. The API token must have the \"Permissions > Write\" scope.", + "tags": [ + "Permissions" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The id of the role" + }, + "required": true, + "name": "roleId", + "in": "path", + "description": "The id of the role" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "description": "The name of the role." + }, + "description": { + "type": "string", + "description": "The description of the role" + }, + "object_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The object scopes of the role" + }, + "organization_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The organization scopes of the role" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Role updated successfully", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the role." + }, + "organization_id": { + "type": "string", + "description": "The id of the organization" + }, + "name": { + "type": "string", + "description": "The name of the role" + }, + "description": { + "type": "string", + "description": "The description of the role" + }, + "is_default_role": { + "type": "boolean", + "description": "Whether the role is the default role" + }, + "is_legacy_role": { + "type": "boolean", + "description": "Whether the role is a migrated legacy role" + }, + "object_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The object scopes of the role" + }, + "organization_scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The organization scopes of the role" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "organization_id", + "name", + "description", + "is_default_role", + "is_legacy_role", + "object_scopes", + "organization_scopes", + "created_at", + "updated_at" + ] + } + } + } + }, + "400": { + "description": "Missing required body parameter:", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "401": { + "description": "Authentication failure", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/role_permissions/role_grants/{roleGrantId}": { + "delete": { + "summary": "Delete a role grant", + "description": "Available from API version 2.9.0+. Deletes a role grant. The API token must have the \"Permissions > Write\" scope.", + "tags": [ + "Permissions" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The id of the role grant" + }, + "required": true, + "name": "roleGrantId", + "in": "path", + "description": "The id of the role grant" + } + ], + "responses": { + "204": { + "description": "Role grant deleted successfully" + }, + "401": { + "description": "Authentication failure", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "404": { + "description": "Role grant with id {roleGrantId} not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/role_permissions/role_grants": { + "post": { + "summary": "Create a role grant", + "description": "Available from API version 2.9.0+. Creates a role grant. The API token must have the \"Permissions > Write\" scope.", + "tags": [ + "Permissions" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "role_id": { + "type": "string", + "format": "uuid", + "description": "The id of the role" + }, + "subject_type": { + "type": "string", + "description": "The type of the subject" + }, + "subject_id": { + "type": "string", + "description": "The id of the subject" + }, + "object_type": { + "type": "string", + "description": "The type of the object" + }, + "object_id": { + "type": "string", + "description": "The id of the object" + } + }, + "required": [ + "role_id", + "subject_type", + "subject_id" + ] + } + } + } + }, + "responses": { + "201": { + "description": "Role grant created successfully" + }, + "400": { + "description": "Missing required body parameter:", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "401": { + "description": "Authentication failure", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + }, + "get": { + "summary": "Get role grants", + "description": "Available from API version 2.9.0+. Returns a list of role grants. The API token must have the \"Permissions > Read\" scope.", + "tags": [ + "Permissions" + ], + "responses": { + "200": { + "description": "List of role grants" + }, + "401": { + "description": "Authentication failure", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/role_permissions/role_grants/{subjectType}/{subjectId}": { + "get": { + "summary": "Get role grants for a subject", + "description": "Available from API version 2.9.0+. Returns a list of role grants for a subject. The API token must have the \"Permissions > Read\" scope.", + "tags": [ + "Permissions" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The type of the subject" + }, + "required": true, + "name": "subjectType", + "in": "path", + "description": "The type of the subject" + }, + { + "schema": { + "type": "string", + "description": "The id of the subject" + }, + "required": true, + "name": "subjectId", + "in": "path", + "description": "The id of the subject" + } + ], + "responses": { + "200": { + "description": "List of role grants" + }, + "401": { + "description": "Authentication failure", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "404": { + "description": "Subject with id {subjectId} not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/access_requests": { + "get": { + "summary": "Get organization access requests", + "description": "Available from API version 2.3.0+ and onprem version 3.26.0+. Gets a list of access requests. The API token must have the \"Users > Read\" scope.", + "tags": [ + "Access Request" + ], + "parameters": [ + { + "schema": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "DENIED" + ], + "description": "The status of the access request" + }, + "required": false, + "name": "status", + "in": "query", + "description": "The status of the access request" + } + ], + "responses": { + "200": { + "description": "Returns all access requests.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "DENIED" + ] + }, + "legacy_id": { + "type": "number" + }, + "requesting_email": { + "type": "string" + }, + "updated_by_id": { + "type": "string", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "status", + "legacy_id", + "requesting_email", + "updated_by_id", + "created_at", + "updated_at" + ], + "description": "Access Request" + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ], + "description": "A paginated list of access requests." + } + } + } + } + } + } + }, + "/access_requests/{accessRequestId}": { + "get": { + "summary": "Get access request", + "description": "Available from API version 2.2.0+ and onprem version 3.24.0+. Returns the access request. The API token must have the \"Users > Read\" scope.", + "tags": [ + "Access Request" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "^\\d+$", + "description": "The access request's ID number" + }, + "required": true, + "name": "accessRequestId", + "in": "path", + "description": "The access request's ID number" + } + ], + "responses": { + "200": { + "description": "The requested access request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "DENIED" + ] + }, + "legacy_id": { + "type": "number" + }, + "requesting_email": { + "type": "string" + }, + "updated_by_id": { + "type": "string", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "status", + "legacy_id", + "requesting_email", + "updated_by_id", + "created_at", + "updated_at" + ], + "description": "Access Request" + } + }, + "required": [ + "success", + "data" + ], + "description": "A single access request." + } + } + } + } + } + }, + "patch": { + "summary": "Approve or deny an access request", + "description": "Available from API version 2.3.0+ and onprem version 3.24.0+. Approve or deny an access request in your organization. The API token must have the \"Users > Write\" scope.", + "tags": [ + "Access Request" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The ID of the access request" + }, + "required": true, + "name": "accessRequestId", + "in": "path", + "description": "The ID of the access request" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "replace" + ] + }, + "path": { + "type": "string" + }, + "value": { + "nullable": true, + "description": "A JSON value" + } + }, + "required": [ + "op", + "path" + ], + "title": "Replace Operation" + }, + "description": "A list of operations to apply to the access request. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." + } + }, + "required": [ + "operations" + ], + "additionalProperties": false, + "description": "The body of a request to update an access request's status." + } + } + } + }, + "responses": { + "200": { + "description": "Returns an approved or denied access request", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "DENIED" + ] + }, + "legacy_id": { + "type": "number" + }, + "requesting_email": { + "type": "string" + }, + "updated_by_id": { + "type": "string", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "status", + "legacy_id", + "requesting_email", + "updated_by_id", + "created_at", + "updated_at" + ], + "description": "Access Request" + } + }, + "required": [ + "success", + "data" + ], + "description": "An approved or denied access request object." + } + } + } + } + } + } + }, + "/access_tokens": { + "get": { + "summary": "List access tokens", + "description": "List all access tokens created in the organization. The API token must have the \"Access Tokens > Read\" scope.", + "tags": [ + "Access Tokens" + ], + "responses": { + "200": { + "description": "List of access tokens.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The uuid of the access token." + }, + "label": { + "type": "string", + "minLength": 1, + "description": "The name of the access token." + }, + "description": { + "type": "string", + "nullable": true, + "description": "The description of the access token." + }, + "last4": { + "type": "string", + "description": "Last 4 characters of the access token secret" + }, + "owner_legacy_id": { + "type": "number", + "description": "The legacy id of the user that created the token" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "label", + "description", + "last4", + "owner_legacy_id", + "scopes", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "List of access tokens" + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ] + } + } + } + } + } + }, + "post": { + "summary": "Create an access token", + "description": "Available on Retool v3.157+. Creates and returns an access token with given scopes. The API token must have the \"Access Tokens > Read\" scope.", + "tags": [ + "Access Tokens" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "label": { + "type": "string", + "minLength": 2, + "description": "The name of the access token." + }, + "description": { + "type": "string", + "nullable": true, + "description": "A short, user-facing description of the access token." + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Scopes to include in the access token. All valid scopes can be found in the [documentation](https://docs.retool.com/reference/api/v2). Any invalid scopes are ignored." + } + }, + "required": [ + "label", + "scopes" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Returns the created access token.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The uuid of the access token." + }, + "label": { + "type": "string", + "minLength": 1, + "description": "The name of the access token." + }, + "description": { + "type": "string", + "nullable": true, + "description": "The description of the access token." + }, + "last4": { + "type": "string", + "description": "Last 4 characters of the access token secret" + }, + "owner_legacy_id": { + "type": "number", + "description": "The legacy id of the user that created the token" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-24T18:28:18.790Z" + }, + "access_token": { + "type": "string", + "description": "Secret token for API access. Please note this as it will only be visible once." + } + }, + "required": [ + "id", + "label", + "description", + "last4", + "owner_legacy_id", + "scopes", + "created_at", + "updated_at", + "access_token" + ], + "description": "The created access token." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/access_tokens/:accessTokenId": { + "get": { + "summary": "Get a single access token", + "description": "Available on Retool v3.164+. Fetch an access token by id. The API token must have the \"Access Tokens > Read\" scope.", + "tags": [ + "Access Tokens" + ], + "responses": { + "200": { + "description": "The requested access token.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The uuid of the access token." + }, + "label": { + "type": "string", + "minLength": 1, + "description": "The name of the access token." + }, + "description": { + "type": "string", + "nullable": true, + "description": "The description of the access token." + }, + "last4": { + "type": "string", + "description": "Last 4 characters of the access token secret" + }, + "owner_legacy_id": { + "type": "number", + "description": "The legacy id of the user that created the token" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "label", + "description", + "last4", + "owner_legacy_id", + "scopes", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "The requested access token." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "404": { + "description": "Requested access token could not be found." + } + } + } + }, + "/user_invites": { + "get": { + "summary": "Get organization user invites", + "description": "Available from API version 2.3.0+ and onprem version 3.24.0+. Gets a list of user invites", + "tags": [ + "User Invite" + ], + "responses": { + "200": { + "description": "Returns all user invites.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "invited_by": { + "type": "string" + }, + "invited_email": { + "type": "string", + "format": "email" + }, + "expires_at": { + "type": "string" + }, + "claimed_by": { + "type": "string", + "nullable": true + }, + "claimed_at": { + "type": "string", + "nullable": true + }, + "user_type": { + "type": "string", + "nullable": true, + "enum": [ + "default", + "mobile", + "external" + ] + }, + "metadata": { + "type": "object", + "nullable": true, + "additionalProperties": { + "nullable": true + }, + "default": {} + }, + "created_at": { + "type": "string" + }, + "invite_link": { + "type": "string", + "format": "uri", + "description": "User invite link expires 7 days after generation." + } + }, + "required": [ + "id", + "legacy_id", + "invited_by", + "invited_email", + "expires_at", + "claimed_by", + "claimed_at", + "user_type", + "metadata", + "created_at" + ], + "description": "User Invite" + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ], + "description": "A list of user invites." + } + } + } + } + } + }, + "post": { + "summary": "Create a new user invite", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Create a new user invite. User invite link expires 7 days after generation.", + "tags": [ + "User Invite" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "The email of the invitee" + }, + "defaultGroupIds": { + "type": "array", + "items": { + "type": "number" + }, + "description": "Group IDs to invite the user to" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "nullable": true + } + } + }, + "required": [ + "email" + ], + "additionalProperties": false, + "description": "Body of request to create a user invite" + } + } + } + }, + "responses": { + "200": { + "description": "Returns the newly created user invite.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "invited_by": { + "type": "string" + }, + "invited_email": { + "type": "string", + "format": "email" + }, + "expires_at": { + "type": "string" + }, + "claimed_by": { + "type": "string", + "nullable": true + }, + "claimed_at": { + "type": "string", + "nullable": true + }, + "user_type": { + "type": "string", + "nullable": true, + "enum": [ + "default", + "mobile", + "external" + ] + }, + "metadata": { + "type": "object", + "nullable": true, + "additionalProperties": { + "nullable": true + }, + "default": {} + }, + "created_at": { + "type": "string" + }, + "invite_link": { + "type": "string", + "format": "uri", + "description": "User invite link expires 7 days after generation." + } + }, + "required": [ + "id", + "legacy_id", + "invited_by", + "invited_email", + "expires_at", + "claimed_by", + "claimed_at", + "user_type", + "metadata", + "created_at" + ], + "description": "The created user invite with an invite link" + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/user_invites/{userInviteId}": { + "get": { + "summary": "Get user invite", + "description": "Available from API version 2.4.0+ and onprem version 3.26.0+. Returns the user invite. The API token must have the \"Users > Read\" scope.", + "tags": [ + "User Invite" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "^\\d+$", + "description": "The user invite's ID" + }, + "required": true, + "name": "userInviteId", + "in": "path", + "description": "The user invite's ID" + } + ], + "responses": { + "200": { + "description": "The requested user invite.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "legacy_id": { + "type": "number" + }, + "invited_by": { + "type": "string" + }, + "invited_email": { + "type": "string", + "format": "email" + }, + "expires_at": { + "type": "string" + }, + "claimed_by": { + "type": "string", + "nullable": true + }, + "claimed_at": { + "type": "string", + "nullable": true + }, + "user_type": { + "type": "string", + "nullable": true, + "enum": [ + "default", + "mobile", + "external" + ] + }, + "metadata": { + "type": "object", + "nullable": true, + "additionalProperties": { + "nullable": true + }, + "default": {} + }, + "created_at": { + "type": "string" + }, + "invite_link": { + "type": "string", + "format": "uri", + "description": "User invite link expires 7 days after generation." + } + }, + "required": [ + "id", + "legacy_id", + "invited_by", + "invited_email", + "expires_at", + "claimed_by", + "claimed_at", + "user_type", + "metadata", + "created_at" + ], + "description": "User Invite" + } + }, + "required": [ + "success", + "data" + ], + "description": "A single user invite." + } + } + } + } + } + }, + "delete": { + "summary": "Delete user invite", + "description": "Available from API version 2.4.0+ and onprem version 3.26.0+. Returns the deleted user invite. The API token must have the \"Users > Write\" scope.", + "tags": [ + "User Invite" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "^\\d+$", + "description": "The user invite's ID" + }, + "required": true, + "name": "userInviteId", + "in": "path", + "description": "The user invite's ID" + } + ], + "responses": { + "204": { + "description": "Successfully deleted user invite.", + "content": {} + } + } + } + }, + "/user_invites/{userInviteId}/user_attributes": { + "post": { + "summary": "Add or update user attributes on a user invite", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Add or update the user attributes of a user invite", + "tags": [ + "User Invite" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "^\\d+$", + "description": "The user invite's ID" + }, + "required": true, + "name": "userInviteId", + "in": "path", + "description": "The user invite's ID" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the user attribute (must match an existing attribute exactly)" + }, + "value": { + "type": "string", + "nullable": true, + "description": "The value of the user attribute" + } + }, + "required": [ + "name", + "value" + ], + "description": "The body of a request to add a user attribute or update an existing user attribute on a user invite." + } + } + } + }, + "responses": { + "200": { + "description": "Returns the updated user attributes.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "default": {}, + "description": "The updated user invite metadata, containing the new attribute value" + } + }, + "required": [ + "metadata" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/user_invites/{userInviteId}/user_attributes/{attributeName}": { + "delete": { + "summary": "Delete a user attribute on a user invite", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Delete a specified user attribute from an user invite", + "tags": [ + "User Invite" + ], + "parameters": [ + { + "schema": { + "type": "string", + "pattern": "^\\d+$", + "description": "The user invite's ID" + }, + "required": true, + "name": "userInviteId", + "in": "path", + "description": "The user invite's ID" + }, + { + "schema": { + "type": "string" + }, + "required": true, + "name": "attributeName", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Returns the updated user attributes.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "metadata": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "default": {}, + "description": "The updated user metadata" + } + }, + "required": [ + "metadata" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/resources": { + "get": { + "summary": "Get resources", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Gets a paginated list of resources. The API token must have the \"Resources > Read\" scope.", + "tags": [ + "Resources" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The token of the current page" + }, + "required": false, + "name": "next_token", + "in": "query", + "description": "The token of the current page" + }, + { + "schema": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "required": false, + "name": "resource_type", + "in": "query", + "description": "The type of resource." + } + ], + "responses": { + "200": { + "description": "Returns a paginated list of resources.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "type": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "Resource" + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ], + "description": "A paginated list of resources." + } + } + } + } + } + }, + "post": { + "summary": "Create a resource", + "description": "Available from onprem version 3.72.0+. Creates a resource. The API token must have the \"Resources > Write\" scope.", + "tags": [ + "Resources" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "dbServer", + "mysql", + "postgresql", + "redshift", + "restapi", + "snowflake" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "options": { + "anyOf": [ + { + "type": "object", + "properties": { + "database_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "connection_string": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "additionalProperties": false + } + ] + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Postgres Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + }, + "use_dynamic_database_names": { + "type": "boolean", + "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." + }, + "use_dynamic_database_hosts": { + "type": "boolean", + "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." + }, + "convert_mysql_dates_to_javascript": { + "type": "boolean", + "default": true, + "description": "This allows you to turn your MySQL date strings into Javascript Date objects." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "MySQL Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Redshift Options" + }, + { + "type": "object", + "properties": { + "account_identifier": { + "type": "string" + }, + "database_options": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "warehouse": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "user_role": { + "type": "string" + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake" + ] + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake_jwt" + ] + }, + "username": { + "type": "string" + }, + "private_key": { + "type": "string" + }, + "private_key_passphrase": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "private_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret" + ], + "additionalProperties": false + } + ] + } + }, + "required": [ + "account_identifier", + "database_options", + "authentication_options" + ], + "additionalProperties": false, + "title": "Snowflake Options" + }, + { + "type": "object", + "properties": { + "base_url": { + "type": "string", + "description": "Use the absolute URL (e.g. https://example.com)." + }, + "url_parameters": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "headers": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "extra_body_values": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Extra body values are not passed for GET or HEAD requests." + }, + "cookies_to_forward": { + "type": "array", + "items": { + "type": "string" + }, + "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." + }, + "forward_all_cookies": { + "type": "boolean", + "description": "This is useful if you have dynamic cookie names." + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "auth0" + ] + }, + "auth0_domain": { + "type": "string" + }, + "auth0_client_id": { + "type": "string" + }, + "auth0_client_secret": { + "type": "string" + }, + "auth0_custom_audience": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "auth0_domain", + "auth0_client_id", + "auth0_client_secret", + "auth0_custom_audience" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "aws4" + ] + }, + "amazon_aws_region": { + "type": "string" + }, + "amazon_service_name": { + "type": "string" + }, + "amazon_access_key_id": { + "type": "string" + }, + "amazon_secret_access_key": { + "type": "string" + }, + "auth_with_default_credential_provider_chain": { + "type": "boolean" + }, + "enable_awsv4_authentication_via_headers": { + "type": "boolean" + } + }, + "required": [ + "authentication_type", + "amazon_aws_region", + "amazon_service_name", + "amazon_access_key_id", + "amazon_secret_access_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "basic" + ] + }, + "basic_username": { + "type": "string" + }, + "basic_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "basic_username" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "digest" + ] + }, + "digest_username": { + "type": "string" + }, + "digest_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "digest_username", + "digest_password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth1" + ] + }, + "oauth1_signature_method": { + "anyOf": [ + { + "type": "string", + "enum": [ + "HMAC-SHA1" + ] + }, + { + "type": "string", + "enum": [ + "HMAC-SHA256" + ] + }, + { + "type": "string", + "enum": [ + "PLAINTEXT" + ] + } + ] + }, + "oauth1_consumer_key": { + "type": "string" + }, + "oauth1_consumer_secret": { + "type": "string" + }, + "oauth1_token_key": { + "type": "string" + }, + "oauth1_token_secret": { + "type": "string" + }, + "oauth1_realm_parameter": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth1_signature_method", + "oauth1_consumer_key", + "oauth1_consumer_secret", + "oauth1_token_key", + "oauth1_token_secret", + "oauth1_realm_parameter" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + }, + "oauth2_auth_url": { + "type": "string" + }, + "oauth2_access_token_url": { + "type": "string" + }, + "oauth2_scope": { + "type": "string" + }, + "oauth2_audience": { + "type": "string" + }, + "oauth2_share_user_credentials": { + "type": "boolean" + }, + "verify_session_url": { + "type": "string" + }, + "oauth2_access_token": { + "type": "string" + }, + "oauth2_refresh_token": { + "type": "string" + }, + "oauth2_id_token": { + "type": "string" + }, + "oauth2_access_token_lifespan_seconds": { + "type": "number", + "nullable": true + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret", + "oauth2_auth_url", + "oauth2_access_token_url" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "none" + ] + } + }, + "required": [ + "authentication_type" + ], + "additionalProperties": false + } + ], + "description": "Note that custom auth is not yet supported." + } + }, + "required": [ + "base_url" + ], + "additionalProperties": false, + "title": "Rest API Options" + } + ] + } + }, + "required": [ + "type", + "display_name", + "options" + ] + } + } + } + }, + "responses": { + "200": { + "description": "The created resource.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "type": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "The created resource." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/resources/{resourceId}": { + "get": { + "summary": "Get resource by id", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a specific resource. The API token must have the \"Resources > Read\" scope.", + "tags": [ + "Resources" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "required": true, + "name": "resourceId", + "in": "path", + "description": "The uuid or name for the resource." + } + ], + "responses": { + "200": { + "description": "The requested resource.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "type": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "Resource" + } + }, + "required": [ + "success", + "data" + ], + "description": "A single resource" + } + } + } + } + } + }, + "patch": { + "summary": "Update a resource", + "description": "Updates and returns the updated resource. The API token must have the \"Resources > Write\" scope.", + "tags": [ + "Resources" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "required": true, + "name": "resourceId", + "in": "path", + "description": "The uuid or name for the resource." + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "replace" + ] + }, + "path": { + "type": "string" + }, + "value": { + "nullable": true, + "description": "A JSON value" + } + }, + "required": [ + "op", + "path" + ], + "title": "Replace Operation" + }, + "description": "A list of operations to apply to the resource. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." + } + }, + "required": [ + "operations" + ], + "additionalProperties": false, + "description": "The body of a request to update a resource." + } + } + } + }, + "responses": { + "200": { + "description": "Returns the updated resource.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "type": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "The updated resource." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + }, + "delete": { + "summary": "Delete resource", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Deletes a resource with the given id. The API token must have the \"Resources > Write\" scope.", + "tags": [ + "Resources" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "required": true, + "name": "resourceId", + "in": "path", + "description": "The uuid or name for the resource." + }, + { + "schema": { + "type": "boolean", + "description": "Whether to delete the underlying retool database when deleting the resource." + }, + "required": false, + "name": "deleteUnderlyingDB", + "in": "query", + "description": "Whether to delete the underlying retool database when deleting the resource." + } + ], + "responses": { + "204": { + "description": "Resource deleted" + } + } + } + }, + "/resource_configurations": { + "get": { + "summary": "Get resource configurations", + "description": "Available from API version 2.4.0+ and Self-hosted Retool 3.34.0+. Gets a paginated list of resource configurations. The API token must have the \"Resources > Read\" scope.", + "tags": [ + "Resource Configurations" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The token of the current page" + }, + "required": false, + "name": "next_token", + "in": "query", + "description": "The token of the current page" + }, + { + "schema": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "required": false, + "name": "resource_type", + "in": "query", + "description": "The type of resource." + }, + { + "schema": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "required": false, + "name": "resource_id", + "in": "query", + "description": "The uuid or name for the resource." + }, + { + "schema": { + "type": "string", + "format": "uuid" + }, + "required": false, + "name": "environment_id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Returns a paginated list of resource configurations.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The uuid for the resource configuration." + }, + "resource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "type": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "Resource" + }, + "environment": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], + "description": "Environment" + }, + "options": { + "anyOf": [ + { + "type": "object", + "properties": { + "database_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "connection_string": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "additionalProperties": false + } + ] + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Postgres Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + }, + "use_dynamic_database_names": { + "type": "boolean", + "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." + }, + "use_dynamic_database_hosts": { + "type": "boolean", + "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." + }, + "convert_mysql_dates_to_javascript": { + "type": "boolean", + "default": true, + "description": "This allows you to turn your MySQL date strings into Javascript Date objects." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "MySQL Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Redshift Options" + }, + { + "type": "object", + "properties": { + "account_identifier": { + "type": "string" + }, + "database_options": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "warehouse": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "user_role": { + "type": "string" + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake" + ] + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake_jwt" + ] + }, + "username": { + "type": "string" + }, + "private_key": { + "type": "string" + }, + "private_key_passphrase": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "private_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret" + ], + "additionalProperties": false + } + ] + } + }, + "required": [ + "account_identifier", + "database_options", + "authentication_options" + ], + "additionalProperties": false, + "title": "Snowflake Options" + }, + { + "type": "object", + "properties": { + "base_url": { + "type": "string", + "description": "Use the absolute URL (e.g. https://example.com)." + }, + "url_parameters": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "headers": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "extra_body_values": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Extra body values are not passed for GET or HEAD requests." + }, + "cookies_to_forward": { + "type": "array", + "items": { + "type": "string" + }, + "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." + }, + "forward_all_cookies": { + "type": "boolean", + "description": "This is useful if you have dynamic cookie names." + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "auth0" + ] + }, + "auth0_domain": { + "type": "string" + }, + "auth0_client_id": { + "type": "string" + }, + "auth0_client_secret": { + "type": "string" + }, + "auth0_custom_audience": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "auth0_domain", + "auth0_client_id", + "auth0_client_secret", + "auth0_custom_audience" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "aws4" + ] + }, + "amazon_aws_region": { + "type": "string" + }, + "amazon_service_name": { + "type": "string" + }, + "amazon_access_key_id": { + "type": "string" + }, + "amazon_secret_access_key": { + "type": "string" + }, + "auth_with_default_credential_provider_chain": { + "type": "boolean" + }, + "enable_awsv4_authentication_via_headers": { + "type": "boolean" + } + }, + "required": [ + "authentication_type", + "amazon_aws_region", + "amazon_service_name", + "amazon_access_key_id", + "amazon_secret_access_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "basic" + ] + }, + "basic_username": { + "type": "string" + }, + "basic_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "basic_username" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "digest" + ] + }, + "digest_username": { + "type": "string" + }, + "digest_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "digest_username", + "digest_password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth1" + ] + }, + "oauth1_signature_method": { + "anyOf": [ + { + "type": "string", + "enum": [ + "HMAC-SHA1" + ] + }, + { + "type": "string", + "enum": [ + "HMAC-SHA256" + ] + }, + { + "type": "string", + "enum": [ + "PLAINTEXT" + ] + } + ] + }, + "oauth1_consumer_key": { + "type": "string" + }, + "oauth1_consumer_secret": { + "type": "string" + }, + "oauth1_token_key": { + "type": "string" + }, + "oauth1_token_secret": { + "type": "string" + }, + "oauth1_realm_parameter": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth1_signature_method", + "oauth1_consumer_key", + "oauth1_consumer_secret", + "oauth1_token_key", + "oauth1_token_secret", + "oauth1_realm_parameter" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + }, + "oauth2_auth_url": { + "type": "string" + }, + "oauth2_access_token_url": { + "type": "string" + }, + "oauth2_scope": { + "type": "string" + }, + "oauth2_audience": { + "type": "string" + }, + "oauth2_share_user_credentials": { + "type": "boolean" + }, + "verify_session_url": { + "type": "string" + }, + "oauth2_access_token": { + "type": "string" + }, + "oauth2_refresh_token": { + "type": "string" + }, + "oauth2_id_token": { + "type": "string" + }, + "oauth2_access_token_lifespan_seconds": { + "type": "number", + "nullable": true + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret", + "oauth2_auth_url", + "oauth2_access_token_url" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "none" + ] + } + }, + "required": [ + "authentication_type" + ], + "additionalProperties": false + } + ], + "description": "Note that custom auth is not yet supported." + } + }, + "required": [ + "base_url" + ], + "additionalProperties": false, + "title": "Rest API Options" + } + ] + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "resource", + "environment", + "options", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "A list of resource configurations." + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ] + } + } + } + } + } + }, + "post": { + "summary": "Create resource configuration", + "description": "Available from API version 2.4.0+ and onprem version 3.74 on-prem+. Creates a new resource configuration. The API token must have the \"Resources > Write\" scope.", + "tags": [ + "Resource Configurations" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "resource_id": { + "type": "string", + "description": "A UUID that uniquely identifies a resource. This is also referenced within the Retool app. For example, when you edit a resource, the ID can be found in the url." + }, + "environment_id": { + "type": "string", + "format": "uuid", + "description": "A UUID that uniquely identifies an environment." + }, + "options": { + "anyOf": [ + { + "type": "object", + "properties": { + "database_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "connection_string": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "additionalProperties": false + } + ] + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Postgres Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + }, + "use_dynamic_database_names": { + "type": "boolean", + "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." + }, + "use_dynamic_database_hosts": { + "type": "boolean", + "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." + }, + "convert_mysql_dates_to_javascript": { + "type": "boolean", + "default": true, + "description": "This allows you to turn your MySQL date strings into Javascript Date objects." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "MySQL Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Redshift Options" + }, + { + "type": "object", + "properties": { + "account_identifier": { + "type": "string" + }, + "database_options": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "warehouse": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "user_role": { + "type": "string" + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake" + ] + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake_jwt" + ] + }, + "username": { + "type": "string" + }, + "private_key": { + "type": "string" + }, + "private_key_passphrase": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "private_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret" + ], + "additionalProperties": false + } + ] + } + }, + "required": [ + "account_identifier", + "database_options", + "authentication_options" + ], + "additionalProperties": false, + "title": "Snowflake Options" + }, + { + "type": "object", + "properties": { + "base_url": { + "type": "string", + "description": "Use the absolute URL (e.g. https://example.com)." + }, + "url_parameters": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "headers": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "extra_body_values": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Extra body values are not passed for GET or HEAD requests." + }, + "cookies_to_forward": { + "type": "array", + "items": { + "type": "string" + }, + "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." + }, + "forward_all_cookies": { + "type": "boolean", + "description": "This is useful if you have dynamic cookie names." + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "auth0" + ] + }, + "auth0_domain": { + "type": "string" + }, + "auth0_client_id": { + "type": "string" + }, + "auth0_client_secret": { + "type": "string" + }, + "auth0_custom_audience": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "auth0_domain", + "auth0_client_id", + "auth0_client_secret", + "auth0_custom_audience" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "aws4" + ] + }, + "amazon_aws_region": { + "type": "string" + }, + "amazon_service_name": { + "type": "string" + }, + "amazon_access_key_id": { + "type": "string" + }, + "amazon_secret_access_key": { + "type": "string" + }, + "auth_with_default_credential_provider_chain": { + "type": "boolean" + }, + "enable_awsv4_authentication_via_headers": { + "type": "boolean" + } + }, + "required": [ + "authentication_type", + "amazon_aws_region", + "amazon_service_name", + "amazon_access_key_id", + "amazon_secret_access_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "basic" + ] + }, + "basic_username": { + "type": "string" + }, + "basic_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "basic_username" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "digest" + ] + }, + "digest_username": { + "type": "string" + }, + "digest_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "digest_username", + "digest_password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth1" + ] + }, + "oauth1_signature_method": { + "anyOf": [ + { + "type": "string", + "enum": [ + "HMAC-SHA1" + ] + }, + { + "type": "string", + "enum": [ + "HMAC-SHA256" + ] + }, + { + "type": "string", + "enum": [ + "PLAINTEXT" + ] + } + ] + }, + "oauth1_consumer_key": { + "type": "string" + }, + "oauth1_consumer_secret": { + "type": "string" + }, + "oauth1_token_key": { + "type": "string" + }, + "oauth1_token_secret": { + "type": "string" + }, + "oauth1_realm_parameter": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth1_signature_method", + "oauth1_consumer_key", + "oauth1_consumer_secret", + "oauth1_token_key", + "oauth1_token_secret", + "oauth1_realm_parameter" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + }, + "oauth2_auth_url": { + "type": "string" + }, + "oauth2_access_token_url": { + "type": "string" + }, + "oauth2_scope": { + "type": "string" + }, + "oauth2_audience": { + "type": "string" + }, + "oauth2_share_user_credentials": { + "type": "boolean" + }, + "verify_session_url": { + "type": "string" + }, + "oauth2_access_token": { + "type": "string" + }, + "oauth2_refresh_token": { + "type": "string" + }, + "oauth2_id_token": { + "type": "string" + }, + "oauth2_access_token_lifespan_seconds": { + "type": "number", + "nullable": true + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret", + "oauth2_auth_url", + "oauth2_access_token_url" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "none" + ] + } + }, + "required": [ + "authentication_type" + ], + "additionalProperties": false + } + ], + "description": "Note that custom auth is not yet supported." + } + }, + "required": [ + "base_url" + ], + "additionalProperties": false, + "title": "Rest API Options" + } + ] + } + }, + "required": [ + "resource_id", + "environment_id", + "options" + ] + } + } + } + }, + "responses": { + "200": { + "description": "The created resource configuration.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The uuid for the resource configuration." + }, + "resource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "type": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "Resource" + }, + "environment": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], + "description": "Environment" + }, + "options": { + "anyOf": [ + { + "type": "object", + "properties": { + "database_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "connection_string": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "additionalProperties": false + } + ] + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Postgres Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + }, + "use_dynamic_database_names": { + "type": "boolean", + "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." + }, + "use_dynamic_database_hosts": { + "type": "boolean", + "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." + }, + "convert_mysql_dates_to_javascript": { + "type": "boolean", + "default": true, + "description": "This allows you to turn your MySQL date strings into Javascript Date objects." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "MySQL Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Redshift Options" + }, + { + "type": "object", + "properties": { + "account_identifier": { + "type": "string" + }, + "database_options": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "warehouse": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "user_role": { + "type": "string" + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake" + ] + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake_jwt" + ] + }, + "username": { + "type": "string" + }, + "private_key": { + "type": "string" + }, + "private_key_passphrase": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "private_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret" + ], + "additionalProperties": false + } + ] + } + }, + "required": [ + "account_identifier", + "database_options", + "authentication_options" + ], + "additionalProperties": false, + "title": "Snowflake Options" + }, + { + "type": "object", + "properties": { + "base_url": { + "type": "string", + "description": "Use the absolute URL (e.g. https://example.com)." + }, + "url_parameters": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "headers": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "extra_body_values": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Extra body values are not passed for GET or HEAD requests." + }, + "cookies_to_forward": { + "type": "array", + "items": { + "type": "string" + }, + "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." + }, + "forward_all_cookies": { + "type": "boolean", + "description": "This is useful if you have dynamic cookie names." + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "auth0" + ] + }, + "auth0_domain": { + "type": "string" + }, + "auth0_client_id": { + "type": "string" + }, + "auth0_client_secret": { + "type": "string" + }, + "auth0_custom_audience": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "auth0_domain", + "auth0_client_id", + "auth0_client_secret", + "auth0_custom_audience" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "aws4" + ] + }, + "amazon_aws_region": { + "type": "string" + }, + "amazon_service_name": { + "type": "string" + }, + "amazon_access_key_id": { + "type": "string" + }, + "amazon_secret_access_key": { + "type": "string" + }, + "auth_with_default_credential_provider_chain": { + "type": "boolean" + }, + "enable_awsv4_authentication_via_headers": { + "type": "boolean" + } + }, + "required": [ + "authentication_type", + "amazon_aws_region", + "amazon_service_name", + "amazon_access_key_id", + "amazon_secret_access_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "basic" + ] + }, + "basic_username": { + "type": "string" + }, + "basic_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "basic_username" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "digest" + ] + }, + "digest_username": { + "type": "string" + }, + "digest_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "digest_username", + "digest_password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth1" + ] + }, + "oauth1_signature_method": { + "anyOf": [ + { + "type": "string", + "enum": [ + "HMAC-SHA1" + ] + }, + { + "type": "string", + "enum": [ + "HMAC-SHA256" + ] + }, + { + "type": "string", + "enum": [ + "PLAINTEXT" + ] + } + ] + }, + "oauth1_consumer_key": { + "type": "string" + }, + "oauth1_consumer_secret": { + "type": "string" + }, + "oauth1_token_key": { + "type": "string" + }, + "oauth1_token_secret": { + "type": "string" + }, + "oauth1_realm_parameter": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth1_signature_method", + "oauth1_consumer_key", + "oauth1_consumer_secret", + "oauth1_token_key", + "oauth1_token_secret", + "oauth1_realm_parameter" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + }, + "oauth2_auth_url": { + "type": "string" + }, + "oauth2_access_token_url": { + "type": "string" + }, + "oauth2_scope": { + "type": "string" + }, + "oauth2_audience": { + "type": "string" + }, + "oauth2_share_user_credentials": { + "type": "boolean" + }, + "verify_session_url": { + "type": "string" + }, + "oauth2_access_token": { + "type": "string" + }, + "oauth2_refresh_token": { + "type": "string" + }, + "oauth2_id_token": { + "type": "string" + }, + "oauth2_access_token_lifespan_seconds": { + "type": "number", + "nullable": true + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret", + "oauth2_auth_url", + "oauth2_access_token_url" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "none" + ] + } + }, + "required": [ + "authentication_type" + ], + "additionalProperties": false + } + ], + "description": "Note that custom auth is not yet supported." + } + }, + "required": [ + "base_url" + ], + "additionalProperties": false, + "title": "Rest API Options" + } + ] + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "resource", + "environment", + "options", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "The created resource configuration." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/resource_configurations/{configurationId}": { + "get": { + "summary": "Get resource configuration by id", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a specific resource configuration. The API token must have the \"Resources > Read\" scope.", + "tags": [ + "Resource Configurations" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The resource configuration id." + }, + "required": true, + "name": "configurationId", + "in": "path", + "description": "The resource configuration id." + } + ], + "responses": { + "200": { + "description": "The requested resource configuration.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The uuid for the resource configuration." + }, + "resource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "type": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "Resource" + }, + "environment": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], + "description": "Environment" + }, + "options": { + "anyOf": [ + { + "type": "object", + "properties": { + "database_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "connection_string": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "additionalProperties": false + } + ] + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Postgres Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } + }, + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + }, + "use_dynamic_database_names": { + "type": "boolean", + "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." + }, + "use_dynamic_database_hosts": { + "type": "boolean", + "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." + }, + "convert_mysql_dates_to_javascript": { + "type": "boolean", + "default": true, + "description": "This allows you to turn your MySQL date strings into Javascript Date objects." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "MySQL Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Redshift Options" + }, + { + "type": "object", + "properties": { + "account_identifier": { + "type": "string" + }, + "database_options": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "warehouse": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "user_role": { + "type": "string" + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake" + ] + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake_jwt" + ] + }, + "username": { + "type": "string" + }, + "private_key": { + "type": "string" + }, + "private_key_passphrase": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "username", + "private_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret" + ], + "additionalProperties": false + } + ] + } + }, + "required": [ + "account_identifier", + "database_options", + "authentication_options" + ], + "additionalProperties": false, + "title": "Snowflake Options" + }, + { + "type": "object", + "properties": { + "base_url": { + "type": "string", + "description": "Use the absolute URL (e.g. https://example.com)." + }, + "url_parameters": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "headers": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "extra_body_values": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Extra body values are not passed for GET or HEAD requests." + }, + "cookies_to_forward": { + "type": "array", + "items": { + "type": "string" + }, + "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." + }, + "forward_all_cookies": { + "type": "boolean", + "description": "This is useful if you have dynamic cookie names." + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "auth0" + ] + }, + "auth0_domain": { + "type": "string" + }, + "auth0_client_id": { + "type": "string" + }, + "auth0_client_secret": { + "type": "string" + }, + "auth0_custom_audience": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "auth0_domain", + "auth0_client_id", + "auth0_client_secret", + "auth0_custom_audience" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "aws4" + ] + }, + "amazon_aws_region": { + "type": "string" + }, + "amazon_service_name": { + "type": "string" + }, + "amazon_access_key_id": { + "type": "string" + }, + "amazon_secret_access_key": { + "type": "string" + }, + "auth_with_default_credential_provider_chain": { + "type": "boolean" + }, + "enable_awsv4_authentication_via_headers": { + "type": "boolean" + } + }, + "required": [ + "authentication_type", + "amazon_aws_region", + "amazon_service_name", + "amazon_access_key_id", + "amazon_secret_access_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "basic" + ] + }, + "basic_username": { + "type": "string" + }, + "basic_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "basic_username" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "digest" + ] + }, + "digest_username": { + "type": "string" + }, + "digest_password": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "digest_username", + "digest_password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth1" + ] + }, + "oauth1_signature_method": { + "anyOf": [ + { + "type": "string", + "enum": [ + "HMAC-SHA1" + ] + }, + { + "type": "string", + "enum": [ + "HMAC-SHA256" + ] + }, + { + "type": "string", + "enum": [ + "PLAINTEXT" + ] + } + ] + }, + "oauth1_consumer_key": { + "type": "string" + }, + "oauth1_consumer_secret": { + "type": "string" + }, + "oauth1_token_key": { + "type": "string" + }, + "oauth1_token_secret": { + "type": "string" + }, + "oauth1_realm_parameter": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth1_signature_method", + "oauth1_consumer_key", + "oauth1_consumer_secret", + "oauth1_token_key", + "oauth1_token_secret", + "oauth1_realm_parameter" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] + }, + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + }, + "oauth2_auth_url": { + "type": "string" + }, + "oauth2_access_token_url": { + "type": "string" + }, + "oauth2_scope": { + "type": "string" + }, + "oauth2_audience": { + "type": "string" + }, + "oauth2_share_user_credentials": { + "type": "boolean" + }, + "verify_session_url": { + "type": "string" + }, + "oauth2_access_token": { + "type": "string" + }, + "oauth2_refresh_token": { + "type": "string" + }, + "oauth2_id_token": { + "type": "string" + }, + "oauth2_access_token_lifespan_seconds": { + "type": "number", + "nullable": true + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret", + "oauth2_auth_url", + "oauth2_access_token_url" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "none" + ] + } + }, + "required": [ + "authentication_type" + ], + "additionalProperties": false + } + ], + "description": "Note that custom auth is not yet supported." + } + }, + "required": [ + "base_url" + ], + "additionalProperties": false, + "title": "Rest API Options" + } + ] + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "resource", + "environment", + "options", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "Resource Configuration" + } + } + } + } + } + }, + "delete": { + "summary": "Delete resource configuration", + "description": "Available from API version 2.4.0+ and onprem version 3.34.0+. Deletes a resource configuration with the given id. The API token must have the \"Resources > Write\" scope.", + "tags": [ + "Resource Configurations" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The resource configuration id." + }, + "required": true, + "name": "configurationId", + "in": "path", + "description": "The resource configuration id." + } + ], + "responses": { + "204": { + "description": "Resource configuration deleted" + } + } + }, + "patch": { + "summary": "Update a resource configuration", + "description": "Available from API version 2.4.0+ and onprem version 3.74 on-prem+. Updates the resource configuration with the given resource configuration id. The API token must have the \"Resources > Write\" scope.", + "tags": [ + "Resource Configurations" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The resource configuration id." + }, + "required": true, + "name": "configurationId", + "in": "path", + "description": "The resource configuration id." + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "replace" + ] + }, + "path": { + "type": "string" + }, + "value": { + "nullable": true, + "description": "A JSON value" + } + }, + "required": [ + "op", + "path" + ], + "title": "Replace Operation" + }, + "description": "A list of operations to apply to the resource configuration. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." + } + }, + "required": [ + "operations" + ], + "additionalProperties": false, + "description": "The body of a request to update a resource configuration." + } + } + } + }, + "responses": { + "200": { + "description": "The updated resource configuration.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The uuid for the resource configuration." + }, + "resource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The uuid or name for the resource." + }, + "type": { + "type": "string", + "enum": [ + "airflow", + "alloydb", + "asana", + "athena", + "basecamp", + "bigid", + "bigquery", + "cassandra", + "circleci", + "closeio", + "cosmosdb", + "couchdb", + "databricks", + "databricksLakebase", + "datadog", + "datastore", + "dbServer", + "denodo", + "dynamodb", + "elasticsearch", + "firebase", + "front", + "gcs", + "github", + "googleAnalytics", + "googleCalendar", + "googleDocs", + "googleMaps", + "googleSearchConsole", + "googlesheets", + "graphql", + "grpc", + "hubspot", + "jdbc", + "jira", + "lambda", + "launchdarkly", + "microsoftTeams", + "mongodb", + "mssql", + "mysql", + "notion", + "onesignal", + "openAI", + "openapi", + "oracledb", + "postgresql", + "presto", + "redis", + "redshift", + "restapi", + "rethinkdb", + "retoolEmail", + "retoolAI", + "retoolDb", + "retoolStorage", + "s3", + "salesforce", + "saphana", + "sendgrid", + "shell", + "slack", + "slackopenapi", + "smtp", + "snowflake", + "stripe", + "twilio", + "vertica", + "aiProvider" + ], + "description": "The type of resource." + }, + "display_name": { + "type": "string", + "minLength": 1 + }, + "protected": { + "type": "boolean", + "description": "Whether the resource is protected in source control" + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "type", + "display_name", + "protected", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "Resource" + }, + "environment": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], + "description": "Environment" + }, + "options": { + "anyOf": [ + { + "type": "object", + "properties": { + "database_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "host": { + "type": "string" }, - "additionalProperties": false - } - ] - } - }, - "required": ["database_options"], - "additionalProperties": false, - "title": "Postgres Options" - }, - { - "type": "object", - "properties": { - "database_options": { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "client_key": { - "type": "string", - "nullable": true + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } }, - "client_cert": { - "type": "string", - "nullable": true + "additionalProperties": false + }, + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } }, - "ca_cert": { - "type": "string", - "nullable": true - } + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false }, - "additionalProperties": false - }, - "ssh_tunnel_options": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "host": { "type": "string" }, - "port": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "private_key_name": { - "type": "string" - } + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." }, - "required": ["enabled", "host", "port"], - "additionalProperties": false - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } }, - "use_dynamic_database_names": { - "type": "boolean", - "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." + "required": [ + "host", + "port" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "connection_string": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } }, - "use_dynamic_database_hosts": { - "type": "boolean", - "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." + "additionalProperties": false + } + ] + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Postgres Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "client_key": { + "type": "string", + "nullable": true + }, + "client_cert": { + "type": "string", + "nullable": true + }, + "ca_cert": { + "type": "string", + "nullable": true + } }, - "convert_mysql_dates_to_javascript": { - "type": "boolean", - "default": true, - "description": "This allows you to turn your MySQL date strings into Javascript Date objects." - } + "additionalProperties": false }, - "required": ["host", "port"], - "additionalProperties": false - } - }, - "required": ["database_options"], - "additionalProperties": false, - "title": "MySQL Options" - }, - { - "type": "object", - "properties": { - "database_options": { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" } + "ssh_tunnel_options": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" }, - "additionalProperties": false + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "private_key_name": { + "type": "string" + } }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + "required": [ + "enabled", + "host", + "port" + ], + "additionalProperties": false + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + }, + "use_dynamic_database_names": { + "type": "boolean", + "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." + }, + "use_dynamic_database_hosts": { + "type": "boolean", + "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." + }, + "convert_mysql_dates_to_javascript": { + "type": "boolean", + "default": true, + "description": "This allows you to turn your MySQL date strings into Javascript Date objects." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } + }, + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "MySQL Options" + }, + { + "type": "object", + "properties": { + "database_options": { + "type": "object", + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "string" + }, + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "ssl_settings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } + "additionalProperties": false }, - "required": ["host", "port"], - "additionalProperties": false - } - }, - "required": ["database_options"], - "additionalProperties": false, - "title": "Redshift Options" + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } + }, + "required": [ + "host", + "port" + ], + "additionalProperties": false + } }, - { - "type": "object", - "properties": { - "account_identifier": { "type": "string" }, - "database_options": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "schema": { "type": "string" }, - "warehouse": { "type": "string" }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } + "required": [ + "database_options" + ], + "additionalProperties": false, + "title": "Redshift Options" + }, + { + "type": "object", + "properties": { + "account_identifier": { + "type": "string" + }, + "database_options": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "required": ["name"], - "additionalProperties": false + "schema": { + "type": "string" + }, + "warehouse": { + "type": "string" + }, + "disable_converting_queries_to_prepared_statements": { + "type": "boolean", + "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." + }, + "show_write_gui_only": { + "type": "boolean", + "description": "This allows you to enable writing via only the restrictive GUI query editor." + } }, - "user_role": { "type": "string" }, - "authentication_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["snowflake"] - }, - "username": { "type": "string" }, - "password": { "type": "string" } + "required": [ + "name" + ], + "additionalProperties": false + }, + "user_role": { + "type": "string" + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake" + ] }, - "required": [ - "authentication_type", - "username", - "password" - ], - "additionalProperties": false + "username": { + "type": "string" + }, + "password": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["snowflake_jwt"] - }, - "username": { "type": "string" }, - "private_key": { "type": "string" }, - "private_key_passphrase": { - "type": "string" - } + "required": [ + "authentication_type", + "username", + "password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "snowflake_jwt" + ] }, - "required": [ - "authentication_type", - "username", - "private_key" - ], - "additionalProperties": false + "username": { + "type": "string" + }, + "private_key": { + "type": "string" + }, + "private_key_passphrase": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth2"] - }, - "oauth2_client_id": { - "type": "string" - }, - "oauth2_client_secret": { - "type": "string" - }, - "oauth2_callback_url": { - "type": "string" - } + "required": [ + "authentication_type", + "username", + "private_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] }, - "required": [ - "authentication_type", - "oauth2_client_id", - "oauth2_client_secret" - ], - "additionalProperties": false - } - ] - } - }, - "required": [ - "account_identifier", - "database_options", - "authentication_options" - ], - "additionalProperties": false, - "title": "Snowflake Options" - }, - { - "type": "object", - "properties": { - "base_url": { - "type": "string", - "description": "Use the absolute URL (e.g https://example.com)." - }, - "url_parameters": { - "type": "array", - "items": { - "type": "array", - "items": { "type": "string" } + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret" + ], + "additionalProperties": false } - }, - "headers": { + ] + } + }, + "required": [ + "account_identifier", + "database_options", + "authentication_options" + ], + "additionalProperties": false, + "title": "Snowflake Options" + }, + { + "type": "object", + "properties": { + "base_url": { + "type": "string", + "description": "Use the absolute URL (e.g. https://example.com)." + }, + "url_parameters": { + "type": "array", + "items": { "type": "array", "items": { - "type": "array", - "items": { "type": "string" } + "type": "string" } - }, - "extra_body_values": { - "type": "array", - "items": { - "type": "array", - "items": { "type": "string" } - }, - "description": "Extra body values are not passed for GET or HEAD requests." - }, - "cookies_to_forward": { + } + }, + "headers": { + "type": "array", + "items": { "type": "array", - "items": { "type": "string" }, - "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." - }, - "forward_all_cookies": { - "type": "boolean", - "description": "This is useful if you have dynamic cookie names." - }, - "authentication_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["auth0"] - }, - "auth0_domain": { "type": "string" }, - "auth0_client_id": { - "type": "string" - }, - "auth0_client_secret": { - "type": "string" - }, - "auth0_custom_audience": { - "type": "string" - } - }, - "required": [ - "authentication_type", - "auth0_domain", - "auth0_client_id", - "auth0_client_secret", - "auth0_custom_audience" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["aws4"] - }, - "amazon_aws_region": { - "type": "string" - }, - "amazon_service_name": { - "type": "string" - }, - "amazon_access_key_id": { - "type": "string" - }, - "amazon_secret_access_key": { - "type": "string" - }, - "auth_with_default_credential_provider_chain": { - "type": "boolean" - }, - "enable_awsv4_authentication_via_headers": { - "type": "boolean" - } + "items": { + "type": "string" + } + } + }, + "extra_body_values": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Extra body values are not passed for GET or HEAD requests." + }, + "cookies_to_forward": { + "type": "array", + "items": { + "type": "string" + }, + "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." + }, + "forward_all_cookies": { + "type": "boolean", + "description": "This is useful if you have dynamic cookie names." + }, + "authentication_options": { + "anyOf": [ + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "auth0" + ] }, - "required": [ - "authentication_type", - "amazon_aws_region", - "amazon_service_name", - "amazon_access_key_id", - "amazon_secret_access_key" - ], - "additionalProperties": false + "auth0_domain": { + "type": "string" + }, + "auth0_client_id": { + "type": "string" + }, + "auth0_client_secret": { + "type": "string" + }, + "auth0_custom_audience": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["basic"] - }, - "basic_username": { - "type": "string" - }, - "basic_password": { "type": "string" } + "required": [ + "authentication_type", + "auth0_domain", + "auth0_client_id", + "auth0_client_secret", + "auth0_custom_audience" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "aws4" + ] }, - "required": [ - "authentication_type", - "basic_username" - ], - "additionalProperties": false + "amazon_aws_region": { + "type": "string" + }, + "amazon_service_name": { + "type": "string" + }, + "amazon_access_key_id": { + "type": "string" + }, + "amazon_secret_access_key": { + "type": "string" + }, + "auth_with_default_credential_provider_chain": { + "type": "boolean" + }, + "enable_awsv4_authentication_via_headers": { + "type": "boolean" + } }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["digest"] - }, - "digest_username": { - "type": "string" - }, - "digest_password": { - "type": "string" - } + "required": [ + "authentication_type", + "amazon_aws_region", + "amazon_service_name", + "amazon_access_key_id", + "amazon_secret_access_key" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "basic" + ] }, - "required": [ - "authentication_type", - "digest_username", - "digest_password" - ], - "additionalProperties": false + "basic_username": { + "type": "string" + }, + "basic_password": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth1"] - }, - "oauth1_signature_method": { - "anyOf": [ - { - "type": "string", - "enum": ["HMAC-SHA1"] - }, - { - "type": "string", - "enum": ["HMAC-SHA256"] - }, - { - "type": "string", - "enum": ["PLAINTEXT"] - } - ] - }, - "oauth1_consumer_key": { - "type": "string" - }, - "oauth1_consumer_secret": { - "type": "string" - }, - "oauth1_token_key": { - "type": "string" - }, - "oauth1_token_secret": { - "type": "string" - }, - "oauth1_realm_parameter": { - "type": "string" - } + "required": [ + "authentication_type", + "basic_username" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "digest" + ] }, - "required": [ - "authentication_type", - "oauth1_signature_method", - "oauth1_consumer_key", - "oauth1_consumer_secret", - "oauth1_token_key", - "oauth1_token_secret", - "oauth1_realm_parameter" - ], - "additionalProperties": false + "digest_username": { + "type": "string" + }, + "digest_password": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth2"] - }, - "oauth2_client_id": { - "type": "string" - }, - "oauth2_client_secret": { - "type": "string" - }, - "oauth2_callback_url": { - "type": "string" - }, - "oauth2_auth_url": { - "type": "string" - }, - "oauth2_access_token_url": { - "type": "string" - }, - "oauth2_scope": { "type": "string" }, - "oauth2_audience": { - "type": "string" - }, - "oauth2_share_user_credentials": { - "type": "boolean" - }, - "verify_session_url": { - "type": "string" - }, - "oauth2_access_token": { - "type": "string" - }, - "oauth2_refresh_token": { - "type": "string" - }, - "oauth2_id_token": { - "type": "string" - }, - "oauth2_access_token_lifespan_seconds": { - "type": "number", - "nullable": true - } + "required": [ + "authentication_type", + "digest_username", + "digest_password" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth1" + ] }, - "required": [ - "authentication_type", - "oauth2_client_id", - "oauth2_client_secret", - "oauth2_auth_url", - "oauth2_access_token_url" - ], - "additionalProperties": false + "oauth1_signature_method": { + "anyOf": [ + { + "type": "string", + "enum": [ + "HMAC-SHA1" + ] + }, + { + "type": "string", + "enum": [ + "HMAC-SHA256" + ] + }, + { + "type": "string", + "enum": [ + "PLAINTEXT" + ] + } + ] + }, + "oauth1_consumer_key": { + "type": "string" + }, + "oauth1_consumer_secret": { + "type": "string" + }, + "oauth1_token_key": { + "type": "string" + }, + "oauth1_token_secret": { + "type": "string" + }, + "oauth1_realm_parameter": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["none"] - } + "required": [ + "authentication_type", + "oauth1_signature_method", + "oauth1_consumer_key", + "oauth1_consumer_secret", + "oauth1_token_key", + "oauth1_token_secret", + "oauth1_realm_parameter" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "oauth2" + ] }, - "required": ["authentication_type"], - "additionalProperties": false - } - ], - "description": "Note that custom auth is not yet supported." - } - }, - "required": ["base_url"], - "additionalProperties": false, - "title": "Rest API Options" - } - ] + "oauth2_client_id": { + "type": "string" + }, + "oauth2_client_secret": { + "type": "string" + }, + "oauth2_callback_url": { + "type": "string" + }, + "oauth2_auth_url": { + "type": "string" + }, + "oauth2_access_token_url": { + "type": "string" + }, + "oauth2_scope": { + "type": "string" + }, + "oauth2_audience": { + "type": "string" + }, + "oauth2_share_user_credentials": { + "type": "boolean" + }, + "verify_session_url": { + "type": "string" + }, + "oauth2_access_token": { + "type": "string" + }, + "oauth2_refresh_token": { + "type": "string" + }, + "oauth2_id_token": { + "type": "string" + }, + "oauth2_access_token_lifespan_seconds": { + "type": "number", + "nullable": true + } + }, + "required": [ + "authentication_type", + "oauth2_client_id", + "oauth2_client_secret", + "oauth2_auth_url", + "oauth2_access_token_url" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "authentication_type": { + "type": "string", + "enum": [ + "none" + ] + } + }, + "required": [ + "authentication_type" + ], + "additionalProperties": false + } + ], + "description": "Note that custom auth is not yet supported." + } + }, + "required": [ + "base_url" + ], + "additionalProperties": false, + "title": "Rest API Options" + } + ] + }, + "created_at": { + "type": "string", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "example": "2019-02-24T18:28:18.790Z" + } + }, + "required": [ + "id", + "resource", + "environment", + "options", + "created_at", + "updated_at" + ], + "additionalProperties": false, + "description": "The updated resource configuration." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/environments": { + "get": { + "summary": "Get environments", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Gets a list of environments. The API token must have the \"Environment > Read\" scope.", + "tags": [ + "Environments" + ], + "responses": { + "200": { + "description": "All environments in the org.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], + "description": "Environment" + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ], + "description": "A list of environments." + } + } + } + } + } + }, + "post": { + "summary": "Create environment", + "description": "Available on Retool version 3.123.0+. Creates and returns an environment. The API token must have the \"Environments > Write\" scope.", + "tags": [ + "Environments" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "description": "The name of the environment." + }, + "description": { + "type": "string", + "description": "A description for the environment." + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "description": "The (hexadecimal) color of the environment.", + "example": "#FFFFFF" + } + }, + "required": [ + "name", + "color" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Returns the created environment.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], + "description": "The created environment" + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "409": { + "description": "Environment with the same properties already exists.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/environments/{environmentId}": { + "get": { + "summary": "Get an environment", + "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a single environment of the given uuid. The API token must have the \"Environment > Read\" scope.", + "tags": [ + "Environments" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid" + }, + "required": true, + "name": "environmentId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "The requested environment.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], + "description": "The requested environment" + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + }, + "patch": { + "summary": "Update an environment", + "description": "Available on Retool version 3.123.0+. Update an environment name, description, or color. The API token must have the \"Environments > Write\" scope.", + "tags": [ + "Environments" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid" + }, + "required": true, + "name": "environmentId", + "in": "path" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "replace" + ] + }, + "path": { + "type": "string" + }, + "value": { + "nullable": true, + "description": "A JSON value" + } + }, + "required": [ + "op", + "path" + ], + "title": "Replace Operation" + }, + "description": "A list of operations to apply to the environment. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." + } + }, + "required": [ + "operations" + ], + "additionalProperties": false, + "description": "The body of a request to update an environment." + } + } + } + }, + "responses": { + "200": { + "description": "Returns an updated environment", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "string", + "pattern": "^#[A-Fa-f0-9]{6}$", + "example": "#FFFFFF" + }, + "default": { + "type": "boolean" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "description", + "color", + "default", + "created_at", + "updated_at" + ], + "description": "The updated environment." + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + }, + "delete": { + "summary": "Delete environment", + "description": "Available on Retool version 3.123.0+. Deletes an environment by ID. The API token must have the \"Environments > Write\" scope.", + "tags": [ + "Environments" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid" + }, + "required": true, + "name": "environmentId", + "in": "path" + } + ], + "responses": { + "204": { + "description": "Environment deleted" + }, + "404": { + "description": "Environment not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/custom_component_libraries/{libraryId}": { + "get": { + "summary": "Get a single custom component libraries", + "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Gets a single custom component library. The API token must have the \"CustomComponent > Read\" scope.", + "tags": [ + "Custom Component Library" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid" + }, + "required": true, + "name": "libraryId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Returns a single custom component libraries.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "description": "How the library will be referred to in Toolscript, and other code based usages." + }, + "description": { + "type": "string", + "nullable": true + }, + "label": { + "type": "string", + "description": "How the library will be referred to in the Retool UI. Should be human readable." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "name", + "description", + "label", + "created_at", + "updated_at" + ], + "description": "Custom Component Library" + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "404": { + "description": "Custom component library does not exist" + } + } + } + }, + "/custom_component_libraries": { + "post": { + "summary": "Create a new custom component library", + "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Creates a new custom component library The API token must have the \"CustomComponent > Write\" scope.", + "tags": [ + "Custom Component Library" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Specifies a specific id to use for the library. Used for syncronizing libraries across Retool Instances." + }, + "name": { + "type": "string", + "description": "How the library will be referred to in Toolscript, and other code based usages." + }, + "description": { + "type": "string", + "nullable": true + }, + "label": { + "type": "string", + "description": "How the library will be referred to in the Retool UI. Should be human readable." + } + }, + "required": [ + "name", + "description", + "label" + ] + } + } + } + }, + "responses": { + "200": { + "description": "The newly created custom component library.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "description": "How the library will be referred to in Toolscript, and other code based usages." + }, + "description": { + "type": "string", + "nullable": true + }, + "label": { + "type": "string", + "description": "How the library will be referred to in the Retool UI. Should be human readable." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "name", + "description", + "label", + "created_at", + "updated_at" + ], + "description": "Custom Component Library" + } + }, + "required": [ + "success", + "data" + ], + "description": "The newly created Custom Component Library." + } + } + } + }, + "409": { + "description": "A library with the provided ID already exists" + } + } + }, + "get": { + "summary": "Get a list of all custom component libraries", + "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Gets a paginated list of all custom component libraries. The API token must have the \"CustomComponent > Read\" scope.", + "tags": [ + "Custom Component Library" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The token of the current page" + }, + "required": false, + "name": "next_token", + "in": "query", + "description": "The token of the current page" + } + ], + "responses": { + "200": { + "description": "Returns a paginated list of custom component libraries.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "description": "How the library will be referred to in Toolscript, and other code based usages." + }, + "description": { + "type": "string", + "nullable": true + }, + "label": { + "type": "string", + "description": "How the library will be referred to in the Retool UI. Should be human readable." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "name", + "description", + "label", + "created_at", + "updated_at" + ], + "description": "Custom Component Library" + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ], + "description": "A paginated list of custom component libraries." + } + } + } + } + } + } + }, + "/custom_component_libraries/{libraryId}/revisions": { + "post": { + "summary": "Create a new custom component library revision", + "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Creates a new version of a custom component library, the underlying files that describe the component. The API token must have the \"CustomComponent > Write\" scope.", + "tags": [ + "Custom Component Library" + ], + "parameters": [ + { + "schema": { + "type": "string" + }, + "required": true, + "name": "libraryId", + "in": "path" + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Specifies a specific id to use for the library. Used for syncronizing libraries across Retool Instances." + }, + "version_bump": { + "type": "string", + "enum": [ + "minor", + "major", + "dev", + "specify_version" + ] + }, + "version": { + "type": "string", + "description": "A specific version tag to use. Also specify version_bump as 'specify_version'." + }, + "files": { + "type": "string", + "format": "binary" + } + }, + "required": [ + "version_bump", + "files" + ] + } + } + } + }, + "responses": { + "200": { + "description": "The newly created custom component library revision.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "version": { + "type": "string" + }, + "custom_component_library_id": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "version", + "custom_component_library_id", + "created_at", + "updated_at" + ], + "description": "Custom Component Library Revision" + } + }, + "required": [ + "success", + "data" + ], + "description": "The newly created Custom Component Library Revision." + } + } + } + }, + "409": { + "description": "A revision with the provided ID already exists" + } + } + }, + "get": { + "summary": "Gets a list of all the revisions of a custom component library", + "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Gets a list of all the revisions of a custom component library. The API token must have the \"CustomComponent > Read\" scope.", + "tags": [ + "Custom Component Library" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid" + }, + "required": true, + "name": "libraryId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Returns a list of all revisions of a custom component library.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "version": { + "type": "string" + }, + "custom_component_library_id": { + "type": "string" }, "created_at": { "type": "string", - "example": "2019-02-08T11:45:48.899Z" + "format": "date-time" }, "updated_at": { "type": "string", - "example": "2019-02-24T18:28:18.790Z" + "format": "date-time" } }, "required": [ "id", - "resource", - "environment", - "options", + "version", + "custom_component_library_id", "created_at", "updated_at" ], - "additionalProperties": false, - "description": "A list of resource configurations." + "description": "Custom Component Library Revision" }, "description": "An array of requested items" }, @@ -13704,701 +27264,1368 @@ } } } + }, + "404": { + "description": "Custom component library does not exist" } } } }, - "/resource_configurations/{configurationId}": { + "/custom_component_libraries/{libraryId}/revisions/{revisionId}/files": { "get": { - "summary": "Get resource configuration by id", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a specific resource configuration. The API token must have the \"Resources > Read\" scope.", - "tags": ["Resource configurations"], + "summary": "Gets all files associated with a custom component library revision.", + "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Gets all files associated with a custom component library revision. The API token must have the \"CustomComponent > Read\" scope.", + "tags": [ + "Custom Component Library" + ], "parameters": [ { "schema": { "type": "string", - "format": "uuid", - "description": "The resource configuration id." + "format": "uuid" }, "required": true, - "name": "configurationId", + "name": "libraryId", + "in": "path" + }, + { + "schema": { + "type": "string", + "format": "uuid" + }, + "required": true, + "name": "revisionId", "in": "path" } ], "responses": { "200": { - "description": "The requested resource configuration.", + "description": "Returns a list of all files associated with a custom component library revision.", "content": { "application/json": { "schema": { "type": "object", "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The uuid for the resource configuration." + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" }, - "resource": { - "type": "object", - "properties": { - "id": { - "anyOf": [ - { "type": "string", "format": "uuid" }, - { "type": "string", "format": "uuid" }, - { "type": "string", "enum": ["retool_db"] }, - { "type": "string", "enum": ["retool_email"] }, - { "type": "string", "enum": ["retool_storage"] }, - { "type": "string", "enum": ["retool_ai"] } - ], - "description": "The uuid for the resource." - }, - "type": { - "type": "string", - "enum": [ - "airflow", - "alloydb", - "asana", - "athena", - "basecamp", - "bigid", - "bigquery", - "cassandra", - "circleci", - "closeio", - "cosmosdb", - "couchdb", - "databricks", - "datadog", - "datastore", - "denodo", - "dynamodb", - "elasticsearch", - "firebase", - "front", - "gcs", - "github", - "googleAnalytics", - "googleMaps", - "googleSearchConsole", - "googlesheets", - "graphql", - "grpc", - "hubspot", - "jdbc", - "jira", - "lambda", - "launchdarkly", - "microsoftTeams", - "mongodb", - "mssql", - "mysql", - "notion", - "onesignal", - "openAI", - "openapi", - "oracledb", - "postgresql", - "presto", - "redis", - "redshift", - "restapi", - "rethinkdb", - "rockset", - "retoolEmail", - "retoolAI", - "retoolDb", - "retoolStorage", - "s3", - "salesforce", - "saphana", - "sendgrid", - "shell", - "slack", - "slackopenapi", - "smtp", - "snowflake", - "stripe", - "twilio", - "vertica" - ], - "description": "The type of resource." - }, - "display_name": { "type": "string", "minLength": 1 }, - "created_at": { - "type": "string", - "example": "2019-02-08T11:45:48.899Z" + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "filepath": { + "type": "string" + }, + "file_contents": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } }, - "updated_at": { - "type": "string", - "example": "2019-02-24T18:28:18.790Z" - } + "required": [ + "filepath", + "file_contents", + "created_at", + "updated_at" + ], + "description": "Custom Component Library Revision" }, - "required": [ - "id", - "type", - "display_name", - "created_at", - "updated_at" - ], - "additionalProperties": false, - "description": "Resource" + "description": "An array of requested items" }, - "environment": { - "type": "object", - "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { "type": "string" }, - "description": { "type": "string", "nullable": true }, - "color": { "type": "string" }, - "default": { "type": "boolean" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } - }, - "required": [ - "id", - "name", - "description", - "color", - "default", - "created_at", - "updated_at" + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ] + } + } + } + } + } + } + }, + "/configuration_variables": { + "get": { + "summary": "List configuration variables and their values", + "description": "Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Read\" scope.", + "tags": [ + "Configuration Variables" + ], + "responses": { + "200": { + "description": "List of configuration variables and their values.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true ], - "description": "Environment" + "description": "API request succeeded" }, - "options": { - "anyOf": [ - { - "type": "object", - "properties": { - "database_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "client_key": { - "type": "string", - "nullable": true - }, - "client_cert": { - "type": "string", - "nullable": true - }, - "ca_cert": { - "type": "string", - "nullable": true - } - }, - "additionalProperties": false - }, - "ssh_tunnel_options": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "host": { "type": "string" }, - "port": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "private_key_name": { "type": "string" } - }, - "required": ["enabled", "host", "port"], - "additionalProperties": false - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "required": ["host", "port"], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "connection_string": { "type": "string" }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "additionalProperties": false - } - ] - } + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the configuration variable" }, - "required": ["database_options"], - "additionalProperties": false, - "title": "Postgres Options" - }, - { - "type": "object", - "properties": { - "database_options": { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "client_key": { - "type": "string", - "nullable": true - }, - "client_cert": { - "type": "string", - "nullable": true - }, - "ca_cert": { - "type": "string", - "nullable": true - } - }, - "additionalProperties": false - }, - "ssh_tunnel_options": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "host": { "type": "string" }, - "port": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "private_key_name": { "type": "string" } - }, - "required": ["enabled", "host", "port"], - "additionalProperties": false - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - }, - "use_dynamic_database_names": { - "type": "boolean", - "description": "Enable this to allow the Database Name to be overridden by a dynamically generated value. This allows using Retool with a database that has been sharded into several different databases." - }, - "use_dynamic_database_hosts": { - "type": "boolean", - "description": "Enable this to allow the Database Host to be overridden by a dynamically generated value. This allows using Retool with several different databases." - }, - "convert_mysql_dates_to_javascript": { - "type": "boolean", - "default": true, - "description": "This allows you to turn your MySQL date strings into Javascript Date objects." - } - }, - "required": ["host", "port"], - "additionalProperties": false - } + "name": { + "type": "string", + "description": "The name of the configuration variable" }, - "required": ["database_options"], - "additionalProperties": false, - "title": "MySQL Options" - }, - { - "type": "object", - "properties": { - "database_options": { - "type": "object", - "properties": { - "host": { "type": "string" }, - "port": { "type": "string" }, - "name": { "type": "string" }, - "username": { "type": "string" }, - "password": { "type": "string" }, - "ssl_settings": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" } - }, - "additionalProperties": false - }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "required": ["host", "port"], - "additionalProperties": false - } + "description": { + "type": "string", + "description": "The description of the configuration variable" }, - "required": ["database_options"], - "additionalProperties": false, - "title": "Redshift Options" - }, - { - "type": "object", - "properties": { - "account_identifier": { "type": "string" }, - "database_options": { + "secret": { + "type": "boolean", + "description": "Whether the configuration variable is a secret" + }, + "values": { + "type": "array", + "items": { "type": "object", "properties": { - "name": { "type": "string" }, - "schema": { "type": "string" }, - "warehouse": { "type": "string" }, - "disable_converting_queries_to_prepared_statements": { - "type": "boolean", - "description": "This allows you to use Javascript to dynamically generate SQL but also turns off SQL injection protection." - }, - "show_write_gui_only": { - "type": "boolean", - "description": "This allows you to enable writing via only the restrictive GUI query editor." - } - }, - "required": ["name"], - "additionalProperties": false - }, - "user_role": { "type": "string" }, - "authentication_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["snowflake"] - }, - "username": { "type": "string" }, - "password": { "type": "string" } - }, - "required": [ - "authentication_type", - "username", - "password" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["snowflake_jwt"] - }, - "username": { "type": "string" }, - "private_key": { "type": "string" }, - "private_key_passphrase": { - "type": "string" - } - }, - "required": [ - "authentication_type", - "username", - "private_key" - ], - "additionalProperties": false + "environment_id": { + "type": "string", + "description": "The ID of the environment" }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth2"] - }, - "oauth2_client_id": { "type": "string" }, - "oauth2_client_secret": { - "type": "string" - }, - "oauth2_callback_url": { "type": "string" } - }, - "required": [ - "authentication_type", - "oauth2_client_id", - "oauth2_client_secret" - ], - "additionalProperties": false + "value": { + "type": "string", + "description": "The value of the configuration variable" } + }, + "required": [ + "environment_id", + "value" ] } - }, - "required": [ - "account_identifier", - "database_options", - "authentication_options" - ], - "additionalProperties": false, - "title": "Snowflake Options" + } }, - { - "type": "object", - "properties": { - "base_url": { - "type": "string", - "description": "Use the absolute URL (e.g https://example.com)." - }, - "url_parameters": { - "type": "array", - "items": { - "type": "array", - "items": { "type": "string" } + "required": [ + "id", + "name", + "secret", + "values" + ] + }, + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" + } + }, + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ] + } + } + } + } + } + }, + "post": { + "summary": "Create a configuration variable", + "description": "Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Write\" scope.", + "tags": [ + "Configuration Variables" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the configuration variable" + }, + "description": { + "type": "string", + "description": "The description of the configuration variable" + }, + "secret": { + "type": "boolean", + "description": "Whether the configuration variable is a secret" + }, + "values": { + "type": "array", + "items": { + "type": "object", + "properties": { + "environment_id": { + "type": "string", + "description": "The ID of the environment" + }, + "value": { + "type": "string", + "description": "The value of the configuration variable" + } + }, + "required": [ + "environment_id", + "value" + ] + } + } + }, + "required": [ + "name", + "secret", + "values" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Created configuration variable.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the configuration variable" + }, + "name": { + "type": "string", + "description": "The name of the configuration variable" + }, + "description": { + "type": "string", + "description": "The description of the configuration variable" + }, + "secret": { + "type": "boolean", + "description": "Whether the configuration variable is a secret" + }, + "values": { + "type": "array", + "items": { + "type": "object", + "properties": { + "environment_id": { + "type": "string", + "description": "The ID of the environment" + }, + "value": { + "type": "string", + "description": "The value of the configuration variable" } }, - "headers": { - "type": "array", - "items": { - "type": "array", - "items": { "type": "string" } + "required": [ + "environment_id", + "value" + ] + } + } + }, + "required": [ + "id", + "name", + "secret", + "values" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + } + }, + "/configuration_variables/{id}": { + "get": { + "summary": "Retreive a single configuration variable and its values", + "description": "Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Read\" scope.", + "tags": [ + "Configuration Variables" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The ID of the configuration variable" + }, + "required": true, + "name": "id", + "in": "path", + "description": "The ID of the configuration variable" + } + ], + "responses": { + "200": { + "description": "A configuration variable and its values.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the configuration variable" + }, + "name": { + "type": "string", + "description": "The name of the configuration variable" + }, + "description": { + "type": "string", + "description": "The description of the configuration variable" + }, + "secret": { + "type": "boolean", + "description": "Whether the configuration variable is a secret" + }, + "values": { + "type": "array", + "items": { + "type": "object", + "properties": { + "environment_id": { + "type": "string", + "description": "The ID of the environment" + }, + "value": { + "type": "string", + "description": "The value of the configuration variable" } }, - "extra_body_values": { - "type": "array", - "items": { - "type": "array", - "items": { "type": "string" } + "required": [ + "environment_id", + "value" + ] + } + } + }, + "required": [ + "id", + "name", + "secret", + "values" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + }, + "put": { + "summary": "Update a configuration variable", + "description": "Update a configuration variable and its values. Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Write\" scope.", + "tags": [ + "Configuration Variables" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The ID of the configuration variable" + }, + "required": true, + "name": "id", + "in": "path", + "description": "The ID of the configuration variable" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the configuration variable" + }, + "description": { + "type": "string", + "description": "The description of the configuration variable" + }, + "secret": { + "type": "boolean", + "description": "Whether the configuration variable is a secret" + }, + "values": { + "type": "array", + "items": { + "type": "object", + "properties": { + "environment_id": { + "type": "string", + "description": "The ID of the environment" + }, + "value": { + "type": "string", + "description": "The value of the configuration variable" + } + }, + "required": [ + "environment_id", + "value" + ] + } + } + }, + "required": [ + "name", + "secret", + "values" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Created configuration variable.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the configuration variable" + }, + "name": { + "type": "string", + "description": "The name of the configuration variable" + }, + "description": { + "type": "string", + "description": "The description of the configuration variable" + }, + "secret": { + "type": "boolean", + "description": "Whether the configuration variable is a secret" + }, + "values": { + "type": "array", + "items": { + "type": "object", + "properties": { + "environment_id": { + "type": "string", + "description": "The ID of the environment" }, - "description": "Extra body values are not passed for GET or HEAD requests." - }, - "cookies_to_forward": { - "type": "array", - "items": { "type": "string" }, - "description": "You can use the pattern COOKIE_your_cookie_name in the Headers section in order to implement the double-cookie submit pattern." + "value": { + "type": "string", + "description": "The value of the configuration variable" + } }, - "forward_all_cookies": { - "type": "boolean", - "description": "This is useful if you have dynamic cookie names." + "required": [ + "environment_id", + "value" + ] + } + } + }, + "required": [ + "id", + "name", + "secret", + "values" + ] + } + }, + "required": [ + "success", + "data" + ] + } + } + } + } + } + }, + "delete": { + "summary": "Delete configuration variable", + "description": "Deletes a configuration variable and its values. Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Write\" scope.", + "tags": [ + "Configuration Variables" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The ID of the configuration variable" + }, + "required": true, + "name": "id", + "in": "path", + "description": "The ID of the configuration variable" + } + ], + "responses": { + "204": { + "description": "Group deleted" + } + } + } + }, + "/observability/config": { + "post": { + "summary": "Create a new observability provider configuration", + "description": "Create observability configuration for the organization and returns the created configuration. This will result in an error if configuration is already set. The API token must have the \"Observability > Write\" scope.", + "tags": [ + "Observability" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "config": { + "oneOf": [ + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Sentry" + ], + "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." + }, + "dsn": { + "type": "string", + "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." + }, + "ca_certs": { + "type": "array", + "items": { + "type": "string" }, - "authentication_options": { - "anyOf": [ - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["auth0"] - }, - "auth0_domain": { "type": "string" }, - "auth0_client_id": { "type": "string" }, - "auth0_client_secret": { "type": "string" }, - "auth0_custom_audience": { - "type": "string" - } - }, - "required": [ - "authentication_type", - "auth0_domain", - "auth0_client_id", - "auth0_client_secret", - "auth0_custom_audience" + "description": "This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient" + } + }, + "required": [ + "provider", + "dsn" + ] + }, + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Datadog" + ], + "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." + }, + "api_key": { + "type": "string", + "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." + }, + "site": { + "type": "string", + "enum": [ + "US1", + "US3", + "US5", + "EU1", + "US1-FED", + "AP1" + ], + "default": "US1", + "description": "This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com." + } + }, + "required": [ + "provider", + "api_key", + "site" + ] + } + ], + "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." + }, + "enabled": { + "type": "boolean", + "description": "When enabled, use this provider for apps observability monitoring." + } + }, + "required": [ + "config", + "enabled" + ], + "additionalProperties": false, + "description": "Shape of Post Observability Config Request" + } + } + } + }, + "responses": { + "200": { + "description": "Observability provider configuration created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the configuration." + }, + "config": { + "oneOf": [ + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Sentry" ], - "additionalProperties": false + "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["aws4"] - }, - "amazon_aws_region": { "type": "string" }, - "amazon_service_name": { "type": "string" }, - "amazon_access_key_id": { - "type": "string" - }, - "amazon_secret_access_key": { - "type": "string" - }, - "auth_with_default_credential_provider_chain": { - "type": "boolean" - }, - "enable_awsv4_authentication_via_headers": { - "type": "boolean" - } - }, - "required": [ - "authentication_type", - "amazon_aws_region", - "amazon_service_name", - "amazon_access_key_id", - "amazon_secret_access_key" - ], - "additionalProperties": false + "dsn": { + "type": "string", + "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["basic"] - }, - "basic_username": { "type": "string" }, - "basic_password": { "type": "string" } + "ca_certs": { + "type": "array", + "items": { + "type": "string" }, - "required": [ - "authentication_type", - "basic_username" + "description": "This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient" + } + }, + "required": [ + "provider", + "dsn" + ] + }, + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Datadog" ], - "additionalProperties": false + "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["digest"] - }, - "digest_username": { "type": "string" }, - "digest_password": { "type": "string" } + "api_key": { + "type": "string", + "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." + }, + "site": { + "type": "string", + "enum": [ + "US1", + "US3", + "US5", + "EU1", + "US1-FED", + "AP1" + ], + "default": "US1", + "description": "This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com." + } + }, + "required": [ + "provider", + "api_key", + "site" + ] + } + ], + "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." + }, + "enabled": { + "type": "boolean", + "description": "When enabled, use this provider for apps observability monitoring." + } + }, + "required": [ + "id", + "config", + "enabled" + ], + "additionalProperties": false, + "description": "Shape of Post Observability Config Response" + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "400": { + "description": "Bad request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Incorrect scope.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "422": { + "description": "Configuration already exists.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + }, + "get": { + "summary": "Get observability provider configurations", + "description": "Get observability configurations for the organization. The API token must have the \"Observability > Read\" scope.", + "tags": [ + "Observability" + ], + "responses": { + "200": { + "description": "Observability provider configuration retrieved.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the configuration." + }, + "config": { + "oneOf": [ + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Sentry" + ], + "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." }, - "required": [ - "authentication_type", - "digest_username", - "digest_password" - ], - "additionalProperties": false - }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth1"] - }, - "oauth1_signature_method": { - "anyOf": [ - { - "type": "string", - "enum": ["HMAC-SHA1"] - }, - { - "type": "string", - "enum": ["HMAC-SHA256"] - }, - { - "type": "string", - "enum": ["PLAINTEXT"] - } - ] - }, - "oauth1_consumer_key": { "type": "string" }, - "oauth1_consumer_secret": { + "dsn": { + "type": "string", + "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." + }, + "ca_certs": { + "type": "array", + "items": { "type": "string" }, - "oauth1_token_key": { "type": "string" }, - "oauth1_token_secret": { "type": "string" }, - "oauth1_realm_parameter": { - "type": "string" - } + "description": "This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient" + } + }, + "required": [ + "provider", + "dsn" + ] + }, + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Datadog" + ], + "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." }, - "required": [ - "authentication_type", - "oauth1_signature_method", - "oauth1_consumer_key", - "oauth1_consumer_secret", - "oauth1_token_key", - "oauth1_token_secret", - "oauth1_realm_parameter" + "api_key": { + "type": "string", + "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." + }, + "site": { + "type": "string", + "enum": [ + "US1", + "US3", + "US5", + "EU1", + "US1-FED", + "AP1" + ], + "default": "US1", + "description": "This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com." + } + }, + "required": [ + "provider", + "api_key", + "site" + ] + } + ], + "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." + }, + "enabled": { + "type": "boolean", + "description": "When enabled, use this provider for apps observability monitoring." + } + }, + "required": [ + "id", + "config", + "enabled" + ], + "additionalProperties": false, + "description": "Shape of Get Observability Config Response" + } + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "403": { + "description": "Incorrect scope.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "404": { + "description": "Configuration not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + } + } + } + }, + "/observability/config/{configId}": { + "put": { + "summary": "Update an observability provider configuration", + "description": "Update observability configuration for the organization and returns the updated configuration. This will result in an error if no existing configuration found. The API token must have the \"Observability > Write\" scope.", + "tags": [ + "Observability" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The id of the observability configuration to update." + }, + "required": true, + "name": "configId", + "in": "path", + "description": "The id of the observability configuration to update." + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "config": { + "oneOf": [ + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Sentry" + ], + "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." + }, + "dsn": { + "type": "string", + "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." + }, + "ca_certs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient" + } + }, + "required": [ + "provider", + "dsn" + ] + }, + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Datadog" + ], + "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." + }, + "api_key": { + "type": "string", + "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." + }, + "site": { + "type": "string", + "enum": [ + "US1", + "US3", + "US5", + "EU1", + "US1-FED", + "AP1" + ], + "default": "US1", + "description": "This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com." + } + }, + "required": [ + "provider", + "api_key", + "site" + ] + } + ], + "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." + }, + "enabled": { + "type": "boolean", + "description": "When enabled, use this provider for apps observability monitoring." + } + }, + "additionalProperties": false, + "description": "Shape of Put Observability Config Request" + } + } + } + }, + "responses": { + "200": { + "description": "Observability provider configuration updated.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "API request succeeded" + }, + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The id of the configuration." + }, + "config": { + "oneOf": [ + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Sentry" ], - "additionalProperties": false + "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["oauth2"] - }, - "oauth2_client_id": { "type": "string" }, - "oauth2_client_secret": { - "type": "string" - }, - "oauth2_callback_url": { "type": "string" }, - "oauth2_auth_url": { "type": "string" }, - "oauth2_access_token_url": { - "type": "string" - }, - "oauth2_scope": { "type": "string" }, - "oauth2_audience": { "type": "string" }, - "oauth2_share_user_credentials": { - "type": "boolean" - }, - "verify_session_url": { "type": "string" }, - "oauth2_access_token": { "type": "string" }, - "oauth2_refresh_token": { - "type": "string" - }, - "oauth2_id_token": { "type": "string" }, - "oauth2_access_token_lifespan_seconds": { - "type": "number", - "nullable": true - } + "dsn": { + "type": "string", + "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." + }, + "ca_certs": { + "type": "array", + "items": { + "type": "string" }, - "required": [ - "authentication_type", - "oauth2_client_id", - "oauth2_client_secret", - "oauth2_auth_url", - "oauth2_access_token_url" + "description": "This is an optional array of Certificate Authority (CA) certificates. These are passed as `caCerts` to Sentry's NodeClient" + } + }, + "required": [ + "provider", + "dsn" + ] + }, + { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "Datadog" ], - "additionalProperties": false + "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." }, - { - "type": "object", - "properties": { - "authentication_type": { - "type": "string", - "enum": ["none"] - } - }, - "required": ["authentication_type"], - "additionalProperties": false + "api_key": { + "type": "string", + "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." + }, + "site": { + "type": "string", + "enum": [ + "US1", + "US3", + "US5", + "EU1", + "US1-FED", + "AP1" + ], + "default": "US1", + "description": "This is a enumerated field that represents the Datadog site which the organization wants to send logs to. The default value is US1 which corresponds to the default website datadoghq.com." } - ], - "description": "Note that custom auth is not yet supported." + }, + "required": [ + "provider", + "api_key", + "site" + ] } - }, - "required": ["base_url"], - "additionalProperties": false, - "title": "Rest API Options" + ], + "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." + }, + "enabled": { + "type": "boolean", + "description": "When enabled, use this provider for apps observability monitoring." } - ] + }, + "required": [ + "id", + "config", + "enabled" + ], + "additionalProperties": false, + "description": "Shape of Put Observability Config Response" + } + }, + "required": [ + "success", + "data" + ] + } + } + } + }, + "400": { + "description": "Bad request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" }, - "created_at": { + "message": { "type": "string", - "example": "2019-02-08T11:45:48.899Z" + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "403": { + "description": "Incorrect scope.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" }, - "updated_at": { + "message": { "type": "string", - "example": "2019-02-24T18:28:18.790Z" + "description": "Error message" } }, "required": [ - "id", - "resource", - "environment", - "options", - "created_at", - "updated_at" + "success", + "message" ], - "additionalProperties": false, - "description": "Resource Configuration" + "description": "API error response" + } + } + } + }, + "422": { + "description": "No configuration exists.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" } } } @@ -14406,34 +28633,30 @@ } }, "delete": { - "summary": "Delete resource configuration", - "description": "Available from API version 2.4.0+ and onprem version 3.34.0+. Deletes a resource configuration with the given id. The API token must have the \"Resources > Write\" scope.", - "tags": ["Resource configurations"], + "summary": "Delete an observability provider configuration", + "description": "Delete observability configuration for the organization. The API token must have the \"Observability > Write\" scope.", + "tags": [ + "Observability" + ], "parameters": [ { "schema": { "type": "string", "format": "uuid", - "description": "The resource configuration id." + "description": "The id of the observability configuration to delete." }, "required": true, - "name": "configurationId", - "in": "path" + "name": "configId", + "in": "path", + "description": "The id of the observability configuration to delete." } ], "responses": { - "204": { "description": "Resource configuration deleted" } - } - } - }, - "/environments": { - "get": { - "summary": "Get organization environments", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Gets a list of environments. The API token must have the \"Environment > Read\" scope.", - "tags": ["Environment"], - "responses": { - "200": { - "description": "All environments in the org.", + "204": { + "description": "Observability provider configuration deleted." + }, + "403": { + "description": "Incorrect scope.", "content": { "application/json": { "schema": { @@ -14441,57 +28664,49 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { "type": "string" }, - "description": { "type": "string", "nullable": true }, - "color": { "type": "string" }, - "default": { "type": "boolean" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } - }, - "required": [ - "id", - "name", - "description", - "color", - "default", - "created_at", - "updated_at" - ], - "description": "Environment" - }, - "description": "An array of requested items" + "enum": [ + false + ], + "description": "API request failed" }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" + } + } + } + }, + "422": { + "description": "Configuration not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" }, - "next_token": { + "message": { "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" + "description": "Error message" } }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" + "message" ], - "description": "A list of environments." + "description": "API error response" } } } @@ -14499,22 +28714,41 @@ } } }, - "/environments/{environmentId}": { - "get": { - "summary": "Get an environment by id", - "description": "Available from API version 2.4.0+ and onprem version 3.28.0+. Returns a single environment of the given uuid. The API token must have the \"Environment > Read\" scope.", - "tags": ["Environment"], + "/observability/provider/{provider}/test": { + "post": { + "summary": "Send a test error event to the observability provider", + "description": "Send a test error event to the observability provider. The API token must have the \"Observability > Read\" scope.", + "tags": [ + "Observability" + ], "parameters": [ { - "schema": { "type": "string", "format": "uuid" }, + "schema": { + "anyOf": [ + { + "type": "string", + "enum": [ + "Sentry" + ] + }, + { + "type": "string", + "enum": [ + "Datadog" + ] + } + ], + "description": "The observability provider name, either \"Sentry\" or \"Datadog\"" + }, "required": true, - "name": "environmentId", - "in": "path" + "name": "provider", + "in": "path", + "description": "The observability provider name, either \"Sentry\" or \"Datadog\"" } ], "responses": { "200": { - "description": "The requested environment.", + "description": "Test event sent.", "content": { "application/json": { "schema": { @@ -14522,56 +28756,62 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "object", - "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { "type": "string" }, - "description": { "type": "string", "nullable": true }, - "color": { "type": "string" }, - "default": { "type": "boolean" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } - }, - "required": [ - "id", - "name", - "description", - "color", - "default", - "created_at", - "updated_at" + "oneOf": [ + { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "Send test error failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ] + }, + { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ], + "description": "Send test error succeeded" + } + }, + "required": [ + "success" + ] + } ], - "description": "The requested environment" + "description": "Send test error response" } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } - } - } - } - }, - "/custom_component_libraries/{libraryId}": { - "get": { - "summary": "Get a single custom component libraries", - "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Gets a single custom component library. The API token must have the \"CustomComponent > Read\" scope.", - "tags": ["CustomComponentLibrary"], - "parameters": [ - { - "schema": { "type": "string", "format": "uuid" }, - "required": true, - "name": "libraryId", - "in": "path" - } - ], - "responses": { - "200": { - "description": "Returns a single custom component libraries.", + }, + "403": { + "description": "Incorrect scope.", "content": { "application/json": { "schema": { @@ -14579,85 +28819,27 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { - "type": "string", - "description": "How the library will be referred to in Toolscript, and other code based usages." - }, - "description": { "type": "string", "nullable": true }, - "label": { - "type": "string", - "description": "How the library will be referred to in the Retool UI. Should be human readable." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "name", - "description", - "label", - "created_at", - "updated_at" + "enum": [ + false ], - "description": "Custom Component Library" + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" } }, - "required": ["success", "data"] + "required": [ + "success", + "message" + ], + "description": "API error response" } } } }, - "404": { "description": "Custom component library does not exist" } - } - } - }, - "/custom_component_libraries": { - "post": { - "summary": "Create a new custom component library", - "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Creates a new custom component library The API token must have the \"CustomComponent > Write\" scope.", - "tags": ["CustomComponentLibrary"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Specifies a specific id to use for the library. Used for syncronizing libraries across Retool Instances." - }, - "name": { - "type": "string", - "description": "How the library will be referred to in Toolscript, and other code based usages." - }, - "description": { "type": "string", "nullable": true }, - "label": { - "type": "string", - "description": "How the library will be referred to in the Retool UI. Should be human readable." - } - }, - "required": ["name", "description", "label"] - } - } - } - }, - "responses": { - "200": { - "description": "The newly created custom component library.", + "422": { + "description": "Provider is not configured correctly.", "content": { "application/json": { "schema": { @@ -14665,71 +28847,38 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { - "type": "string", - "description": "How the library will be referred to in Toolscript, and other code based usages." - }, - "description": { "type": "string", "nullable": true }, - "label": { - "type": "string", - "description": "How the library will be referred to in the Retool UI. Should be human readable." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "name", - "description", - "label", - "created_at", - "updated_at" + "enum": [ + false ], - "description": "Custom Component Library" + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" } }, - "required": ["success", "data"], - "description": "The newly created Custom Component Library." + "required": [ + "success", + "message" + ], + "description": "API error response" } } } - }, - "409": { - "description": "A library with the provided ID already exists" } } - }, + } + }, + "/usage/organizations": { "get": { - "summary": "Get a list of all custom component libraries", - "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Gets a paginated list of all custom component libraries. The API token must have the \"CustomComponent > Read\" scope.", - "tags": ["CustomComponentLibrary"], - "parameters": [ - { - "schema": { - "type": "string", - "description": "The token of the current page" - }, - "required": false, - "name": "next_token", - "in": "query" - } + "summary": "List organizations", + "description": "Returns a list of organizations that the token has scope to access. The API token must have the 'usage' scope. 'usage:organization' scope returns just the organization, 'usage:spaces' returns all the spaces under the admin organization, 'usage:license' returns all the organizations that use that license key.", + "tags": [ + "Usage" ], "responses": { "200": { - "description": "Returns a paginated list of custom component libraries.", + "description": "List of organizations", "content": { "application/json": { "schema": { @@ -14737,7 +28886,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -14745,34 +28896,27 @@ "items": { "type": "object", "properties": { - "id": { "type": "string", "format": "uuid" }, - "name": { - "type": "string", - "description": "How the library will be referred to in Toolscript, and other code based usages." - }, - "description": { "type": "string", "nullable": true }, - "label": { + "org_id": { "type": "string", - "description": "How the library will be referred to in the Retool UI. Should be human readable." + "description": "The id of the organization" }, - "created_at": { + "host": { "type": "string", - "format": "date-time" + "description": "The host of the organization" }, - "updated_at": { + "last_active": { "type": "string", - "format": "date-time" + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" } }, "required": [ - "id", - "name", - "description", - "label", - "created_at", - "updated_at" + "org_id", + "host", + "last_active" ], - "description": "Custom Component Library" + "additionalProperties": false, + "description": "An organization in the context of usage analytics" }, "description": "An array of requested items" }, @@ -14797,7 +28941,7 @@ "next_token", "has_more" ], - "description": "A paginated list of custom component libraries." + "description": "A list of organizations in this deployment." } } } @@ -14805,48 +28949,51 @@ } } }, - "/custom_component_libraries/{libraryId}/revisions": { - "post": { - "summary": "Create a new custom component library revision", - "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Creates a new version of a custom component library, the underlying files that describe the component. The API token must have the \"CustomComponent > Write\" scope.", - "tags": ["CustomComponentLibrary"], + "/usage": { + "get": { + "summary": "The usage summary for the selected organizations", + "description": "The usage summary for the selected organizations. Contains information about usage like page saves, page views, active users, and the growth in those fields in the specified time range. The API token must have the 'usage' scope. ", + "tags": [ + "Usage" + ], "parameters": [ { - "schema": { "type": "string" }, + "schema": { + "type": "string", + "description": "A comma separated list of org ids to retrieve usage data for", + "example": "org_id1,org_id2" + }, + "required": false, + "name": "org_ids", + "in": "query", + "description": "A comma separated list of org ids to retrieve usage data for" + }, + { + "schema": { + "type": "string", + "description": "The start date of the date range", + "example": "2024-01-15" + }, "required": true, - "name": "libraryId", - "in": "path" + "name": "start_date", + "in": "query", + "description": "The start date of the date range" + }, + { + "schema": { + "type": "string", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", + "example": "2024-01-30" + }, + "required": false, + "name": "end_date", + "in": "query", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used." } ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Specifies a specific id to use for the library. Used for syncronizing libraries across Retool Instances." - }, - "version_bump": { - "type": "string", - "enum": ["minor", "major", "dev", "specify_version"] - }, - "version": { - "type": "string", - "description": "A specific version tag to use. Also specify version_bump as 'specify_version'." - }, - "files": { "type": "string", "format": "binary" } - }, - "required": ["version_bump", "files"] - } - } - } - }, "responses": { "200": { - "description": "The newly created custom component library revision.", + "description": "The usage summary for the selected organizations", "content": { "application/json": { "schema": { @@ -14854,60 +29001,142 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { "type": "string", "format": "uuid" }, - "version": { "type": "string" }, - "custom_component_library_id": { "type": "string" }, - "created_at": { - "type": "string", - "format": "date-time" + "count_current_page_saves": { + "type": "number", + "description": "The number of page saves for all the organizations within the date range" }, - "updated_at": { - "type": "string", - "format": "date-time" + "count_current_page_views": { + "type": "number", + "description": "The number of page views for all the organizations within the date range" + }, + "count_current_users": { + "type": "number", + "description": "The total number of unique users who have performed any tracked activity in all the organizations within the date range" + }, + "count_T30_users": { + "type": "number", + "description": "The number of unique users who have been active over the trailing 30 days from the end date provided" + }, + "percent_growth_page_saves": { + "type": "number", + "description": "The percentage growth in page saves compared to the previous cycle of the same length as the provided date range" + }, + "percent_growth_page_views": { + "type": "number", + "description": "The percentage growth in page views compared to the previous cycle of the same length as the provided date range" + }, + "percent_growth_users": { + "type": "number", + "description": "The percentage growth in unique users compared to the previous cycle of the same length as the provided date range" + }, + "percent_growth_T30_users": { + "type": "number", + "description": "The percentage growth in T30 users (trailing 30 days users) compared to the previous cycle of the same length as the provided date range" + }, + "daily_T30_usage": { + "type": "array", + "items": { + "type": "object", + "properties": { + "day": { + "type": "string" + }, + "maa": { + "type": "number", + "description": "The number of distinct applications that were active on the given day" + }, + "mau": { + "type": "number", + "description": "The number of distinct users who were active on the given day" + } + }, + "required": [ + "day", + "maa", + "mau" + ] + } } }, "required": [ - "id", - "version", - "custom_component_library_id", - "created_at", - "updated_at" + "count_current_page_saves", + "count_current_page_views", + "count_current_users", + "count_T30_users", + "percent_growth_page_saves", + "percent_growth_page_views", + "percent_growth_users", + "percent_growth_T30_users", + "daily_T30_usage" ], - "description": "Custom Component Library Revision" + "additionalProperties": false } }, - "required": ["success", "data"], - "description": "The newly created Custom Component Library Revision." + "required": [ + "success", + "data" + ], + "description": "The usage information for the organizations" } } } - }, - "409": { - "description": "A revision with the provided ID already exists" } } - }, + } + }, + "/usage/app_summary": { "get": { - "summary": "Gets a list of all the revisions of a custom component library", - "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Gets a list of all the revisions of a custom component library. The API token must have the \"CustomComponent > Read\" scope.", - "tags": ["CustomComponentLibrary"], + "summary": "The app summaries for the selected organizations", + "description": "The app summaries for the selected organizations. Contains information about the app like saves, views, unique editors and viewers in the specified time range. The API token must have the 'usage' scope. ", + "tags": [ + "Usage" + ], "parameters": [ { - "schema": { "type": "string", "format": "uuid" }, + "schema": { + "type": "string", + "description": "A comma separated list of org ids to retrieve usage data for", + "example": "org_id1,org_id2" + }, + "required": false, + "name": "org_ids", + "in": "query", + "description": "A comma separated list of org ids to retrieve usage data for" + }, + { + "schema": { + "type": "string", + "description": "The start date of the date range", + "example": "2024-01-15" + }, "required": true, - "name": "libraryId", - "in": "path" + "name": "start_date", + "in": "query", + "description": "The start date of the date range" + }, + { + "schema": { + "type": "string", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", + "example": "2024-01-30" + }, + "required": false, + "name": "end_date", + "in": "query", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used." } ], "responses": { "200": { - "description": "Returns a list of all revisions of a custom component library.", + "description": "The app summaries for the selected organizations", "content": { "application/json": { "schema": { @@ -14915,7 +29144,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -14923,26 +29154,40 @@ "items": { "type": "object", "properties": { - "id": { "type": "string", "format": "uuid" }, - "version": { "type": "string" }, - "custom_component_library_id": { "type": "string" }, - "created_at": { + "app_name": { "type": "string", - "format": "date-time" + "description": "The name of the app" }, - "updated_at": { + "host": { "type": "string", - "format": "date-time" + "description": "The organization host" + }, + "count_app_views": { + "type": "number", + "description": "The number of views of the app in the time range specified" + }, + "count_app_saves": { + "type": "number", + "description": "The number of saves of the app in the time range specified" + }, + "count_viewers": { + "type": "number", + "description": "The number of viewers of the app in the time range specified" + }, + "count_editors": { + "type": "number", + "description": "The number of editors of the app in the time range specified" } }, "required": [ - "id", - "version", - "custom_component_library_id", - "created_at", - "updated_at" + "app_name", + "host", + "count_app_views", + "count_app_saves", + "count_viewers", + "count_editors" ], - "description": "Custom Component Library Revision" + "additionalProperties": false }, "description": "An array of requested items" }, @@ -14966,37 +29211,70 @@ "total_count", "next_token", "has_more" - ] + ], + "description": "The app summaries for the organizations" } } } - }, - "404": { "description": "Custom component library does not exist" } + } } } }, - "/custom_component_libraries/{libraryId}/revisions/{revisionId}/files": { + "/usage/app_details": { "get": { - "summary": "Gets all files associated with a custom component library revision.", - "description": "Available on Retool Cloud and self-hosted Retool version 3.41.0+. Gets all files associated with a custom component library revision. The API token must have the \"CustomComponent > Read\" scope.", - "tags": ["CustomComponentLibrary"], + "summary": "The app details for the selected app and organizations", + "description": "The detailed app usage for the selected organizations. Contains information about the app, including the breakdown of saves and views in the specified time range. The API token must have the 'usage' scope.", + "tags": [ + "Usage" + ], "parameters": [ { - "schema": { "type": "string", "format": "uuid" }, + "schema": { + "type": "string", + "description": "A comma separated list of org ids to retrieve usage data for", + "example": "org_id1,org_id2" + }, + "required": false, + "name": "org_ids", + "in": "query", + "description": "A comma separated list of org ids to retrieve usage data for" + }, + { + "schema": { + "type": "string", + "description": "The start date of the date range", + "example": "2024-01-15" + }, "required": true, - "name": "libraryId", - "in": "path" + "name": "start_date", + "in": "query", + "description": "The start date of the date range" + }, + { + "schema": { + "type": "string", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", + "example": "2024-01-30" + }, + "required": false, + "name": "end_date", + "in": "query", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used." }, { - "schema": { "type": "string", "format": "uuid" }, + "schema": { + "type": "string", + "description": "The name of the app to retrieve usage data for" + }, "required": true, - "name": "revisionId", - "in": "path" + "name": "app_name", + "in": "query", + "description": "The name of the app to retrieve usage data for" } ], "responses": { "200": { - "description": "Returns a list of all files associated with a custom component library revision.", + "description": "The app details for the selected app and organizations", "content": { "application/json": { "schema": { @@ -15004,56 +29282,160 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "filepath": { "type": "string" }, - "file_contents": { "type": "string" }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" + "type": "object", + "properties": { + "overall_summary": { + "type": "array", + "items": { + "type": "object", + "properties": { + "org_id": { + "type": "string" + }, + "app_name": { + "type": "string" + }, + "count_app_saves": { + "type": "number" + }, + "count_app_views": { + "type": "number" + }, + "host": { + "type": "string" + } + }, + "required": [ + "org_id", + "app_name", + "count_app_saves", + "count_app_views", + "host" + ], + "additionalProperties": false } }, - "required": [ - "filepath", - "file_contents", - "created_at", - "updated_at" - ], - "description": "Custom Component Library Revision" + "weekly_summary": { + "type": "array", + "items": { + "type": "object", + "properties": { + "org_id": { + "type": "string" + }, + "weekly_data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "week": { + "type": "string" + }, + "count_app_saves": { + "type": "number" + }, + "count_app_views": { + "type": "number" + } + }, + "required": [ + "week", + "count_app_saves", + "count_app_views" + ] + } + } + }, + "required": [ + "org_id", + "weekly_data" + ], + "additionalProperties": false + } + }, + "viewer_summary": { + "type": "array", + "items": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "count": { + "type": "number" + }, + "user_id": { + "type": "string" + }, + "org_id": { + "type": "string" + }, + "host": { + "type": "string" + } + }, + "required": [ + "email", + "count", + "user_id", + "org_id", + "host" + ], + "additionalProperties": false + } + }, + "editor_summary": { + "type": "array", + "items": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "count": { + "type": "number" + }, + "user_id": { + "type": "string" + }, + "org_id": { + "type": "string" + }, + "host": { + "type": "string" + } + }, + "required": [ + "email", + "count", + "user_id", + "org_id", + "host" + ], + "additionalProperties": false + } + } }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" - }, - "next_token": { - "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" - }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" + "required": [ + "overall_summary", + "weekly_summary", + "viewer_summary", + "editor_summary" + ], + "additionalProperties": false } }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" - ] + "data" + ], + "description": "The details about the app usage, such as edits and views, for the organizations" } } } @@ -15061,14 +29443,51 @@ } } }, - "/configuration_variables": { + "/usage/user_summary": { "get": { - "summary": "List configuration variables and their values", - "description": "Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Read\" scope.", - "tags": ["Configuration Variables"], + "summary": "The summaries of user usage for the selected organizations", + "description": "The summaries of the user including email, last active time, the number of apps viewed and edited, for the selected organizations in the specified time range. The API token must have the 'usage' scope.", + "tags": [ + "Usage" + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "A comma separated list of org ids to retrieve usage data for", + "example": "org_id1,org_id2" + }, + "required": false, + "name": "org_ids", + "in": "query", + "description": "A comma separated list of org ids to retrieve usage data for" + }, + { + "schema": { + "type": "string", + "description": "The start date of the date range", + "example": "2024-01-15" + }, + "required": true, + "name": "start_date", + "in": "query", + "description": "The start date of the date range" + }, + { + "schema": { + "type": "string", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", + "example": "2024-01-30" + }, + "required": false, + "name": "end_date", + "in": "query", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used." + } + ], "responses": { "200": { - "description": "List of configuration variables and their values.", + "description": "The user usage summies for the selected organizations", "content": { "application/json": { "schema": { @@ -15076,7 +29495,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -15084,42 +29505,51 @@ "items": { "type": "object", "properties": { - "id": { + "org_id": { "type": "string", - "format": "uuid", - "description": "The ID of the configuration variable" + "description": "The id of the organization to which this user belongs" }, - "name": { + "user_id": { "type": "string", - "description": "The name of the configuration variable" + "description": "The id of the user" }, - "description": { + "email": { "type": "string", - "description": "The description of the configuration variable" + "description": "The email of the user" + }, + "host": { + "type": "string", + "description": "The host of the organization to which this user belongs" + }, + "count_app_views": { + "type": "number", + "description": "The number of times the user viewed an app in the time range specified" + }, + "count_app_saves": { + "type": "number", + "description": "The number of times the user edited an app in the time range specified" }, - "secret": { - "type": "boolean", - "description": "Whether the configuration variable is a secret" + "count_unique_apps": { + "type": "number", + "description": "The number of unique apps edited in the time range specified" }, - "values": { - "type": "array", - "items": { - "type": "object", - "properties": { - "environment_id": { - "type": "string", - "description": "The ID of the environment" - }, - "value": { - "type": "string", - "description": "The value of the configuration variable" - } - }, - "required": ["environment_id", "value"] - } + "last_active": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" } }, - "required": ["id", "name", "secret", "values"] + "required": [ + "org_id", + "user_id", + "email", + "host", + "count_app_views", + "count_app_saves", + "count_unique_apps", + "last_active" + ], + "additionalProperties": false }, "description": "An array of requested items" }, @@ -15143,113 +29573,8 @@ "total_count", "next_token", "has_more" - ] - } - } - } - } - } - }, - "post": { - "summary": "Create a configuration variable", - "description": "Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Write\" scope.", - "tags": ["Configuration Variables"], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the configuration variable" - }, - "description": { - "type": "string", - "description": "The description of the configuration variable" - }, - "secret": { - "type": "boolean", - "description": "Whether the configuration variable is a secret" - }, - "values": { - "type": "array", - "items": { - "type": "object", - "properties": { - "environment_id": { - "type": "string", - "description": "The ID of the environment" - }, - "value": { - "type": "string", - "description": "The value of the configuration variable" - } - }, - "required": ["environment_id", "value"] - } - } - }, - "required": ["name", "secret", "values"] - } - } - } - }, - "responses": { - "200": { - "description": "Created configuration variable.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The ID of the configuration variable" - }, - "name": { - "type": "string", - "description": "The name of the configuration variable" - }, - "description": { - "type": "string", - "description": "The description of the configuration variable" - }, - "secret": { - "type": "boolean", - "description": "Whether the configuration variable is a secret" - }, - "values": { - "type": "array", - "items": { - "type": "object", - "properties": { - "environment_id": { - "type": "string", - "description": "The ID of the environment" - }, - "value": { - "type": "string", - "description": "The value of the configuration variable" - } - }, - "required": ["environment_id", "value"] - } - } - }, - "required": ["id", "name", "secret", "values"] - } - }, - "required": ["success", "data"] + ], + "description": "The user summaries for the organizations" } } } @@ -15257,26 +29582,61 @@ } } }, - "/configuration_variables/{id}": { + "/usage/user_details": { "get": { - "summary": "Retreive a single configuration variable and its values", - "description": "Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Read\" scope.", - "tags": ["Configuration Variables"], + "summary": "The user details for the selected user and organizations", + "description": "Detailed usage by user for the selected organizations. Contains information about the user, including the breakdown of saves and views for apps in the specified time range. The API token must have the 'usage' scope.", + "tags": [ + "Usage" + ], "parameters": [ { "schema": { "type": "string", - "format": "uuid", - "description": "The ID of the configuration variable" + "description": "A comma separated list of org ids to retrieve usage data for", + "example": "org_id1,org_id2" + }, + "required": false, + "name": "org_ids", + "in": "query", + "description": "A comma separated list of org ids to retrieve usage data for" + }, + { + "schema": { + "type": "string", + "description": "The start date of the date range", + "example": "2024-01-15" }, "required": true, - "name": "id", - "in": "path" + "name": "start_date", + "in": "query", + "description": "The start date of the date range" + }, + { + "schema": { + "type": "string", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", + "example": "2024-01-30" + }, + "required": false, + "name": "end_date", + "in": "query", + "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used." + }, + { + "schema": { + "type": "string", + "description": "The email of the user to retrieve usage data for" + }, + "required": true, + "name": "email", + "in": "query", + "description": "The email of the user to retrieve usage data for" } ], "responses": { "200": { - "description": "A configuration variable and its values.", + "description": "The user details for the selected user email and organizations", "content": { "application/json": { "schema": { @@ -15284,117 +29644,256 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The ID of the configuration variable" - }, - "name": { - "type": "string", - "description": "The name of the configuration variable" + "overall_summary": { + "type": "array", + "items": { + "type": "object", + "properties": { + "org_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "host": { + "type": "string" + }, + "count_app_saves": { + "type": "number" + }, + "count_app_views": { + "type": "number" + } + }, + "required": [ + "org_id", + "user_id", + "host", + "count_app_saves", + "count_app_views" + ], + "additionalProperties": false + } }, - "description": { - "type": "string", - "description": "The description of the configuration variable" + "weekly_summary": { + "type": "array", + "items": { + "type": "object", + "properties": { + "org_id": { + "type": "string" + }, + "weekly_data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "week": { + "type": "string" + }, + "count_app_saves": { + "type": "number" + }, + "count_app_views": { + "type": "number" + } + }, + "required": [ + "week", + "count_app_saves", + "count_app_views" + ] + } + } + }, + "required": [ + "org_id", + "weekly_data" + ], + "additionalProperties": false + } }, - "secret": { - "type": "boolean", - "description": "Whether the configuration variable is a secret" + "viewer_summary": { + "type": "array", + "items": { + "type": "object", + "properties": { + "app_name": { + "type": "string" + }, + "org_id": { + "type": "string" + }, + "host": { + "type": "string" + }, + "count": { + "type": "number" + } + }, + "required": [ + "app_name", + "org_id", + "host", + "count" + ], + "additionalProperties": false + } }, - "values": { + "editor_summary": { "type": "array", "items": { "type": "object", "properties": { - "environment_id": { - "type": "string", - "description": "The ID of the environment" + "app_name": { + "type": "string" }, - "value": { - "type": "string", - "description": "The value of the configuration variable" + "org_id": { + "type": "string" + }, + "host": { + "type": "string" + }, + "count": { + "type": "number" } }, - "required": ["environment_id", "value"] + "required": [ + "app_name", + "org_id", + "host", + "count" + ], + "additionalProperties": false } } }, - "required": ["id", "name", "secret", "values"] + "required": [ + "overall_summary", + "weekly_summary", + "viewer_summary", + "editor_summary" + ] } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ], + "description": "The details about the users usage, such as edits and views on apps, for the organizations" } } } } } - }, - "put": { - "summary": "Update a configuration variable", - "description": "Update a configuration variable and its values. Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Write\" scope.", - "tags": ["Configuration Variables"], + } + }, + "/user_tasks": { + "get": { + "summary": "List User Tasks", + "description": "Requires the User Tasks feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.114+. Returns a list of user tasks for a particular user. The API token must have the \"User Tasks > Read\" scope.", + "tags": [ + "User Tasks" + ], "parameters": [ + { + "schema": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "description": "Filter tasks by assignment. Provide one or more user ids. If not provided, returns all accessible tasks." + }, + "required": false, + "name": "assigned_to_users", + "in": "query", + "description": "Filter tasks by assignment. Provide one or more user ids. If not provided, returns all accessible tasks." + }, { "schema": { "type": "string", - "format": "uuid", - "description": "The ID of the configuration variable" + "enum": [ + "submitted", + "pending", + "cancelled", + "expired" + ], + "description": "A comma-separated list of statuses." }, - "required": true, - "name": "id", - "in": "path" + "required": false, + "name": "statuses", + "in": "query", + "description": "A comma-separated list of statuses." + }, + { + "schema": { + "type": "string", + "description": "A comma-separated list of workflow IDs." + }, + "required": false, + "name": "workflow_ids", + "in": "query", + "description": "A comma-separated list of workflow IDs." + }, + { + "schema": { + "type": "string", + "description": "The maximum number of tasks to include in the response." + }, + "required": false, + "name": "limit", + "in": "query", + "description": "The maximum number of tasks to include in the response." + }, + { + "schema": { + "type": "string", + "description": "The next token from the previous API response. This is used for paginating through an arbitrary number of tasks." + }, + "required": false, + "name": "next_token", + "in": "query", + "description": "The next token from the previous API response. This is used for paginating through an arbitrary number of tasks." + }, + { + "schema": { + "type": "string", + "description": "The ID of the task following which the response will include subsequent tasks." + }, + "required": false, + "name": "starting_after", + "in": "query", + "description": "The ID of the task following which the response will include subsequent tasks." + }, + { + "schema": { + "type": "string", + "description": "The ID of the task before which the response will include preceding tasks." + }, + "required": false, + "name": "ending_before", + "in": "query", + "description": "The ID of the task before which the response will include preceding tasks." } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the configuration variable" - }, - "description": { - "type": "string", - "description": "The description of the configuration variable" - }, - "secret": { - "type": "boolean", - "description": "Whether the configuration variable is a secret" - }, - "values": { - "type": "array", - "items": { - "type": "object", - "properties": { - "environment_id": { - "type": "string", - "description": "The ID of the environment" - }, - "value": { - "type": "string", - "description": "The value of the configuration variable" - } - }, - "required": ["environment_id", "value"] - } - } - }, - "required": ["name", "secret", "values"] - } - } - } - }, "responses": { "200": { - "description": "Created configuration variable.", + "description": "List of user tasks.", "content": { "application/json": { "schema": { @@ -15402,137 +29901,210 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The ID of the configuration variable" - }, - "name": { - "type": "string", - "description": "The name of the configuration variable" - }, - "description": { - "type": "string", - "description": "The description of the configuration variable" - }, - "secret": { - "type": "boolean", - "description": "Whether the configuration variable is a secret" - }, - "values": { - "type": "array", - "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the user task." + }, + "workflow_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow this task belongs to." + }, + "workflow_name": { + "type": "string", + "description": "The name of the workflow." + }, + "workflow_run_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "task_name": { + "type": "string", + "description": "The name of the task." + }, + "status": { + "type": "string", + "enum": [ + "submitted", + "pending", + "cancelled", + "expired" + ], + "description": "The current status of the task." + }, + "context": { "type": "object", - "properties": { - "environment_id": { - "type": "string", - "description": "The ID of the environment" + "additionalProperties": { + "nullable": true + }, + "description": "Additional context for the task." + }, + "created_at": { + "type": "string", + "description": "The creation date time of the task." + }, + "completed_at": { + "type": "string", + "nullable": true, + "description": "The completion date time of the task." + }, + "task_url": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URL links to apps associated with the task." + }, + "assignees": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "id": { + "type": "number" + }, + "name": { + "type": "string" + } }, - "value": { - "type": "string", - "description": "The value of the configuration variable" - } + "required": [ + "type", + "id", + "name" + ] }, - "required": ["environment_id", "value"] + "description": "The groups or users assigned to this task." + }, + "workflow_release": { + "type": "string", + "nullable": true, + "description": "The workflow release version, if any." + }, + "expires_at": { + "type": "string", + "nullable": true, + "description": "The expiration date time of the task, if set." + }, + "output": { + "type": "object", + "additionalProperties": { + "nullable": true + } } - } + }, + "required": [ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at" + ], + "description": "User-defined context for the task." }, - "required": ["id", "name", "secret", "values"] + "description": "An array of requested items" + }, + "total_count": { + "type": "number", + "description": "Total number of items in the response" + }, + "next_token": { + "type": "string", + "nullable": true, + "description": "A token to retrieve the next page of items in the collection" + }, + "has_more": { + "type": "boolean", + "description": "Whether there are more items in the collection" } }, - "required": ["success", "data"] + "required": [ + "success", + "data", + "total_count", + "next_token", + "has_more" + ], + "description": "A paginated list of user tasks." } } } } } - }, - "delete": { - "summary": "Delete configuration variable", - "description": "Deletes a configuration variable and its values. Available for orgs with configuration variables enabled on Retool Version 3.42+. The API token must have the \"Configuration Variables > Write\" scope.", - "tags": ["Configuration Variables"], + } + }, + "/user_tasks/{taskId}/submit": { + "patch": { + "summary": "Submits a user task.", + "description": "Requires the User Tasks feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.114+. Submits a user task with a provided output payload. The API token must have the \"User Tasks > Write\" scope.", + "tags": [ + "User Tasks" + ], "parameters": [ { "schema": { "type": "string", "format": "uuid", - "description": "The ID of the configuration variable" + "description": "The ID of the user task." }, "required": true, - "name": "id", - "in": "path" + "name": "taskId", + "in": "path", + "description": "The ID of the user task." } ], - "responses": { "204": { "description": "Group deleted" } } - } - }, - "/observability/config": { - "post": { - "summary": "Create a new observability provider configuration", - "description": "Create observability configuration for the organization and returns the created configuration. This will result in an error if configuration is already set. The API token must have the \"Observability > Write\" scope.", - "tags": ["Observability"], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "config": { - "oneOf": [ - { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Sentry"], - "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." - }, - "dsn": { - "type": "string", - "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." - } - }, - "required": ["provider", "dsn"] - }, - { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Datadog"], - "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." - }, - "api_key": { - "type": "string", - "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." - } - }, - "required": ["provider", "api_key"] - } - ], - "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." + "email": { + "type": "string", + "format": "email", + "description": "Email of user completing the task." }, - "enabled": { - "type": "boolean", - "description": "When enabled, use this provider for apps observability monitoring." + "output": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "description": "Assignee-defined output required for a task to be submitted." } }, - "required": ["config", "enabled"], - "additionalProperties": false, - "description": "Shape of Post Observability Config Request" + "required": [ + "email", + "output" + ] } } } }, "responses": { "200": { - "description": "Observability provider configuration created.", + "description": "User task submitted.", "content": { "application/json": { "schema": { @@ -15540,145 +30112,195 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" + "enum": [ + true + ] }, "data": { "type": "object", "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The id of the configuration." - }, - "config": { - "oneOf": [ - { + "user_task": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the user task." + }, + "workflow_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow this task belongs to." + }, + "workflow_name": { + "type": "string", + "description": "The name of the workflow." + }, + "workflow_run_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "task_name": { + "type": "string", + "description": "The name of the task." + }, + "status": { + "type": "string", + "enum": [ + "submitted", + "pending", + "cancelled", + "expired" + ], + "description": "The current status of the task." + }, + "context": { "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Sentry"], - "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." - }, - "dsn": { - "type": "string", - "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." - } + "additionalProperties": { + "nullable": true }, - "required": ["provider", "dsn"] + "description": "Additional context for the task." }, - { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Datadog"], - "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." + "created_at": { + "type": "string", + "description": "The creation date time of the task." + }, + "completed_at": { + "type": "string", + "nullable": true, + "description": "The completion date time of the task." + }, + "task_url": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URL links to apps associated with the task." + }, + "assignees": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "id": { + "type": "number" + }, + "name": { + "type": "string" + } }, - "api_key": { - "type": "string", - "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." - } + "required": [ + "type", + "id", + "name" + ] }, - "required": ["provider", "api_key"] + "description": "The groups or users assigned to this task." + }, + "workflow_release": { + "type": "string", + "nullable": true, + "description": "The workflow release version, if any." + }, + "expires_at": { + "type": "string", + "nullable": true, + "description": "The expiration date time of the task, if set." + }, + "output": { + "type": "object", + "additionalProperties": { + "nullable": true + } } + }, + "required": [ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at" ], - "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." - }, - "enabled": { - "type": "boolean", - "description": "When enabled, use this provider for apps observability monitoring." + "description": "User-defined context for the task." } }, - "required": ["id", "config", "enabled"], - "additionalProperties": false, - "description": "Shape of Post Observability Config Response" - } - }, - "required": ["success", "data"] - } - } - } - }, - "400": { - "description": "Bad request.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" - }, - "message": { - "type": "string", - "description": "Error message" + "required": [ + "user_task" + ] } }, - "required": ["success", "message"], - "description": "API error response" + "required": [ + "success", + "data" + ] } } } - }, - "403": { - "description": "Incorrect scope.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" - }, - "message": { - "type": "string", - "description": "Error message" - } + } + } + } + }, + "/user_tasks/{taskId}/cancel": { + "patch": { + "summary": "Cancels a user task.", + "description": "Requires the User Tasks feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.114+. Cancel a user task with a provided reason. The API token must have the \"User Tasks > Write\" scope.", + "tags": [ + "User Tasks" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The ID of the user task." + }, + "required": true, + "name": "taskId", + "in": "path", + "description": "The ID of the user task." + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "Email of user cancelling the task." }, - "required": ["success", "message"], - "description": "API error response" - } - } - } - }, - "422": { - "description": "Configuration already exists.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" + "output": { + "type": "object", + "additionalProperties": { + "nullable": true }, - "message": { - "type": "string", - "description": "Error message" - } - }, - "required": ["success", "message"], - "description": "API error response" - } + "description": "Assignee-defined output required for a task to be cancelled." + } + }, + "required": [ + "email" + ] } } } - } - }, - "get": { - "summary": "Get observability provider configurations", - "description": "Get observability configurations for the organization. The API token must have the \"Observability > Read\" scope.", - "tags": ["Observability"], + }, "responses": { "200": { - "description": "Observability provider configuration retrieved.", + "description": "User task cancelled.", "content": { "application/json": { "schema": { @@ -15686,112 +30308,139 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" + "enum": [ + true + ] }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The id of the configuration." - }, - "config": { - "oneOf": [ - { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Sentry"], - "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." - }, - "dsn": { - "type": "string", - "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." - } - }, - "required": ["provider", "dsn"] + "type": "object", + "properties": { + "user_task": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the user task." + }, + "workflow_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow this task belongs to." + }, + "workflow_name": { + "type": "string", + "description": "The name of the workflow." + }, + "workflow_run_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "task_name": { + "type": "string", + "description": "The name of the task." + }, + "status": { + "type": "string", + "enum": [ + "submitted", + "pending", + "cancelled", + "expired" + ], + "description": "The current status of the task." + }, + "context": { + "type": "object", + "additionalProperties": { + "nullable": true }, - { + "description": "Additional context for the task." + }, + "created_at": { + "type": "string", + "description": "The creation date time of the task." + }, + "completed_at": { + "type": "string", + "nullable": true, + "description": "The completion date time of the task." + }, + "task_url": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URL links to apps associated with the task." + }, + "assignees": { + "type": "array", + "items": { "type": "object", "properties": { - "provider": { - "type": "string", - "enum": ["Datadog"], - "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." + "type": { + "type": "string" }, - "api_key": { - "type": "string", - "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." + "id": { + "type": "number" + }, + "name": { + "type": "string" } }, - "required": ["provider", "api_key"] + "required": [ + "type", + "id", + "name" + ] + }, + "description": "The groups or users assigned to this task." + }, + "workflow_release": { + "type": "string", + "nullable": true, + "description": "The workflow release version, if any." + }, + "expires_at": { + "type": "string", + "nullable": true, + "description": "The expiration date time of the task, if set." + }, + "output": { + "type": "object", + "additionalProperties": { + "nullable": true } - ], - "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." + } }, - "enabled": { - "type": "boolean", - "description": "When enabled, use this provider for apps observability monitoring." - } - }, - "required": ["id", "config", "enabled"], - "additionalProperties": false, - "description": "Shape of Get Observability Config Response" - } - } - }, - "required": ["success", "data"] - } - } - } - }, - "403": { - "description": "Incorrect scope.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" - }, - "message": { - "type": "string", - "description": "Error message" - } - }, - "required": ["success", "message"], - "description": "API error response" - } - } - } - }, - "404": { - "description": "Configuration not found.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" - }, - "message": { - "type": "string", - "description": "Error message" + "required": [ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at" + ], + "description": "User-defined context for the task." + } + }, + "required": [ + "user_task" + ] } }, - "required": ["success", "message"], - "description": "API error response" + "required": [ + "success", + "data" + ] } } } @@ -15799,21 +30448,24 @@ } } }, - "/observability/config/{configId}": { - "put": { - "summary": "Update an observability provider configuration", - "description": "Update observability configuration for the organization and returns the updated configuration. This will result in an error if no existing configuration found. The API token must have the \"Observability > Write\" scope.", - "tags": ["Observability"], + "/user_tasks/{taskId}/reassign": { + "patch": { + "summary": "Reassign a user task to a group or a user.", + "description": "Requires the User Tasks feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.114+. Reassigns a user task to a group or user based on the group or user id. The API token must have the \"User Tasks > Write\" scope.", + "tags": [ + "User Tasks" + ], "parameters": [ { "schema": { "type": "string", "format": "uuid", - "description": "The id of the observability configuration to update." + "description": "The ID of the user task." }, "required": true, - "name": "configId", - "in": "path" + "name": "taskId", + "in": "path", + "description": "The ID of the user task." } ], "requestBody": { @@ -15822,55 +30474,77 @@ "schema": { "type": "object", "properties": { - "config": { - "oneOf": [ - { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Sentry"], - "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." + "email": { + "type": "string", + "format": "email", + "description": "Email of user reassigning the task." + }, + "assignees": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "group" + ] + }, + "id": { + "type": "number" + } }, - "dsn": { - "type": "string", - "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." - } + "required": [ + "type", + "id" + ] }, - "required": ["provider", "dsn"] + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "user" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "type", + "id" + ] + } + ] + }, + "description": "An array of assignees the user task should be reassigned to. Can include both groups and users.", + "example": [ + { + "type": "group", + "id": 1 }, { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Datadog"], - "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." - }, - "api_key": { - "type": "string", - "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." - } - }, - "required": ["provider", "api_key"] + "type": "user", + "id": "user_4e5fb6e0b3cd4e39b518f09a3480e6ca" } - ], - "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." - }, - "enabled": { - "type": "boolean", - "description": "When enabled, use this provider for apps observability monitoring." + ] } }, - "additionalProperties": false, - "description": "Shape of Put Observability Config Request" + "required": [ + "email", + "assignees" + ] } } } }, "responses": { "200": { - "description": "Observability provider configuration updated.", + "description": "User task reassigned", "content": { "application/json": { "schema": { @@ -15878,115 +30552,348 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" + "enum": [ + true + ] }, "data": { "type": "object", "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The id of the configuration." - }, - "config": { - "oneOf": [ - { - "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Sentry"], - "description": "This is an enumerated field that can only take the value \"Sentry\". It identifies the provider of the observability configuration." - }, - "dsn": { - "type": "string", - "description": "This is a string field that represents the Data Source Name (DSN). It is the unique identifier that helps Sentry know where to send errors and exceptions." - } - }, - "required": ["provider", "dsn"] + "user_task": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the user task." + }, + "workflow_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow this task belongs to." + }, + "workflow_name": { + "type": "string", + "description": "The name of the workflow." + }, + "workflow_run_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "task_name": { + "type": "string", + "description": "The name of the task." }, - { + "status": { + "type": "string", + "enum": [ + "submitted", + "pending", + "cancelled", + "expired" + ], + "description": "The current status of the task." + }, + "context": { "type": "object", - "properties": { - "provider": { - "type": "string", - "enum": ["Datadog"], - "description": "This is an enumerated field that can only take the value \"Datadog\". It identifies the provider of the observability configuration." + "additionalProperties": { + "nullable": true + }, + "description": "Additional context for the task." + }, + "created_at": { + "type": "string", + "description": "The creation date time of the task." + }, + "completed_at": { + "type": "string", + "nullable": true, + "description": "The completion date time of the task." + }, + "task_url": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URL links to apps associated with the task." + }, + "assignees": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "id": { + "type": "number" + }, + "name": { + "type": "string" + } }, - "api_key": { - "type": "string", - "description": "This is a string field that represents the API key for Datadog. This key is used to authenticate with the Datadog API." - } + "required": [ + "type", + "id", + "name" + ] }, - "required": ["provider", "api_key"] + "description": "The groups or users assigned to this task." + }, + "workflow_release": { + "type": "string", + "nullable": true, + "description": "The workflow release version, if any." + }, + "expires_at": { + "type": "string", + "nullable": true, + "description": "The expiration date time of the task, if set." + }, + "output": { + "type": "object", + "additionalProperties": { + "nullable": true + } } + }, + "required": [ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at" ], - "description": "Provider-specific configuration. For Datadog, provide an API key. For Sentry, provide a DSN." - }, - "enabled": { - "type": "boolean", - "description": "When enabled, use this provider for apps observability monitoring." + "description": "User-defined context for the task." } }, - "required": ["id", "config", "enabled"], - "additionalProperties": false, - "description": "Shape of Put Observability Config Response" + "required": [ + "user_task" + ] } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ] } } } - }, - "400": { - "description": "Bad request.", + } + } + } + }, + "/workflow_run/{id}": { + "get": { + "summary": "Get Workflow Run Details", + "description": "Requires the Workflow Runs API feature which is currently in private beta. Fill out the form at https://workflowstools.retool.com/form/0d8c9ebb-fba1-4c80-8d07-af75bdbf034e to request access. Available on Retool version 3.122+. Returns data for a workflow run. The API token must have the \"Workflows > Read\" scope.", + "tags": [ + "Workflow Run" + ], + "parameters": [ + { + "schema": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "required": true, + "name": "id", + "in": "path", + "description": "The ID of the workflow run." + } + ], + "responses": { + "200": { + "description": "Returns workflow run.", "content": { "application/json": { "schema": { "type": "object", "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" + "status": { + "type": "string", + "description": "The status of the workflow run." }, - "message": { + "workflow_id": { "type": "string", - "description": "Error message" - } - }, - "required": ["success", "message"], - "description": "API error response" - } - } - } - }, - "403": { - "description": "Incorrect scope.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" + "format": "uuid", + "description": "The ID of the workflow." }, - "message": { + "id": { "type": "string", - "description": "Error message" + "format": "uuid", + "description": "The ID of the workflow run." + }, + "trigger_type": { + "type": "string", + "description": "The type of trigger that started the workflow." + }, + "trigger_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the trigger." + }, + "created_at": { + "type": "string", + "description": "The creation date time of the workflow run." + }, + "user_tasks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The ID of the user task." + }, + "workflow_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow this task belongs to." + }, + "workflow_name": { + "type": "string", + "description": "The name of the workflow." + }, + "workflow_run_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the workflow run." + }, + "task_name": { + "type": "string", + "description": "The name of the task." + }, + "status": { + "type": "string", + "enum": [ + "submitted", + "pending", + "cancelled", + "expired" + ], + "description": "The current status of the task." + }, + "context": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "description": "Additional context for the task." + }, + "created_at": { + "type": "string", + "description": "The creation date time of the task." + }, + "completed_at": { + "type": "string", + "nullable": true, + "description": "The completion date time of the task." + }, + "task_url": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URL links to apps associated with the task." + }, + "assignees": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "id": { + "type": "number" + }, + "name": { + "type": "string" + } + }, + "required": [ + "type", + "id", + "name" + ] + }, + "description": "The groups or users assigned to this task." + }, + "workflow_release": { + "type": "string", + "nullable": true, + "description": "The workflow release version, if any." + }, + "expires_at": { + "type": "string", + "nullable": true, + "description": "The expiration date time of the task, if set." + }, + "output": { + "type": "object", + "additionalProperties": { + "nullable": true + } + } + }, + "required": [ + "id", + "workflow_id", + "workflow_name", + "workflow_run_id", + "task_name", + "status", + "context", + "created_at", + "completed_at", + "task_url", + "assignees", + "workflow_release", + "expires_at" + ], + "description": "User-defined context for the task." + }, + "description": "List of user tasks of the workfow run." } }, - "required": ["success", "message"], - "description": "API error response" + "required": [ + "status", + "workflow_id", + "id", + "trigger_type", + "trigger_id", + "created_at" + ], + "description": "A workflow run and related data." } } } - }, - "422": { - "description": "No configuration exists.", + } + } + } + }, + "/organization/": { + "get": { + "summary": "Get organization", + "description": "Returns the organization's advanced settings. The API token must have the \"Organizations > Read\" scope.", + "tags": [ + "Organization" + ], + "responses": { + "200": { + "description": "The requested organization.", "content": { "application/json": { "schema": { @@ -15994,67 +30901,169 @@ "properties": { "success": { "type": "boolean", - "enum": [false], - "description": "API request failed" + "enum": [ + true + ], + "description": "API request succeeded" }, - "message": { - "type": "string", - "description": "Error message" + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The id of the organization." + }, + "request_access_enabled": { + "type": "boolean", + "description": "Whether users can request access to join the organization." + }, + "ai_support_bot_disabled": { + "type": "boolean", + "description": "Whether the AI support bot is disabled." + }, + "retool_forms_disabled": { + "type": "boolean", + "description": "Whether Retool forms are disabled." + }, + "release_management_enabled": { + "type": "boolean", + "description": "Whether versions and releases on apps are disabled." + }, + "cache_queries_per_user": { + "type": "boolean", + "nullable": true + }, + "apply_preloaded_css_to_homepage": { + "type": "boolean", + "description": "Whether preloaded CSS is applied to the Retool homepage." + }, + "preloaded_css": { + "type": "string", + "nullable": true, + "description": "Custom CSS rules to apply across Retool." + }, + "preloaded_javascript": { + "type": "string", + "nullable": true, + "description": "Preloaded JavaScript that will apply to every Retool app." + }, + "javascript_links": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of custom JavaScript libraries to load in every app." + }, + "workflow_run_retention_period_mins": { + "type": "number", + "description": "Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem)" + }, + "app_owners_permissions_management": { + "type": "boolean", + "description": "Whether app owners can manage permissions for their apps directly." + }, + "two_factor_auth_required": { + "type": "boolean", + "description": "Whether two-factor authentication is required for all users in the organization." + }, + "two_factor_auth_type": { + "type": "string", + "nullable": true, + "enum": [ + "fido2", + "otp" + ], + "description": "Required 2FA type, applies to the whole organization" + }, + "disable_new_login_ip_notification_email": { + "type": "boolean", + "description": "Whether notification emails for logins from new IPs are disabled." + } + }, + "required": [ + "id", + "request_access_enabled", + "ai_support_bot_disabled", + "retool_forms_disabled", + "release_management_enabled", + "cache_queries_per_user", + "apply_preloaded_css_to_homepage", + "preloaded_css", + "preloaded_javascript", + "javascript_links", + "workflow_run_retention_period_mins", + "app_owners_permissions_management", + "two_factor_auth_required", + "two_factor_auth_type", + "disable_new_login_ip_notification_email" + ], + "additionalProperties": false, + "description": "This object represents the advanced settings configured on an organization." } }, - "required": ["success", "message"], - "description": "API error response" + "required": [ + "success", + "data" + ], + "description": "The current organization's advanced settings" } } } } } }, - "delete": { - "summary": "Delete an observability provider configuration", - "description": "Delete observability configuration for the organization. The API token must have the \"Observability > Write\" scope.", - "tags": ["Observability"], - "parameters": [ - { - "schema": { - "type": "string", - "format": "uuid", - "description": "The id of the observability configuration to delete." - }, - "required": true, - "name": "configId", - "in": "path" - } + "patch": { + "summary": "Update advanced settings on organization", + "description": "Updates and returns the updated organization. The API token must have the \"Organizations > Write\" scope.", + "tags": [ + "Organization" ], - "responses": { - "204": { - "description": "Observability provider configuration deleted." - }, - "403": { - "description": "Incorrect scope.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": [ + "replace" + ] + }, + "path": { + "type": "string" + }, + "value": { + "nullable": true, + "description": "A JSON value" + } + }, + "required": [ + "op", + "path" + ], + "title": "Replace Operation" }, - "message": { - "type": "string", - "description": "Error message" - } - }, - "required": ["success", "message"], - "description": "API error response" - } + "description": "A list of operations to apply to update the organization. See the [JSON PATCH specification](https://tools.ietf.org/html/rfc6902) for more details." + } + }, + "required": [ + "operations" + ], + "additionalProperties": false, + "description": "The body of a request to update an organization." } } - }, - "422": { - "description": "Configuration not found.", + } + }, + "responses": { + "200": { + "description": "Returns the updated organization.", "content": { "application/json": { "schema": { @@ -16062,16 +31071,110 @@ "properties": { "success": { "type": "boolean", - "enum": [false], - "description": "API request failed" + "enum": [ + true + ], + "description": "API request succeeded" }, - "message": { - "type": "string", - "description": "Error message" + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The id of the organization." + }, + "request_access_enabled": { + "type": "boolean", + "description": "Whether users can request access to join the organization." + }, + "ai_support_bot_disabled": { + "type": "boolean", + "description": "Whether the AI support bot is disabled." + }, + "retool_forms_disabled": { + "type": "boolean", + "description": "Whether Retool forms are disabled." + }, + "release_management_enabled": { + "type": "boolean", + "description": "Whether versions and releases on apps are disabled." + }, + "cache_queries_per_user": { + "type": "boolean", + "nullable": true + }, + "apply_preloaded_css_to_homepage": { + "type": "boolean", + "description": "Whether preloaded CSS is applied to the Retool homepage." + }, + "preloaded_css": { + "type": "string", + "nullable": true, + "description": "Custom CSS rules to apply across Retool." + }, + "preloaded_javascript": { + "type": "string", + "nullable": true, + "description": "Preloaded JavaScript that will apply to every Retool app." + }, + "javascript_links": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of custom JavaScript libraries to load in every app." + }, + "workflow_run_retention_period_mins": { + "type": "number", + "description": "Number of minutes to store workflow run history data (up to a max of 90 days on cloud, 1 year on-prem)" + }, + "app_owners_permissions_management": { + "type": "boolean", + "description": "Whether app owners can manage permissions for their apps directly." + }, + "two_factor_auth_required": { + "type": "boolean", + "description": "Whether two-factor authentication is required for all users in the organization." + }, + "two_factor_auth_type": { + "type": "string", + "nullable": true, + "enum": [ + "fido2", + "otp" + ], + "description": "Required 2FA type, applies to the whole organization" + }, + "disable_new_login_ip_notification_email": { + "type": "boolean", + "description": "Whether notification emails for logins from new IPs are disabled." + } + }, + "required": [ + "id", + "request_access_enabled", + "ai_support_bot_disabled", + "retool_forms_disabled", + "release_management_enabled", + "cache_queries_per_user", + "apply_preloaded_css_to_homepage", + "preloaded_css", + "preloaded_javascript", + "javascript_links", + "workflow_run_retention_period_mins", + "app_owners_permissions_management", + "two_factor_auth_required", + "two_factor_auth_type", + "disable_new_login_ip_notification_email" + ], + "additionalProperties": false, + "description": "The updated organization settings" } }, - "required": ["success", "message"], - "description": "API error response" + "required": [ + "success", + "data" + ] } } } @@ -16079,28 +31182,30 @@ } } }, - "/observability/provider/{provider}/test": { + "/organization/invalidate_sessions/": { "post": { - "summary": "Send a test error event to the observability provider", - "description": "Send a test error event to the observability provider. The API token must have the \"Observability > Read\" scope.", - "tags": ["Observability"], - "parameters": [ - { - "schema": { - "anyOf": [ - { "type": "string", "enum": ["Sentry"] }, - { "type": "string", "enum": ["Datadog"] } - ], - "description": "The observability provider name, either \"Sentry\" or \"Datadog\"" - }, - "required": true, - "name": "provider", - "in": "path" + "summary": "Invalidates all sessions for your organization", + "description": "Invalidate all sessions for all users in your organization.", + "tags": [ + "Organization" + ], + "responses": { + "204": { + "description": "All sessions were successfully invalidated." } + } + } + }, + "/organization/ai_settings": { + "get": { + "summary": "Get organization AI settings", + "description": "Returns the organization's AI settings. The API token must have the \"Organizations > Read\" scope. Available on Retool versions 3.165.0+.", + "tags": [ + "Organization" ], "responses": { "200": { - "description": "Test event sent.", + "description": "The current state of AI settings for the organization.", "content": { "application/json": { "schema": { @@ -16108,71 +31213,94 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { - "anyOf": [ - { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "Send test error failed" - }, - "message": { - "type": "string", - "description": "Error message" - } - }, - "required": ["success", "message"] + "type": "object", + "properties": { + "retoolAI": { + "type": "boolean", + "description": "Global switch for all Retool AI features. This switch takes precedence over individual feature switches." }, - { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [true], - "description": "Send test error succeeded" - } - }, - "required": ["success"] + "retoolAIActions": { + "type": "boolean", + "description": "Whether Retool AI Actions are enabled." + }, + "retoolVector": { + "type": "boolean", + "description": "Whether Retool Vector is enabled." + }, + "retoolAskAI": { + "type": "boolean", + "description": "Whether Retool Ask AI is enabled." } + }, + "required": [ + "retoolAI", + "retoolAIActions", + "retoolVector", + "retoolAskAI" ], - "description": "Send test error response" + "additionalProperties": false } }, - "required": ["success", "data"] + "required": [ + "success", + "data" + ], + "description": "The current organization AI settings" } } } - }, - "403": { - "description": "Incorrect scope.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "enum": [false], - "description": "API request failed" - }, - "message": { - "type": "string", - "description": "Error message" - } + } + } + }, + "put": { + "summary": "Update organization AI settings", + "description": "Updates the AI settings on organization. The API token must have the \"Organizations > Write\" scope. Available on Retool versions 3.165.0+.", + "tags": [ + "Organization" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "retoolAI": { + "type": "boolean", + "description": "Global switch for all Retool AI features. This switch takes precedence over individual feature switches." }, - "required": ["success", "message"], - "description": "API error response" - } + "retoolAIActions": { + "type": "boolean", + "description": "Whether Retool AI Actions are enabled." + }, + "retoolVector": { + "type": "boolean", + "description": "Whether Retool Vector is enabled." + }, + "retoolAskAI": { + "type": "boolean", + "description": "Whether Retool Ask AI is enabled." + } + }, + "required": [ + "retoolAI", + "retoolAIActions", + "retoolVector", + "retoolAskAI" + ], + "additionalProperties": false } } - }, - "422": { - "description": "Provider is not configured correctly.", + } + }, + "responses": { + "200": { + "description": "The updated AI settings for the organization.", "content": { "application/json": { "schema": { @@ -16180,16 +31308,45 @@ "properties": { "success": { "type": "boolean", - "enum": [false], - "description": "API request failed" + "enum": [ + true + ], + "description": "API request succeeded" }, - "message": { - "type": "string", - "description": "Error message" + "data": { + "type": "object", + "properties": { + "retoolAI": { + "type": "boolean", + "description": "Global switch for all Retool AI features. This switch takes precedence over individual feature switches." + }, + "retoolAIActions": { + "type": "boolean", + "description": "Whether Retool AI Actions are enabled." + }, + "retoolVector": { + "type": "boolean", + "description": "Whether Retool Vector is enabled." + }, + "retoolAskAI": { + "type": "boolean", + "description": "Whether Retool Ask AI is enabled." + } + }, + "required": [ + "retoolAI", + "retoolAIActions", + "retoolVector", + "retoolAskAI" + ], + "additionalProperties": false } }, - "required": ["success", "message"], - "description": "API error response" + "required": [ + "success", + "data" + ], + "description": "The updated organization AI settings" } } } @@ -16197,14 +31354,16 @@ } } }, - "/usage/organizations": { + "/organization/analytics_integrations": { "get": { - "summary": "List organizations", - "description": "Returns a list of organizations that the token has scope to access. The API token must have the 'usage' scope. 'usage:organization' scope returns just the organization, 'usage:spaces' returns all the spaces under the admin organization, 'usage:license' returns all the organizations that use that license key.", - "tags": ["Usage"], + "summary": "Get organization third-party Analytics Integrations settings", + "description": "Returns the organization's analytics integrations settings. We return a list of configuration objects, but there is at-most one configuration per integration type. The API token must have the \"Organizations > Read\" scope. Available on Retool versions 3.175.0+.", + "tags": [ + "Organization" + ], "responses": { "200": { - "description": "List of organizations", + "description": "The current state of Analytics Integrations settings for the organization.", "content": { "application/json": { "schema": { @@ -16212,31 +31371,86 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "array", "items": { - "type": "object", - "properties": { - "org_id": { - "type": "string", - "description": "The id of the organization" + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "google" + ] + }, + "measurement_id": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "type", + "measurement_id", + "enabled" + ] }, - "host": { - "type": "string", - "description": "The host of the organization" + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "segment" + ] + }, + "host": { + "type": "string", + "enum": [ + "US", + "EU" + ] + }, + "api_key": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "type", + "host", + "api_key", + "enabled" + ] }, - "last_active": { - "type": "string", - "format": "date-time", - "example": "2019-02-08T11:45:48.899Z" + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "stdout" + ] + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "type", + "enabled" + ] } - }, - "required": ["org_id", "host", "last_active"], - "additionalProperties": false, - "description": "An organization in Retool" + ] }, "description": "An array of requested items" }, @@ -16261,50 +31475,13 @@ "next_token", "has_more" ], - "description": "A list of organizations in this deployment." + "description": "A list of configured integrations for third-party analytics. There is at-most one of each type." } } } - } - } - } - }, - "/usage": { - "get": { - "summary": "The usage summary for the selected organizations", - "description": "The usage summary for the selected organizations. Contains information about usage like page saves, page views, active users, and the growth in those fields in the specified time range. The API token must have the 'usage' scope. ", - "tags": ["Usage"], - "parameters": [ - { - "schema": { "type": "array", "items": { "type": "string" } }, - "required": false, - "name": "org_ids", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The start date of the date range", - "example": "2024-01-15" - }, - "required": true, - "name": "start_date", - "in": "query" }, - { - "schema": { - "type": "string", - "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", - "example": "2024-01-30" - }, - "required": false, - "name": "end_date", - "in": "query" - } - ], - "responses": { - "200": { - "description": "The usage summary for the selected organizations", + "403": { + "description": "Incorrect scope or non-admin user", "content": { "application/json": { "schema": { @@ -16312,79 +31489,21 @@ "properties": { "success": { "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "object", - "properties": { - "count_current_page_saves": { - "type": "number", - "description": "The number of page saves for all the organizations within the date range" - }, - "count_current_page_views": { - "type": "number", - "description": "The number of page views for all the organizations within the date range" - }, - "count_current_users": { - "type": "number", - "description": "The total number of unique users who have performed any tracked activity in all the organizations within the date range" - }, - "count_T30_users": { - "type": "number", - "description": "The number of unique users who have been active over the trailing 30 days from the end date provided" - }, - "percent_growth_page_saves": { - "type": "number", - "description": "The percentage growth in page saves compared to the previous cycle of the same length as the provided date range" - }, - "percent_growth_page_views": { - "type": "number", - "description": "The percentage growth in page views compared to the previous cycle of the same length as the provided date range" - }, - "percent_growth_users": { - "type": "number", - "description": "The percentage growth in unique users compared to the previous cycle of the same length as the provided date range" - }, - "percent_growth_T30_users": { - "type": "number", - "description": "The percentage growth in T30 users (trailing 30 days users) compared to the previous cycle of the same length as the provided date range" - }, - "daily_T30_usage": { - "type": "array", - "items": { - "type": "object", - "properties": { - "day": { "type": "string" }, - "maa": { - "type": "number", - "description": "The number of distinct applications that were active on the given day" - }, - "mau": { - "type": "number", - "description": "The number of distinct users who were active on the given day" - } - }, - "required": ["day", "maa", "mau"] - } - } - }, - "required": [ - "count_current_page_saves", - "count_current_page_views", - "count_current_users", - "count_T30_users", - "percent_growth_page_saves", - "percent_growth_page_views", - "percent_growth_users", - "percent_growth_T30_users", - "daily_T30_usage" + "enum": [ + false ], - "additionalProperties": false + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" } }, - "required": ["success", "data"], - "description": "The usage information for the organizations" + "required": [ + "success", + "message" + ], + "description": "API error response" } } } @@ -16392,42 +31511,16 @@ } } }, - "/usage/app_summary": { + "/workflows": { "get": { - "summary": "The app summaries for the selected organizations", - "description": "The app summaries for the selected organizations. Contains information about the app like saves, views, unique editors and viewers in the specified time range. The API token must have the 'usage' scope. ", - "tags": ["Usage"], - "parameters": [ - { - "schema": { "type": "array", "items": { "type": "string" } }, - "required": false, - "name": "org_ids", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The start date of the date range", - "example": "2024-01-15" - }, - "required": true, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", - "example": "2024-01-30" - }, - "required": false, - "name": "end_date", - "in": "query" - } + "summary": "Get all workflows", + "description": "Get all workflows for an organization or space. The API token must have the \"Workflows > Read\" scope.", + "tags": [ + "Workflows" ], "responses": { "200": { - "description": "The app summaries for the selected organizations", + "description": "List of workflows", "content": { "application/json": { "schema": { @@ -16435,7 +31528,9 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { @@ -16443,40 +31538,72 @@ "items": { "type": "object", "properties": { - "app_name": { + "id": { + "type": "string", + "format": "uuid", + "description": "The Workflow ID." + }, + "name": { + "type": "string", + "description": "The name of the Workflow" + }, + "description": { + "type": "string", + "nullable": true, + "description": "The description of the Workflow" + }, + "crontab": { + "type": "string", + "nullable": true, + "description": "The cron tab of the Workflow" + }, + "timezone": { "type": "string", - "description": "The name of the app" + "nullable": true, + "description": "The timezone of the Workflow" }, - "host": { + "is_enabled": { + "type": "boolean", + "description": "Whether the Workflow is enabled" + }, + "folder_id": { "type": "string", - "description": "The organization host" + "description": "The folder ID of the Workflow" }, - "count_app_views": { - "type": "number", - "description": "The number of views of the app in the time range specified" + "protected": { + "type": "boolean", + "description": "Whether the Workflow is protected" }, - "count_app_saves": { + "created_by": { "type": "number", - "description": "The number of saves of the app in the time range specified" + "nullable": true, + "description": "The user ID of the creator of the Workflow" }, - "count_viewers": { - "type": "number", - "description": "The number of viewers of the app in the time range specified" + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" }, - "count_editors": { - "type": "number", - "description": "The number of editors of the app in the time range specified" + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-24T18:28:18.790Z" } }, "required": [ - "app_name", - "host", - "count_app_views", - "count_app_saves", - "count_viewers", - "count_editors" + "id", + "name", + "description", + "crontab", + "timezone", + "is_enabled", + "folder_id", + "protected", + "created_by", + "created_at", + "updated_at" ], - "additionalProperties": false + "description": "This object represents a Workflow." }, "description": "An array of requested items" }, @@ -16501,7 +31628,29 @@ "next_token", "has_more" ], - "description": "The app summaries for the organizations" + "description": "A list of all workflows in the organization" + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing required scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + } + }, + "required": [ + "success", + "message" + ] } } } @@ -16509,55 +31658,29 @@ } } }, - "/usage/app_details": { + "/workflows/{workflowId}": { "get": { - "summary": "The app details for the selected app and organizations", - "description": "The detailed app usage for the selected organizations. Contains information about the app, including the breakdown of saves and views in the specified time range. The API token must have the 'usage' scope.", - "tags": ["Usage"], + "summary": "Get a workflow", + "description": "Get a workflow by ID. The API token must have the \"Workflows > Read\" scope.", + "tags": [ + "Workflows" + ], "parameters": [ - { - "schema": { - "type": "array", - "items": { "type": "string" }, - "description": "The list of org ids to retrieve usage data for" - }, - "required": false, - "name": "org_ids", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The start date of the date range", - "example": "2024-01-15" - }, - "required": true, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", - "example": "2024-01-30" - }, - "required": false, - "name": "end_date", - "in": "query" - }, { "schema": { "type": "string", - "description": "The name of the app to retrieve usage data for" + "format": "uuid", + "description": "The Workflow ID." }, "required": true, - "name": "app_name", - "in": "query" + "name": "workflowId", + "in": "path", + "description": "The Workflow ID." } ], "responses": { "200": { - "description": "The app details for the selected app and organizations", + "description": "The requested workflow", "content": { "application/json": { "schema": { @@ -16565,242 +31688,153 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "overall_summary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "org_id": { "type": "string" }, - "app_name": { "type": "string" }, - "count_app_saves": { "type": "number" }, - "count_app_views": { "type": "number" }, - "host": { "type": "string" } - }, - "required": [ - "org_id", - "app_name", - "count_app_saves", - "count_app_views", - "host" - ], - "additionalProperties": false - } + "id": { + "type": "string", + "format": "uuid", + "description": "The Workflow ID." }, - "weekly_summary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "org_id": { "type": "string" }, - "weekly_data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "week": { "type": "string" }, - "count_app_saves": { "type": "number" }, - "count_app_views": { "type": "number" } - }, - "required": [ - "week", - "count_app_saves", - "count_app_views" - ] - } - } - }, - "required": ["org_id", "weekly_data"], - "additionalProperties": false - } + "name": { + "type": "string", + "description": "The name of the Workflow" }, - "viewer_summary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "email": { "type": "string" }, - "count": { "type": "number" }, - "user_id": { "type": "string" }, - "org_id": { "type": "string" }, - "host": { "type": "string" } - }, - "required": [ - "email", - "count", - "user_id", - "org_id", - "host" - ], - "additionalProperties": false - } + "description": { + "type": "string", + "nullable": true, + "description": "The description of the Workflow" }, - "editor_summary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "email": { "type": "string" }, - "count": { "type": "number" }, - "user_id": { "type": "string" }, - "org_id": { "type": "string" }, - "host": { "type": "string" } - }, - "required": [ - "email", - "count", - "user_id", - "org_id", - "host" - ], - "additionalProperties": false - } + "crontab": { + "type": "string", + "nullable": true, + "description": "The cron tab of the Workflow" + }, + "timezone": { + "type": "string", + "nullable": true, + "description": "The timezone of the Workflow" + }, + "is_enabled": { + "type": "boolean", + "description": "Whether the Workflow is enabled" + }, + "folder_id": { + "type": "string", + "description": "The folder ID of the Workflow" + }, + "protected": { + "type": "boolean", + "description": "Whether the Workflow is protected" + }, + "created_by": { + "type": "number", + "nullable": true, + "description": "The user ID of the creator of the Workflow" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-08T11:45:48.899Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2019-02-24T18:28:18.790Z" } }, "required": [ - "overall_summary", - "weekly_summary", - "viewer_summary", - "editor_summary" + "id", + "name", + "description", + "crontab", + "timezone", + "is_enabled", + "folder_id", + "protected", + "created_by", + "created_at", + "updated_at" ], - "additionalProperties": false + "description": "This object represents a Workflow." } }, - "required": ["success", "data"], - "description": "The details about the app usage, such as edits and views, for the organizations" + "required": [ + "success", + "data" + ], + "description": "A single workflow" + } + } + } + }, + "400": { + "description": "Bad Request: Invalid UUID format", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + } + }, + "required": [ + "success", + "message" + ] + } + } + } + }, + "403": { + "description": "Forbidden: API token is missing required scope", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + } + }, + "required": [ + "success", + "message" + ] } } } - } - } - } - }, - "/usage/user_summary": { - "get": { - "summary": "The summaries of user usage for the selected organizations", - "description": "The summaries of the user including email, last active time, the number of apps viewed and edited, for the selected organizations in the specified time range. The API token must have the 'usage' scope.", - "tags": ["Usage"], - "parameters": [ - { - "schema": { "type": "array", "items": { "type": "string" } }, - "required": false, - "name": "org_ids", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The start date of the date range", - "example": "2024-01-15" - }, - "required": true, - "name": "start_date", - "in": "query" }, - { - "schema": { - "type": "string", - "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", - "example": "2024-01-30" - }, - "required": false, - "name": "end_date", - "in": "query" - } - ], - "responses": { - "200": { - "description": "The user usage summies for the selected organizations", + "404": { + "description": "Not Found: Workflow does not exist", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { - "type": "boolean", - "enum": [true], - "description": "API request succeeded" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "org_id": { - "type": "string", - "description": "The id of the organization to which this user belongs" - }, - "user_id": { - "type": "string", - "description": "The id of the user" - }, - "email": { - "type": "string", - "description": "The email of the user" - }, - "host": { - "type": "string", - "description": "The host of the organization to which this user belongs" - }, - "count_app_views": { - "type": "number", - "description": "The number of times the user viewed an app in the time range specified" - }, - "count_app_saves": { - "type": "number", - "description": "The number of times the user edited an app in the time range specified" - }, - "count_unique_apps": { - "type": "number", - "description": "The number of unique apps edited in the time range specified" - }, - "last_active": { - "type": "string", - "format": "date-time", - "example": "2019-02-08T11:45:48.899Z" - } - }, - "required": [ - "org_id", - "user_id", - "email", - "host", - "count_app_views", - "count_app_saves", - "count_unique_apps", - "last_active" - ], - "additionalProperties": false - }, - "description": "An array of requested items" - }, - "total_count": { - "type": "number", - "description": "Total number of items in the response" - }, - "next_token": { - "type": "string", - "nullable": true, - "description": "A token to retrieve the next page of items in the collection" + "type": "boolean" }, - "has_more": { - "type": "boolean", - "description": "Whether there are more items in the collection" + "message": { + "type": "string" } }, "required": [ "success", - "data", - "total_count", - "next_token", - "has_more" - ], - "description": "The user summaries for the organizations" + "message" + ] } } } @@ -16808,55 +31842,16 @@ } } }, - "/usage/user_details": { + "/info/ip_allowlist": { "get": { - "summary": "The user details for the selected user and organizations", - "description": "Detailed usage by user for the selected organizations. Contains information about the user, including the breakdown of saves and views for apps in the specified time range. The API token must have the 'usage' scope.", - "tags": ["Usage"], - "parameters": [ - { - "schema": { - "type": "array", - "items": { "type": "string" }, - "description": "The list of org ids to retrieve usage data for" - }, - "required": false, - "name": "org_ids", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The start date of the date range", - "example": "2024-01-15" - }, - "required": true, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The end date of the date range. If not specified, then minimum(start_date + 30 days, today - 1) is used.", - "example": "2024-01-30" - }, - "required": false, - "name": "end_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "The email of the user to retrieve usage data for" - }, - "required": true, - "name": "email", - "in": "query" - } + "summary": "Get IP allowlist by region", + "description": "Returns a list of Retool Cloud IP addresses that require access to connected data sources.", + "tags": [ + "Info" ], "responses": { "200": { - "description": "The user details for the selected user email and organizations", + "description": "The IP allowlist organized by region.", "content": { "application/json": { "schema": { @@ -16864,99 +31859,73 @@ "properties": { "success": { "type": "boolean", - "enum": [true], + "enum": [ + true + ], "description": "API request succeeded" }, "data": { "type": "object", "properties": { - "overall_summary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "org_id": { "type": "string" }, - "user_id": { "type": "string" }, - "host": { "type": "string" }, - "count_app_saves": { "type": "number" }, - "count_app_views": { "type": "number" } - }, - "required": [ - "org_id", - "user_id", - "host", - "count_app_saves", - "count_app_views" - ], - "additionalProperties": false - } - }, - "weekly_summary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "org_id": { "type": "string" }, - "weekly_data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "week": { "type": "string" }, - "count_app_saves": { "type": "number" }, - "count_app_views": { "type": "number" } - }, - "required": [ - "week", - "count_app_saves", - "count_app_views" - ] - } - } - }, - "required": ["org_id", "weekly_data"], - "additionalProperties": false - } - }, - "viewer_summary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "app_name": { "type": "string" }, - "org_id": { "type": "string" }, - "host": { "type": "string" }, - "count": { "type": "number" } + "ipAddresses": { + "type": "object", + "properties": { + "us-west-2": { + "type": "string" }, - "required": ["app_name", "org_id", "host", "count"], - "additionalProperties": false - } - }, - "editor_summary": { - "type": "array", - "items": { - "type": "object", - "properties": { - "app_name": { "type": "string" }, - "org_id": { "type": "string" }, - "host": { "type": "string" }, - "count": { "type": "number" } + "eu-central-1": { + "type": "string" }, - "required": ["app_name", "org_id", "host", "count"], - "additionalProperties": false - } + "ap-southeast-1": { + "type": "string" + } + }, + "required": [ + "us-west-2", + "eu-central-1", + "ap-southeast-1" + ] } }, "required": [ - "overall_summary", - "weekly_summary", - "viewer_summary", - "editor_summary" - ] + "ipAddresses" + ], + "additionalProperties": false } }, - "required": ["success", "data"], - "description": "The details about the users usage, such as edits and views on apps, for the organizations" + "required": [ + "success", + "data" + ], + "description": "Response schema for retrieving the Retool IP allowlist by region." + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ], + "description": "API request failed" + }, + "message": { + "type": "string", + "description": "Error message" + } + }, + "required": [ + "success", + "message" + ], + "description": "API error response" } } } @@ -16965,4 +31934,4 @@ } } } -} +} \ No newline at end of file diff --git a/terraform-provider-retool b/terraform-provider-retool new file mode 100755 index 0000000..defb3c5 Binary files /dev/null and b/terraform-provider-retool differ diff --git a/test/data/recordings/TestAccConfigurationVariable.yaml b/test/data/recordings/TestAccConfigurationVariable.yaml index a920272..1810b4b 100644 --- a/test/data/recordings/TestAccConfigurationVariable.yaml +++ b/test/data/recordings/TestAccConfigurationVariable.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"description":"Terraform acceptance test configuration variable","name":"tf-acc-test-configuration-variable","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"value2"}]} + {"description":"Terraform acceptance test configuration variable","name":"tf-acc-test-configuration-variable","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"value2"}]} form: {} headers: Content-Type: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 354 uncompressed: false - body: '{"success":true,"data":{"id":"2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d","name":"tf-acc-test-configuration-variable","description":"Terraform acceptance test configuration variable","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"value2"}]}}' + body: '{"success":true,"data":{"id":"18368cb2-21f6-40c4-9d54-5fc0a724219f","name":"tf-acc-test-configuration-variable","description":"Terraform acceptance test configuration variable","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"value2"}]}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 86.464ms + duration: 103.438875ms - id: 1 request: proto: HTTP/1.1 @@ -53,7 +53,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/configuration_variables/2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d + url: https://recorded.retool.dev/api/v2/configuration_variables/18368cb2-21f6-40c4-9d54-5fc0a724219f method: GET response: proto: HTTP/1.1 @@ -63,13 +63,13 @@ interactions: trailer: {} content_length: 354 uncompressed: false - body: '{"success":true,"data":{"id":"2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d","name":"tf-acc-test-configuration-variable","description":"Terraform acceptance test configuration variable","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"value2"}]}}' + body: '{"success":true,"data":{"id":"18368cb2-21f6-40c4-9d54-5fc0a724219f","name":"tf-acc-test-configuration-variable","description":"Terraform acceptance test configuration variable","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"value2"}]}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 41.572208ms + duration: 43.669583ms - id: 2 request: proto: HTTP/1.1 @@ -86,7 +86,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/configuration_variables/2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d + url: https://recorded.retool.dev/api/v2/configuration_variables/18368cb2-21f6-40c4-9d54-5fc0a724219f method: GET response: proto: HTTP/1.1 @@ -96,13 +96,13 @@ interactions: trailer: {} content_length: 354 uncompressed: false - body: '{"success":true,"data":{"id":"2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d","name":"tf-acc-test-configuration-variable","description":"Terraform acceptance test configuration variable","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"value2"}]}}' + body: '{"success":true,"data":{"id":"18368cb2-21f6-40c4-9d54-5fc0a724219f","name":"tf-acc-test-configuration-variable","description":"Terraform acceptance test configuration variable","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"value2"}]}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 38.579916ms + duration: 37.443292ms - id: 3 request: proto: HTTP/1.1 @@ -119,7 +119,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/configuration_variables/2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d + url: https://recorded.retool.dev/api/v2/configuration_variables/18368cb2-21f6-40c4-9d54-5fc0a724219f method: GET response: proto: HTTP/1.1 @@ -129,13 +129,13 @@ interactions: trailer: {} content_length: 354 uncompressed: false - body: '{"success":true,"data":{"id":"2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d","name":"tf-acc-test-configuration-variable","description":"Terraform acceptance test configuration variable","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"value2"}]}}' + body: '{"success":true,"data":{"id":"18368cb2-21f6-40c4-9d54-5fc0a724219f","name":"tf-acc-test-configuration-variable","description":"Terraform acceptance test configuration variable","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"value2"}]}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 34.827625ms + duration: 38.119083ms - id: 4 request: proto: HTTP/1.1 @@ -148,14 +148,14 @@ interactions: remote_addr: "" request_uri: "" body: | - {"description":"Terraform acceptance test configuration variable modified","name":"tf-acc-test-configuration-variable-modified","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"new_value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"new_value2"}]} + {"description":"Terraform acceptance test configuration variable modified","name":"tf-acc-test-configuration-variable-modified","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"new_value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"new_value2"}]} form: {} headers: Content-Type: - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/configuration_variables/2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d + url: https://recorded.retool.dev/api/v2/configuration_variables/18368cb2-21f6-40c4-9d54-5fc0a724219f method: PUT response: proto: HTTP/1.1 @@ -165,13 +165,13 @@ interactions: trailer: {} content_length: 380 uncompressed: false - body: '{"success":true,"data":{"id":"2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d","name":"tf-acc-test-configuration-variable-modified","description":"Terraform acceptance test configuration variable modified","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"new_value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"new_value2"}]}}' + body: '{"success":true,"data":{"id":"18368cb2-21f6-40c4-9d54-5fc0a724219f","name":"tf-acc-test-configuration-variable-modified","description":"Terraform acceptance test configuration variable modified","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"new_value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"new_value2"}]}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 58.646625ms + duration: 48.6035ms - id: 5 request: proto: HTTP/1.1 @@ -188,7 +188,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/configuration_variables/2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d + url: https://recorded.retool.dev/api/v2/configuration_variables/18368cb2-21f6-40c4-9d54-5fc0a724219f method: GET response: proto: HTTP/1.1 @@ -198,13 +198,13 @@ interactions: trailer: {} content_length: 380 uncompressed: false - body: '{"success":true,"data":{"id":"2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d","name":"tf-acc-test-configuration-variable-modified","description":"Terraform acceptance test configuration variable modified","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"new_value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"new_value2"}]}}' + body: '{"success":true,"data":{"id":"18368cb2-21f6-40c4-9d54-5fc0a724219f","name":"tf-acc-test-configuration-variable-modified","description":"Terraform acceptance test configuration variable modified","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"new_value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"new_value2"}]}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 37.496625ms + duration: 39.122625ms - id: 6 request: proto: HTTP/1.1 @@ -221,7 +221,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/configuration_variables/2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d + url: https://recorded.retool.dev/api/v2/configuration_variables/18368cb2-21f6-40c4-9d54-5fc0a724219f method: GET response: proto: HTTP/1.1 @@ -231,13 +231,13 @@ interactions: trailer: {} content_length: 380 uncompressed: false - body: '{"success":true,"data":{"id":"2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d","name":"tf-acc-test-configuration-variable-modified","description":"Terraform acceptance test configuration variable modified","secret":false,"values":[{"environment_id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","value":"new_value1"},{"environment_id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","value":"new_value2"}]}}' + body: '{"success":true,"data":{"id":"18368cb2-21f6-40c4-9d54-5fc0a724219f","name":"tf-acc-test-configuration-variable-modified","description":"Terraform acceptance test configuration variable modified","secret":false,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"new_value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"new_value2"}]}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 34.891459ms + duration: 35.198042ms - id: 7 request: proto: HTTP/1.1 @@ -257,7 +257,7 @@ interactions: - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/configuration_variables/2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d + url: https://recorded.retool.dev/api/v2/configuration_variables/18368cb2-21f6-40c4-9d54-5fc0a724219f method: PUT response: proto: HTTP/1.1 @@ -273,7 +273,7 @@ interactions: - application/json; charset=utf-8 status: 400 Bad Request code: 400 - duration: 38.3085ms + duration: 37.519ms - id: 8 request: proto: HTTP/1.1 @@ -290,7 +290,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/configuration_variables/2b3a84c9-0e01-40f2-80ba-649ee7dfcd4d + url: https://recorded.retool.dev/api/v2/configuration_variables/18368cb2-21f6-40c4-9d54-5fc0a724219f method: DELETE response: proto: HTTP/1.1 @@ -304,4 +304,4 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 34.1455ms + duration: 37.187292ms diff --git a/test/data/recordings/TestAccConfigurationVariableSecret.yaml b/test/data/recordings/TestAccConfigurationVariableSecret.yaml new file mode 100644 index 0000000..afa6cac --- /dev/null +++ b/test/data/recordings/TestAccConfigurationVariableSecret.yaml @@ -0,0 +1,136 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 314 + transfer_encoding: [] + trailer: {} + host: recorded.retool.dev + remote_addr: "" + request_uri: "" + body: | + {"description":"Terraform acceptance test secret configuration variable","name":"tf-acc-test-secret-configuration-variable","secret":true,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"secret_value1"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"secret_value2"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - OpenAPI-Generator/1.0.0/go + url: https://recorded.retool.dev/api/v2/configuration_variables + method: POST + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 405 + uncompressed: false + body: '{"success":true,"data":{"id":"dd40a017-7d57-434b-a626-c60e802c3d31","name":"tf-acc-test-secret-configuration-variable","description":"Terraform acceptance test secret configuration variable","secret":true,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"---encrypted-on-server---"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"---encrypted-on-server---"}]}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 113.4005ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: recorded.retool.dev + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - OpenAPI-Generator/1.0.0/go + url: https://recorded.retool.dev/api/v2/configuration_variables/dd40a017-7d57-434b-a626-c60e802c3d31 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 405 + uncompressed: false + body: '{"success":true,"data":{"id":"dd40a017-7d57-434b-a626-c60e802c3d31","name":"tf-acc-test-secret-configuration-variable","description":"Terraform acceptance test secret configuration variable","secret":true,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"---encrypted-on-server---"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"---encrypted-on-server---"}]}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 38.290583ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: recorded.retool.dev + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - OpenAPI-Generator/1.0.0/go + url: https://recorded.retool.dev/api/v2/configuration_variables/dd40a017-7d57-434b-a626-c60e802c3d31 + method: GET + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 405 + uncompressed: false + body: '{"success":true,"data":{"id":"dd40a017-7d57-434b-a626-c60e802c3d31","name":"tf-acc-test-secret-configuration-variable","description":"Terraform acceptance test secret configuration variable","secret":true,"values":[{"environment_id":"23ba02f3-12c2-456e-826f-13b616daa5ce","value":"---encrypted-on-server---"},{"environment_id":"fc4a3c5b-6328-4990-b368-6879a1f38855","value":"---encrypted-on-server---"}]}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 44.187084ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: recorded.retool.dev + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - OpenAPI-Generator/1.0.0/go + url: https://recorded.retool.dev/api/v2/configuration_variables/dd40a017-7d57-434b-a626-c60e802c3d31 + method: DELETE + response: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: {} + status: 204 No Content + code: 204 + duration: 37.544584ms diff --git a/test/data/recordings/TestAccEnvironmentsDataSource.yaml b/test/data/recordings/TestAccEnvironmentsDataSource.yaml index cbd28b4..348d0e3 100644 --- a/test/data/recordings/TestAccEnvironmentsDataSource.yaml +++ b/test/data/recordings/TestAccEnvironmentsDataSource.yaml @@ -27,13 +27,13 @@ interactions: trailer: {} content_length: 605 uncompressed: false - body: '{"success":true,"data":[{"id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","name":"production","description":"An environment to define the production configuration of your resources","color":"#3C92DC","default":true,"created_at":"2025-10-06T11:40:56.580Z","updated_at":"2025-10-06T11:40:56.580Z"},{"id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","name":"staging","description":"An environment to define the staging configuration of your resources","color":"#E9AB11","default":false,"created_at":"2025-10-06T11:40:56.580Z","updated_at":"2025-10-06T11:40:56.580Z"}],"total_count":2,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"23ba02f3-12c2-456e-826f-13b616daa5ce","name":"production","description":"An environment to define the production configuration of your resources","color":"#3C92DC","default":true,"created_at":"2025-11-06T17:00:11.456Z","updated_at":"2025-11-06T17:00:11.456Z"},{"id":"fc4a3c5b-6328-4990-b368-6879a1f38855","name":"staging","description":"An environment to define the staging configuration of your resources","color":"#E9AB11","default":false,"created_at":"2025-11-06T17:00:11.456Z","updated_at":"2025-11-06T17:00:11.456Z"}],"total_count":2,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 33.485792ms + duration: 69.57075ms - id: 1 request: proto: HTTP/1.1 @@ -60,13 +60,13 @@ interactions: trailer: {} content_length: 605 uncompressed: false - body: '{"success":true,"data":[{"id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","name":"production","description":"An environment to define the production configuration of your resources","color":"#3C92DC","default":true,"created_at":"2025-10-06T11:40:56.580Z","updated_at":"2025-10-06T11:40:56.580Z"},{"id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","name":"staging","description":"An environment to define the staging configuration of your resources","color":"#E9AB11","default":false,"created_at":"2025-10-06T11:40:56.580Z","updated_at":"2025-10-06T11:40:56.580Z"}],"total_count":2,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"23ba02f3-12c2-456e-826f-13b616daa5ce","name":"production","description":"An environment to define the production configuration of your resources","color":"#3C92DC","default":true,"created_at":"2025-11-06T17:00:11.456Z","updated_at":"2025-11-06T17:00:11.456Z"},{"id":"fc4a3c5b-6328-4990-b368-6879a1f38855","name":"staging","description":"An environment to define the staging configuration of your resources","color":"#E9AB11","default":false,"created_at":"2025-11-06T17:00:11.456Z","updated_at":"2025-11-06T17:00:11.456Z"}],"total_count":2,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 26.369583ms + duration: 35.446709ms - id: 2 request: proto: HTTP/1.1 @@ -93,10 +93,10 @@ interactions: trailer: {} content_length: 605 uncompressed: false - body: '{"success":true,"data":[{"id":"ee07e7dd-9b48-414c-9d2b-212d148bd4ac","name":"production","description":"An environment to define the production configuration of your resources","color":"#3C92DC","default":true,"created_at":"2025-10-06T11:40:56.580Z","updated_at":"2025-10-06T11:40:56.580Z"},{"id":"3b553dd9-7d8f-41e5-9bf6-5510b38d0231","name":"staging","description":"An environment to define the staging configuration of your resources","color":"#E9AB11","default":false,"created_at":"2025-10-06T11:40:56.580Z","updated_at":"2025-10-06T11:40:56.580Z"}],"total_count":2,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"23ba02f3-12c2-456e-826f-13b616daa5ce","name":"production","description":"An environment to define the production configuration of your resources","color":"#3C92DC","default":true,"created_at":"2025-11-06T17:00:11.456Z","updated_at":"2025-11-06T17:00:11.456Z"},{"id":"fc4a3c5b-6328-4990-b368-6879a1f38855","name":"staging","description":"An environment to define the staging configuration of your resources","color":"#E9AB11","default":false,"created_at":"2025-11-06T17:00:11.456Z","updated_at":"2025-11-06T17:00:11.456Z"}],"total_count":2,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 24.204041ms + duration: 34.679042ms diff --git a/test/data/recordings/TestAccFolder.yaml b/test/data/recordings/TestAccFolder.yaml index 9cd9e3d..3b57692 100644 --- a/test/data/recordings/TestAccFolder.yaml +++ b/test/data/recordings/TestAccFolder.yaml @@ -28,13 +28,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":13,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":13,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 72.907458ms + duration: 75.806458ms - id: 1 request: proto: HTTP/1.1 @@ -64,13 +64,13 @@ interactions: trailer: {} content_length: 240 uncompressed: false - body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"}}' + body: '{"success":true,"data":{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.00275ms + duration: 37.845875ms - id: 2 request: proto: HTTP/1.1 @@ -83,7 +83,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"folder_type":"app","name":"tf-acc-test-child-folder","parent_folder_id":"app_93"} + {"folder_type":"app","name":"tf-acc-test-child-folder","parent_folder_id":"app_92"} form: {} headers: Content-Type: @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 247 uncompressed: false - body: '{"success":true,"data":{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"}}' + body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.516125ms + duration: 34.504375ms - id: 3 request: proto: HTTP/1.1 @@ -123,7 +123,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_93 + url: https://recorded.retool.dev/api/v2/folders/app_92 method: GET response: proto: HTTP/1.1 @@ -133,13 +133,13 @@ interactions: trailer: {} content_length: 240 uncompressed: false - body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"}}' + body: '{"success":true,"data":{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 66.479916ms + duration: 33.744833ms - id: 4 request: proto: HTTP/1.1 @@ -167,13 +167,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 76.954417ms + duration: 30.950833ms - id: 5 request: proto: HTTP/1.1 @@ -190,7 +190,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_94 + url: https://recorded.retool.dev/api/v2/folders/app_93 method: GET response: proto: HTTP/1.1 @@ -200,13 +200,13 @@ interactions: trailer: {} content_length: 247 uncompressed: false - body: '{"success":true,"data":{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"}}' + body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 74.935791ms + duration: 29.89725ms - id: 6 request: proto: HTTP/1.1 @@ -223,7 +223,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_93 + url: https://recorded.retool.dev/api/v2/folders/app_92 method: GET response: proto: HTTP/1.1 @@ -233,13 +233,13 @@ interactions: trailer: {} content_length: 240 uncompressed: false - body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"}}' + body: '{"success":true,"data":{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 79.527542ms + duration: 30.4955ms - id: 7 request: proto: HTTP/1.1 @@ -267,13 +267,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 80.873666ms + duration: 39.495541ms - id: 8 request: proto: HTTP/1.1 @@ -290,7 +290,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_94 + url: https://recorded.retool.dev/api/v2/folders/app_93 method: GET response: proto: HTTP/1.1 @@ -300,13 +300,13 @@ interactions: trailer: {} content_length: 247 uncompressed: false - body: '{"success":true,"data":{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"}}' + body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 79.190667ms + duration: 40.484666ms - id: 9 request: proto: HTTP/1.1 @@ -323,7 +323,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_93 + url: https://recorded.retool.dev/api/v2/folders/app_92 method: GET response: proto: HTTP/1.1 @@ -333,13 +333,13 @@ interactions: trailer: {} content_length: 240 uncompressed: false - body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"}}' + body: '{"success":true,"data":{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 80.398209ms + duration: 68.793667ms - id: 10 request: proto: HTTP/1.1 @@ -367,13 +367,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 79.657333ms + duration: 36.153917ms - id: 11 request: proto: HTTP/1.1 @@ -401,13 +401,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 81.911208ms + duration: 33.646875ms - id: 12 request: proto: HTTP/1.1 @@ -435,13 +435,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 78.63175ms + duration: 35.445708ms - id: 13 request: proto: HTTP/1.1 @@ -469,13 +469,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 79.264167ms + duration: 38.678667ms - id: 14 request: proto: HTTP/1.1 @@ -505,13 +505,13 @@ interactions: trailer: {} content_length: 242 uncompressed: false - body: '{"success":true,"data":{"id":"app_95","legacy_id":"app_95","name":"tf-acc-parent-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:08.816Z","created_at":"2024-07-25T18:27:08.816Z"}}' + body: '{"success":true,"data":{"id":"app_94","legacy_id":"app_94","name":"tf-acc-parent-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:57.876Z","created_at":"2025-11-07T04:21:57.876Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.813375ms + duration: 46.251583ms - id: 15 request: proto: HTTP/1.1 @@ -531,7 +531,7 @@ interactions: - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_94 + url: https://recorded.retool.dev/api/v2/folders/app_93 method: PATCH response: proto: HTTP/1.1 @@ -541,13 +541,13 @@ interactions: trailer: {} content_length: 247 uncompressed: false - body: '{"success":true,"data":{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"}}' + body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 153.817791ms + duration: 47.78475ms - id: 16 request: proto: HTTP/1.1 @@ -560,14 +560,14 @@ interactions: remote_addr: "" request_uri: "" body: | - {"operations":[{"op":"replace","path":"/name","value":"tf-acc-test-folder-renamed"},{"op":"replace","path":"/parent_folder_id","value":"app_95"}]} + {"operations":[{"op":"replace","path":"/name","value":"tf-acc-test-folder-renamed"},{"op":"replace","path":"/parent_folder_id","value":"app_94"}]} form: {} headers: Content-Type: - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_93 + url: https://recorded.retool.dev/api/v2/folders/app_92 method: PATCH response: proto: HTTP/1.1 @@ -577,13 +577,13 @@ interactions: trailer: {} content_length: 249 uncompressed: false - body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder-renamed","parent_folder_id":"app_95","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:08.924Z","created_at":"2024-07-25T18:27:07.493Z"}}' + body: '{"success":true,"data":{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder-renamed","parent_folder_id":"app_94","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:57.937Z","created_at":"2025-11-07T04:21:56.927Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 75.046ms + duration: 84.773208ms - id: 17 request: proto: HTTP/1.1 @@ -608,15 +608,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 246 + content_length: 242 uncompressed: false - body: '{"success":true,"data":{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"}}' + body: '{"success":true,"data":{"id":"app_94","legacy_id":"app_94","name":"tf-acc-parent-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:57.876Z","created_at":"2025-11-07T04:21:57.876Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 85.520208ms + duration: 34.017916ms - id: 18 request: proto: HTTP/1.1 @@ -633,7 +633,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_95 + url: https://recorded.retool.dev/api/v2/folders/app_93 method: GET response: proto: HTTP/1.1 @@ -641,15 +641,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 242 + content_length: 246 uncompressed: false - body: '{"success":true,"data":{"id":"app_95","legacy_id":"app_95","name":"tf-acc-parent-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:08.816Z","created_at":"2024-07-25T18:27:08.816Z"}}' + body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 85.637875ms + duration: 40.589833ms - id: 19 request: proto: HTTP/1.1 @@ -677,13 +677,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder-renamed","parent_folder_id":"app_95","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:08.924Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"app_95","legacy_id":"app_95","name":"tf-acc-parent-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:08.816Z","created_at":"2024-07-25T18:27:08.816Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":16,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder-renamed","parent_folder_id":"app_94","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:57.937Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-parent-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:57.876Z","created_at":"2025-11-07T04:21:57.876Z"},{"id":"app_95","legacy_id":"app_95","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:58.107Z","created_at":"2025-11-07T04:21:58.107Z"},{"id":"app_96","legacy_id":"app_96","name":"tf-acc-test-folder2","parent_folder_id":"app_95","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:58.152Z","created_at":"2025-11-07T04:21:58.152Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":18,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 83.127292ms + duration: 43.366167ms - id: 20 request: proto: HTTP/1.1 @@ -711,13 +711,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder-renamed","parent_folder_id":"app_95","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:08.924Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"app_95","legacy_id":"app_95","name":"tf-acc-parent-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:08.816Z","created_at":"2024-07-25T18:27:08.816Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":16,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder-renamed","parent_folder_id":"app_94","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:57.937Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-parent-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:57.876Z","created_at":"2025-11-07T04:21:57.876Z"},{"id":"app_95","legacy_id":"app_95","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:58.107Z","created_at":"2025-11-07T04:21:58.107Z"},{"id":"app_96","legacy_id":"app_96","name":"tf-acc-test-folder2","parent_folder_id":"app_95","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:58.152Z","created_at":"2025-11-07T04:21:58.152Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":18,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 80.683583ms + duration: 40.372708ms - id: 21 request: proto: HTTP/1.1 @@ -734,7 +734,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_93 + url: https://recorded.retool.dev/api/v2/folders/app_92 method: GET response: proto: HTTP/1.1 @@ -744,33 +744,30 @@ interactions: trailer: {} content_length: 249 uncompressed: false - body: '{"success":true,"data":{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder-renamed","parent_folder_id":"app_95","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:08.924Z","created_at":"2024-07-25T18:27:07.493Z"}}' + body: '{"success":true,"data":{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder-renamed","parent_folder_id":"app_94","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:57.937Z","created_at":"2025-11-07T04:21:56.927Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 67.122791ms + duration: 30.393333ms - id: 22 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 19 + content_length: 0 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" - body: | - {"recursive":true} + body: "" form: {} headers: - Content-Type: - - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_94 + url: https://recorded.retool.dev/api/v2/folders/app_92 method: DELETE response: proto: HTTP/1.1 @@ -784,24 +781,21 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 109.110333ms + duration: 42.849583ms - id: 23 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 19 + content_length: 0 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" - body: | - {"recursive":true} + body: "" form: {} headers: - Content-Type: - - application/json User-Agent: - OpenAPI-Generator/1.0.0/go url: https://recorded.retool.dev/api/v2/folders/app_93 @@ -818,27 +812,24 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 110.70425ms + duration: 46.434375ms - id: 24 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 19 + content_length: 0 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" - body: | - {"recursive":true} + body: "" form: {} headers: - Content-Type: - - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_95 + url: https://recorded.retool.dev/api/v2/folders/app_94 method: DELETE response: proto: HTTP/1.1 @@ -852,4 +843,4 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 81.981541ms + duration: 44.122166ms diff --git a/test/data/recordings/TestAccFoldersDataSource.yaml b/test/data/recordings/TestAccFoldersDataSource.yaml index a8aca34..05beffe 100644 --- a/test/data/recordings/TestAccFoldersDataSource.yaml +++ b/test/data/recordings/TestAccFoldersDataSource.yaml @@ -28,13 +28,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":13,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":13,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 82.476167ms + duration: 71.653833ms - id: 1 request: proto: HTTP/1.1 @@ -62,13 +62,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":13,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":13,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 74.8495ms + duration: 34.222292ms - id: 2 request: proto: HTTP/1.1 @@ -96,13 +96,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":13,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":13,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 75.127667ms + duration: 35.503875ms - id: 3 request: proto: HTTP/1.1 @@ -130,13 +130,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":14,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":13,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 84.379792ms + duration: 33.129ms - id: 4 request: proto: HTTP/1.1 @@ -164,13 +164,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 73.635417ms + duration: 32.254792ms - id: 5 request: proto: HTTP/1.1 @@ -198,13 +198,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 66.55525ms + duration: 38.271792ms - id: 6 request: proto: HTTP/1.1 @@ -232,13 +232,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 65.2715ms + duration: 34.504916ms - id: 7 request: proto: HTTP/1.1 @@ -266,13 +266,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 69.99325ms + duration: 35.356125ms - id: 8 request: proto: HTTP/1.1 @@ -300,13 +300,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 72.297042ms + duration: 34.918125ms - id: 9 request: proto: HTTP/1.1 @@ -334,13 +334,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 83.171666ms + duration: 41.313791ms - id: 10 request: proto: HTTP/1.1 @@ -368,13 +368,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 80.49275ms + duration: 35.960167ms - id: 11 request: proto: HTTP/1.1 @@ -402,10 +402,10 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"app_75","legacy_id":"app_75","name":"Example Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:46:17.690Z","created_at":"2024-07-25T17:46:17.690Z"},{"id":"app_76","legacy_id":"app_76","name":"Example Subfolder","parent_folder_id":"app_75","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T17:57:49.060Z","created_at":"2024-07-25T17:57:49.060Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.493Z","created_at":"2024-07-25T18:27:07.493Z"},{"id":"app_94","legacy_id":"app_94","name":"tf-acc-test-child-folder","parent_folder_id":"app_93","is_system_folder":false,"folder_type":"app","updated_at":"2024-07-25T18:27:07.607Z","created_at":"2024-07-25T18:27:07.607Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":15,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"app_92","legacy_id":"app_92","name":"tf-acc-test-folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.927Z","created_at":"2025-11-07T04:21:56.927Z"},{"id":"app_93","legacy_id":"app_93","name":"tf-acc-test-child-folder","parent_folder_id":"app_92","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:21:56.972Z","created_at":"2025-11-07T04:21:56.972Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_2","legacy_id":"resource_2","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":15,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 72.585833ms + duration: 35.198083ms diff --git a/test/data/recordings/TestAccGroup.yaml b/test/data/recordings/TestAccGroup.yaml index 55181f7..76dcf5f 100644 --- a/test/data/recordings/TestAccGroup.yaml +++ b/test/data/recordings/TestAccGroup.yaml @@ -6,14 +6,14 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 311 + content_length: 332 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"account_details_access":true,"audit_log_access":true,"name":"tf-acc-test-group","universal_app_access":"use","universal_query_library_access":"edit","universal_resource_access":"own","universal_workflow_access":"none","unpublished_release_access":false,"usage_analytics_access":true,"user_list_access":false} + {"account_details_access":true,"audit_log_access":true,"name":"tf-acc-test-group","theme_access":false,"universal_app_access":"use","universal_query_library_access":"edit","universal_resource_access":"own","universal_workflow_access":"none","unpublished_release_access":false,"usage_analytics_access":true,"user_list_access":false} form: {} headers: Content-Type: @@ -28,15 +28,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 495 + content_length: 516 uncompressed: false - body: '{"success":true,"data":{"id":52,"legacy_id":52,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2024-07-26T17:05:59.001Z","created_at":"2024-07-26T17:05:59.001Z"}}' + body: '{"success":true,"data":{"id":65,"legacy_id":65,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:56.567Z","created_at":"2025-11-07T04:21:56.567Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.278542ms + duration: 93.946708ms - id: 1 request: proto: HTTP/1.1 @@ -53,7 +53,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/52 + url: https://recorded.retool.dev/api/v2/groups/65 method: GET response: proto: HTTP/1.1 @@ -61,15 +61,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 495 + content_length: 516 uncompressed: false - body: '{"success":true,"data":{"id":52,"legacy_id":52,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2024-07-26T17:05:59.001Z","created_at":"2024-07-26T17:05:59.001Z"}}' + body: '{"success":true,"data":{"id":65,"legacy_id":65,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:56.567Z","created_at":"2025-11-07T04:21:56.567Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 78.673625ms + duration: 37.419417ms - id: 2 request: proto: HTTP/1.1 @@ -86,7 +86,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/52 + url: https://recorded.retool.dev/api/v2/groups/65 method: GET response: proto: HTTP/1.1 @@ -94,15 +94,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 495 + content_length: 516 uncompressed: false - body: '{"success":true,"data":{"id":52,"legacy_id":52,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2024-07-26T17:05:59.001Z","created_at":"2024-07-26T17:05:59.001Z"}}' + body: '{"success":true,"data":{"id":65,"legacy_id":65,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:56.567Z","created_at":"2025-11-07T04:21:56.567Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 75.307ms + duration: 36.05ms - id: 3 request: proto: HTTP/1.1 @@ -119,7 +119,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/52 + url: https://recorded.retool.dev/api/v2/groups/65 method: GET response: proto: HTTP/1.1 @@ -127,15 +127,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 495 + content_length: 516 uncompressed: false - body: '{"success":true,"data":{"id":52,"legacy_id":52,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2024-07-26T17:05:59.001Z","created_at":"2024-07-26T17:05:59.001Z"}}' + body: '{"success":true,"data":{"id":65,"legacy_id":65,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:56.567Z","created_at":"2025-11-07T04:21:56.567Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 80.698917ms + duration: 37.139875ms - id: 4 request: proto: HTTP/1.1 @@ -152,7 +152,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/52 + url: https://recorded.retool.dev/api/v2/groups/65 method: GET response: proto: HTTP/1.1 @@ -160,35 +160,35 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 495 + content_length: 516 uncompressed: false - body: '{"success":true,"data":{"id":52,"legacy_id":52,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2024-07-26T17:05:59.001Z","created_at":"2024-07-26T17:05:59.001Z"}}' + body: '{"success":true,"data":{"id":65,"legacy_id":65,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:56.567Z","created_at":"2025-11-07T04:21:56.567Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 93.10725ms + duration: 36.004125ms - id: 5 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 380 + content_length: 401 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"account_details_access":false,"audit_log_access":false,"landing_page_app_id":null,"members":[],"name":"tf-acc-test-group-modified","universal_app_access":"own","universal_query_library_access":"none","universal_resource_access":"none","universal_workflow_access":"edit","unpublished_release_access":true,"usage_analytics_access":false,"user_invites":[],"user_list_access":true} + {"account_details_access":false,"audit_log_access":false,"landing_page_app_id":null,"members":[],"name":"tf-acc-test-group-modified","theme_access":false,"universal_app_access":"own","universal_query_library_access":"none","universal_resource_access":"none","universal_workflow_access":"edit","unpublished_release_access":true,"usage_analytics_access":false,"user_invites":[],"user_list_access":true} form: {} headers: Content-Type: - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/52 + url: https://recorded.retool.dev/api/v2/groups/65 method: PUT response: proto: HTTP/1.1 @@ -196,15 +196,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 506 + content_length: 527 uncompressed: false - body: '{"success":true,"data":{"id":52,"legacy_id":52,"name":"tf-acc-test-group-modified","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"edit","universal_query_library_access":"none","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-07-26T17:05:59.910Z","created_at":"2024-07-26T17:05:59.001Z"}}' + body: '{"success":true,"data":{"id":65,"legacy_id":65,"name":"tf-acc-test-group-modified","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"edit","universal_query_library_access":"none","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:57.422Z","created_at":"2025-11-07T04:21:56.567Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 143.697542ms + duration: 53.600958ms - id: 6 request: proto: HTTP/1.1 @@ -221,7 +221,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/52 + url: https://recorded.retool.dev/api/v2/groups/65 method: GET response: proto: HTTP/1.1 @@ -229,15 +229,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 506 + content_length: 527 uncompressed: false - body: '{"success":true,"data":{"id":52,"legacy_id":52,"name":"tf-acc-test-group-modified","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"edit","universal_query_library_access":"none","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-07-26T17:05:59.910Z","created_at":"2024-07-26T17:05:59.001Z"}}' + body: '{"success":true,"data":{"id":65,"legacy_id":65,"name":"tf-acc-test-group-modified","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"edit","universal_query_library_access":"none","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:57.422Z","created_at":"2025-11-07T04:21:56.567Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.087166ms + duration: 38.839125ms - id: 7 request: proto: HTTP/1.1 @@ -254,7 +254,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/52 + url: https://recorded.retool.dev/api/v2/groups/65 method: GET response: proto: HTTP/1.1 @@ -262,15 +262,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 506 + content_length: 527 uncompressed: false - body: '{"success":true,"data":{"id":52,"legacy_id":52,"name":"tf-acc-test-group-modified","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"edit","universal_query_library_access":"none","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-07-26T17:05:59.910Z","created_at":"2024-07-26T17:05:59.001Z"}}' + body: '{"success":true,"data":{"id":65,"legacy_id":65,"name":"tf-acc-test-group-modified","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"edit","universal_query_library_access":"none","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:57.422Z","created_at":"2025-11-07T04:21:56.567Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 82.70175ms + duration: 35.222541ms - id: 8 request: proto: HTTP/1.1 @@ -287,7 +287,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/52 + url: https://recorded.retool.dev/api/v2/groups/65 method: DELETE response: proto: HTTP/1.1 @@ -301,20 +301,20 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 113.679208ms + duration: 46.413583ms - id: 9 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 330 + content_length: 351 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"account_details_access":false,"audit_log_access":false,"name":"tf-acc-test-group-with-defaults","universal_app_access":"none","universal_query_library_access":"none","universal_resource_access":"none","universal_workflow_access":"none","unpublished_release_access":false,"usage_analytics_access":false,"user_list_access":false} + {"account_details_access":false,"audit_log_access":false,"name":"tf-acc-test-group-with-defaults","theme_access":false,"universal_app_access":"none","universal_query_library_access":"none","universal_resource_access":"none","universal_workflow_access":"none","unpublished_release_access":false,"usage_analytics_access":false,"user_list_access":false} form: {} headers: Content-Type: @@ -329,15 +329,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 514 + content_length: 535 uncompressed: false - body: '{"success":true,"data":{"id":53,"legacy_id":53,"name":"tf-acc-test-group-with-defaults","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-07-26T17:06:00.553Z","created_at":"2024-07-26T17:06:00.553Z"}}' + body: '{"success":true,"data":{"id":66,"legacy_id":66,"name":"tf-acc-test-group-with-defaults","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:57.938Z","created_at":"2025-11-07T04:21:57.938Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 134.091209ms + duration: 130.991375ms - id: 10 request: proto: HTTP/1.1 @@ -354,7 +354,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/53 + url: https://recorded.retool.dev/api/v2/groups/66 method: GET response: proto: HTTP/1.1 @@ -362,15 +362,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 514 + content_length: 535 uncompressed: false - body: '{"success":true,"data":{"id":53,"legacy_id":53,"name":"tf-acc-test-group-with-defaults","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-07-26T17:06:00.553Z","created_at":"2024-07-26T17:06:00.553Z"}}' + body: '{"success":true,"data":{"id":66,"legacy_id":66,"name":"tf-acc-test-group-with-defaults","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:57.938Z","created_at":"2025-11-07T04:21:57.938Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 88.640542ms + duration: 36.932875ms - id: 11 request: proto: HTTP/1.1 @@ -387,7 +387,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/53 + url: https://recorded.retool.dev/api/v2/groups/66 method: DELETE response: proto: HTTP/1.1 @@ -401,4 +401,4 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 97.650625ms + duration: 37.566083ms diff --git a/test/data/recordings/TestAccGroupsDataSource.yaml b/test/data/recordings/TestAccGroupsDataSource.yaml index 65bf212..25be86d 100644 --- a/test/data/recordings/TestAccGroupsDataSource.yaml +++ b/test/data/recordings/TestAccGroupsDataSource.yaml @@ -28,13 +28,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":1,"legacy_id":1,"name":"admin","members":[{"id":"user_2ae6c5d3101b4e488c8b963f13d3807c","email":"ehud.blum@okta.com","is_group_admin":false}],"universal_app_access":"own","universal_resource_access":"own","universal_workflow_access":"own","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":true,"unpublished_release_access":true,"usage_analytics_access":true,"theme_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":2,"legacy_id":2,"name":"editor","members":[],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":3,"legacy_id":3,"name":"viewer","members":[],"universal_app_access":"use","universal_resource_access":"use","universal_workflow_access":"use","universal_query_library_access":"use","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":4,"legacy_id":4,"name":"All Users","members":[{"id":"user_2ae6c5d3101b4e488c8b963f13d3807c","email":"ehud.blum@okta.com","is_group_admin":false}],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"}],"total_count":4,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":1,"legacy_id":1,"name":"admin","members":[{"id":"user_37eb84a07b57447cb1dad0c17842b5d7","email":"lukew@retool.com","is_group_admin":false}],"universal_app_access":"own","universal_resource_access":"own","universal_workflow_access":"own","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":true,"unpublished_release_access":true,"usage_analytics_access":true,"theme_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":2,"legacy_id":2,"name":"editor","members":[],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":3,"legacy_id":3,"name":"viewer","members":[],"universal_app_access":"use","universal_resource_access":"use","universal_workflow_access":"use","universal_query_library_access":"use","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":4,"legacy_id":4,"name":"All Users","members":[{"id":"user_37eb84a07b57447cb1dad0c17842b5d7","email":"lukew@retool.com","is_group_admin":false}],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":5,"legacy_id":5,"name":"app_admin_group","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-06T21:26:12.904Z","created_at":"2025-11-06T21:25:56.237Z"},{"id":14,"legacy_id":14,"name":"hr_app_owners","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.922Z","created_at":"2025-11-07T01:40:43.922Z"},{"id":15,"legacy_id":15,"name":"hr_app_editors","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.922Z","created_at":"2025-11-07T01:40:43.922Z"},{"id":16,"legacy_id":16,"name":"hr_app_users","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.924Z","created_at":"2025-11-07T01:40:43.924Z"}],"total_count":8,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 45.997667ms + duration: 133.1855ms - id: 1 request: proto: HTTP/1.1 @@ -62,13 +62,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":1,"legacy_id":1,"name":"admin","members":[{"id":"user_2ae6c5d3101b4e488c8b963f13d3807c","email":"ehud.blum@okta.com","is_group_admin":false}],"universal_app_access":"own","universal_resource_access":"own","universal_workflow_access":"own","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":true,"unpublished_release_access":true,"usage_analytics_access":true,"theme_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":2,"legacy_id":2,"name":"editor","members":[],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":3,"legacy_id":3,"name":"viewer","members":[],"universal_app_access":"use","universal_resource_access":"use","universal_workflow_access":"use","universal_query_library_access":"use","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":4,"legacy_id":4,"name":"All Users","members":[{"id":"user_2ae6c5d3101b4e488c8b963f13d3807c","email":"ehud.blum@okta.com","is_group_admin":false}],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"}],"total_count":4,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":1,"legacy_id":1,"name":"admin","members":[{"id":"user_37eb84a07b57447cb1dad0c17842b5d7","email":"lukew@retool.com","is_group_admin":false}],"universal_app_access":"own","universal_resource_access":"own","universal_workflow_access":"own","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":true,"unpublished_release_access":true,"usage_analytics_access":true,"theme_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":2,"legacy_id":2,"name":"editor","members":[],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":3,"legacy_id":3,"name":"viewer","members":[],"universal_app_access":"use","universal_resource_access":"use","universal_workflow_access":"use","universal_query_library_access":"use","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":4,"legacy_id":4,"name":"All Users","members":[{"id":"user_37eb84a07b57447cb1dad0c17842b5d7","email":"lukew@retool.com","is_group_admin":false}],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":5,"legacy_id":5,"name":"app_admin_group","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-06T21:26:12.904Z","created_at":"2025-11-06T21:25:56.237Z"},{"id":14,"legacy_id":14,"name":"hr_app_owners","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.922Z","created_at":"2025-11-07T01:40:43.922Z"},{"id":15,"legacy_id":15,"name":"hr_app_editors","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.922Z","created_at":"2025-11-07T01:40:43.922Z"},{"id":16,"legacy_id":16,"name":"hr_app_users","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.924Z","created_at":"2025-11-07T01:40:43.924Z"},{"id":65,"legacy_id":65,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:56.567Z","created_at":"2025-11-07T04:21:56.567Z"}],"total_count":9,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 37.252791ms + duration: 43.1555ms - id: 2 request: proto: HTTP/1.1 @@ -96,10 +96,10 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":1,"legacy_id":1,"name":"admin","members":[{"id":"user_2ae6c5d3101b4e488c8b963f13d3807c","email":"ehud.blum@okta.com","is_group_admin":false}],"universal_app_access":"own","universal_resource_access":"own","universal_workflow_access":"own","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":true,"unpublished_release_access":true,"usage_analytics_access":true,"theme_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":2,"legacy_id":2,"name":"editor","members":[],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":3,"legacy_id":3,"name":"viewer","members":[],"universal_app_access":"use","universal_resource_access":"use","universal_workflow_access":"use","universal_query_library_access":"use","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"},{"id":4,"legacy_id":4,"name":"All Users","members":[{"id":"user_2ae6c5d3101b4e488c8b963f13d3807c","email":"ehud.blum@okta.com","is_group_admin":false}],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-10-06T11:40:56.593Z","created_at":"2025-10-06T11:40:56.593Z"}],"total_count":4,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":1,"legacy_id":1,"name":"admin","members":[{"id":"user_37eb84a07b57447cb1dad0c17842b5d7","email":"lukew@retool.com","is_group_admin":false}],"universal_app_access":"own","universal_resource_access":"own","universal_workflow_access":"own","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":true,"unpublished_release_access":true,"usage_analytics_access":true,"theme_access":true,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":2,"legacy_id":2,"name":"editor","members":[],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":true,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":3,"legacy_id":3,"name":"viewer","members":[],"universal_app_access":"use","universal_resource_access":"use","universal_workflow_access":"use","universal_query_library_access":"use","user_invites":[],"user_list_access":true,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":4,"legacy_id":4,"name":"All Users","members":[{"id":"user_37eb84a07b57447cb1dad0c17842b5d7","email":"lukew@retool.com","is_group_admin":false}],"universal_app_access":"edit","universal_resource_access":"own","universal_workflow_access":"edit","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-06T17:00:11.467Z","created_at":"2025-11-06T17:00:11.467Z"},{"id":5,"legacy_id":5,"name":"app_admin_group","members":[],"universal_app_access":"own","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-06T21:26:12.904Z","created_at":"2025-11-06T21:25:56.237Z"},{"id":14,"legacy_id":14,"name":"hr_app_owners","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.922Z","created_at":"2025-11-07T01:40:43.922Z"},{"id":15,"legacy_id":15,"name":"hr_app_editors","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.922Z","created_at":"2025-11-07T01:40:43.922Z"},{"id":16,"legacy_id":16,"name":"hr_app_users","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T01:40:43.924Z","created_at":"2025-11-07T01:40:43.924Z"},{"id":65,"legacy_id":65,"name":"tf-acc-test-group","members":[],"universal_app_access":"use","universal_resource_access":"own","universal_workflow_access":"none","universal_query_library_access":"edit","user_invites":[],"user_list_access":false,"audit_log_access":true,"unpublished_release_access":false,"usage_analytics_access":true,"theme_access":false,"account_details_access":true,"landing_page_app_id":null,"updated_at":"2025-11-07T04:21:56.567Z","created_at":"2025-11-07T04:21:56.567Z"}],"total_count":9,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 38.237083ms + duration: 36.651792ms diff --git a/test/data/recordings/TestAccPermissions.yaml b/test/data/recordings/TestAccPermissions.yaml index b4b28d9..8015d14 100644 --- a/test/data/recordings/TestAccPermissions.yaml +++ b/test/data/recordings/TestAccPermissions.yaml @@ -28,26 +28,26 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":11,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_132","legacy_id":"app_132","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:46:50.387Z","created_at":"2025-11-07T04:46:50.387Z"},{"id":"app_133","legacy_id":"app_133","name":"Example Subfolder","parent_folder_id":"app_132","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:46:50.460Z","created_at":"2025-11-07T04:46:50.460Z"},{"id":"app_150","legacy_id":"app_150","name":"Terraform Example App Folder 1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T05:18:38.662Z","created_at":"2025-11-07T05:18:38.662Z"},{"id":"app_151","legacy_id":"app_151","name":"Example Subfolder","parent_folder_id":"app_150","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T05:18:38.729Z","created_at":"2025-11-07T05:18:38.729Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_2","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_19","legacy_id":"resource_19","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T05:18:38.645Z","created_at":"2025-11-07T05:18:38.645Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":17,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 109.052ms + duration: 95.299875ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 316 + content_length: 337 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"account_details_access":false,"audit_log_access":false,"name":"tf-acc-test-group","universal_app_access":"none","universal_query_library_access":"none","universal_resource_access":"none","universal_workflow_access":"none","unpublished_release_access":false,"usage_analytics_access":false,"user_list_access":false} + {"account_details_access":false,"audit_log_access":false,"name":"tf-acc-test-group","theme_access":false,"universal_app_access":"none","universal_query_library_access":"none","universal_resource_access":"none","universal_workflow_access":"none","unpublished_release_access":false,"usage_analytics_access":false,"user_list_access":false} form: {} headers: Content-Type: @@ -62,15 +62,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 500 + content_length: 523 uncompressed: false - body: '{"success":true,"data":{"id":61,"legacy_id":61,"name":"tf-acc-test-group","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-08-19T22:56:52.609Z","created_at":"2024-08-19T22:56:52.609Z"}}' + body: '{"success":true,"data":{"id":124,"legacy_id":124,"name":"tf-acc-test-group","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T18:40:02.763Z","created_at":"2025-11-07T18:40:02.763Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 120.049083ms + duration: 108.238209ms - id: 2 request: proto: HTTP/1.1 @@ -100,13 +100,13 @@ interactions: trailer: {} content_length: 243 uncompressed: false - body: '{"success":true,"data":{"id":"app_114","legacy_id":"app_114","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.703Z","created_at":"2024-08-19T22:56:52.703Z"}}' + body: '{"success":true,"data":{"id":"app_175","legacy_id":"app_175","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.805Z","created_at":"2025-11-07T18:40:02.805Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.749917ms + duration: 41.828792ms - id: 3 request: proto: HTTP/1.1 @@ -119,7 +119,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"folder_type":"app","name":"tf-acc-test-folder2","parent_folder_id":"app_114"} + {"folder_type":"app","name":"tf-acc-test-folder2","parent_folder_id":"app_175"} form: {} headers: Content-Type: @@ -136,26 +136,26 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"success":true,"data":{"id":"app_115","legacy_id":"app_115","name":"tf-acc-test-folder2","parent_folder_id":"app_114","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.823Z","created_at":"2024-08-19T22:56:52.823Z"}}' + body: '{"success":true,"data":{"id":"app_176","legacy_id":"app_176","name":"tf-acc-test-folder2","parent_folder_id":"app_175","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.853Z","created_at":"2025-11-07T18:40:02.853Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.400208ms + duration: 36.760041ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 100 + content_length: 101 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"access_level":"use","object":{"id":"app_114","type":"folder"},"subject":{"id":61,"type":"group"}} + {"access_level":"use","object":{"id":"app_175","type":"folder"},"subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -172,13 +172,13 @@ interactions: trailer: {} content_length: 130 uncompressed: false - body: '{"success":true,"data":[{"type":"folder","id":"app_114","access_level":"use"}],"total_count":1,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"type":"folder","id":"app_175","access_level":"use"}],"total_count":1,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 160.066625ms + duration: 74.061083ms - id: 5 request: proto: HTTP/1.1 @@ -195,7 +195,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_114 + url: https://recorded.retool.dev/api/v2/groups/124 method: GET response: proto: HTTP/1.1 @@ -203,15 +203,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 243 + content_length: 523 uncompressed: false - body: '{"success":true,"data":{"id":"app_114","legacy_id":"app_114","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.703Z","created_at":"2024-08-19T22:56:52.703Z"}}' + body: '{"success":true,"data":{"id":124,"legacy_id":124,"name":"tf-acc-test-group","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T18:40:02.763Z","created_at":"2025-11-07T18:40:02.763Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 84.4565ms + duration: 49.128833ms - id: 6 request: proto: HTTP/1.1 @@ -228,7 +228,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/61 + url: https://recorded.retool.dev/api/v2/folders/app_175 method: GET response: proto: HTTP/1.1 @@ -236,15 +236,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 500 + content_length: 243 uncompressed: false - body: '{"success":true,"data":{"id":61,"legacy_id":61,"name":"tf-acc-test-group","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-08-19T22:56:52.609Z","created_at":"2024-08-19T22:56:52.609Z"}}' + body: '{"success":true,"data":{"id":"app_175","legacy_id":"app_175","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.805Z","created_at":"2025-11-07T18:40:02.805Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 95.960375ms + duration: 83.872375ms - id: 7 request: proto: HTTP/1.1 @@ -272,13 +272,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_114","legacy_id":"app_114","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.703Z","created_at":"2024-08-19T22:56:52.703Z"},{"id":"app_115","legacy_id":"app_115","name":"tf-acc-test-folder2","parent_folder_id":"app_114","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.823Z","created_at":"2024-08-19T22:56:52.823Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":13,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_132","legacy_id":"app_132","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:46:50.387Z","created_at":"2025-11-07T04:46:50.387Z"},{"id":"app_133","legacy_id":"app_133","name":"Example Subfolder","parent_folder_id":"app_132","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:46:50.460Z","created_at":"2025-11-07T04:46:50.460Z"},{"id":"app_150","legacy_id":"app_150","name":"Terraform Example App Folder 1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T05:18:38.662Z","created_at":"2025-11-07T05:18:38.662Z"},{"id":"app_151","legacy_id":"app_151","name":"Example Subfolder","parent_folder_id":"app_150","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T05:18:38.729Z","created_at":"2025-11-07T05:18:38.729Z"},{"id":"app_175","legacy_id":"app_175","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.805Z","created_at":"2025-11-07T18:40:02.805Z"},{"id":"app_176","legacy_id":"app_176","name":"tf-acc-test-folder2","parent_folder_id":"app_175","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.853Z","created_at":"2025-11-07T18:40:02.853Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_2","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_19","legacy_id":"resource_19","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T05:18:38.645Z","created_at":"2025-11-07T05:18:38.645Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":19,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 82.545083ms + duration: 55.290709ms - id: 8 request: proto: HTTP/1.1 @@ -295,7 +295,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_115 + url: https://recorded.retool.dev/api/v2/folders/app_176 method: GET response: proto: HTTP/1.1 @@ -305,26 +305,26 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"success":true,"data":{"id":"app_115","legacy_id":"app_115","name":"tf-acc-test-folder2","parent_folder_id":"app_114","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.823Z","created_at":"2024-08-19T22:56:52.823Z"}}' + body: '{"success":true,"data":{"id":"app_176","legacy_id":"app_176","name":"tf-acc-test-folder2","parent_folder_id":"app_175","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.853Z","created_at":"2025-11-07T18:40:02.853Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 85.777041ms + duration: 40.855084ms - id: 9 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 57 + content_length: 58 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"app","subject":{"id":61,"type":"group"}} + {"object_type":"app","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -347,20 +347,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 89.760167ms + duration: 45.543417ms - id: 10 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 60 + content_length: 61 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"folder","subject":{"id":61,"type":"group"}} + {"object_type":"folder","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -377,26 +377,26 @@ interactions: trailer: {} content_length: 130 uncompressed: false - body: '{"success":true,"data":[{"type":"folder","id":"app_114","access_level":"use"}],"total_count":1,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"type":"folder","id":"app_175","access_level":"use"}],"total_count":1,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 82.941959ms + duration: 47.77525ms - id: 11 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 62 + content_length: 63 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"resource","subject":{"id":61,"type":"group"}} + {"object_type":"resource","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -419,20 +419,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 80.39725ms + duration: 43.909959ms - id: 12 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 76 + content_length: 77 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"resource_configuration","subject":{"id":61,"type":"group"}} + {"object_type":"resource_configuration","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -455,20 +455,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 74.687084ms + duration: 37.643542ms - id: 13 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 57 + content_length: 58 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"app","subject":{"id":61,"type":"group"}} + {"object_type":"app","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -491,20 +491,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 93.08675ms + duration: 52.433ms - id: 14 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 60 + content_length: 61 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"folder","subject":{"id":61,"type":"group"}} + {"object_type":"folder","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -521,26 +521,26 @@ interactions: trailer: {} content_length: 130 uncompressed: false - body: '{"success":true,"data":[{"type":"folder","id":"app_114","access_level":"use"}],"total_count":1,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"type":"folder","id":"app_175","access_level":"use"}],"total_count":1,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.188209ms + duration: 48.452333ms - id: 15 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 62 + content_length: 63 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"resource","subject":{"id":61,"type":"group"}} + {"object_type":"resource","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -563,20 +563,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 95.26775ms + duration: 42.031542ms - id: 16 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 76 + content_length: 77 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"resource_configuration","subject":{"id":61,"type":"group"}} + {"object_type":"resource_configuration","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -599,7 +599,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.438166ms + duration: 42.135625ms - id: 17 request: proto: HTTP/1.1 @@ -616,7 +616,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_114 + url: https://recorded.retool.dev/api/v2/folders/app_175 method: GET response: proto: HTTP/1.1 @@ -626,13 +626,13 @@ interactions: trailer: {} content_length: 243 uncompressed: false - body: '{"success":true,"data":{"id":"app_114","legacy_id":"app_114","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.703Z","created_at":"2024-08-19T22:56:52.703Z"}}' + body: '{"success":true,"data":{"id":"app_175","legacy_id":"app_175","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.805Z","created_at":"2025-11-07T18:40:02.805Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 112.731417ms + duration: 44.944917ms - id: 18 request: proto: HTTP/1.1 @@ -649,7 +649,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/61 + url: https://recorded.retool.dev/api/v2/groups/124 method: GET response: proto: HTTP/1.1 @@ -657,15 +657,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 500 + content_length: 523 uncompressed: false - body: '{"success":true,"data":{"id":61,"legacy_id":61,"name":"tf-acc-test-group","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-08-19T22:56:52.609Z","created_at":"2024-08-19T22:56:52.609Z"}}' + body: '{"success":true,"data":{"id":124,"legacy_id":124,"name":"tf-acc-test-group","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T18:40:02.763Z","created_at":"2025-11-07T18:40:02.763Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.465292ms + duration: 47.664833ms - id: 19 request: proto: HTTP/1.1 @@ -693,13 +693,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_114","legacy_id":"app_114","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.703Z","created_at":"2024-08-19T22:56:52.703Z"},{"id":"app_115","legacy_id":"app_115","name":"tf-acc-test-folder2","parent_folder_id":"app_114","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.823Z","created_at":"2024-08-19T22:56:52.823Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":13,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_132","legacy_id":"app_132","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:46:50.387Z","created_at":"2025-11-07T04:46:50.387Z"},{"id":"app_133","legacy_id":"app_133","name":"Example Subfolder","parent_folder_id":"app_132","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:46:50.460Z","created_at":"2025-11-07T04:46:50.460Z"},{"id":"app_150","legacy_id":"app_150","name":"Terraform Example App Folder 1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T05:18:38.662Z","created_at":"2025-11-07T05:18:38.662Z"},{"id":"app_151","legacy_id":"app_151","name":"Example Subfolder","parent_folder_id":"app_150","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T05:18:38.729Z","created_at":"2025-11-07T05:18:38.729Z"},{"id":"app_175","legacy_id":"app_175","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.805Z","created_at":"2025-11-07T18:40:02.805Z"},{"id":"app_176","legacy_id":"app_176","name":"tf-acc-test-folder2","parent_folder_id":"app_175","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.853Z","created_at":"2025-11-07T18:40:02.853Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_2","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_19","legacy_id":"resource_19","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T05:18:38.645Z","created_at":"2025-11-07T05:18:38.645Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":19,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 88.184459ms + duration: 59.028083ms - id: 20 request: proto: HTTP/1.1 @@ -716,7 +716,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_115 + url: https://recorded.retool.dev/api/v2/folders/app_176 method: GET response: proto: HTTP/1.1 @@ -726,26 +726,26 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"success":true,"data":{"id":"app_115","legacy_id":"app_115","name":"tf-acc-test-folder2","parent_folder_id":"app_114","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.823Z","created_at":"2024-08-19T22:56:52.823Z"}}' + body: '{"success":true,"data":{"id":"app_176","legacy_id":"app_176","name":"tf-acc-test-folder2","parent_folder_id":"app_175","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.853Z","created_at":"2025-11-07T18:40:02.853Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 76.49925ms + duration: 37.055667ms - id: 21 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 57 + content_length: 58 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"app","subject":{"id":61,"type":"group"}} + {"object_type":"app","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -768,20 +768,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 85.388541ms + duration: 48.290042ms - id: 22 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 60 + content_length: 61 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"folder","subject":{"id":61,"type":"group"}} + {"object_type":"folder","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -798,26 +798,26 @@ interactions: trailer: {} content_length: 130 uncompressed: false - body: '{"success":true,"data":[{"type":"folder","id":"app_114","access_level":"use"}],"total_count":1,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"type":"folder","id":"app_175","access_level":"use"}],"total_count":1,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.806292ms + duration: 45.975291ms - id: 23 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 62 + content_length: 63 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"resource","subject":{"id":61,"type":"group"}} + {"object_type":"resource","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -840,20 +840,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 212.445375ms + duration: 49.306708ms - id: 24 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 76 + content_length: 77 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"resource_configuration","subject":{"id":61,"type":"group"}} + {"object_type":"resource_configuration","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -876,20 +876,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 71.159875ms + duration: 59.305292ms - id: 25 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 79 + content_length: 80 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object":{"id":"app_114","type":"folder"},"subject":{"id":61,"type":"group"}} + {"object":{"id":"app_175","type":"folder"},"subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -912,20 +912,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 166.442542ms + duration: 92.387375ms - id: 26 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 100 + content_length: 101 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"access_level":"own","object":{"id":"app_115","type":"folder"},"subject":{"id":61,"type":"group"}} + {"access_level":"own","object":{"id":"app_176","type":"folder"},"subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -942,13 +942,13 @@ interactions: trailer: {} content_length: 130 uncompressed: false - body: '{"success":true,"data":[{"type":"folder","id":"app_115","access_level":"own"}],"total_count":1,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"type":"folder","id":"app_176","access_level":"own"}],"total_count":1,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 149.284875ms + duration: 70.690042ms - id: 27 request: proto: HTTP/1.1 @@ -965,7 +965,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/61 + url: https://recorded.retool.dev/api/v2/folders/app_175 method: GET response: proto: HTTP/1.1 @@ -973,15 +973,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 500 + content_length: 243 uncompressed: false - body: '{"success":true,"data":{"id":61,"legacy_id":61,"name":"tf-acc-test-group","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2024-08-19T22:56:52.609Z","created_at":"2024-08-19T22:56:52.609Z"}}' + body: '{"success":true,"data":{"id":"app_175","legacy_id":"app_175","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.805Z","created_at":"2025-11-07T18:40:02.805Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 109.325208ms + duration: 33.726583ms - id: 28 request: proto: HTTP/1.1 @@ -998,7 +998,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_114 + url: https://recorded.retool.dev/api/v2/groups/124 method: GET response: proto: HTTP/1.1 @@ -1006,15 +1006,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 243 + content_length: 523 uncompressed: false - body: '{"success":true,"data":{"id":"app_114","legacy_id":"app_114","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.703Z","created_at":"2024-08-19T22:56:52.703Z"}}' + body: '{"success":true,"data":{"id":124,"legacy_id":124,"name":"tf-acc-test-group","members":[],"universal_app_access":"none","universal_resource_access":"none","universal_workflow_access":"none","universal_query_library_access":"none","user_invites":[],"user_list_access":false,"audit_log_access":false,"unpublished_release_access":false,"usage_analytics_access":false,"theme_access":false,"account_details_access":false,"landing_page_app_id":null,"updated_at":"2025-11-07T18:40:02.763Z","created_at":"2025-11-07T18:40:02.763Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 109.770875ms + duration: 40.240417ms - id: 29 request: proto: HTTP/1.1 @@ -1042,13 +1042,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.316Z","created_at":"2023-11-11T00:41:17.316Z"},{"id":"app_114","legacy_id":"app_114","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.703Z","created_at":"2024-08-19T22:56:52.703Z"},{"id":"app_115","legacy_id":"app_115","name":"tf-acc-test-folder2","parent_folder_id":"app_114","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.823Z","created_at":"2024-08-19T22:56:52.823Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2023-11-11T00:41:17.319Z","created_at":"2023-11-11T00:41:17.319Z"},{"id":"app_6","legacy_id":"app_6","name":"Components","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.000Z","created_at":"2023-11-11T00:54:28.000Z"},{"id":"app_7","legacy_id":"app_7","name":"Navigation","parent_folder_id":"app_6","is_system_folder":false,"folder_type":"app","updated_at":"2023-11-11T00:54:28.579Z","created_at":"2023-11-11T00:54:28.579Z"},{"id":"file_5","legacy_id":"file_5","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2023-11-11T00:41:17.328Z","created_at":"2023-11-11T00:41:17.328Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2023-11-11T00:41:17.321Z","created_at":"2023-11-11T00:41:17.321Z"},{"id":"resource_2","legacy_id":"resource_2","name":"sample","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:41:18.336Z","created_at":"2023-11-11T00:41:18.336Z"},{"id":"resource_3","legacy_id":"resource_3","name":"dev","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:22.753Z","created_at":"2023-11-11T00:54:22.753Z"},{"id":"resource_4","legacy_id":"resource_4","name":"shared","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2023-11-11T00:54:23.102Z","created_at":"2023-11-11T00:54:23.102Z"},{"id":"workflow_3","legacy_id":"workflow_3","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.324Z","created_at":"2023-11-11T00:41:17.324Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"archive","parent_folder_id":"workflow_3","is_system_folder":true,"folder_type":"workflow","updated_at":"2023-11-11T00:41:17.326Z","created_at":"2023-11-11T00:41:17.326Z"}],"total_count":13,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"id":"app_1","legacy_id":"app_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.431Z","created_at":"2025-11-06T17:00:11.431Z"},{"id":"app_10","legacy_id":"app_10","name":"Example Subfolder","parent_folder_id":"app_9","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.296Z","created_at":"2025-11-07T01:06:08.296Z"},{"id":"app_132","legacy_id":"app_132","name":"Terraform Example App Folder","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:46:50.387Z","created_at":"2025-11-07T04:46:50.387Z"},{"id":"app_133","legacy_id":"app_133","name":"Example Subfolder","parent_folder_id":"app_132","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T04:46:50.460Z","created_at":"2025-11-07T04:46:50.460Z"},{"id":"app_150","legacy_id":"app_150","name":"Terraform Example App Folder 1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T05:18:38.662Z","created_at":"2025-11-07T05:18:38.662Z"},{"id":"app_151","legacy_id":"app_151","name":"Example Subfolder","parent_folder_id":"app_150","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T05:18:38.729Z","created_at":"2025-11-07T05:18:38.729Z"},{"id":"app_175","legacy_id":"app_175","name":"tf-acc-test-folder1","parent_folder_id":"app_1","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.805Z","created_at":"2025-11-07T18:40:02.805Z"},{"id":"app_176","legacy_id":"app_176","name":"tf-acc-test-folder2","parent_folder_id":"app_175","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.853Z","created_at":"2025-11-07T18:40:02.853Z"},{"id":"app_2","legacy_id":"app_2","name":"archive","parent_folder_id":"app_1","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.435Z","created_at":"2025-11-06T17:00:11.435Z"},{"id":"app_3","legacy_id":"app_3","name":"personalRoot","parent_folder_id":null,"is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:11.438Z","created_at":"2025-11-06T17:00:11.438Z"},{"id":"app_7","legacy_id":"app_7","name":"(1) Luke Wright''s Drafts","parent_folder_id":"app_3","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.885Z","created_at":"2025-11-06T17:00:30.885Z"},{"id":"app_8","legacy_id":"app_8","name":"(1) Luke Wright''s Trash","parent_folder_id":"app_7","is_system_folder":true,"folder_type":"app","updated_at":"2025-11-06T17:00:30.889Z","created_at":"2025-11-06T17:00:30.889Z"},{"id":"app_9","legacy_id":"app_9","name":"Terraform Example App Folder","parent_folder_id":"app_2","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T01:06:08.243Z","created_at":"2025-11-07T01:06:08.243Z"},{"id":"file_6","legacy_id":"file_6","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"file","updated_at":"2025-11-06T17:00:11.454Z","created_at":"2025-11-06T17:00:11.454Z"},{"id":"resource_1","legacy_id":"resource_1","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"resource","updated_at":"2025-11-06T17:00:11.443Z","created_at":"2025-11-06T17:00:11.443Z"},{"id":"resource_19","legacy_id":"resource_19","name":"Terraform Example Resource Folder","parent_folder_id":"resource_1","is_system_folder":false,"folder_type":"resource","updated_at":"2025-11-07T05:18:38.645Z","created_at":"2025-11-07T05:18:38.645Z"},{"id":"workflow_11","legacy_id":"workflow_11","name":"Terraform Example Workflow Folder","parent_folder_id":"workflow_4","is_system_folder":false,"folder_type":"workflow","updated_at":"2025-11-07T01:12:15.321Z","created_at":"2025-11-07T01:12:15.321Z"},{"id":"workflow_4","legacy_id":"workflow_4","name":"root","parent_folder_id":null,"is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.450Z","created_at":"2025-11-06T17:00:11.450Z"},{"id":"workflow_5","legacy_id":"workflow_5","name":"archive","parent_folder_id":"workflow_4","is_system_folder":true,"folder_type":"workflow","updated_at":"2025-11-06T17:00:11.452Z","created_at":"2025-11-06T17:00:11.452Z"}],"total_count":19,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 86.605958ms + duration: 42.755084ms - id: 30 request: proto: HTTP/1.1 @@ -1065,7 +1065,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_115 + url: https://recorded.retool.dev/api/v2/folders/app_176 method: GET response: proto: HTTP/1.1 @@ -1075,26 +1075,26 @@ interactions: trailer: {} content_length: 245 uncompressed: false - body: '{"success":true,"data":{"id":"app_115","legacy_id":"app_115","name":"tf-acc-test-folder2","parent_folder_id":"app_114","is_system_folder":false,"folder_type":"app","updated_at":"2024-08-19T22:56:52.823Z","created_at":"2024-08-19T22:56:52.823Z"}}' + body: '{"success":true,"data":{"id":"app_176","legacy_id":"app_176","name":"tf-acc-test-folder2","parent_folder_id":"app_175","is_system_folder":false,"folder_type":"app","updated_at":"2025-11-07T18:40:02.853Z","created_at":"2025-11-07T18:40:02.853Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.673208ms + duration: 38.243334ms - id: 31 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 57 + content_length: 58 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"app","subject":{"id":61,"type":"group"}} + {"object_type":"app","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -1117,20 +1117,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 171.537042ms + duration: 56.049ms - id: 32 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 60 + content_length: 61 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"folder","subject":{"id":61,"type":"group"}} + {"object_type":"folder","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -1147,26 +1147,26 @@ interactions: trailer: {} content_length: 130 uncompressed: false - body: '{"success":true,"data":[{"type":"folder","id":"app_115","access_level":"own"}],"total_count":1,"next_token":null,"has_more":false}' + body: '{"success":true,"data":[{"type":"folder","id":"app_176","access_level":"own"}],"total_count":1,"next_token":null,"has_more":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.752375ms + duration: 42.442791ms - id: 33 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 62 + content_length: 63 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"resource","subject":{"id":61,"type":"group"}} + {"object_type":"resource","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -1189,20 +1189,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.660208ms + duration: 49.3075ms - id: 34 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 76 + content_length: 77 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object_type":"resource_configuration","subject":{"id":61,"type":"group"}} + {"object_type":"resource_configuration","subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -1225,20 +1225,20 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 81.491875ms + duration: 47.281833ms - id: 35 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 79 + content_length: 80 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"object":{"id":"app_115","type":"folder"},"subject":{"id":61,"type":"group"}} + {"object":{"id":"app_176","type":"folder"},"subject":{"id":124,"type":"group"}} form: {} headers: Content-Type: @@ -1261,7 +1261,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.244292ms + duration: 66.986041ms - id: 36 request: proto: HTTP/1.1 @@ -1278,7 +1278,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/groups/61 + url: https://recorded.retool.dev/api/v2/folders/app_176 method: DELETE response: proto: HTTP/1.1 @@ -1292,27 +1292,24 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 99.017ms + duration: 52.064667ms - id: 37 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 19 + content_length: 0 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" - body: | - {"recursive":true} + body: "" form: {} headers: - Content-Type: - - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_115 + url: https://recorded.retool.dev/api/v2/groups/124 method: DELETE response: proto: HTTP/1.1 @@ -1326,27 +1323,24 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 109.039417ms + duration: 51.443584ms - id: 38 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 19 + content_length: 0 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" - body: | - {"recursive":true} + body: "" form: {} headers: - Content-Type: - - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/folders/app_114 + url: https://recorded.retool.dev/api/v2/folders/app_175 method: DELETE response: proto: HTTP/1.1 @@ -1360,4 +1354,4 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 95.774375ms + duration: 48.143459ms diff --git a/test/data/recordings/TestAccSSO.yaml b/test/data/recordings/TestAccSSO.yaml index b2f9a53..15ab3b4 100644 --- a/test/data/recordings/TestAccSSO.yaml +++ b/test/data/recordings/TestAccSSO.yaml @@ -28,15 +28,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 195 + content_length: 384 uncompressed: false - body: '{"success":true,"data":{"config_type":"google","google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","disable_email_password_login":true}}' + body: '{"success":true,"data":{"config_type":"google","google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 75.633833ms + duration: 118.834167ms - id: 1 request: proto: HTTP/1.1 @@ -61,15 +61,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 195 + content_length: 384 uncompressed: false - body: '{"success":true,"data":{"config_type":"google","google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","disable_email_password_login":true}}' + body: '{"success":true,"data":{"config_type":"google","google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 67.791ms + duration: 37.651166ms - id: 2 request: proto: HTTP/1.1 @@ -94,15 +94,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 195 + content_length: 384 uncompressed: false - body: '{"success":true,"data":{"config_type":"google","google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","disable_email_password_login":true}}' + body: '{"success":true,"data":{"config_type":"google","google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 69.680667ms + duration: 38.014917ms - id: 3 request: proto: HTTP/1.1 @@ -115,7 +115,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"config_type":"oidc","disable_email_password_login":true,"jit_enabled":true,"jwt_email_key":"idToken.email","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","jwt_roles_key":"idToken.roles","oidc_auth_url":"https://example.com/auth","oidc_client_id":"client_id","oidc_client_secret":"client_secret","oidc_scopes":"openid email profile","oidc_token_url":"https://example.com/token","restricted_domain":"example.com,example.org","roles_mapping":"user-\u003euser_group,admin-\u003eadmin_group","trigger_login_automatically":true}} + {"data":{"config_type":"oidc","disable_email_password_login":true,"jit_enabled":true,"jwt_email_key":"idToken.email","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","jwt_roles_key":"idToken.roles","oidc_auth_url":"https://example.com/auth","oidc_client_id":"client_id","oidc_client_secret":"client_secret","oidc_scopes":"openid email profile","oidc_token_url":"https://example.com/token","restricted_domain":"example.com,example.org","roles_mapping":"admin-\u003eadmin_group,user-\u003euser_group","trigger_login_automatically":true}} form: {} headers: Content-Type: @@ -130,15 +130,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 616 + content_length: 805 uncompressed: false - body: '{"success":true,"data":{"config_type":"oidc","oidc_client_id":"client_id","oidc_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"user->user_group,admin->admin_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true}}' + body: '{"success":true,"data":{"config_type":"oidc","oidc_client_id":"client_id","oidc_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"admin->admin_group,user->user_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 73.200417ms + duration: 38.92225ms - id: 4 request: proto: HTTP/1.1 @@ -163,15 +163,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 616 + content_length: 805 uncompressed: false - body: '{"success":true,"data":{"config_type":"oidc","oidc_client_id":"client_id","oidc_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"user->user_group,admin->admin_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true}}' + body: '{"success":true,"data":{"config_type":"oidc","oidc_client_id":"client_id","oidc_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"admin->admin_group,user->user_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 77.578583ms + duration: 36.309416ms - id: 5 request: proto: HTTP/1.1 @@ -196,15 +196,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 616 + content_length: 805 uncompressed: false - body: '{"success":true,"data":{"config_type":"oidc","oidc_client_id":"client_id","oidc_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"user->user_group,admin->admin_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true}}' + body: '{"success":true,"data":{"config_type":"oidc","oidc_client_id":"client_id","oidc_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"admin->admin_group,user->user_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 71.298333ms + duration: 35.278041ms - id: 6 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"config_type":"google \u0026 oidc","disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"client_secret","jit_enabled":true,"jwt_email_key":"idToken.email","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","jwt_roles_key":"idToken.roles","oidc_auth_url":"https://example.com/auth","oidc_client_id":"client_id","oidc_client_secret":"client_secret","oidc_scopes":"openid email profile","oidc_token_url":"https://example.com/token","restricted_domain":"example.com,example.org","roles_mapping":"user-\u003euser_group,admin-\u003eadmin_group","trigger_login_automatically":true}} + {"data":{"config_type":"google \u0026 oidc","disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"client_secret","jit_enabled":true,"jwt_email_key":"idToken.email","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","jwt_roles_key":"idToken.roles","oidc_auth_url":"https://example.com/auth","oidc_client_id":"client_id","oidc_client_secret":"client_secret","oidc_scopes":"openid email profile","oidc_token_url":"https://example.com/token","restricted_domain":"example.com,example.org","roles_mapping":"admin-\u003eadmin_group,user-\u003euser_group","trigger_login_automatically":true}} form: {} headers: Content-Type: @@ -230,17 +230,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 736 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & oidc","oidc_client_id":"client_id","oidc_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"user->user_group,admin->admin_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & oidc","oidc_client_id":"client_id","oidc_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"admin->admin_group,user->user_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 70.839583ms + duration: 38.693042ms - id: 7 request: proto: HTTP/1.1 @@ -263,17 +264,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 736 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & oidc","oidc_client_id":"client_id","oidc_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"user->user_group,admin->admin_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & oidc","oidc_client_id":"client_id","oidc_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"admin->admin_group,user->user_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 70.233542ms + duration: 33.702416ms - id: 8 request: proto: HTTP/1.1 @@ -296,17 +298,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 736 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & oidc","oidc_client_id":"client_id","oidc_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"user->user_group,admin->admin_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & oidc","oidc_client_id":"client_id","oidc_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}","oidc_scopes":"openid email profile","oidc_auth_url":"https://example.com/auth","oidc_token_url":"https://example.com/token","jwt_email_key":"idToken.email","jwt_roles_key":"idToken.roles","jwt_first_name_key":"idToken.given_name","jwt_last_name_key":"idToken.family_name","roles_mapping":"admin->admin_group,user->user_group","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 65.245917ms + duration: 45.299584ms - id: 9 request: proto: HTTP/1.1 @@ -332,17 +335,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 757 - uncompressed: false - body: '{"success":true,"data":{"config_type":"saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"user->user_group,user->another_user_group,admin->admin_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"__RETOOL_ENCRYPTED__(7a08f5924114b5646723610a16e7710d)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(28d15d7f8ebcb352f48f3295057cfb22)","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"user->user_group,user->another_user_group,admin->admin_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"77e2f9b0220b20acd47ec58265dad9d9\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"3c3c3ff6b02d46d8dd17a8416a433c2c\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 67.210708ms + duration: 42.759292ms - id: 10 request: proto: HTTP/1.1 @@ -365,17 +369,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 757 - uncompressed: false - body: '{"success":true,"data":{"config_type":"saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"user->user_group,user->another_user_group,admin->admin_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"__RETOOL_ENCRYPTED__(7a08f5924114b5646723610a16e7710d)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(28d15d7f8ebcb352f48f3295057cfb22)","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"user->user_group,user->another_user_group,admin->admin_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"77e2f9b0220b20acd47ec58265dad9d9\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"3c3c3ff6b02d46d8dd17a8416a433c2c\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 65.757625ms + duration: 32.091833ms - id: 11 request: proto: HTTP/1.1 @@ -398,17 +403,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 757 - uncompressed: false - body: '{"success":true,"data":{"config_type":"saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"user->user_group,user->another_user_group,admin->admin_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"__RETOOL_ENCRYPTED__(7a08f5924114b5646723610a16e7710d)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(28d15d7f8ebcb352f48f3295057cfb22)","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"user->user_group,user->another_user_group,admin->admin_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"77e2f9b0220b20acd47ec58265dad9d9\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"3c3c3ff6b02d46d8dd17a8416a433c2c\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 75.377375ms + duration: 42.706208ms - id: 12 request: proto: HTTP/1.1 @@ -434,17 +440,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 877 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->admin_group,user->user_group,user->another_user_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"__RETOOL_ENCRYPTED__(7a08f5924114b5646723610a16e7710d)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(28d15d7f8ebcb352f48f3295057cfb22)","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->admin_group,user->user_group,user->another_user_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"77e2f9b0220b20acd47ec58265dad9d9\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"3c3c3ff6b02d46d8dd17a8416a433c2c\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 70.263292ms + duration: 43.130875ms - id: 13 request: proto: HTTP/1.1 @@ -467,17 +474,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 877 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->admin_group,user->user_group,user->another_user_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"__RETOOL_ENCRYPTED__(7a08f5924114b5646723610a16e7710d)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(28d15d7f8ebcb352f48f3295057cfb22)","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->admin_group,user->user_group,user->another_user_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"77e2f9b0220b20acd47ec58265dad9d9\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"3c3c3ff6b02d46d8dd17a8416a433c2c\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 64.7885ms + duration: 36.6665ms - id: 14 request: proto: HTTP/1.1 @@ -500,17 +508,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 877 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->admin_group,user->user_group,user->another_user_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"__RETOOL_ENCRYPTED__(7a08f5924114b5646723610a16e7710d)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(28d15d7f8ebcb352f48f3295057cfb22)","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->admin_group,user->user_group,user->another_user_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"77e2f9b0220b20acd47ec58265dad9d9\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"3c3c3ff6b02d46d8dd17a8416a433c2c\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 69.073625ms + duration: 41.015167ms - id: 15 request: proto: HTTP/1.1 @@ -533,17 +542,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 877 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->admin_group,user->user_group,user->another_user_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"__RETOOL_ENCRYPTED__(7a08f5924114b5646723610a16e7710d)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(28d15d7f8ebcb352f48f3295057cfb22)","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"__RETOOL_ENCRYPTED__(d2c542b01b439eb4552f7925bf8fd4e1)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"first_name","saml_last_name_attribute":"last_name","saml_groups_attribute":"groups","saml_sync_group_claims":true,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->admin_group,user->user_group,user->another_user_group","ldap_server_url":"ldap://example.com","ldap_base_domain_components":"dc=example,dc=com","ldap_server_name":"ldap.example.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"77e2f9b0220b20acd47ec58265dad9d9\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"3c3c3ff6b02d46d8dd17a8416a433c2c\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,example.org","trigger_login_automatically":true,"idp_metadata_xml":"metadata_xml","jit_enabled":true,"disable_email_password_login":true,"google_client_id":"client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"40caec09e05a06443c666f42a7126327\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 63.560167ms + duration: 42.177417ms - id: 16 request: proto: HTTP/1.1 @@ -556,7 +566,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"data":{"config_type":"google \u0026 saml","disable_email_password_login":false,"google_client_id":"new_client_id","google_client_secret":"new_client_secret","idp_metadata_xml":"new_metadata_xml","jit_enabled":false,"ldap_base_domain_components":"dc=newexample,dc=com","ldap_role_mapping":"guest-\u003eguest_group,user-\u003enew_user_group,user-\u003eanother_user_group,admin-\u003enew_admin_group","ldap_server_certificate":"new_server_cert","ldap_server_key":"new_server_key","ldap_server_name":"ldap.newexample.com","ldap_server_url":"ldap://newexample.com","ldap_sync_group_claims":true,"restricted_domain":"example.com,newexample.org","saml_first_name_attribute":"new_first_name","saml_groups_attribute":"new_groups","saml_last_name_attribute":"new_last_name","saml_sync_group_claims":false,"trigger_login_automatically":false}} + {"data":{"config_type":"google \u0026 saml","disable_email_password_login":false,"google_client_id":"new_client_id","google_client_secret":"new_client_secret","idp_metadata_xml":"new_metadata_xml","jit_enabled":false,"ldap_base_domain_components":"dc=newexample,dc=com","ldap_role_mapping":"admin-\u003enew_admin_group,guest-\u003eguest_group,user-\u003enew_user_group,user-\u003eanother_user_group","ldap_server_certificate":"new_server_cert","ldap_server_key":"new_server_key","ldap_server_name":"ldap.newexample.com","ldap_server_url":"ldap://newexample.com","ldap_sync_group_claims":true,"restricted_domain":"example.com,newexample.org","saml_first_name_attribute":"new_first_name","saml_groups_attribute":"new_groups","saml_last_name_attribute":"new_last_name","saml_sync_group_claims":false,"trigger_login_automatically":false}} form: {} headers: Content-Type: @@ -569,17 +579,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 972 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"new_first_name","saml_last_name_attribute":"new_last_name","saml_groups_attribute":"new_groups","saml_sync_group_claims":false,"ldap_sync_group_claims":true,"ldap_role_mapping":"guest->guest_group,user->new_user_group,user->another_user_group,admin->new_admin_group","ldap_server_url":"ldap://newexample.com","ldap_base_domain_components":"dc=newexample,dc=com","ldap_server_name":"ldap.newexample.com","ldap_server_key":"__RETOOL_ENCRYPTED__(584912862e8fa80ebe82df90d7b2b647)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(c0caca8d3a97da3dab7777ea87901be2)","restricted_domain":"example.com,newexample.org","trigger_login_automatically":false,"idp_metadata_xml":"new_metadata_xml","jit_enabled":false,"disable_email_password_login":false,"google_client_id":"new_client_id","google_client_secret":"__RETOOL_ENCRYPTED__(f7ce585aa5033c7a69bcdc5c18803f21d7bfedc7b3ed484ad9909cf188b999ad)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"new_first_name","saml_last_name_attribute":"new_last_name","saml_groups_attribute":"new_groups","saml_sync_group_claims":false,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->new_admin_group,guest->guest_group,user->new_user_group,user->another_user_group","ldap_server_url":"ldap://newexample.com","ldap_base_domain_components":"dc=newexample,dc=com","ldap_server_name":"ldap.newexample.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"0776dcf996d21f496d31ad862f5364a2\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"ff9007e6973755ea3df2ddfed61acef9\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,newexample.org","trigger_login_automatically":false,"idp_metadata_xml":"new_metadata_xml","jit_enabled":false,"disable_email_password_login":false,"google_client_id":"new_client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"1be3e45fe61fedbaa2bf286d62c8f512e63562e8a1e058f26cc9b23bbd902c14\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 74.97125ms + duration: 56.075667ms - id: 17 request: proto: HTTP/1.1 @@ -602,17 +613,18 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - transfer_encoding: [] + transfer_encoding: + - chunked trailer: {} - content_length: 972 - uncompressed: false - body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"new_first_name","saml_last_name_attribute":"new_last_name","saml_groups_attribute":"new_groups","saml_sync_group_claims":false,"ldap_sync_group_claims":true,"ldap_role_mapping":"guest->guest_group,user->new_user_group,user->another_user_group,admin->new_admin_group","ldap_server_url":"ldap://newexample.com","ldap_base_domain_components":"dc=newexample,dc=com","ldap_server_name":"ldap.newexample.com","ldap_server_key":"__RETOOL_ENCRYPTED__(584912862e8fa80ebe82df90d7b2b647)","ldap_server_certificate":"__RETOOL_ENCRYPTED__(c0caca8d3a97da3dab7777ea87901be2)","restricted_domain":"example.com,newexample.org","trigger_login_automatically":false,"idp_metadata_xml":"new_metadata_xml","jit_enabled":false,"disable_email_password_login":false,"google_client_id":"new_client_id","google_client_secret":"__RETOOL_ENCRYPTED__(f7ce585aa5033c7a69bcdc5c18803f21d7bfedc7b3ed484ad9909cf188b999ad)"}}' + content_length: -1 + uncompressed: true + body: '{"success":true,"data":{"config_type":"google & saml","saml_first_name_attribute":"new_first_name","saml_last_name_attribute":"new_last_name","saml_groups_attribute":"new_groups","saml_sync_group_claims":false,"ldap_sync_group_claims":true,"ldap_role_mapping":"admin->new_admin_group,guest->guest_group,user->new_user_group,user->another_user_group","ldap_server_url":"ldap://newexample.com","ldap_base_domain_components":"dc=newexample,dc=com","ldap_server_name":"ldap.newexample.com","ldap_server_key":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"0776dcf996d21f496d31ad862f5364a2\",\"iv\":null,\"authTag\":null}","ldap_server_certificate":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"ff9007e6973755ea3df2ddfed61acef9\",\"iv\":null,\"authTag\":null}","restricted_domain":"example.com,newexample.org","trigger_login_automatically":false,"idp_metadata_xml":"new_metadata_xml","jit_enabled":false,"disable_email_password_login":false,"google_client_id":"new_client_id","google_client_secret":"{\"canaryValue\":\"__RETOOL_ENCRYPTED_JSON__\",\"methodVersion\":2,\"encryptionKeyHash\":\"a7b580d711ef2807c7f11d881a1e7ff8a68c7e7d4e7c14e217bc9c522e3678ba\",\"encryptedValue\":\"1be3e45fe61fedbaa2bf286d62c8f512e63562e8a1e058f26cc9b23bbd902c14\",\"iv\":null,\"authTag\":null}"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 64.471125ms + duration: 42.447875ms - id: 18 request: proto: HTTP/1.1 @@ -643,4 +655,4 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 65.188208ms + duration: 44.924541ms diff --git a/test/data/recordings/TestAccSourceControlSettings.yaml b/test/data/recordings/TestAccSourceControlSettings.yaml index 6d5d281..8df26ee 100644 --- a/test/data/recordings/TestAccSourceControlSettings.yaml +++ b/test/data/recordings/TestAccSourceControlSettings.yaml @@ -6,14 +6,14 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 212 + content_length: 250 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"settings":{"auto_branch_naming_enabled":false,"custom_pull_request_template":"custom-pull-request-template","custom_pull_request_template_enabled":true,"force_uuid_mapping":true,"version_control_locked":true}} + {"settings":{"auto_branch_naming_enabled":false,"auto_cleanup_branches_enabled":false,"custom_pull_request_template":"custom-pull-request-template","custom_pull_request_template_enabled":true,"force_uuid_mapping":true,"version_control_locked":true}} form: {} headers: Content-Type: @@ -28,15 +28,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 222 + content_length: 260 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":false,"custom_pull_request_template_enabled":true,"custom_pull_request_template":"custom-pull-request-template","version_control_locked":true,"force_uuid_mapping":true}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":false,"custom_pull_request_template_enabled":true,"custom_pull_request_template":"custom-pull-request-template","version_control_locked":true,"force_uuid_mapping":true,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.346292ms + duration: 80.003292ms - id: 1 request: proto: HTTP/1.1 @@ -61,15 +61,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 222 + content_length: 260 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":false,"custom_pull_request_template_enabled":true,"custom_pull_request_template":"custom-pull-request-template","version_control_locked":true,"force_uuid_mapping":true}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":false,"custom_pull_request_template_enabled":true,"custom_pull_request_template":"custom-pull-request-template","version_control_locked":true,"force_uuid_mapping":true,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 94.757625ms + duration: 39.299833ms - id: 2 request: proto: HTTP/1.1 @@ -94,15 +94,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 222 + content_length: 260 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":false,"custom_pull_request_template_enabled":true,"custom_pull_request_template":"custom-pull-request-template","version_control_locked":true,"force_uuid_mapping":true}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":false,"custom_pull_request_template_enabled":true,"custom_pull_request_template":"custom-pull-request-template","version_control_locked":true,"force_uuid_mapping":true,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 83.300458ms + duration: 34.270333ms - id: 3 request: proto: HTTP/1.1 @@ -127,28 +127,28 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 222 + content_length: 260 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":false,"custom_pull_request_template_enabled":true,"custom_pull_request_template":"custom-pull-request-template","version_control_locked":true,"force_uuid_mapping":true}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":false,"custom_pull_request_template_enabled":true,"custom_pull_request_template":"custom-pull-request-template","version_control_locked":true,"force_uuid_mapping":true,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 79.493708ms + duration: 35.76725ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 222 + content_length: 260 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"settings":{"auto_branch_naming_enabled":true,"custom_pull_request_template":"custom-pull-request-template-updated","custom_pull_request_template_enabled":false,"force_uuid_mapping":false,"version_control_locked":false}} + {"settings":{"auto_branch_naming_enabled":true,"auto_cleanup_branches_enabled":false,"custom_pull_request_template":"custom-pull-request-template-updated","custom_pull_request_template_enabled":false,"force_uuid_mapping":false,"version_control_locked":false}} form: {} headers: Content-Type: @@ -163,15 +163,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 232 + content_length: 270 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"custom-pull-request-template-updated","version_control_locked":false,"force_uuid_mapping":false}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"custom-pull-request-template-updated","version_control_locked":false,"force_uuid_mapping":false,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.3665ms + duration: 40.695917ms - id: 5 request: proto: HTTP/1.1 @@ -196,15 +196,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 232 + content_length: 270 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"custom-pull-request-template-updated","version_control_locked":false,"force_uuid_mapping":false}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"custom-pull-request-template-updated","version_control_locked":false,"force_uuid_mapping":false,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 79.129667ms + duration: 41.831083ms - id: 6 request: proto: HTTP/1.1 @@ -229,28 +229,28 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 232 + content_length: 270 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"custom-pull-request-template-updated","version_control_locked":false,"force_uuid_mapping":false}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"custom-pull-request-template-updated","version_control_locked":false,"force_uuid_mapping":false,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 92.023042ms + duration: 38.128125ms - id: 7 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 186 + content_length: 224 transfer_encoding: [] trailer: {} host: recorded.retool.dev remote_addr: "" request_uri: "" body: | - {"settings":{"auto_branch_naming_enabled":true,"custom_pull_request_template":"","custom_pull_request_template_enabled":false,"force_uuid_mapping":false,"version_control_locked":false}} + {"settings":{"auto_branch_naming_enabled":true,"auto_cleanup_branches_enabled":false,"custom_pull_request_template":"","custom_pull_request_template_enabled":false,"force_uuid_mapping":false,"version_control_locked":false}} form: {} headers: Content-Type: @@ -265,15 +265,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 196 + content_length: 234 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"","version_control_locked":false,"force_uuid_mapping":false}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"","version_control_locked":false,"force_uuid_mapping":false,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 83.329833ms + duration: 49.727458ms - id: 8 request: proto: HTTP/1.1 @@ -298,15 +298,15 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 196 + content_length: 234 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"","version_control_locked":false,"force_uuid_mapping":false}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"","version_control_locked":false,"force_uuid_mapping":false,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 87.097167ms + duration: 43.674625ms - id: 9 request: proto: HTTP/1.1 @@ -334,12 +334,12 @@ interactions: proto_minor: 1 transfer_encoding: [] trailer: {} - content_length: 196 + content_length: 234 uncompressed: false - body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"","version_control_locked":false,"force_uuid_mapping":false}}' + body: '{"success":true,"data":{"auto_branch_naming_enabled":true,"custom_pull_request_template_enabled":false,"custom_pull_request_template":"","version_control_locked":false,"force_uuid_mapping":false,"auto_cleanup_branches_enabled":false}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 92.044042ms + duration: 73.9215ms diff --git a/test/data/recordings/TestAccSourceControlTest.yaml b/test/data/recordings/TestAccSourceControlTest.yaml index 47d3cd8..7912d94 100644 --- a/test/data/recordings/TestAccSourceControlTest.yaml +++ b/test/data/recordings/TestAccSourceControlTest.yaml @@ -36,7 +36,7 @@ interactions: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 143.993708ms + duration: 89.081709ms - id: 1 request: proto: HTTP/1.1 @@ -69,7 +69,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 370.805916ms + duration: 45.44625ms - id: 2 request: proto: HTTP/1.1 @@ -102,7 +102,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 319.899041ms + duration: 31.074792ms - id: 3 request: proto: HTTP/1.1 @@ -138,7 +138,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 75.94375ms + duration: 37.122667ms - id: 4 request: proto: HTTP/1.1 @@ -171,7 +171,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 65.163375ms + duration: 38.767542ms - id: 5 request: proto: HTTP/1.1 @@ -204,7 +204,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 68.443833ms + duration: 43.242ms - id: 6 request: proto: HTTP/1.1 @@ -240,7 +240,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 79.486666ms + duration: 41.623ms - id: 7 request: proto: HTTP/1.1 @@ -273,7 +273,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 64.54075ms + duration: 30.6925ms - id: 8 request: proto: HTTP/1.1 @@ -306,7 +306,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 67.293334ms + duration: 30.642625ms - id: 9 request: proto: HTTP/1.1 @@ -342,7 +342,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 79.706209ms + duration: 43.874709ms - id: 10 request: proto: HTTP/1.1 @@ -375,7 +375,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 81.806083ms + duration: 42.312792ms - id: 11 request: proto: HTTP/1.1 @@ -408,7 +408,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 67.687458ms + duration: 37.5965ms - id: 12 request: proto: HTTP/1.1 @@ -444,7 +444,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 78.268541ms + duration: 69.94125ms - id: 13 request: proto: HTTP/1.1 @@ -477,7 +477,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 70.276333ms + duration: 85.797208ms - id: 14 request: proto: HTTP/1.1 @@ -510,7 +510,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 73.63375ms + duration: 78.595167ms - id: 15 request: proto: HTTP/1.1 @@ -546,7 +546,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 82.736125ms + duration: 89.045959ms - id: 16 request: proto: HTTP/1.1 @@ -579,7 +579,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 66.537083ms + duration: 47.022541ms - id: 17 request: proto: HTTP/1.1 @@ -612,7 +612,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 63.078084ms + duration: 52.35325ms - id: 18 request: proto: HTTP/1.1 @@ -648,7 +648,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 78.482958ms + duration: 52.471834ms - id: 19 request: proto: HTTP/1.1 @@ -681,7 +681,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 67.431416ms + duration: 49.701458ms - id: 20 request: proto: HTTP/1.1 @@ -714,7 +714,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 64.626458ms + duration: 48.586292ms - id: 21 request: proto: HTTP/1.1 @@ -745,4 +745,4 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 83.579459ms + duration: 83.430583ms diff --git a/test/data/recordings/TestAccSpace.yaml b/test/data/recordings/TestAccSpace.yaml index 94f0a26..8f99883 100644 --- a/test/data/recordings/TestAccSpace.yaml +++ b/test/data/recordings/TestAccSpace.yaml @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 188 uncompressed: false - body: '{"success":true,"data":{"id":"org_b35d89732e704738880a16f3bb7ce517","name":"tf-acc-test-space","domain":"","created_at":"2024-07-17T20:55:00.701Z","updated_at":"2024-07-17T20:55:02.068Z"}}' + body: '{"success":true,"data":{"id":"org_df0f66ed6173458e85b339d240171487","name":"tf-acc-test-space","domain":"","created_at":"2025-11-07T04:21:59.485Z","updated_at":"2025-11-07T04:22:02.553Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 1.389688833s + duration: 3.521828834s - id: 1 request: proto: HTTP/1.1 @@ -53,7 +53,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_b35d89732e704738880a16f3bb7ce517 + url: https://recorded.retool.dev/api/v2/spaces/org_df0f66ed6173458e85b339d240171487 method: GET response: proto: HTTP/1.1 @@ -63,13 +63,13 @@ interactions: trailer: {} content_length: 205 uncompressed: false - body: '{"success":true,"data":{"id":"org_b35d89732e704738880a16f3bb7ce517","name":"tf-acc-test-space","domain":"tfspace.localhost","created_at":"2024-07-17T20:55:00.701Z","updated_at":"2024-07-17T20:55:02.061Z"}}' + body: '{"success":true,"data":{"id":"org_df0f66ed6173458e85b339d240171487","name":"tf-acc-test-space","domain":"tfspace.localhost","created_at":"2025-11-07T04:21:59.485Z","updated_at":"2025-11-07T04:22:02.348Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 17.135417ms + duration: 45.370875ms - id: 2 request: proto: HTTP/1.1 @@ -86,7 +86,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_b35d89732e704738880a16f3bb7ce517 + url: https://recorded.retool.dev/api/v2/spaces/org_df0f66ed6173458e85b339d240171487 method: GET response: proto: HTTP/1.1 @@ -96,13 +96,13 @@ interactions: trailer: {} content_length: 205 uncompressed: false - body: '{"success":true,"data":{"id":"org_b35d89732e704738880a16f3bb7ce517","name":"tf-acc-test-space","domain":"tfspace.localhost","created_at":"2024-07-17T20:55:00.701Z","updated_at":"2024-07-17T20:55:02.061Z"}}' + body: '{"success":true,"data":{"id":"org_df0f66ed6173458e85b339d240171487","name":"tf-acc-test-space","domain":"tfspace.localhost","created_at":"2025-11-07T04:21:59.485Z","updated_at":"2025-11-07T04:22:02.348Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 14.159958ms + duration: 39.796459ms - id: 3 request: proto: HTTP/1.1 @@ -119,7 +119,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_b35d89732e704738880a16f3bb7ce517 + url: https://recorded.retool.dev/api/v2/spaces/org_df0f66ed6173458e85b339d240171487 method: GET response: proto: HTTP/1.1 @@ -129,13 +129,13 @@ interactions: trailer: {} content_length: 205 uncompressed: false - body: '{"success":true,"data":{"id":"org_b35d89732e704738880a16f3bb7ce517","name":"tf-acc-test-space","domain":"tfspace.localhost","created_at":"2024-07-17T20:55:00.701Z","updated_at":"2024-07-17T20:55:02.061Z"}}' + body: '{"success":true,"data":{"id":"org_df0f66ed6173458e85b339d240171487","name":"tf-acc-test-space","domain":"tfspace.localhost","created_at":"2025-11-07T04:21:59.485Z","updated_at":"2025-11-07T04:22:02.348Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 12.185416ms + duration: 35.825542ms - id: 4 request: proto: HTTP/1.1 @@ -155,7 +155,7 @@ interactions: - application/json User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_b35d89732e704738880a16f3bb7ce517 + url: https://recorded.retool.dev/api/v2/spaces/org_df0f66ed6173458e85b339d240171487 method: PUT response: proto: HTTP/1.1 @@ -165,13 +165,13 @@ interactions: trailer: {} content_length: 216 uncompressed: false - body: '{"success":true,"data":{"id":"org_b35d89732e704738880a16f3bb7ce517","name":"tf-acc-test-space-updated","domain":"tfspaceupd.localhost","created_at":"2024-07-17T20:55:00.701Z","updated_at":"2024-07-17T20:55:02.570Z"}}' + body: '{"success":true,"data":{"id":"org_df0f66ed6173458e85b339d240171487","name":"tf-acc-test-space-updated","domain":"tfspaceupd.localhost","created_at":"2025-11-07T04:21:59.485Z","updated_at":"2025-11-07T04:22:03.598Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 14.776666ms + duration: 44.058583ms - id: 5 request: proto: HTTP/1.1 @@ -188,7 +188,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_b35d89732e704738880a16f3bb7ce517 + url: https://recorded.retool.dev/api/v2/spaces/org_df0f66ed6173458e85b339d240171487 method: GET response: proto: HTTP/1.1 @@ -198,13 +198,13 @@ interactions: trailer: {} content_length: 216 uncompressed: false - body: '{"success":true,"data":{"id":"org_b35d89732e704738880a16f3bb7ce517","name":"tf-acc-test-space-updated","domain":"tfspaceupd.localhost","created_at":"2024-07-17T20:55:00.701Z","updated_at":"2024-07-17T20:55:02.570Z"}}' + body: '{"success":true,"data":{"id":"org_df0f66ed6173458e85b339d240171487","name":"tf-acc-test-space-updated","domain":"tfspaceupd.localhost","created_at":"2025-11-07T04:21:59.485Z","updated_at":"2025-11-07T04:22:03.598Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 13.62125ms + duration: 35.315375ms - id: 6 request: proto: HTTP/1.1 @@ -221,7 +221,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_b35d89732e704738880a16f3bb7ce517 + url: https://recorded.retool.dev/api/v2/spaces/org_df0f66ed6173458e85b339d240171487 method: GET response: proto: HTTP/1.1 @@ -231,13 +231,13 @@ interactions: trailer: {} content_length: 216 uncompressed: false - body: '{"success":true,"data":{"id":"org_b35d89732e704738880a16f3bb7ce517","name":"tf-acc-test-space-updated","domain":"tfspaceupd.localhost","created_at":"2024-07-17T20:55:00.701Z","updated_at":"2024-07-17T20:55:02.570Z"}}' + body: '{"success":true,"data":{"id":"org_df0f66ed6173458e85b339d240171487","name":"tf-acc-test-space-updated","domain":"tfspaceupd.localhost","created_at":"2025-11-07T04:21:59.485Z","updated_at":"2025-11-07T04:22:03.598Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 11.764666ms + duration: 39.961792ms - id: 7 request: proto: HTTP/1.1 @@ -254,7 +254,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_b35d89732e704738880a16f3bb7ce517 + url: https://recorded.retool.dev/api/v2/spaces/org_df0f66ed6173458e85b339d240171487 method: DELETE response: proto: HTTP/1.1 @@ -268,7 +268,7 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 24.216125ms + duration: 43.842917ms - id: 8 request: proto: HTTP/1.1 @@ -298,13 +298,13 @@ interactions: trailer: {} content_length: 202 uncompressed: false - body: '{"success":true,"data":{"id":"org_80754aafe9c947b080d2ee3cabc9f1e8","name":"tf-acc-test-space-with-defaults","domain":"","created_at":"2024-07-17T20:55:02.885Z","updated_at":"2024-07-17T20:55:03.743Z"}}' + body: '{"success":true,"data":{"id":"org_d7f6a9fbd37749778d700787f0425dcf","name":"tf-acc-test-space-with-defaults","domain":"","created_at":"2025-11-07T04:22:04.083Z","updated_at":"2025-11-07T04:22:05.206Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 887.314833ms + duration: 1.214161958s - id: 9 request: proto: HTTP/1.1 @@ -321,7 +321,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_80754aafe9c947b080d2ee3cabc9f1e8 + url: https://recorded.retool.dev/api/v2/spaces/org_d7f6a9fbd37749778d700787f0425dcf method: GET response: proto: HTTP/1.1 @@ -331,13 +331,13 @@ interactions: trailer: {} content_length: 226 uncompressed: false - body: '{"success":true,"data":{"id":"org_80754aafe9c947b080d2ee3cabc9f1e8","name":"tf-acc-test-space-with-defaults","domain":"tfspacedefault.localhost","created_at":"2024-07-17T20:55:02.885Z","updated_at":"2024-07-17T20:55:03.743Z"}}' + body: '{"success":true,"data":{"id":"org_d7f6a9fbd37749778d700787f0425dcf","name":"tf-acc-test-space-with-defaults","domain":"tfspacedefault.localhost","created_at":"2025-11-07T04:22:04.083Z","updated_at":"2025-11-07T04:22:05.206Z"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 16.68125ms + duration: 38.039792ms - id: 10 request: proto: HTTP/1.1 @@ -354,7 +354,7 @@ interactions: headers: User-Agent: - OpenAPI-Generator/1.0.0/go - url: https://recorded.retool.dev/api/v2/spaces/org_80754aafe9c947b080d2ee3cabc9f1e8 + url: https://recorded.retool.dev/api/v2/spaces/org_d7f6a9fbd37749778d700787f0425dcf method: DELETE response: proto: HTTP/1.1 @@ -368,4 +368,4 @@ interactions: headers: {} status: 204 No Content code: 204 - duration: 16.055417ms + duration: 44.23475ms