From 0ed711a71138eb5346161212ddb1df12d8aadb49 Mon Sep 17 00:00:00 2001 From: Dave Dozier <2555178+dwdozier@users.noreply.github.com> Date: Thu, 30 May 2024 16:05:31 -0400 Subject: [PATCH 1/2] remove ledger_id from types based on conserv changes DRAFT: still having trouble with: service_account_null_last_used_by test in user_details every attempt at getting the correct type in the mock data for chatgpt_threads results in an error (incorrect type or key must be a string) Pulling in the new openapi spec from conserv caused a ton of changes :( --- .../.openapi-generator/FILES | 16 +- crates/cloudtruth-restapi/README.md | 16 +- crates/cloudtruth-restapi/src/apis/api_api.rs | 2 +- .../cloudtruth-restapi/src/apis/audit_api.rs | 2 +- .../cloudtruth-restapi/src/apis/backup_api.rs | 2 +- .../src/apis/configuration.rs | 4 +- .../src/apis/environments_api.rs | 2 +- .../src/apis/features_api.rs | 86 ++- .../cloudtruth-restapi/src/apis/grants_api.rs | 10 +- .../cloudtruth-restapi/src/apis/groups_api.rs | 2 +- .../cloudtruth-restapi/src/apis/import_api.rs | 2 +- .../src/apis/integrations_api.rs | 2 +- .../src/apis/invitations_api.rs | 2 +- .../src/apis/memberships_api.rs | 2 +- .../src/apis/organizations_api.rs | 2 +- .../src/apis/projects_api.rs | 32 +- .../src/apis/serviceaccounts_api.rs | 90 ++- .../cloudtruth-restapi/src/apis/types_api.rs | 2 +- .../cloudtruth-restapi/src/apis/users_api.rs | 176 ++++- .../cloudtruth-restapi/src/apis/utils_api.rs | 2 +- .../src/models/audit_trail.rs | 2 +- .../src/models/audit_trail_summary.rs | 2 +- .../src/models/aws_integration.rs | 13 +- .../src/models/aws_integration_create.rs | 6 +- .../src/models/aws_integration_scan.rs | 2 +- .../cloudtruth-restapi/src/models/aws_pull.rs | 2 +- .../models/aws_pull_sync_action_request.rs | 2 +- .../src/models/aws_pull_task.rs | 2 +- .../src/models/aws_pull_task_step.rs | 2 +- .../cloudtruth-restapi/src/models/aws_push.rs | 2 +- .../src/models/aws_push_task.rs | 2 +- .../src/models/aws_push_task_step.rs | 2 +- .../src/models/aws_push_update.rs | 2 +- .../src/models/aws_region_enum.rs | 2 +- .../src/models/aws_service_enum.rs | 2 +- .../src/models/azure_key_vault_integration.rs | 6 +- .../azure_key_vault_integration_create.rs | 6 +- .../azure_key_vault_integration_scan.rs | 2 +- .../src/models/azure_key_vault_pull.rs | 2 +- ...zure_key_vault_pull_sync_action_request.rs | 2 +- .../src/models/azure_key_vault_pull_task.rs | 2 +- .../models/azure_key_vault_pull_task_step.rs | 2 +- .../src/models/azure_key_vault_push.rs | 2 +- .../src/models/azure_key_vault_push_task.rs | 2 +- .../models/azure_key_vault_push_task_step.rs | 2 +- .../src/models/azure_key_vault_push_update.rs | 2 +- .../src/models/backup_data_snapshot.rs | 2 +- .../src/models/backup_environment.rs | 2 +- .../src/models/backup_external_reference.rs | 2 +- .../src/models/backup_parameter.rs | 2 +- .../src/models/backup_parameter_rule.rs | 2 +- .../src/models/backup_parameter_type.rs | 2 +- .../src/models/backup_parameter_value.rs | 2 +- .../src/models/backup_project.rs | 2 +- .../src/models/backup_template.rs | 2 +- .../src/models/discovered_content.rs | 2 +- .../src/models/discovery_result.rs | 2 +- .../src/models/environment.rs | 7 +- .../src/models/environment_copy.rs | 2 +- .../src/models/environment_create.rs | 6 +- .../src/models/environment_update.rs | 2 +- .../src/models/features_ai_chat_response.rs | 23 + .../src/models/features_response.rs | 2 +- .../src/models/generated_password_response.rs | 2 +- .../src/models/git_hub_integration.rs | 2 +- .../src/models/git_hub_integration_create.rs | 2 +- .../src/models/git_hub_pull.rs | 2 +- .../src/models/git_hub_pull_task.rs | 2 +- .../src/models/git_hub_pull_task_step.rs | 2 +- crates/cloudtruth-restapi/src/models/grant.rs | 2 +- .../src/models/grant_update.rs | 53 ++ crates/cloudtruth-restapi/src/models/group.rs | 2 +- .../src/models/history_model_enum.rs | 2 +- .../src/models/history_type_enum.rs | 2 +- .../src/models/import_create_request.rs | 2 +- .../src/models/import_create_response.rs | 2 +- .../src/models/import_parameter.rs | 2 +- .../src/models/integration_node.rs | 2 +- .../src/models/invitation.rs | 2 +- .../src/models/invitation_create.rs | 2 +- .../src/models/membership.rs | 2 +- .../src/models/membership_create.rs | 2 +- crates/cloudtruth-restapi/src/models/mod.rs | 16 +- .../src/models/mode_enum.rs | 2 +- .../src/models/node_type_enum.rs | 2 +- .../src/models/object_type_enum.rs | 2 +- .../src/models/operation_enum.rs | 2 +- .../src/models/organization.rs | 8 +- .../src/models/organization_create.rs | 2 +- .../src/models/paginated_audit_trail_list.rs | 2 +- .../models/paginated_aws_integration_list.rs | 2 +- .../src/models/paginated_aws_pull_list.rs | 2 +- .../models/paginated_aws_pull_task_list.rs | 2 +- .../paginated_aws_pull_task_step_list.rs | 2 +- .../src/models/paginated_aws_push_list.rs | 2 +- .../models/paginated_aws_push_task_list.rs | 2 +- .../paginated_aws_push_task_step_list.rs | 2 +- ...inated_azure_key_vault_integration_list.rs | 2 +- .../paginated_azure_key_vault_pull_list.rs | 2 +- ...aginated_azure_key_vault_pull_task_list.rs | 2 +- ...ted_azure_key_vault_pull_task_step_list.rs | 2 +- .../paginated_azure_key_vault_push_list.rs | 2 +- ...aginated_azure_key_vault_push_task_list.rs | 2 +- ...ted_azure_key_vault_push_task_step_list.rs | 2 +- .../src/models/paginated_environment_list.rs | 2 +- .../paginated_git_hub_integration_list.rs | 2 +- .../src/models/paginated_git_hub_pull_list.rs | 2 +- .../paginated_git_hub_pull_task_list.rs | 2 +- .../paginated_git_hub_pull_task_step_list.rs | 2 +- .../src/models/paginated_grant_list.rs | 2 +- .../src/models/paginated_group_list.rs | 2 +- .../models/paginated_integration_node_list.rs | 2 +- .../src/models/paginated_invitation_list.rs | 2 +- .../src/models/paginated_membership_list.rs | 2 +- .../src/models/paginated_organization_list.rs | 2 +- .../paginated_parameter_duality_list.rs | 2 +- .../src/models/paginated_parameter_list.rs | 2 +- .../models/paginated_parameter_rule_list.rs | 2 +- .../models/paginated_parameter_type_list.rs | 2 +- .../paginated_parameter_type_rule_list.rs | 2 +- .../src/models/paginated_project_list.rs | 2 +- .../models/paginated_service_account_list.rs | 2 +- .../src/models/paginated_tag_list.rs | 2 +- .../src/models/paginated_task_step_list.rs | 2 +- .../src/models/paginated_template_list.rs | 2 +- .../src/models/paginated_user_list.rs | 2 +- .../src/models/paginated_value_list.rs | 2 +- .../src/models/parameter.rs | 22 +- .../src/models/parameter_copy.rs | 2 +- .../src/models/parameter_create.rs | 10 +- .../src/models/parameter_duality.rs | 2 +- .../src/models/parameter_export.rs | 2 +- .../src/models/parameter_rule.rs | 6 +- .../src/models/parameter_rule_create.rs | 2 +- .../src/models/parameter_rule_type_enum.rs | 2 +- .../src/models/parameter_rule_update.rs | 2 +- .../src/models/parameter_timeline.rs | 2 +- .../src/models/parameter_timeline_entry.rs | 2 +- .../parameter_timeline_entry_environment.rs | 2 +- .../parameter_timeline_entry_parameter.rs | 2 +- .../src/models/parameter_type.rs | 12 +- .../src/models/parameter_type_create.rs | 2 +- .../src/models/parameter_type_rule.rs | 6 +- .../src/models/parameter_type_rule_create.rs | 2 +- .../src/models/parameter_type_rule_update.rs | 2 +- .../src/models/parameter_type_update.rs | 3 +- .../src/models/parameter_update.rs | 22 +- .../src/models/patched_aws_integration.rs | 6 +- .../src/models/patched_aws_pull.rs | 2 +- .../src/models/patched_aws_push_update.rs | 2 +- .../patched_azure_key_vault_integration.rs | 6 +- .../models/patched_azure_key_vault_pull.rs | 2 +- .../patched_azure_key_vault_push_update.rs | 2 +- .../src/models/patched_environment_update.rs | 2 +- .../src/models/patched_git_hub_pull.rs | 2 +- ...tched_grant.rs => patched_grant_update.rs} | 10 +- .../src/models/patched_group.rs | 2 +- .../src/models/patched_invitation.rs | 2 +- .../src/models/patched_membership.rs | 2 +- .../src/models/patched_organization.rs | 8 +- .../models/patched_parameter_rule_update.rs | 2 +- .../patched_parameter_type_rule_update.rs | 2 +- .../models/patched_parameter_type_update.rs | 3 +- .../src/models/patched_parameter_update.rs | 14 +- .../src/models/patched_project_update.rs | 2 +- .../src/models/patched_service_account.rs | 5 +- .../src/models/patched_tag_update.rs | 2 +- .../src/models/patched_template_update.rs | 2 +- .../src/models/patched_update_user.rs | 24 + .../src/models/patched_value_update.rs | 2 +- .../cloudtruth-restapi/src/models/project.rs | 15 +- .../src/models/project_copy.rs | 2 +- .../src/models/project_create.rs | 6 +- .../src/models/project_update.rs | 2 +- .../src/models/role_enum.rs | 2 +- .../src/models/service_account.rs | 6 +- .../src/models/service_account_api_key.rs | 41 ++ .../models/service_account_create_request.rs | 2 +- .../models/service_account_create_response.rs | 6 +- .../models/service_account_rekey_request.rs | 22 + .../models/service_account_update_request.rs | 2 +- .../src/models/state_enum.rs | 2 +- .../src/models/status_enum.rs | 2 +- crates/cloudtruth-restapi/src/models/tag.rs | 5 +- .../src/models/tag_create.rs | 2 +- .../src/models/tag_read_usage.rs | 2 +- .../src/models/tag_update.rs | 2 +- .../src/models/task_step.rs | 2 +- .../cloudtruth-restapi/src/models/template.rs | 2 +- .../src/models/template_create.rs | 2 +- .../src/models/template_lookup_error.rs | 2 +- .../src/models/template_lookup_error_entry.rs | 2 +- .../src/models/template_preview.rs | 2 +- .../models/template_preview_create_request.rs | 2 +- .../src/models/template_timeline.rs | 2 +- .../src/models/template_timeline_entry.rs | 2 +- .../template_timeline_entry_template.rs | 2 +- .../src/models/template_update.rs | 2 +- .../src/models/update_user.rs | 24 + crates/cloudtruth-restapi/src/models/user.rs | 7 +- crates/cloudtruth-restapi/src/models/value.rs | 6 +- .../src/models/value_create.rs | 2 +- .../src/models/value_update.rs | 2 +- .../src/models/version_enum.rs | 5 +- openapi.json | 666 ++++++++++++++++-- openapi.yml | 506 +++++++++++-- src/database/environments.rs | 1 + src/database/parameter_details.rs | 3 +- src/database/parameters.rs | 11 +- src/database/projects.rs | 1 + src/database/user_details.rs | 8 +- src/database/users.rs | 1 + 212 files changed, 2039 insertions(+), 352 deletions(-) create mode 100644 crates/cloudtruth-restapi/src/models/features_ai_chat_response.rs create mode 100644 crates/cloudtruth-restapi/src/models/grant_update.rs rename crates/cloudtruth-restapi/src/models/{patched_grant.rs => patched_grant_update.rs} (89%) create mode 100644 crates/cloudtruth-restapi/src/models/patched_update_user.rs create mode 100644 crates/cloudtruth-restapi/src/models/service_account_api_key.rs create mode 100644 crates/cloudtruth-restapi/src/models/service_account_rekey_request.rs create mode 100644 crates/cloudtruth-restapi/src/models/update_user.rs diff --git a/crates/cloudtruth-restapi/.openapi-generator/FILES b/crates/cloudtruth-restapi/.openapi-generator/FILES index ee1ca622..6fc5f1fd 100644 --- a/crates/cloudtruth-restapi/.openapi-generator/FILES +++ b/crates/cloudtruth-restapi/.openapi-generator/FILES @@ -47,6 +47,7 @@ docs/EnvironmentCopy.md docs/EnvironmentCreate.md docs/EnvironmentUpdate.md docs/EnvironmentsApi.md +docs/FeaturesAiChatResponse.md docs/FeaturesApi.md docs/FeaturesResponse.md docs/GeneratedPasswordResponse.md @@ -56,6 +57,7 @@ docs/GitHubPull.md docs/GitHubPullTask.md docs/GitHubPullTaskStep.md docs/Grant.md +docs/GrantUpdate.md docs/GrantsApi.md docs/Group.md docs/GroupsApi.md @@ -146,7 +148,7 @@ docs/PatchedAzureKeyVaultPull.md docs/PatchedAzureKeyVaultPushUpdate.md docs/PatchedEnvironmentUpdate.md docs/PatchedGitHubPull.md -docs/PatchedGrant.md +docs/PatchedGrantUpdate.md docs/PatchedGroup.md docs/PatchedInvitation.md docs/PatchedMembership.md @@ -159,6 +161,7 @@ docs/PatchedProjectUpdate.md docs/PatchedServiceAccount.md docs/PatchedTagUpdate.md docs/PatchedTemplateUpdate.md +docs/PatchedUpdateUser.md docs/PatchedValueUpdate.md docs/Project.md docs/ProjectCopy.md @@ -167,8 +170,10 @@ docs/ProjectUpdate.md docs/ProjectsApi.md docs/RoleEnum.md docs/ServiceAccount.md +docs/ServiceAccountApiKey.md docs/ServiceAccountCreateRequest.md docs/ServiceAccountCreateResponse.md +docs/ServiceAccountRekeyRequest.md docs/ServiceAccountUpdateRequest.md docs/ServiceaccountsApi.md docs/StateEnum.md @@ -189,6 +194,7 @@ docs/TemplateTimelineEntry.md docs/TemplateTimelineEntryTemplate.md docs/TemplateUpdate.md docs/TypesApi.md +docs/UpdateUser.md docs/User.md docs/UsersApi.md docs/UtilsApi.md @@ -258,6 +264,7 @@ src/models/environment.rs src/models/environment_copy.rs src/models/environment_create.rs src/models/environment_update.rs +src/models/features_ai_chat_response.rs src/models/features_response.rs src/models/generated_password_response.rs src/models/git_hub_integration.rs @@ -266,6 +273,7 @@ src/models/git_hub_pull.rs src/models/git_hub_pull_task.rs src/models/git_hub_pull_task_step.rs src/models/grant.rs +src/models/grant_update.rs src/models/group.rs src/models/history_model_enum.rs src/models/history_type_enum.rs @@ -350,7 +358,7 @@ src/models/patched_azure_key_vault_pull.rs src/models/patched_azure_key_vault_push_update.rs src/models/patched_environment_update.rs src/models/patched_git_hub_pull.rs -src/models/patched_grant.rs +src/models/patched_grant_update.rs src/models/patched_group.rs src/models/patched_invitation.rs src/models/patched_membership.rs @@ -363,6 +371,7 @@ src/models/patched_project_update.rs src/models/patched_service_account.rs src/models/patched_tag_update.rs src/models/patched_template_update.rs +src/models/patched_update_user.rs src/models/patched_value_update.rs src/models/project.rs src/models/project_copy.rs @@ -370,8 +379,10 @@ src/models/project_create.rs src/models/project_update.rs src/models/role_enum.rs src/models/service_account.rs +src/models/service_account_api_key.rs src/models/service_account_create_request.rs src/models/service_account_create_response.rs +src/models/service_account_rekey_request.rs src/models/service_account_update_request.rs src/models/state_enum.rs src/models/status_enum.rs @@ -390,6 +401,7 @@ src/models/template_timeline.rs src/models/template_timeline_entry.rs src/models/template_timeline_entry_template.rs src/models/template_update.rs +src/models/update_user.rs src/models/user.rs src/models/value.rs src/models/value_create.rs diff --git a/crates/cloudtruth-restapi/README.md b/crates/cloudtruth-restapi/README.md index 26fb9da8..7dd268ff 100644 --- a/crates/cloudtruth-restapi/README.md +++ b/crates/cloudtruth-restapi/README.md @@ -7,7 +7,7 @@ CloudTruth centralizes your configuration parameters and secrets making them eas This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. -- API version: v1 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: `org.openapitools.codegen.languages.RustClientCodegen` @@ -44,6 +44,7 @@ Class | Method | HTTP request | Description *EnvironmentsApi* | [**environments_tags_retrieve**](docs/EnvironmentsApi.md#environments_tags_retrieve) | **GET** /api/v1/environments/{environment_pk}/tags/{id}/ | *EnvironmentsApi* | [**environments_tags_update**](docs/EnvironmentsApi.md#environments_tags_update) | **PUT** /api/v1/environments/{environment_pk}/tags/{id}/ | *EnvironmentsApi* | [**environments_update**](docs/EnvironmentsApi.md#environments_update) | **PUT** /api/v1/environments/{id}/ | +*FeaturesApi* | [**features_aichat_retrieve**](docs/FeaturesApi.md#features_aichat_retrieve) | **GET** /api/v1/features/aichat/ | *FeaturesApi* | [**features_retrieve**](docs/FeaturesApi.md#features_retrieve) | **GET** /api/v1/features/ | *GrantsApi* | [**grants_create**](docs/GrantsApi.md#grants_create) | **POST** /api/v1/grants/ | *GrantsApi* | [**grants_destroy**](docs/GrantsApi.md#grants_destroy) | **DELETE** /api/v1/grants/{id}/ | @@ -197,8 +198,9 @@ Class | Method | HTTP request | Description *ServiceaccountsApi* | [**serviceaccounts_destroy**](docs/ServiceaccountsApi.md#serviceaccounts_destroy) | **DELETE** /api/v1/serviceaccounts/{id}/ | *ServiceaccountsApi* | [**serviceaccounts_list**](docs/ServiceaccountsApi.md#serviceaccounts_list) | **GET** /api/v1/serviceaccounts/ | *ServiceaccountsApi* | [**serviceaccounts_partial_update**](docs/ServiceaccountsApi.md#serviceaccounts_partial_update) | **PATCH** /api/v1/serviceaccounts/{id}/ | +*ServiceaccountsApi* | [**serviceaccounts_rekey_create**](docs/ServiceaccountsApi.md#serviceaccounts_rekey_create) | **POST** /api/v1/serviceaccounts/{id}/rekey/ | *ServiceaccountsApi* | [**serviceaccounts_retrieve**](docs/ServiceaccountsApi.md#serviceaccounts_retrieve) | **GET** /api/v1/serviceaccounts/{id}/ | -*ServiceaccountsApi* | [**serviceaccounts_update**](docs/ServiceaccountsApi.md#serviceaccounts_update) | **PUT** /api/v1/serviceaccounts/{id}/ | +*ServiceaccountsApi* | [**serviceaccounts_update**](docs/ServiceaccountsApi.md#serviceaccounts_update) | **PUT** /api/v1/serviceaccounts/{id}/ | Update a ServiceAccount user. *TypesApi* | [**types_create**](docs/TypesApi.md#types_create) | **POST** /api/v1/types/ | *TypesApi* | [**types_destroy**](docs/TypesApi.md#types_destroy) | **DELETE** /api/v1/types/{id}/ | *TypesApi* | [**types_list**](docs/TypesApi.md#types_list) | **GET** /api/v1/types/ | @@ -214,7 +216,9 @@ Class | Method | HTTP request | Description *UsersApi* | [**users_current_retrieve**](docs/UsersApi.md#users_current_retrieve) | **GET** /api/v1/users/current/ | Current user information *UsersApi* | [**users_destroy**](docs/UsersApi.md#users_destroy) | **DELETE** /api/v1/users/{id}/ | Delete the specified user. *UsersApi* | [**users_list**](docs/UsersApi.md#users_list) | **GET** /api/v1/users/ | +*UsersApi* | [**users_partial_update**](docs/UsersApi.md#users_partial_update) | **PATCH** /api/v1/users/{id}/ | *UsersApi* | [**users_retrieve**](docs/UsersApi.md#users_retrieve) | **GET** /api/v1/users/{id}/ | +*UsersApi* | [**users_update**](docs/UsersApi.md#users_update) | **PUT** /api/v1/users/{id}/ | *UtilsApi* | [**utils_generate_password_create**](docs/UtilsApi.md#utils_generate_password_create) | **POST** /api/v1/utils/generate_password/ | Get a randomly generated password using AWS Secrets Manager, with fallback to /dev/urandom. @@ -261,6 +265,7 @@ Class | Method | HTTP request | Description - [EnvironmentCopy](docs/EnvironmentCopy.md) - [EnvironmentCreate](docs/EnvironmentCreate.md) - [EnvironmentUpdate](docs/EnvironmentUpdate.md) + - [FeaturesAiChatResponse](docs/FeaturesAiChatResponse.md) - [FeaturesResponse](docs/FeaturesResponse.md) - [GeneratedPasswordResponse](docs/GeneratedPasswordResponse.md) - [GitHubIntegration](docs/GitHubIntegration.md) @@ -269,6 +274,7 @@ Class | Method | HTTP request | Description - [GitHubPullTask](docs/GitHubPullTask.md) - [GitHubPullTaskStep](docs/GitHubPullTaskStep.md) - [Grant](docs/Grant.md) + - [GrantUpdate](docs/GrantUpdate.md) - [Group](docs/Group.md) - [HistoryModelEnum](docs/HistoryModelEnum.md) - [HistoryTypeEnum](docs/HistoryTypeEnum.md) @@ -352,7 +358,7 @@ Class | Method | HTTP request | Description - [PatchedAzureKeyVaultPushUpdate](docs/PatchedAzureKeyVaultPushUpdate.md) - [PatchedEnvironmentUpdate](docs/PatchedEnvironmentUpdate.md) - [PatchedGitHubPull](docs/PatchedGitHubPull.md) - - [PatchedGrant](docs/PatchedGrant.md) + - [PatchedGrantUpdate](docs/PatchedGrantUpdate.md) - [PatchedGroup](docs/PatchedGroup.md) - [PatchedInvitation](docs/PatchedInvitation.md) - [PatchedMembership](docs/PatchedMembership.md) @@ -365,6 +371,7 @@ Class | Method | HTTP request | Description - [PatchedServiceAccount](docs/PatchedServiceAccount.md) - [PatchedTagUpdate](docs/PatchedTagUpdate.md) - [PatchedTemplateUpdate](docs/PatchedTemplateUpdate.md) + - [PatchedUpdateUser](docs/PatchedUpdateUser.md) - [PatchedValueUpdate](docs/PatchedValueUpdate.md) - [Project](docs/Project.md) - [ProjectCopy](docs/ProjectCopy.md) @@ -372,8 +379,10 @@ Class | Method | HTTP request | Description - [ProjectUpdate](docs/ProjectUpdate.md) - [RoleEnum](docs/RoleEnum.md) - [ServiceAccount](docs/ServiceAccount.md) + - [ServiceAccountApiKey](docs/ServiceAccountApiKey.md) - [ServiceAccountCreateRequest](docs/ServiceAccountCreateRequest.md) - [ServiceAccountCreateResponse](docs/ServiceAccountCreateResponse.md) + - [ServiceAccountRekeyRequest](docs/ServiceAccountRekeyRequest.md) - [ServiceAccountUpdateRequest](docs/ServiceAccountUpdateRequest.md) - [StateEnum](docs/StateEnum.md) - [StatusEnum](docs/StatusEnum.md) @@ -392,6 +401,7 @@ Class | Method | HTTP request | Description - [TemplateTimelineEntry](docs/TemplateTimelineEntry.md) - [TemplateTimelineEntryTemplate](docs/TemplateTimelineEntryTemplate.md) - [TemplateUpdate](docs/TemplateUpdate.md) + - [UpdateUser](docs/UpdateUser.md) - [User](docs/User.md) - [Value](docs/Value.md) - [ValueCreate](docs/ValueCreate.md) diff --git a/crates/cloudtruth-restapi/src/apis/api_api.rs b/crates/cloudtruth-restapi/src/apis/api_api.rs index 2cf2e537..ce62e5b4 100644 --- a/crates/cloudtruth-restapi/src/apis/api_api.rs +++ b/crates/cloudtruth-restapi/src/apis/api_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/audit_api.rs b/crates/cloudtruth-restapi/src/apis/audit_api.rs index a2ff57c9..cc37c3c7 100644 --- a/crates/cloudtruth-restapi/src/apis/audit_api.rs +++ b/crates/cloudtruth-restapi/src/apis/audit_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/backup_api.rs b/crates/cloudtruth-restapi/src/apis/backup_api.rs index 9b33e036..83c81b93 100644 --- a/crates/cloudtruth-restapi/src/apis/backup_api.rs +++ b/crates/cloudtruth-restapi/src/apis/backup_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/configuration.rs b/crates/cloudtruth-restapi/src/apis/configuration.rs index 1c1efb08..b7435cd9 100644 --- a/crates/cloudtruth-restapi/src/apis/configuration.rs +++ b/crates/cloudtruth-restapi/src/apis/configuration.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -49,7 +49,7 @@ impl Default for Configuration { fn default() -> Self { Configuration { base_path: "http://localhost".to_owned(), - user_agent: Some("OpenAPI-Generator/v1/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, oauth_access_token: None, diff --git a/crates/cloudtruth-restapi/src/apis/environments_api.rs b/crates/cloudtruth-restapi/src/apis/environments_api.rs index 68e29a8c..7c83ac88 100644 --- a/crates/cloudtruth-restapi/src/apis/environments_api.rs +++ b/crates/cloudtruth-restapi/src/apis/environments_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/features_api.rs b/crates/cloudtruth-restapi/src/apis/features_api.rs index b1b968b9..cc830cb9 100644 --- a/crates/cloudtruth-restapi/src/apis/features_api.rs +++ b/crates/cloudtruth-restapi/src/apis/features_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -14,6 +14,13 @@ use std::time::Instant; use super::{configuration, Error}; use crate::apis::{handle_serde_error, ResponseContent}; +/// struct for typed errors of method [`features_aichat_retrieve`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FeaturesAichatRetrieveError { + UnknownValue(serde_json::Value), +} + /// struct for typed errors of method [`features_retrieve`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] @@ -21,6 +28,83 @@ pub enum FeaturesRetrieveError { UnknownValue(serde_json::Value), } +/// Returns details about enabled features for AI Chat +pub fn features_aichat_retrieve( + configuration: &configuration::Configuration, +) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!( + "{}/api/v1/features/aichat/", + local_var_configuration.base_path + ); + let mut local_var_req_builder = + local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = + local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let method = local_var_req.method().clone(); + let start = Instant::now(); + let mut local_var_resp = local_var_client.execute(local_var_req)?; + if local_var_configuration.rest_debug { + let duration = start.elapsed(); + println!( + "URL {} {} elapsed: {:?}", + method, + &local_var_resp.url(), + duration + ); + } + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text()?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + if local_var_configuration.debug_success(super::function!()) { + println!("RESP {} {}", &local_var_status, &local_var_content); + } + + serde_json::from_str(&local_var_content) + .map_err(|e| handle_serde_error(e, &method, local_var_resp.url(), &local_var_content)) + } else { + let local_var_entity: Option = + serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { + status: local_var_status, + content: local_var_content, + entity: local_var_entity, + }; + if local_var_configuration.rest_debug { + println!( + "RESP {} {}", + &local_var_error.status, &local_var_error.content + ); + } + Err(Error::ResponseError(local_var_error)) + } +} + /// Returns a dictionary of features and whether or not they are enabled pub fn features_retrieve( configuration: &configuration::Configuration, diff --git a/crates/cloudtruth-restapi/src/apis/grants_api.rs b/crates/cloudtruth-restapi/src/apis/grants_api.rs index 8f3a64c1..f501d4f0 100644 --- a/crates/cloudtruth-restapi/src/apis/grants_api.rs +++ b/crates/cloudtruth-restapi/src/apis/grants_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -406,7 +406,7 @@ pub fn grants_multi_destroy( pub fn grants_partial_update( configuration: &configuration::Configuration, id: &str, - patched_grant: Option, + patched_grant_update: Option, ) -> Result> { let local_var_configuration = configuration; @@ -439,7 +439,7 @@ pub fn grants_partial_update( if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&patched_grant); + local_var_req_builder = local_var_req_builder.json(&patched_grant_update); let local_var_req = local_var_req_builder.build()?; let method = local_var_req.method().clone(); @@ -566,7 +566,7 @@ pub fn grants_retrieve( pub fn grants_update( configuration: &configuration::Configuration, id: &str, - grant: crate::models::Grant, + grant_update: crate::models::GrantUpdate, ) -> Result> { let local_var_configuration = configuration; @@ -599,7 +599,7 @@ pub fn grants_update( if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); }; - local_var_req_builder = local_var_req_builder.json(&grant); + local_var_req_builder = local_var_req_builder.json(&grant_update); let local_var_req = local_var_req_builder.build()?; let method = local_var_req.method().clone(); diff --git a/crates/cloudtruth-restapi/src/apis/groups_api.rs b/crates/cloudtruth-restapi/src/apis/groups_api.rs index b2ee1ce5..84712682 100644 --- a/crates/cloudtruth-restapi/src/apis/groups_api.rs +++ b/crates/cloudtruth-restapi/src/apis/groups_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/import_api.rs b/crates/cloudtruth-restapi/src/apis/import_api.rs index b8c4ada2..fe80f206 100644 --- a/crates/cloudtruth-restapi/src/apis/import_api.rs +++ b/crates/cloudtruth-restapi/src/apis/import_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/integrations_api.rs b/crates/cloudtruth-restapi/src/apis/integrations_api.rs index 630d1cfa..ee7ed37b 100644 --- a/crates/cloudtruth-restapi/src/apis/integrations_api.rs +++ b/crates/cloudtruth-restapi/src/apis/integrations_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/invitations_api.rs b/crates/cloudtruth-restapi/src/apis/invitations_api.rs index 9646cb86..1c153cf4 100644 --- a/crates/cloudtruth-restapi/src/apis/invitations_api.rs +++ b/crates/cloudtruth-restapi/src/apis/invitations_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/memberships_api.rs b/crates/cloudtruth-restapi/src/apis/memberships_api.rs index e02bc64b..53ee9adc 100644 --- a/crates/cloudtruth-restapi/src/apis/memberships_api.rs +++ b/crates/cloudtruth-restapi/src/apis/memberships_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/organizations_api.rs b/crates/cloudtruth-restapi/src/apis/organizations_api.rs index f5e5ad97..cbbe0d27 100644 --- a/crates/cloudtruth-restapi/src/apis/organizations_api.rs +++ b/crates/cloudtruth-restapi/src/apis/organizations_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/projects_api.rs b/crates/cloudtruth-restapi/src/apis/projects_api.rs index f9be791d..365f4235 100644 --- a/crates/cloudtruth-restapi/src/apis/projects_api.rs +++ b/crates/cloudtruth-restapi/src/apis/projects_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -2452,6 +2452,7 @@ pub fn projects_parameters_values_create( parameter_pk: &str, project_pk: &str, value_create: crate::models::ValueCreate, + environment: Option<&str>, evaluate: Option, ) -> Result> { let local_var_configuration = configuration; @@ -2467,6 +2468,10 @@ pub fn projects_parameters_values_create( let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2540,6 +2545,7 @@ pub fn projects_parameters_values_destroy( id: &str, parameter_pk: &str, project_pk: &str, + environment: Option<&str>, evaluate: Option, ) -> Result<(), Error> { let local_var_configuration = configuration; @@ -2556,6 +2562,10 @@ pub fn projects_parameters_values_destroy( let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2627,6 +2637,7 @@ pub fn projects_parameters_values_list( parameter_pk: &str, project_pk: &str, as_of: Option, + environment: Option<&str>, evaluate: Option, exclude: Option<&str>, include: Option<&str>, @@ -2652,6 +2663,10 @@ pub fn projects_parameters_values_list( local_var_req_builder = local_var_req_builder.query(&[("as_of", &local_var_str.to_string())]); } + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2747,6 +2762,7 @@ pub fn projects_parameters_values_partial_update( id: &str, parameter_pk: &str, project_pk: &str, + environment: Option<&str>, evaluate: Option, patched_value_update: Option, ) -> Result> { @@ -2764,6 +2780,10 @@ pub fn projects_parameters_values_partial_update( let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2838,6 +2858,7 @@ pub fn projects_parameters_values_retrieve( parameter_pk: &str, project_pk: &str, as_of: Option, + environment: Option<&str>, evaluate: Option, exclude: Option<&str>, include: Option<&str>, @@ -2862,6 +2883,10 @@ pub fn projects_parameters_values_retrieve( local_var_req_builder = local_var_req_builder.query(&[("as_of", &local_var_str.to_string())]); } + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2949,6 +2974,7 @@ pub fn projects_parameters_values_update( id: &str, parameter_pk: &str, project_pk: &str, + environment: Option<&str>, evaluate: Option, value_update: Option, ) -> Result> { @@ -2966,6 +2992,10 @@ pub fn projects_parameters_values_update( let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); diff --git a/crates/cloudtruth-restapi/src/apis/serviceaccounts_api.rs b/crates/cloudtruth-restapi/src/apis/serviceaccounts_api.rs index 75e7704f..37604688 100644 --- a/crates/cloudtruth-restapi/src/apis/serviceaccounts_api.rs +++ b/crates/cloudtruth-restapi/src/apis/serviceaccounts_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -42,6 +42,13 @@ pub enum ServiceaccountsPartialUpdateError { UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`serviceaccounts_rekey_create`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ServiceaccountsRekeyCreateError { + UnknownValue(serde_json::Value), +} + /// struct for typed errors of method [`serviceaccounts_retrieve`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] @@ -383,6 +390,86 @@ pub fn serviceaccounts_partial_update( } } +pub fn serviceaccounts_rekey_create( + configuration: &configuration::Configuration, + id: &str, + service_account_rekey_request: Option, +) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!( + "{}/api/v1/serviceaccounts/{id}/rekey/", + local_var_configuration.base_path, + id = crate::apis::urlencode(id) + ); + let mut local_var_req_builder = + local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = + local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&service_account_rekey_request); + + let local_var_req = local_var_req_builder.build()?; + let method = local_var_req.method().clone(); + let start = Instant::now(); + let mut local_var_resp = local_var_client.execute(local_var_req)?; + if local_var_configuration.rest_debug { + let duration = start.elapsed(); + println!( + "URL {} {} elapsed: {:?}", + method, + &local_var_resp.url(), + duration + ); + } + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text()?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + if local_var_configuration.debug_success(super::function!()) { + println!("RESP {} {}", &local_var_status, &local_var_content); + } + + serde_json::from_str(&local_var_content) + .map_err(|e| handle_serde_error(e, &method, local_var_resp.url(), &local_var_content)) + } else { + let local_var_entity: Option = + serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { + status: local_var_status, + content: local_var_content, + entity: local_var_entity, + }; + if local_var_configuration.rest_debug { + println!( + "RESP {} {}", + &local_var_error.status, &local_var_error.content + ); + } + Err(Error::ResponseError(local_var_error)) + } +} + pub fn serviceaccounts_retrieve( configuration: &configuration::Configuration, id: &str, @@ -461,6 +548,7 @@ pub fn serviceaccounts_retrieve( } } +/// Updates a ServiceAccount. A ServiceAccount is a user record intended for machine use (such as a build system). It does not have a username/password but is instead accessed using an API key. pub fn serviceaccounts_update( configuration: &configuration::Configuration, id: &str, diff --git a/crates/cloudtruth-restapi/src/apis/types_api.rs b/crates/cloudtruth-restapi/src/apis/types_api.rs index 96fa75f4..be402326 100644 --- a/crates/cloudtruth-restapi/src/apis/types_api.rs +++ b/crates/cloudtruth-restapi/src/apis/types_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/apis/users_api.rs b/crates/cloudtruth-restapi/src/apis/users_api.rs index 48a18738..5a4db86f 100644 --- a/crates/cloudtruth-restapi/src/apis/users_api.rs +++ b/crates/cloudtruth-restapi/src/apis/users_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -37,6 +37,13 @@ pub enum UsersListError { UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`users_partial_update`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UsersPartialUpdateError { + UnknownValue(serde_json::Value), +} + /// struct for typed errors of method [`users_retrieve`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] @@ -44,6 +51,13 @@ pub enum UsersRetrieveError { UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`users_update`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UsersUpdateError { + UnknownValue(serde_json::Value), +} + /// Get user information about the current user. pub fn users_current_retrieve( configuration: &configuration::Configuration, @@ -292,6 +306,86 @@ pub fn users_list( } } +pub fn users_partial_update( + configuration: &configuration::Configuration, + id: &str, + patched_update_user: Option, +) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!( + "{}/api/v1/users/{id}/", + local_var_configuration.base_path, + id = crate::apis::urlencode(id) + ); + let mut local_var_req_builder = + local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = + local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&patched_update_user); + + let local_var_req = local_var_req_builder.build()?; + let method = local_var_req.method().clone(); + let start = Instant::now(); + let mut local_var_resp = local_var_client.execute(local_var_req)?; + if local_var_configuration.rest_debug { + let duration = start.elapsed(); + println!( + "URL {} {} elapsed: {:?}", + method, + &local_var_resp.url(), + duration + ); + } + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text()?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + if local_var_configuration.debug_success(super::function!()) { + println!("RESP {} {}", &local_var_status, &local_var_content); + } + + serde_json::from_str(&local_var_content) + .map_err(|e| handle_serde_error(e, &method, local_var_resp.url(), &local_var_content)) + } else { + let local_var_entity: Option = + serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { + status: local_var_status, + content: local_var_content, + entity: local_var_entity, + }; + if local_var_configuration.rest_debug { + println!( + "RESP {} {}", + &local_var_error.status, &local_var_error.content + ); + } + Err(Error::ResponseError(local_var_error)) + } +} + pub fn users_retrieve( configuration: &configuration::Configuration, id: &str, @@ -369,3 +463,83 @@ pub fn users_retrieve( Err(Error::ResponseError(local_var_error)) } } + +pub fn users_update( + configuration: &configuration::Configuration, + id: &str, + update_user: crate::models::UpdateUser, +) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!( + "{}/api/v1/users/{id}/", + local_var_configuration.base_path, + id = crate::apis::urlencode(id) + ); + let mut local_var_req_builder = + local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = + local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; + if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { + local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); + }; + local_var_req_builder = local_var_req_builder.json(&update_user); + + let local_var_req = local_var_req_builder.build()?; + let method = local_var_req.method().clone(); + let start = Instant::now(); + let mut local_var_resp = local_var_client.execute(local_var_req)?; + if local_var_configuration.rest_debug { + let duration = start.elapsed(); + println!( + "URL {} {} elapsed: {:?}", + method, + &local_var_resp.url(), + duration + ); + } + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text()?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + if local_var_configuration.debug_success(super::function!()) { + println!("RESP {} {}", &local_var_status, &local_var_content); + } + + serde_json::from_str(&local_var_content) + .map_err(|e| handle_serde_error(e, &method, local_var_resp.url(), &local_var_content)) + } else { + let local_var_entity: Option = + serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { + status: local_var_status, + content: local_var_content, + entity: local_var_entity, + }; + if local_var_configuration.rest_debug { + println!( + "RESP {} {}", + &local_var_error.status, &local_var_error.content + ); + } + Err(Error::ResponseError(local_var_error)) + } +} diff --git a/crates/cloudtruth-restapi/src/apis/utils_api.rs b/crates/cloudtruth-restapi/src/apis/utils_api.rs index 75b3b7d2..0ad97c49 100644 --- a/crates/cloudtruth-restapi/src/apis/utils_api.rs +++ b/crates/cloudtruth-restapi/src/apis/utils_api.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/audit_trail.rs b/crates/cloudtruth-restapi/src/models/audit_trail.rs index ed0a1a64..36b55123 100644 --- a/crates/cloudtruth-restapi/src/models/audit_trail.rs +++ b/crates/cloudtruth-restapi/src/models/audit_trail.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/audit_trail_summary.rs b/crates/cloudtruth-restapi/src/models/audit_trail_summary.rs index 4541f680..88b6be19 100644 --- a/crates/cloudtruth-restapi/src/models/audit_trail_summary.rs +++ b/crates/cloudtruth-restapi/src/models/audit_trail_summary.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_integration.rs b/crates/cloudtruth-restapi/src/models/aws_integration.rs index 5ed1cfd3..72721233 100644 --- a/crates/cloudtruth-restapi/src/models/aws_integration.rs +++ b/crates/cloudtruth-restapi/src/models/aws_integration.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -51,14 +51,17 @@ pub struct AwsIntegration { #[serde(rename = "aws_enabled_services")] pub aws_enabled_services: Vec, /// This is a shared secret between the AWS Administrator who set up your IAM trust relationship and your CloudTruth AWS Integration. CloudTruth will generate a random value for you to give to your AWS Administrator in order to create the necessary IAM role for proper access. - #[serde(rename = "aws_external_id", skip_serializing_if = "Option::is_none")] - pub aws_external_id: Option, + #[serde(rename = "aws_external_id")] + pub aws_external_id: String, /// If present, this is the KMS Key Id that is used to push values. This key must be accessible in the AWS account (it cannot be an ARN to a key in another AWS account). #[serde(rename = "aws_kms_key_id", skip_serializing_if = "Option::is_none")] pub aws_kms_key_id: Option, /// The role that CloudTruth will assume when interacting with your AWS Account through this integration. The role is configured by your AWS Account Administrator. If your AWS Administrator provided you with a value use it, otherwise make your own role name and give it to your AWS Administrator. #[serde(rename = "aws_role_name")] pub aws_role_name: String, + /// A list of tags to be set on all integration resources. + #[serde(rename = "resource_tags", skip_serializing_if = "Option::is_none")] + pub resource_tags: Option<::std::collections::HashMap>, } impl AwsIntegration { @@ -76,6 +79,7 @@ impl AwsIntegration { aws_account_id: String, aws_enabled_regions: Vec, aws_enabled_services: Vec, + aws_external_id: String, aws_role_name: String, ) -> AwsIntegration { AwsIntegration { @@ -94,9 +98,10 @@ impl AwsIntegration { aws_account_id, aws_enabled_regions, aws_enabled_services, - aws_external_id: None, + aws_external_id, aws_kms_key_id: None, aws_role_name, + resource_tags: None, } } } diff --git a/crates/cloudtruth-restapi/src/models/aws_integration_create.rs b/crates/cloudtruth-restapi/src/models/aws_integration_create.rs index 05ac709a..05082a42 100644 --- a/crates/cloudtruth-restapi/src/models/aws_integration_create.rs +++ b/crates/cloudtruth-restapi/src/models/aws_integration_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -34,6 +34,9 @@ pub struct AwsIntegrationCreate { /// The role that CloudTruth will assume when interacting with your AWS Account through this integration. The role is configured by your AWS Account Administrator. If your AWS Administrator provided you with a value use it, otherwise make your own role name and give it to your AWS Administrator. #[serde(rename = "aws_role_name")] pub aws_role_name: String, + /// A list of tags to be set on all integration resources. + #[serde(rename = "resource_tags", skip_serializing_if = "Option::is_none")] + pub resource_tags: Option<::std::collections::HashMap>, } impl AwsIntegrationCreate { @@ -52,6 +55,7 @@ impl AwsIntegrationCreate { aws_external_id: None, aws_kms_key_id: None, aws_role_name, + resource_tags: None, } } } diff --git a/crates/cloudtruth-restapi/src/models/aws_integration_scan.rs b/crates/cloudtruth-restapi/src/models/aws_integration_scan.rs index 11303675..c608cad5 100644 --- a/crates/cloudtruth-restapi/src/models/aws_integration_scan.rs +++ b/crates/cloudtruth-restapi/src/models/aws_integration_scan.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_pull.rs b/crates/cloudtruth-restapi/src/models/aws_pull.rs index 1b6f0e36..006bab86 100644 --- a/crates/cloudtruth-restapi/src/models/aws_pull.rs +++ b/crates/cloudtruth-restapi/src/models/aws_pull.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_pull_sync_action_request.rs b/crates/cloudtruth-restapi/src/models/aws_pull_sync_action_request.rs index 88422c57..b656246a 100644 --- a/crates/cloudtruth-restapi/src/models/aws_pull_sync_action_request.rs +++ b/crates/cloudtruth-restapi/src/models/aws_pull_sync_action_request.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_pull_task.rs b/crates/cloudtruth-restapi/src/models/aws_pull_task.rs index 66ff500a..aeb361d2 100644 --- a/crates/cloudtruth-restapi/src/models/aws_pull_task.rs +++ b/crates/cloudtruth-restapi/src/models/aws_pull_task.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_pull_task_step.rs b/crates/cloudtruth-restapi/src/models/aws_pull_task_step.rs index f4f69952..e6e14c9c 100644 --- a/crates/cloudtruth-restapi/src/models/aws_pull_task_step.rs +++ b/crates/cloudtruth-restapi/src/models/aws_pull_task_step.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_push.rs b/crates/cloudtruth-restapi/src/models/aws_push.rs index 67f53a05..2782518a 100644 --- a/crates/cloudtruth-restapi/src/models/aws_push.rs +++ b/crates/cloudtruth-restapi/src/models/aws_push.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_push_task.rs b/crates/cloudtruth-restapi/src/models/aws_push_task.rs index e967647b..4bccef61 100644 --- a/crates/cloudtruth-restapi/src/models/aws_push_task.rs +++ b/crates/cloudtruth-restapi/src/models/aws_push_task.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_push_task_step.rs b/crates/cloudtruth-restapi/src/models/aws_push_task_step.rs index 6eee2b3a..c46fecf0 100644 --- a/crates/cloudtruth-restapi/src/models/aws_push_task_step.rs +++ b/crates/cloudtruth-restapi/src/models/aws_push_task_step.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_push_update.rs b/crates/cloudtruth-restapi/src/models/aws_push_update.rs index bca61540..d9ef886d 100644 --- a/crates/cloudtruth-restapi/src/models/aws_push_update.rs +++ b/crates/cloudtruth-restapi/src/models/aws_push_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_region_enum.rs b/crates/cloudtruth-restapi/src/models/aws_region_enum.rs index 427034f5..3c56b418 100644 --- a/crates/cloudtruth-restapi/src/models/aws_region_enum.rs +++ b/crates/cloudtruth-restapi/src/models/aws_region_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/aws_service_enum.rs b/crates/cloudtruth-restapi/src/models/aws_service_enum.rs index 61c92ab3..dffbfe14 100644 --- a/crates/cloudtruth-restapi/src/models/aws_service_enum.rs +++ b/crates/cloudtruth-restapi/src/models/aws_service_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_integration.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_integration.rs index c03f7d75..fb105437 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_integration.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_integration.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -41,6 +41,9 @@ pub struct AzureKeyVaultIntegration { /// Allow actions to write to the integration. #[serde(rename = "writable", skip_serializing_if = "Option::is_none")] pub writable: Option, + /// A list of tags to be set on all integration resources. + #[serde(rename = "resource_tags", skip_serializing_if = "Option::is_none")] + pub resource_tags: Option<::std::collections::HashMap>, /// The Azure Key Vault name. #[serde(rename = "vault_name")] pub vault_name: String, @@ -77,6 +80,7 @@ impl AzureKeyVaultIntegration { fqn, _type, writable: None, + resource_tags: None, vault_name, tenant_id, } diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_integration_create.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_integration_create.rs index a232c04b..d64736a7 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_integration_create.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_integration_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -16,6 +16,9 @@ pub struct AzureKeyVaultIntegrationCreate { /// Allow actions to write to the integration. #[serde(rename = "writable", skip_serializing_if = "Option::is_none")] pub writable: Option, + /// A list of tags to be set on all integration resources. + #[serde(rename = "resource_tags", skip_serializing_if = "Option::is_none")] + pub resource_tags: Option<::std::collections::HashMap>, /// The Azure Key Vault name. #[serde(rename = "vault_name")] pub vault_name: String, @@ -29,6 +32,7 @@ impl AzureKeyVaultIntegrationCreate { AzureKeyVaultIntegrationCreate { description: None, writable: None, + resource_tags: None, vault_name, tenant_id, } diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_integration_scan.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_integration_scan.rs index 192f6c49..b1487ed4 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_integration_scan.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_integration_scan.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_pull.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_pull.rs index a85a3e41..14b74192 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_pull.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_pull.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_sync_action_request.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_sync_action_request.rs index 82253628..420c0936 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_sync_action_request.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_sync_action_request.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_task.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_task.rs index 89f7ad6f..c3bfc188 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_task.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_task.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_task_step.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_task_step.rs index 0096cd7c..da820f08 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_task_step.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_pull_task_step.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_push.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_push.rs index ef3d6908..e668fc15 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_push.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_push.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_push_task.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_push_task.rs index 0819d714..0b9f1ebb 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_push_task.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_push_task.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_push_task_step.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_push_task_step.rs index 2e6bbd97..ae2f9934 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_push_task_step.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_push_task_step.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/azure_key_vault_push_update.rs b/crates/cloudtruth-restapi/src/models/azure_key_vault_push_update.rs index 8979d42d..fb39049f 100644 --- a/crates/cloudtruth-restapi/src/models/azure_key_vault_push_update.rs +++ b/crates/cloudtruth-restapi/src/models/azure_key_vault_push_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_data_snapshot.rs b/crates/cloudtruth-restapi/src/models/backup_data_snapshot.rs index 811c6ee4..73b3327b 100644 --- a/crates/cloudtruth-restapi/src/models/backup_data_snapshot.rs +++ b/crates/cloudtruth-restapi/src/models/backup_data_snapshot.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_environment.rs b/crates/cloudtruth-restapi/src/models/backup_environment.rs index 050721e6..3d5ec800 100644 --- a/crates/cloudtruth-restapi/src/models/backup_environment.rs +++ b/crates/cloudtruth-restapi/src/models/backup_environment.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_external_reference.rs b/crates/cloudtruth-restapi/src/models/backup_external_reference.rs index da2b24f1..aad7790b 100644 --- a/crates/cloudtruth-restapi/src/models/backup_external_reference.rs +++ b/crates/cloudtruth-restapi/src/models/backup_external_reference.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_parameter.rs b/crates/cloudtruth-restapi/src/models/backup_parameter.rs index 253f14b8..fbf65118 100644 --- a/crates/cloudtruth-restapi/src/models/backup_parameter.rs +++ b/crates/cloudtruth-restapi/src/models/backup_parameter.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_parameter_rule.rs b/crates/cloudtruth-restapi/src/models/backup_parameter_rule.rs index 294b0793..06c1a1e2 100644 --- a/crates/cloudtruth-restapi/src/models/backup_parameter_rule.rs +++ b/crates/cloudtruth-restapi/src/models/backup_parameter_rule.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_parameter_type.rs b/crates/cloudtruth-restapi/src/models/backup_parameter_type.rs index 2e43f4cf..cf7ec930 100644 --- a/crates/cloudtruth-restapi/src/models/backup_parameter_type.rs +++ b/crates/cloudtruth-restapi/src/models/backup_parameter_type.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_parameter_value.rs b/crates/cloudtruth-restapi/src/models/backup_parameter_value.rs index f35da669..c12b5dca 100644 --- a/crates/cloudtruth-restapi/src/models/backup_parameter_value.rs +++ b/crates/cloudtruth-restapi/src/models/backup_parameter_value.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_project.rs b/crates/cloudtruth-restapi/src/models/backup_project.rs index 8f917ec8..d047a5fe 100644 --- a/crates/cloudtruth-restapi/src/models/backup_project.rs +++ b/crates/cloudtruth-restapi/src/models/backup_project.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/backup_template.rs b/crates/cloudtruth-restapi/src/models/backup_template.rs index af1b72ca..254e78b8 100644 --- a/crates/cloudtruth-restapi/src/models/backup_template.rs +++ b/crates/cloudtruth-restapi/src/models/backup_template.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/discovered_content.rs b/crates/cloudtruth-restapi/src/models/discovered_content.rs index a33afce1..d1c86584 100644 --- a/crates/cloudtruth-restapi/src/models/discovered_content.rs +++ b/crates/cloudtruth-restapi/src/models/discovered_content.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/discovery_result.rs b/crates/cloudtruth-restapi/src/models/discovery_result.rs index 85a67fa0..48e64d23 100644 --- a/crates/cloudtruth-restapi/src/models/discovery_result.rs +++ b/crates/cloudtruth-restapi/src/models/discovery_result.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/environment.rs b/crates/cloudtruth-restapi/src/models/environment.rs index 4f4cb921..8a7e1d57 100644 --- a/crates/cloudtruth-restapi/src/models/environment.rs +++ b/crates/cloudtruth-restapi/src/models/environment.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -24,7 +24,7 @@ pub struct Environment { #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, /// Environments can inherit from a single parent environment which provides values for parameters when specific environments do not have a value set. Every organization has one default environment that cannot be removed. - #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] + #[serde(rename = "parent")] pub parent: Option, /// This is the opposite of `parent`, see that field for more details. #[serde(rename = "children")] @@ -47,6 +47,7 @@ impl Environment { id: String, ledger_id: String, name: String, + parent: Option, children: Vec, role: Option, created_at: String, @@ -58,7 +59,7 @@ impl Environment { ledger_id, name, description: None, - parent: None, + parent, children, access_controlled: None, role: role.map(Box::new), diff --git a/crates/cloudtruth-restapi/src/models/environment_copy.rs b/crates/cloudtruth-restapi/src/models/environment_copy.rs index 25621320..338100cf 100644 --- a/crates/cloudtruth-restapi/src/models/environment_copy.rs +++ b/crates/cloudtruth-restapi/src/models/environment_copy.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/environment_create.rs b/crates/cloudtruth-restapi/src/models/environment_create.rs index 2276fc0e..e5c22cc7 100644 --- a/crates/cloudtruth-restapi/src/models/environment_create.rs +++ b/crates/cloudtruth-restapi/src/models/environment_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -19,6 +19,9 @@ pub struct EnvironmentCreate { /// Environments can inherit from a single parent environment which provides values for parameters when specific environments do not have a value set. Every organization has one default environment that cannot be removed. #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] pub parent: Option, + /// If parent has RBAC enabled and this field is True, RBAC will be enabled and grants from the parent are copied to this environment. If parent has RBAC enabled and this field is False, RBAC will be enabled but only the minimal necessary grants will be assigned to the newly created environment. Not used when RBAC is not enabled for the parent. + #[serde(rename = "copy_rbac", skip_serializing_if = "Option::is_none")] + pub copy_rbac: Option, } impl EnvironmentCreate { @@ -27,6 +30,7 @@ impl EnvironmentCreate { name, description: None, parent: None, + copy_rbac: None, } } } diff --git a/crates/cloudtruth-restapi/src/models/environment_update.rs b/crates/cloudtruth-restapi/src/models/environment_update.rs index cddf62e4..d955aebc 100644 --- a/crates/cloudtruth-restapi/src/models/environment_update.rs +++ b/crates/cloudtruth-restapi/src/models/environment_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/features_ai_chat_response.rs b/crates/cloudtruth-restapi/src/models/features_ai_chat_response.rs new file mode 100644 index 00000000..ea683154 --- /dev/null +++ b/crates/cloudtruth-restapi/src/models/features_ai_chat_response.rs @@ -0,0 +1,23 @@ +/* + * CloudTruth Management API + * + * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@cloudtruth.com + * Generated by: https://openapi-generator.tech + */ + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct FeaturesAiChatResponse { + #[serde(rename = "chatgpt")] + pub chatgpt: ::std::collections::HashMap, +} + +impl FeaturesAiChatResponse { + pub fn new( + chatgpt: ::std::collections::HashMap, + ) -> FeaturesAiChatResponse { + FeaturesAiChatResponse { chatgpt } + } +} diff --git a/crates/cloudtruth-restapi/src/models/features_response.rs b/crates/cloudtruth-restapi/src/models/features_response.rs index 985b339b..a3d0fa45 100644 --- a/crates/cloudtruth-restapi/src/models/features_response.rs +++ b/crates/cloudtruth-restapi/src/models/features_response.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/generated_password_response.rs b/crates/cloudtruth-restapi/src/models/generated_password_response.rs index a2f9d9e8..16893e62 100644 --- a/crates/cloudtruth-restapi/src/models/generated_password_response.rs +++ b/crates/cloudtruth-restapi/src/models/generated_password_response.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/git_hub_integration.rs b/crates/cloudtruth-restapi/src/models/git_hub_integration.rs index 9cbacb80..70f2c97b 100644 --- a/crates/cloudtruth-restapi/src/models/git_hub_integration.rs +++ b/crates/cloudtruth-restapi/src/models/git_hub_integration.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/git_hub_integration_create.rs b/crates/cloudtruth-restapi/src/models/git_hub_integration_create.rs index 8ece0e53..d8769142 100644 --- a/crates/cloudtruth-restapi/src/models/git_hub_integration_create.rs +++ b/crates/cloudtruth-restapi/src/models/git_hub_integration_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/git_hub_pull.rs b/crates/cloudtruth-restapi/src/models/git_hub_pull.rs index f12301e4..7401297e 100644 --- a/crates/cloudtruth-restapi/src/models/git_hub_pull.rs +++ b/crates/cloudtruth-restapi/src/models/git_hub_pull.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/git_hub_pull_task.rs b/crates/cloudtruth-restapi/src/models/git_hub_pull_task.rs index 3b712c56..c67f14f3 100644 --- a/crates/cloudtruth-restapi/src/models/git_hub_pull_task.rs +++ b/crates/cloudtruth-restapi/src/models/git_hub_pull_task.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/git_hub_pull_task_step.rs b/crates/cloudtruth-restapi/src/models/git_hub_pull_task_step.rs index 289b26f9..3f89b7e7 100644 --- a/crates/cloudtruth-restapi/src/models/git_hub_pull_task_step.rs +++ b/crates/cloudtruth-restapi/src/models/git_hub_pull_task_step.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/grant.rs b/crates/cloudtruth-restapi/src/models/grant.rs index 198a36aa..fc93d431 100644 --- a/crates/cloudtruth-restapi/src/models/grant.rs +++ b/crates/cloudtruth-restapi/src/models/grant.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/grant_update.rs b/crates/cloudtruth-restapi/src/models/grant_update.rs new file mode 100644 index 00000000..1c5de44f --- /dev/null +++ b/crates/cloudtruth-restapi/src/models/grant_update.rs @@ -0,0 +1,53 @@ +/* + * CloudTruth Management API + * + * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@cloudtruth.com + * Generated by: https://openapi-generator.tech + */ + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct GrantUpdate { + #[serde(rename = "url")] + pub url: String, + /// A unique identifier for the grant. + #[serde(rename = "id")] + pub id: String, + /// The URI of a principal for the grant; this must reference a user or group. + #[serde(rename = "principal")] + pub principal: String, + /// The URI of a scope for the grant; this must reference a project or environment. + #[serde(rename = "scope")] + pub scope: String, + /// The role that the principal has in the given scope. + #[serde(rename = "role")] + pub role: Option>, + #[serde(rename = "created_at")] + pub created_at: String, + #[serde(rename = "modified_at")] + pub modified_at: Option, +} + +impl GrantUpdate { + pub fn new( + url: String, + id: String, + principal: String, + scope: String, + role: Option, + created_at: String, + modified_at: Option, + ) -> GrantUpdate { + GrantUpdate { + url, + id, + principal, + scope, + role: role.map(Box::new), + created_at, + modified_at, + } + } +} diff --git a/crates/cloudtruth-restapi/src/models/group.rs b/crates/cloudtruth-restapi/src/models/group.rs index 51e5d33f..f912c5cb 100644 --- a/crates/cloudtruth-restapi/src/models/group.rs +++ b/crates/cloudtruth-restapi/src/models/group.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/history_model_enum.rs b/crates/cloudtruth-restapi/src/models/history_model_enum.rs index 1d54535d..6b8f9afe 100644 --- a/crates/cloudtruth-restapi/src/models/history_model_enum.rs +++ b/crates/cloudtruth-restapi/src/models/history_model_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/history_type_enum.rs b/crates/cloudtruth-restapi/src/models/history_type_enum.rs index 3483d24c..ecc84283 100644 --- a/crates/cloudtruth-restapi/src/models/history_type_enum.rs +++ b/crates/cloudtruth-restapi/src/models/history_type_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/import_create_request.rs b/crates/cloudtruth-restapi/src/models/import_create_request.rs index 86218842..23b4245e 100644 --- a/crates/cloudtruth-restapi/src/models/import_create_request.rs +++ b/crates/cloudtruth-restapi/src/models/import_create_request.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/import_create_response.rs b/crates/cloudtruth-restapi/src/models/import_create_response.rs index 0d14e584..b8ab2ba5 100644 --- a/crates/cloudtruth-restapi/src/models/import_create_response.rs +++ b/crates/cloudtruth-restapi/src/models/import_create_response.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/import_parameter.rs b/crates/cloudtruth-restapi/src/models/import_parameter.rs index c976cbeb..6aa49223 100644 --- a/crates/cloudtruth-restapi/src/models/import_parameter.rs +++ b/crates/cloudtruth-restapi/src/models/import_parameter.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/integration_node.rs b/crates/cloudtruth-restapi/src/models/integration_node.rs index 3fbf33a2..3bbc9ff6 100644 --- a/crates/cloudtruth-restapi/src/models/integration_node.rs +++ b/crates/cloudtruth-restapi/src/models/integration_node.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/invitation.rs b/crates/cloudtruth-restapi/src/models/invitation.rs index c3840ec5..856d2b97 100644 --- a/crates/cloudtruth-restapi/src/models/invitation.rs +++ b/crates/cloudtruth-restapi/src/models/invitation.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/invitation_create.rs b/crates/cloudtruth-restapi/src/models/invitation_create.rs index 87942b43..f4947ba4 100644 --- a/crates/cloudtruth-restapi/src/models/invitation_create.rs +++ b/crates/cloudtruth-restapi/src/models/invitation_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/membership.rs b/crates/cloudtruth-restapi/src/models/membership.rs index f0c6f5d5..e7537aac 100644 --- a/crates/cloudtruth-restapi/src/models/membership.rs +++ b/crates/cloudtruth-restapi/src/models/membership.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/membership_create.rs b/crates/cloudtruth-restapi/src/models/membership_create.rs index c9f64084..c2e930bd 100644 --- a/crates/cloudtruth-restapi/src/models/membership_create.rs +++ b/crates/cloudtruth-restapi/src/models/membership_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/mod.rs b/crates/cloudtruth-restapi/src/models/mod.rs index 3b5cf4be..a5204904 100644 --- a/crates/cloudtruth-restapi/src/models/mod.rs +++ b/crates/cloudtruth-restapi/src/models/mod.rs @@ -80,6 +80,8 @@ pub mod environment_create; pub use self::environment_create::EnvironmentCreate; pub mod environment_update; pub use self::environment_update::EnvironmentUpdate; +pub mod features_ai_chat_response; +pub use self::features_ai_chat_response::FeaturesAiChatResponse; pub mod features_response; pub use self::features_response::FeaturesResponse; pub mod generated_password_response; @@ -96,6 +98,8 @@ pub mod git_hub_pull_task_step; pub use self::git_hub_pull_task_step::GitHubPullTaskStep; pub mod grant; pub use self::grant::Grant; +pub mod grant_update; +pub use self::grant_update::GrantUpdate; pub mod group; pub use self::group::Group; pub mod history_model_enum; @@ -262,8 +266,8 @@ pub mod patched_environment_update; pub use self::patched_environment_update::PatchedEnvironmentUpdate; pub mod patched_git_hub_pull; pub use self::patched_git_hub_pull::PatchedGitHubPull; -pub mod patched_grant; -pub use self::patched_grant::PatchedGrant; +pub mod patched_grant_update; +pub use self::patched_grant_update::PatchedGrantUpdate; pub mod patched_group; pub use self::patched_group::PatchedGroup; pub mod patched_invitation; @@ -288,6 +292,8 @@ pub mod patched_tag_update; pub use self::patched_tag_update::PatchedTagUpdate; pub mod patched_template_update; pub use self::patched_template_update::PatchedTemplateUpdate; +pub mod patched_update_user; +pub use self::patched_update_user::PatchedUpdateUser; pub mod patched_value_update; pub use self::patched_value_update::PatchedValueUpdate; pub mod project; @@ -302,10 +308,14 @@ pub mod role_enum; pub use self::role_enum::RoleEnum; pub mod service_account; pub use self::service_account::ServiceAccount; +pub mod service_account_api_key; +pub use self::service_account_api_key::ServiceAccountApiKey; pub mod service_account_create_request; pub use self::service_account_create_request::ServiceAccountCreateRequest; pub mod service_account_create_response; pub use self::service_account_create_response::ServiceAccountCreateResponse; +pub mod service_account_rekey_request; +pub use self::service_account_rekey_request::ServiceAccountRekeyRequest; pub mod service_account_update_request; pub use self::service_account_update_request::ServiceAccountUpdateRequest; pub mod state_enum; @@ -342,6 +352,8 @@ pub mod template_timeline_entry_template; pub use self::template_timeline_entry_template::TemplateTimelineEntryTemplate; pub mod template_update; pub use self::template_update::TemplateUpdate; +pub mod update_user; +pub use self::update_user::UpdateUser; pub mod user; pub use self::user::User; pub mod value; diff --git a/crates/cloudtruth-restapi/src/models/mode_enum.rs b/crates/cloudtruth-restapi/src/models/mode_enum.rs index 9930f2f8..a8278a4b 100644 --- a/crates/cloudtruth-restapi/src/models/mode_enum.rs +++ b/crates/cloudtruth-restapi/src/models/mode_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/node_type_enum.rs b/crates/cloudtruth-restapi/src/models/node_type_enum.rs index 2917cca1..66b2b3c1 100644 --- a/crates/cloudtruth-restapi/src/models/node_type_enum.rs +++ b/crates/cloudtruth-restapi/src/models/node_type_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/object_type_enum.rs b/crates/cloudtruth-restapi/src/models/object_type_enum.rs index 48220dcd..12ce5ee4 100644 --- a/crates/cloudtruth-restapi/src/models/object_type_enum.rs +++ b/crates/cloudtruth-restapi/src/models/object_type_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/operation_enum.rs b/crates/cloudtruth-restapi/src/models/operation_enum.rs index 12ef34f3..bd04c7a0 100644 --- a/crates/cloudtruth-restapi/src/models/operation_enum.rs +++ b/crates/cloudtruth-restapi/src/models/operation_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/organization.rs b/crates/cloudtruth-restapi/src/models/organization.rs index cdba8740..a658baf4 100644 --- a/crates/cloudtruth-restapi/src/models/organization.rs +++ b/crates/cloudtruth-restapi/src/models/organization.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -33,6 +33,11 @@ pub struct Organization { /// The current version of this Organization #[serde(rename = "version")] pub version: Option>, + #[serde( + rename = "notification_config", + skip_serializing_if = "Option::is_none" + )] + pub notification_config: Option<::std::collections::HashMap>, /// Indicates if this Organization is the one currently targeted by the Bearer token used by the client to authorize. #[serde(rename = "current")] pub current: bool, @@ -80,6 +85,7 @@ impl Organization { maintenance, mfa_enabled: None, version: version.map(Box::new), + notification_config: None, current, role: role.map(Box::new), subscription_expires_at, diff --git a/crates/cloudtruth-restapi/src/models/organization_create.rs b/crates/cloudtruth-restapi/src/models/organization_create.rs index 9dcea506..29e46fbd 100644 --- a/crates/cloudtruth-restapi/src/models/organization_create.rs +++ b/crates/cloudtruth-restapi/src/models/organization_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_audit_trail_list.rs b/crates/cloudtruth-restapi/src/models/paginated_audit_trail_list.rs index 4a3443c4..5b242294 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_audit_trail_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_audit_trail_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_aws_integration_list.rs b/crates/cloudtruth-restapi/src/models/paginated_aws_integration_list.rs index 20839c4c..40ffa964 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_aws_integration_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_aws_integration_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_aws_pull_list.rs b/crates/cloudtruth-restapi/src/models/paginated_aws_pull_list.rs index fd3c032b..d6f3ab39 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_aws_pull_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_aws_pull_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_aws_pull_task_list.rs b/crates/cloudtruth-restapi/src/models/paginated_aws_pull_task_list.rs index 5a9ab6c9..eb89bf37 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_aws_pull_task_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_aws_pull_task_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_aws_pull_task_step_list.rs b/crates/cloudtruth-restapi/src/models/paginated_aws_pull_task_step_list.rs index ba186d97..112f0b67 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_aws_pull_task_step_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_aws_pull_task_step_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_aws_push_list.rs b/crates/cloudtruth-restapi/src/models/paginated_aws_push_list.rs index 3918a5b5..b8536335 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_aws_push_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_aws_push_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_aws_push_task_list.rs b/crates/cloudtruth-restapi/src/models/paginated_aws_push_task_list.rs index d4bdfd45..ee8fdb2d 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_aws_push_task_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_aws_push_task_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_aws_push_task_step_list.rs b/crates/cloudtruth-restapi/src/models/paginated_aws_push_task_step_list.rs index 5472d33c..74b659bf 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_aws_push_task_step_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_aws_push_task_step_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_integration_list.rs b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_integration_list.rs index d87bd8e2..4ea6d177 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_integration_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_integration_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_list.rs b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_list.rs index 944ea2f9..f7f78bd0 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_task_list.rs b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_task_list.rs index 66e17d5b..a27c10d7 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_task_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_task_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_task_step_list.rs b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_task_step_list.rs index 9b29c333..33b04a13 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_task_step_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_pull_task_step_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_list.rs b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_list.rs index 20bfedfa..6cf8d150 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_task_list.rs b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_task_list.rs index b593dfac..adac7185 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_task_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_task_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_task_step_list.rs b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_task_step_list.rs index b68718c0..b461aa80 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_task_step_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_azure_key_vault_push_task_step_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_environment_list.rs b/crates/cloudtruth-restapi/src/models/paginated_environment_list.rs index dd5becc3..b26271a2 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_environment_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_environment_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_git_hub_integration_list.rs b/crates/cloudtruth-restapi/src/models/paginated_git_hub_integration_list.rs index 4f5513df..d78c089b 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_git_hub_integration_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_git_hub_integration_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_list.rs b/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_list.rs index 392087f9..9825eec1 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_task_list.rs b/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_task_list.rs index 3dd236de..271bd7b6 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_task_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_task_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_task_step_list.rs b/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_task_step_list.rs index 5c4b5ccc..08e5098b 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_task_step_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_git_hub_pull_task_step_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_grant_list.rs b/crates/cloudtruth-restapi/src/models/paginated_grant_list.rs index 4e3982ba..efc6bdf9 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_grant_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_grant_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_group_list.rs b/crates/cloudtruth-restapi/src/models/paginated_group_list.rs index a6591ab6..b0fae6d7 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_group_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_group_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_integration_node_list.rs b/crates/cloudtruth-restapi/src/models/paginated_integration_node_list.rs index ebfcbd0c..f1a8b6db 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_integration_node_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_integration_node_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_invitation_list.rs b/crates/cloudtruth-restapi/src/models/paginated_invitation_list.rs index d73209a2..58f677f8 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_invitation_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_invitation_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_membership_list.rs b/crates/cloudtruth-restapi/src/models/paginated_membership_list.rs index 131d3a3a..6f4f6303 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_membership_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_membership_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_organization_list.rs b/crates/cloudtruth-restapi/src/models/paginated_organization_list.rs index f717e196..bb0a8260 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_organization_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_organization_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_parameter_duality_list.rs b/crates/cloudtruth-restapi/src/models/paginated_parameter_duality_list.rs index ba904b9b..fea3f9b3 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_parameter_duality_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_parameter_duality_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_parameter_list.rs b/crates/cloudtruth-restapi/src/models/paginated_parameter_list.rs index 1e87765f..4ba92029 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_parameter_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_parameter_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_parameter_rule_list.rs b/crates/cloudtruth-restapi/src/models/paginated_parameter_rule_list.rs index cac4d1b6..9fc1b1f4 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_parameter_rule_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_parameter_rule_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_parameter_type_list.rs b/crates/cloudtruth-restapi/src/models/paginated_parameter_type_list.rs index b0b4160f..e79291c0 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_parameter_type_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_parameter_type_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_parameter_type_rule_list.rs b/crates/cloudtruth-restapi/src/models/paginated_parameter_type_rule_list.rs index af4b8ab1..141981d7 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_parameter_type_rule_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_parameter_type_rule_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_project_list.rs b/crates/cloudtruth-restapi/src/models/paginated_project_list.rs index 8844a83c..89100848 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_project_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_project_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_service_account_list.rs b/crates/cloudtruth-restapi/src/models/paginated_service_account_list.rs index 35158c14..7785ea67 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_service_account_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_service_account_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_tag_list.rs b/crates/cloudtruth-restapi/src/models/paginated_tag_list.rs index ddf1aea1..c6119db1 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_tag_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_tag_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_task_step_list.rs b/crates/cloudtruth-restapi/src/models/paginated_task_step_list.rs index 9b597967..25aca630 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_task_step_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_task_step_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_template_list.rs b/crates/cloudtruth-restapi/src/models/paginated_template_list.rs index fca92fab..6414fa90 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_template_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_template_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_user_list.rs b/crates/cloudtruth-restapi/src/models/paginated_user_list.rs index fa29d0fe..a495f604 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_user_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_user_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/paginated_value_list.rs b/crates/cloudtruth-restapi/src/models/paginated_value_list.rs index 6e129e6f..816e7623 100644 --- a/crates/cloudtruth-restapi/src/models/paginated_value_list.rs +++ b/crates/cloudtruth-restapi/src/models/paginated_value_list.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter.rs b/crates/cloudtruth-restapi/src/models/parameter.rs index b68d8cf7..fc6a6656 100644 --- a/crates/cloudtruth-restapi/src/models/parameter.rs +++ b/crates/cloudtruth-restapi/src/models/parameter.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -24,9 +24,9 @@ pub struct Parameter { pub name: String, #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, - #[serde(rename = "secret", skip_serializing_if = "Option::is_none")] - pub secret: Option, - /// The type of this Parameter. + #[serde(rename = "secret")] + pub secret: bool, + /// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub _type: Option, /// Rules applied to this parameter. @@ -57,6 +57,13 @@ pub struct Parameter { pub created_at: String, #[serde(rename = "modified_at")] pub modified_at: Option, + #[serde(rename = "expires", skip_serializing_if = "Option::is_none")] + pub expires: Option, + #[serde(rename = "expiration_action", skip_serializing_if = "Option::is_none")] + pub expiration_action: Option<::std::collections::HashMap>, + /// If this parameter expires, the status of the last attempt to handle its expiration + #[serde(rename = "expired_status")] + pub expired_status: Option<::std::collections::HashMap>, } impl Parameter { @@ -66,6 +73,7 @@ impl Parameter { id: String, ledger_id: String, name: String, + secret: bool, rules: Vec, project: String, project_name: String, @@ -76,6 +84,7 @@ impl Parameter { overrides: Option, created_at: String, modified_at: Option, + expired_status: Option<::std::collections::HashMap>, ) -> Parameter { Parameter { url, @@ -83,7 +92,7 @@ impl Parameter { ledger_id, name, description: None, - secret: None, + secret, _type: None, rules, project, @@ -95,6 +104,9 @@ impl Parameter { overrides, created_at, modified_at, + expires: None, + expiration_action: None, + expired_status, } } } diff --git a/crates/cloudtruth-restapi/src/models/parameter_copy.rs b/crates/cloudtruth-restapi/src/models/parameter_copy.rs index 88903d97..00aedd9b 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_copy.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_copy.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_create.rs b/crates/cloudtruth-restapi/src/models/parameter_create.rs index 4ffda13a..f6597ec8 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_create.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -21,9 +21,13 @@ pub struct ParameterCreate { /// Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used. #[serde(rename = "secret", skip_serializing_if = "Option::is_none")] pub secret: Option, - /// The type of this Parameter. + /// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub _type: Option, + #[serde(rename = "expires", skip_serializing_if = "Option::is_none")] + pub expires: Option, + #[serde(rename = "expiration_action", skip_serializing_if = "Option::is_none")] + pub expiration_action: Option<::std::collections::HashMap>, } impl ParameterCreate { @@ -34,6 +38,8 @@ impl ParameterCreate { description: None, secret: None, _type: None, + expires: None, + expiration_action: None, } } } diff --git a/crates/cloudtruth-restapi/src/models/parameter_duality.rs b/crates/cloudtruth-restapi/src/models/parameter_duality.rs index 2c35fa06..57cbc8a6 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_duality.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_duality.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_export.rs b/crates/cloudtruth-restapi/src/models/parameter_export.rs index 0af7d7c5..0c0e6605 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_export.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_export.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_rule.rs b/crates/cloudtruth-restapi/src/models/parameter_rule.rs index 4f9db143..0f5f8bd1 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_rule.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_rule.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -17,8 +17,6 @@ pub struct ParameterRule { pub url: String, #[serde(rename = "id")] pub id: String, - #[serde(rename = "ledger_id")] - pub ledger_id: String, /// The parameter this rule is for. #[serde(rename = "parameter")] pub parameter: String, @@ -37,7 +35,6 @@ impl ParameterRule { pub fn new( url: String, id: String, - ledger_id: String, parameter: String, _type: crate::models::ParameterRuleTypeEnum, constraint: String, @@ -47,7 +44,6 @@ impl ParameterRule { ParameterRule { url, id, - ledger_id, parameter, _type, constraint, diff --git a/crates/cloudtruth-restapi/src/models/parameter_rule_create.rs b/crates/cloudtruth-restapi/src/models/parameter_rule_create.rs index 875a039a..986518b8 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_rule_create.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_rule_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_rule_type_enum.rs b/crates/cloudtruth-restapi/src/models/parameter_rule_type_enum.rs index e9b51d12..7cf4ca6f 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_rule_type_enum.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_rule_type_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_rule_update.rs b/crates/cloudtruth-restapi/src/models/parameter_rule_update.rs index 415ad82a..17377b63 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_rule_update.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_rule_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_timeline.rs b/crates/cloudtruth-restapi/src/models/parameter_timeline.rs index 47d2b135..01733d71 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_timeline.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_timeline.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_timeline_entry.rs b/crates/cloudtruth-restapi/src/models/parameter_timeline_entry.rs index 156247fb..927cebc3 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_timeline_entry.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_timeline_entry.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_timeline_entry_environment.rs b/crates/cloudtruth-restapi/src/models/parameter_timeline_entry_environment.rs index 8cbad14c..cfd42d21 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_timeline_entry_environment.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_timeline_entry_environment.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_timeline_entry_parameter.rs b/crates/cloudtruth-restapi/src/models/parameter_timeline_entry_parameter.rs index e7ce34c0..fa8f41c2 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_timeline_entry_parameter.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_timeline_entry_parameter.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_type.rs b/crates/cloudtruth-restapi/src/models/parameter_type.rs index 1c07917b..a4ad0c32 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_type.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_type.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -13,10 +13,9 @@ pub struct ParameterType { /// The URL for the parameter type. #[serde(rename = "url")] pub url: String, + /// A unique identifier for the parameter type. #[serde(rename = "id")] pub id: String, - #[serde(rename = "ledger_id")] - pub ledger_id: String, /// The parameter type name. #[serde(rename = "name")] pub name: String, @@ -27,7 +26,7 @@ pub struct ParameterType { #[serde(rename = "rules")] pub rules: Vec, /// The URL for this parameter type's parent - #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] + #[serde(rename = "parent")] pub parent: Option, /// Name of the parent ParameterType (if any). #[serde(rename = "parent_name")] @@ -42,9 +41,9 @@ impl ParameterType { pub fn new( url: String, id: String, - ledger_id: String, name: String, rules: Vec, + parent: Option, parent_name: Option, created_at: String, modified_at: Option, @@ -52,11 +51,10 @@ impl ParameterType { ParameterType { url, id, - ledger_id, name, description: None, rules, - parent: None, + parent, parent_name, created_at, modified_at, diff --git a/crates/cloudtruth-restapi/src/models/parameter_type_create.rs b/crates/cloudtruth-restapi/src/models/parameter_type_create.rs index f8960142..c71748d6 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_type_create.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_type_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_type_rule.rs b/crates/cloudtruth-restapi/src/models/parameter_type_rule.rs index b04d569d..01ddbec5 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_type_rule.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_type_rule.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -17,8 +17,6 @@ pub struct ParameterTypeRule { pub url: String, #[serde(rename = "id")] pub id: String, - #[serde(rename = "ledger_id")] - pub ledger_id: String, /// The type this rule is for. #[serde(rename = "parameter_type")] pub parameter_type: String, @@ -37,7 +35,6 @@ impl ParameterTypeRule { pub fn new( url: String, id: String, - ledger_id: String, parameter_type: String, _type: crate::models::ParameterRuleTypeEnum, constraint: String, @@ -47,7 +44,6 @@ impl ParameterTypeRule { ParameterTypeRule { url, id, - ledger_id, parameter_type, _type, constraint, diff --git a/crates/cloudtruth-restapi/src/models/parameter_type_rule_create.rs b/crates/cloudtruth-restapi/src/models/parameter_type_rule_create.rs index efc0fdf4..a6c19a5e 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_type_rule_create.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_type_rule_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_type_rule_update.rs b/crates/cloudtruth-restapi/src/models/parameter_type_rule_update.rs index 7c29b5d2..fe4c602b 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_type_rule_update.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_type_rule_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/parameter_type_update.rs b/crates/cloudtruth-restapi/src/models/parameter_type_update.rs index 0fc35770..12f0c9c2 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_type_update.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_type_update.rs @@ -3,13 +3,14 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct ParameterTypeUpdate { + /// A unique identifier for the parameter type. #[serde(rename = "id")] pub id: String, /// The parameter type name. diff --git a/crates/cloudtruth-restapi/src/models/parameter_update.rs b/crates/cloudtruth-restapi/src/models/parameter_update.rs index 02d03b83..66a09033 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_update.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -21,9 +21,9 @@ pub struct ParameterUpdate { #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, /// Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used. - #[serde(rename = "secret", skip_serializing_if = "Option::is_none")] - pub secret: Option, - /// The type of this Parameter. + #[serde(rename = "secret")] + pub secret: bool, + /// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub _type: Option, /// The project url. @@ -33,6 +33,13 @@ pub struct ParameterUpdate { pub created_at: String, #[serde(rename = "modified_at")] pub modified_at: Option, + #[serde(rename = "expires", skip_serializing_if = "Option::is_none")] + pub expires: Option, + #[serde(rename = "expiration_action", skip_serializing_if = "Option::is_none")] + pub expiration_action: Option<::std::collections::HashMap>, + /// If this parameter expires, the status of the last attempt to handle its expiration + #[serde(rename = "expired_status")] + pub expired_status: Option<::std::collections::HashMap>, } impl ParameterUpdate { @@ -40,19 +47,24 @@ impl ParameterUpdate { pub fn new( id: String, name: String, + secret: bool, project: String, created_at: String, modified_at: Option, + expired_status: Option<::std::collections::HashMap>, ) -> ParameterUpdate { ParameterUpdate { id, name, description: None, - secret: None, + secret, _type: None, project, created_at, modified_at, + expires: None, + expiration_action: None, + expired_status, } } } diff --git a/crates/cloudtruth-restapi/src/models/patched_aws_integration.rs b/crates/cloudtruth-restapi/src/models/patched_aws_integration.rs index f069acf5..4307f615 100644 --- a/crates/cloudtruth-restapi/src/models/patched_aws_integration.rs +++ b/crates/cloudtruth-restapi/src/models/patched_aws_integration.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -68,6 +68,9 @@ pub struct PatchedAwsIntegration { /// The role that CloudTruth will assume when interacting with your AWS Account through this integration. The role is configured by your AWS Account Administrator. If your AWS Administrator provided you with a value use it, otherwise make your own role name and give it to your AWS Administrator. #[serde(rename = "aws_role_name", skip_serializing_if = "Option::is_none")] pub aws_role_name: Option, + /// A list of tags to be set on all integration resources. + #[serde(rename = "resource_tags", skip_serializing_if = "Option::is_none")] + pub resource_tags: Option<::std::collections::HashMap>, } impl PatchedAwsIntegration { @@ -91,6 +94,7 @@ impl PatchedAwsIntegration { aws_external_id: None, aws_kms_key_id: None, aws_role_name: None, + resource_tags: None, } } } diff --git a/crates/cloudtruth-restapi/src/models/patched_aws_pull.rs b/crates/cloudtruth-restapi/src/models/patched_aws_pull.rs index edb6a06c..54aeaa5f 100644 --- a/crates/cloudtruth-restapi/src/models/patched_aws_pull.rs +++ b/crates/cloudtruth-restapi/src/models/patched_aws_pull.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_aws_push_update.rs b/crates/cloudtruth-restapi/src/models/patched_aws_push_update.rs index 09867fa2..a9148310 100644 --- a/crates/cloudtruth-restapi/src/models/patched_aws_push_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_aws_push_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_integration.rs b/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_integration.rs index ad87d828..7737ad79 100644 --- a/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_integration.rs +++ b/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_integration.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -44,6 +44,9 @@ pub struct PatchedAzureKeyVaultIntegration { /// Allow actions to write to the integration. #[serde(rename = "writable", skip_serializing_if = "Option::is_none")] pub writable: Option, + /// A list of tags to be set on all integration resources. + #[serde(rename = "resource_tags", skip_serializing_if = "Option::is_none")] + pub resource_tags: Option<::std::collections::HashMap>, /// The Azure Key Vault name. #[serde(rename = "vault_name", skip_serializing_if = "Option::is_none")] pub vault_name: Option, @@ -67,6 +70,7 @@ impl PatchedAzureKeyVaultIntegration { fqn: None, _type: None, writable: None, + resource_tags: None, vault_name: None, tenant_id: None, } diff --git a/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_pull.rs b/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_pull.rs index f95c3b89..aaabdb73 100644 --- a/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_pull.rs +++ b/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_pull.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_push_update.rs b/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_push_update.rs index f851d973..24784bd0 100644 --- a/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_push_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_azure_key_vault_push_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_environment_update.rs b/crates/cloudtruth-restapi/src/models/patched_environment_update.rs index 5b2ff7cd..2ea78f8a 100644 --- a/crates/cloudtruth-restapi/src/models/patched_environment_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_environment_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_git_hub_pull.rs b/crates/cloudtruth-restapi/src/models/patched_git_hub_pull.rs index 550ad052..80a86f99 100644 --- a/crates/cloudtruth-restapi/src/models/patched_git_hub_pull.rs +++ b/crates/cloudtruth-restapi/src/models/patched_git_hub_pull.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_grant.rs b/crates/cloudtruth-restapi/src/models/patched_grant_update.rs similarity index 89% rename from crates/cloudtruth-restapi/src/models/patched_grant.rs rename to crates/cloudtruth-restapi/src/models/patched_grant_update.rs index c7320d16..5dc6c2b3 100644 --- a/crates/cloudtruth-restapi/src/models/patched_grant.rs +++ b/crates/cloudtruth-restapi/src/models/patched_grant_update.rs @@ -3,13 +3,13 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] -pub struct PatchedGrant { +pub struct PatchedGrantUpdate { #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, /// A unique identifier for the grant. @@ -30,9 +30,9 @@ pub struct PatchedGrant { pub modified_at: Option, } -impl PatchedGrant { - pub fn new() -> PatchedGrant { - PatchedGrant { +impl PatchedGrantUpdate { + pub fn new() -> PatchedGrantUpdate { + PatchedGrantUpdate { url: None, id: None, principal: None, diff --git a/crates/cloudtruth-restapi/src/models/patched_group.rs b/crates/cloudtruth-restapi/src/models/patched_group.rs index 6b90a87e..e76a2824 100644 --- a/crates/cloudtruth-restapi/src/models/patched_group.rs +++ b/crates/cloudtruth-restapi/src/models/patched_group.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_invitation.rs b/crates/cloudtruth-restapi/src/models/patched_invitation.rs index 1bcd6845..7ba3f31d 100644 --- a/crates/cloudtruth-restapi/src/models/patched_invitation.rs +++ b/crates/cloudtruth-restapi/src/models/patched_invitation.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_membership.rs b/crates/cloudtruth-restapi/src/models/patched_membership.rs index 5bf408a8..e65136ac 100644 --- a/crates/cloudtruth-restapi/src/models/patched_membership.rs +++ b/crates/cloudtruth-restapi/src/models/patched_membership.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_organization.rs b/crates/cloudtruth-restapi/src/models/patched_organization.rs index b5023b21..4697defe 100644 --- a/crates/cloudtruth-restapi/src/models/patched_organization.rs +++ b/crates/cloudtruth-restapi/src/models/patched_organization.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -33,6 +33,11 @@ pub struct PatchedOrganization { /// The current version of this Organization #[serde(rename = "version", skip_serializing_if = "Option::is_none")] pub version: Option>, + #[serde( + rename = "notification_config", + skip_serializing_if = "Option::is_none" + )] + pub notification_config: Option<::std::collections::HashMap>, /// Indicates if this Organization is the one currently targeted by the Bearer token used by the client to authorize. #[serde(rename = "current", skip_serializing_if = "Option::is_none")] pub current: Option, @@ -77,6 +82,7 @@ impl PatchedOrganization { maintenance: None, mfa_enabled: None, version: None, + notification_config: None, current: None, role: None, subscription_expires_at: None, diff --git a/crates/cloudtruth-restapi/src/models/patched_parameter_rule_update.rs b/crates/cloudtruth-restapi/src/models/patched_parameter_rule_update.rs index 89819066..2822e2c7 100644 --- a/crates/cloudtruth-restapi/src/models/patched_parameter_rule_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_parameter_rule_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_parameter_type_rule_update.rs b/crates/cloudtruth-restapi/src/models/patched_parameter_type_rule_update.rs index f87715a9..80c97041 100644 --- a/crates/cloudtruth-restapi/src/models/patched_parameter_type_rule_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_parameter_type_rule_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_parameter_type_update.rs b/crates/cloudtruth-restapi/src/models/patched_parameter_type_update.rs index 65a21828..93b735e0 100644 --- a/crates/cloudtruth-restapi/src/models/patched_parameter_type_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_parameter_type_update.rs @@ -3,13 +3,14 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct PatchedParameterTypeUpdate { + /// A unique identifier for the parameter type. #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, /// The parameter type name. diff --git a/crates/cloudtruth-restapi/src/models/patched_parameter_update.rs b/crates/cloudtruth-restapi/src/models/patched_parameter_update.rs index 11fdc45d..517f15c3 100644 --- a/crates/cloudtruth-restapi/src/models/patched_parameter_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_parameter_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -23,7 +23,7 @@ pub struct PatchedParameterUpdate { /// Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used. #[serde(rename = "secret", skip_serializing_if = "Option::is_none")] pub secret: Option, - /// The type of this Parameter. + /// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub _type: Option, /// The project url. @@ -33,6 +33,13 @@ pub struct PatchedParameterUpdate { pub created_at: Option, #[serde(rename = "modified_at", skip_serializing_if = "Option::is_none")] pub modified_at: Option, + #[serde(rename = "expires", skip_serializing_if = "Option::is_none")] + pub expires: Option, + #[serde(rename = "expiration_action", skip_serializing_if = "Option::is_none")] + pub expiration_action: Option<::std::collections::HashMap>, + /// If this parameter expires, the status of the last attempt to handle its expiration + #[serde(rename = "expired_status", skip_serializing_if = "Option::is_none")] + pub expired_status: Option<::std::collections::HashMap>, } impl PatchedParameterUpdate { @@ -47,6 +54,9 @@ impl PatchedParameterUpdate { project: None, created_at: None, modified_at: None, + expires: None, + expiration_action: None, + expired_status: None, } } } diff --git a/crates/cloudtruth-restapi/src/models/patched_project_update.rs b/crates/cloudtruth-restapi/src/models/patched_project_update.rs index 5cbbd002..31a4ad93 100644 --- a/crates/cloudtruth-restapi/src/models/patched_project_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_project_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_service_account.rs b/crates/cloudtruth-restapi/src/models/patched_service_account.rs index c107ad10..b20e971d 100644 --- a/crates/cloudtruth-restapi/src/models/patched_service_account.rs +++ b/crates/cloudtruth-restapi/src/models/patched_service_account.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -21,6 +21,8 @@ pub struct PatchedServiceAccount { /// An optional description of the process or system using the service account. #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, + #[serde(rename = "keys", skip_serializing_if = "Option::is_none")] + pub keys: Option>, #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] pub created_at: Option, #[serde(rename = "modified_at", skip_serializing_if = "Option::is_none")] @@ -38,6 +40,7 @@ impl PatchedServiceAccount { owner: None, user: None, description: None, + keys: None, created_at: None, modified_at: None, last_used_at: None, diff --git a/crates/cloudtruth-restapi/src/models/patched_tag_update.rs b/crates/cloudtruth-restapi/src/models/patched_tag_update.rs index 1fd87971..744a9366 100644 --- a/crates/cloudtruth-restapi/src/models/patched_tag_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_tag_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_template_update.rs b/crates/cloudtruth-restapi/src/models/patched_template_update.rs index 1b596e36..f857fad4 100644 --- a/crates/cloudtruth-restapi/src/models/patched_template_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_template_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/patched_update_user.rs b/crates/cloudtruth-restapi/src/models/patched_update_user.rs new file mode 100644 index 00000000..e3d02633 --- /dev/null +++ b/crates/cloudtruth-restapi/src/models/patched_update_user.rs @@ -0,0 +1,24 @@ +/* + * CloudTruth Management API + * + * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@cloudtruth.com + * Generated by: https://openapi-generator.tech + */ + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct PatchedUpdateUser { + /// The threads this user is participating in with ChatGPT. + #[serde(rename = "chatgpt_threads", skip_serializing_if = "Option::is_none")] + pub chatgpt_threads: Option<::std::collections::HashMap>, +} + +impl PatchedUpdateUser { + pub fn new() -> PatchedUpdateUser { + PatchedUpdateUser { + chatgpt_threads: None, + } + } +} diff --git a/crates/cloudtruth-restapi/src/models/patched_value_update.rs b/crates/cloudtruth-restapi/src/models/patched_value_update.rs index 3c953f7a..070ee993 100644 --- a/crates/cloudtruth-restapi/src/models/patched_value_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_value_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/project.rs b/crates/cloudtruth-restapi/src/models/project.rs index 3f5974f9..210ea359 100644 --- a/crates/cloudtruth-restapi/src/models/project.rs +++ b/crates/cloudtruth-restapi/src/models/project.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -33,7 +33,7 @@ pub struct Project { #[serde(rename = "dependents")] pub dependents: Vec, /// Project dependencies allow projects to be used for shared configuration, for example a database used by many applications needs to advertise its port number. Projects can depend on another project which will add the parameters from the parent project into the current project. All of the parameter names between the two projects must be unique. When retrieving values or rendering templates, all of the parameters from the parent project will also be available in the current project. - #[serde(rename = "depends_on", skip_serializing_if = "Option::is_none")] + #[serde(rename = "depends_on")] pub depends_on: Option, /// Indicates if access control is being enforced through grants. #[serde(rename = "access_controlled", skip_serializing_if = "Option::is_none")] @@ -41,10 +41,10 @@ pub struct Project { /// Your role in the project, if the project is access-controlled. #[serde(rename = "role")] pub role: Option>, - /// Deprecated. Only shows pushes for aws integrations in /api/v1/. + /// Deprecated. Blank. #[serde(rename = "pushes")] - pub pushes: Vec, - /// Push actions associated with the project. + pub pushes: Vec, + /// Deprecated. Blank. #[serde(rename = "push_urls")] pub push_urls: Vec, #[serde(rename = "created_at")] @@ -60,8 +60,9 @@ impl Project { ledger_id: String, name: String, dependents: Vec, + depends_on: Option, role: Option, - pushes: Vec, + pushes: Vec, push_urls: Vec, created_at: String, modified_at: Option, @@ -74,7 +75,7 @@ impl Project { parameter_name_pattern: None, description: None, dependents, - depends_on: None, + depends_on, access_controlled: None, role: role.map(Box::new), pushes, diff --git a/crates/cloudtruth-restapi/src/models/project_copy.rs b/crates/cloudtruth-restapi/src/models/project_copy.rs index fa3b622a..fdea41f8 100644 --- a/crates/cloudtruth-restapi/src/models/project_copy.rs +++ b/crates/cloudtruth-restapi/src/models/project_copy.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/project_create.rs b/crates/cloudtruth-restapi/src/models/project_create.rs index 734f428d..7b71449a 100644 --- a/crates/cloudtruth-restapi/src/models/project_create.rs +++ b/crates/cloudtruth-restapi/src/models/project_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -25,6 +25,9 @@ pub struct ProjectCreate { /// Project dependencies allow projects to be used for shared configuration, for example a database used by many applications needs to advertise its port number. Projects can depend on another project which will add the parameters from the parent project into the current project. All of the parameter names between the two projects must be unique. When retrieving values or rendering templates, all of the parameters from the parent project will also be available in the current project. #[serde(rename = "depends_on", skip_serializing_if = "Option::is_none")] pub depends_on: Option, + /// If depends_on is set and has RBAC enabled and this field is True, RBAC will be enabled and grants from the dependency are copied to this project. If depends_on is set and has RBAC enabled and this field is False, RBAC will be enabled but only the minimal necessary grants will be assigned to the newly created project. Not used when depends_on is not set or RBAC is not enabled for the dependency. + #[serde(rename = "copy_rbac", skip_serializing_if = "Option::is_none")] + pub copy_rbac: Option, } impl ProjectCreate { @@ -34,6 +37,7 @@ impl ProjectCreate { description: None, parameter_name_pattern: None, depends_on: None, + copy_rbac: None, } } } diff --git a/crates/cloudtruth-restapi/src/models/project_update.rs b/crates/cloudtruth-restapi/src/models/project_update.rs index 601bd395..704d869e 100644 --- a/crates/cloudtruth-restapi/src/models/project_update.rs +++ b/crates/cloudtruth-restapi/src/models/project_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/role_enum.rs b/crates/cloudtruth-restapi/src/models/role_enum.rs index 5aae0140..375d7bbe 100644 --- a/crates/cloudtruth-restapi/src/models/role_enum.rs +++ b/crates/cloudtruth-restapi/src/models/role_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/service_account.rs b/crates/cloudtruth-restapi/src/models/service_account.rs index fdc89e82..c1ebe850 100644 --- a/crates/cloudtruth-restapi/src/models/service_account.rs +++ b/crates/cloudtruth-restapi/src/models/service_account.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -21,6 +21,8 @@ pub struct ServiceAccount { /// An optional description of the process or system using the service account. #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, + #[serde(rename = "keys")] + pub keys: Vec, #[serde(rename = "created_at")] pub created_at: String, #[serde(rename = "modified_at")] @@ -35,6 +37,7 @@ impl ServiceAccount { url: String, id: String, user: Option, + keys: Vec, created_at: String, modified_at: Option, last_used_at: Option, @@ -45,6 +48,7 @@ impl ServiceAccount { owner: None, user: user.map(Box::new), description: None, + keys, created_at, modified_at, last_used_at, diff --git a/crates/cloudtruth-restapi/src/models/service_account_api_key.rs b/crates/cloudtruth-restapi/src/models/service_account_api_key.rs new file mode 100644 index 00000000..d4789567 --- /dev/null +++ b/crates/cloudtruth-restapi/src/models/service_account_api_key.rs @@ -0,0 +1,41 @@ +/* + * CloudTruth Management API + * + * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@cloudtruth.com + * Generated by: https://openapi-generator.tech + */ + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServiceAccountApiKey { + /// A free-form name for the API key. Need not be unique. 50 characters max. + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(rename = "prefix")] + pub prefix: String, + /// If the API key is revoked, clients cannot use it anymore. (This cannot be undone.) + #[serde(rename = "revoked", skip_serializing_if = "Option::is_none")] + pub revoked: Option, + #[serde(rename = "has_expired")] + pub has_expired: bool, + #[serde(rename = "created")] + pub created: String, + /// Once API key expires, clients cannot use it anymore. + #[serde(rename = "expiry_date", skip_serializing_if = "Option::is_none")] + pub expiry_date: Option, +} + +impl ServiceAccountApiKey { + pub fn new(prefix: String, has_expired: bool, created: String) -> ServiceAccountApiKey { + ServiceAccountApiKey { + name: None, + prefix, + revoked: None, + has_expired, + created, + expiry_date: None, + } + } +} diff --git a/crates/cloudtruth-restapi/src/models/service_account_create_request.rs b/crates/cloudtruth-restapi/src/models/service_account_create_request.rs index f116a68f..fa60793a 100644 --- a/crates/cloudtruth-restapi/src/models/service_account_create_request.rs +++ b/crates/cloudtruth-restapi/src/models/service_account_create_request.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/service_account_create_response.rs b/crates/cloudtruth-restapi/src/models/service_account_create_response.rs index 7fd8d3da..9784c95b 100644 --- a/crates/cloudtruth-restapi/src/models/service_account_create_response.rs +++ b/crates/cloudtruth-restapi/src/models/service_account_create_response.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -21,6 +21,8 @@ pub struct ServiceAccountCreateResponse { /// An optional description of the process or system using the service account. #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, + #[serde(rename = "keys")] + pub keys: Vec, #[serde(rename = "created_at")] pub created_at: String, #[serde(rename = "modified_at")] @@ -38,6 +40,7 @@ impl ServiceAccountCreateResponse { url: String, id: String, user: Option, + keys: Vec, created_at: String, modified_at: Option, last_used_at: Option, @@ -49,6 +52,7 @@ impl ServiceAccountCreateResponse { owner: None, user: user.map(Box::new), description: None, + keys, created_at, modified_at, last_used_at, diff --git a/crates/cloudtruth-restapi/src/models/service_account_rekey_request.rs b/crates/cloudtruth-restapi/src/models/service_account_rekey_request.rs new file mode 100644 index 00000000..5c18c8a7 --- /dev/null +++ b/crates/cloudtruth-restapi/src/models/service_account_rekey_request.rs @@ -0,0 +1,22 @@ +/* + * CloudTruth Management API + * + * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@cloudtruth.com + * Generated by: https://openapi-generator.tech + */ + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ServiceAccountRekeyRequest { + /// The date and time the previous API key will expire. + #[serde(rename = "expire_at", skip_serializing_if = "Option::is_none")] + pub expire_at: Option, +} + +impl ServiceAccountRekeyRequest { + pub fn new() -> ServiceAccountRekeyRequest { + ServiceAccountRekeyRequest { expire_at: None } + } +} diff --git a/crates/cloudtruth-restapi/src/models/service_account_update_request.rs b/crates/cloudtruth-restapi/src/models/service_account_update_request.rs index 9b3cd87f..fbe92ff2 100644 --- a/crates/cloudtruth-restapi/src/models/service_account_update_request.rs +++ b/crates/cloudtruth-restapi/src/models/service_account_update_request.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/state_enum.rs b/crates/cloudtruth-restapi/src/models/state_enum.rs index 0ddce71c..ca721e61 100644 --- a/crates/cloudtruth-restapi/src/models/state_enum.rs +++ b/crates/cloudtruth-restapi/src/models/state_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/status_enum.rs b/crates/cloudtruth-restapi/src/models/status_enum.rs index 7a89d972..bff3912a 100644 --- a/crates/cloudtruth-restapi/src/models/status_enum.rs +++ b/crates/cloudtruth-restapi/src/models/status_enum.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/tag.rs b/crates/cloudtruth-restapi/src/models/tag.rs index b1bdc6fc..dc45e011 100644 --- a/crates/cloudtruth-restapi/src/models/tag.rs +++ b/crates/cloudtruth-restapi/src/models/tag.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -12,6 +12,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct Tag { + /// The URL for the tag. #[serde(rename = "url")] pub url: String, /// A unique identifier for the tag. @@ -29,7 +30,7 @@ pub struct Tag { /// If True, this tag cannot be modified once it is created. #[serde(rename = "immutable", skip_serializing_if = "Option::is_none")] pub immutable: Option, - /// Deprecated. Only shows pushes for aws integrations in /api/v1/. + /// Deprecated. Use `push_urls` instead. #[serde(rename = "pushes")] pub pushes: Vec, /// Push actions associated with the tag. diff --git a/crates/cloudtruth-restapi/src/models/tag_create.rs b/crates/cloudtruth-restapi/src/models/tag_create.rs index 1e0f5753..2df84a92 100644 --- a/crates/cloudtruth-restapi/src/models/tag_create.rs +++ b/crates/cloudtruth-restapi/src/models/tag_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/tag_read_usage.rs b/crates/cloudtruth-restapi/src/models/tag_read_usage.rs index 57efac8a..a43bfb16 100644 --- a/crates/cloudtruth-restapi/src/models/tag_read_usage.rs +++ b/crates/cloudtruth-restapi/src/models/tag_read_usage.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/tag_update.rs b/crates/cloudtruth-restapi/src/models/tag_update.rs index 00259583..6b14c18e 100644 --- a/crates/cloudtruth-restapi/src/models/tag_update.rs +++ b/crates/cloudtruth-restapi/src/models/tag_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/task_step.rs b/crates/cloudtruth-restapi/src/models/task_step.rs index 0c06e430..0b162d95 100644 --- a/crates/cloudtruth-restapi/src/models/task_step.rs +++ b/crates/cloudtruth-restapi/src/models/task_step.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template.rs b/crates/cloudtruth-restapi/src/models/template.rs index c6ad1a9f..267df505 100644 --- a/crates/cloudtruth-restapi/src/models/template.rs +++ b/crates/cloudtruth-restapi/src/models/template.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_create.rs b/crates/cloudtruth-restapi/src/models/template_create.rs index e962738d..fe117363 100644 --- a/crates/cloudtruth-restapi/src/models/template_create.rs +++ b/crates/cloudtruth-restapi/src/models/template_create.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_lookup_error.rs b/crates/cloudtruth-restapi/src/models/template_lookup_error.rs index 103721cd..054dc3ba 100644 --- a/crates/cloudtruth-restapi/src/models/template_lookup_error.rs +++ b/crates/cloudtruth-restapi/src/models/template_lookup_error.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_lookup_error_entry.rs b/crates/cloudtruth-restapi/src/models/template_lookup_error_entry.rs index 9c3ddc96..3fd529b1 100644 --- a/crates/cloudtruth-restapi/src/models/template_lookup_error_entry.rs +++ b/crates/cloudtruth-restapi/src/models/template_lookup_error_entry.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_preview.rs b/crates/cloudtruth-restapi/src/models/template_preview.rs index 1cab7be0..8651a993 100644 --- a/crates/cloudtruth-restapi/src/models/template_preview.rs +++ b/crates/cloudtruth-restapi/src/models/template_preview.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_preview_create_request.rs b/crates/cloudtruth-restapi/src/models/template_preview_create_request.rs index 6e933137..3d1a4d1c 100644 --- a/crates/cloudtruth-restapi/src/models/template_preview_create_request.rs +++ b/crates/cloudtruth-restapi/src/models/template_preview_create_request.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_timeline.rs b/crates/cloudtruth-restapi/src/models/template_timeline.rs index f5f2d98e..1a283ba9 100644 --- a/crates/cloudtruth-restapi/src/models/template_timeline.rs +++ b/crates/cloudtruth-restapi/src/models/template_timeline.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_timeline_entry.rs b/crates/cloudtruth-restapi/src/models/template_timeline_entry.rs index 7d1e4030..e5a6af26 100644 --- a/crates/cloudtruth-restapi/src/models/template_timeline_entry.rs +++ b/crates/cloudtruth-restapi/src/models/template_timeline_entry.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_timeline_entry_template.rs b/crates/cloudtruth-restapi/src/models/template_timeline_entry_template.rs index d2756780..076d41b1 100644 --- a/crates/cloudtruth-restapi/src/models/template_timeline_entry_template.rs +++ b/crates/cloudtruth-restapi/src/models/template_timeline_entry_template.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/template_update.rs b/crates/cloudtruth-restapi/src/models/template_update.rs index 78cc710d..f8b83489 100644 --- a/crates/cloudtruth-restapi/src/models/template_update.rs +++ b/crates/cloudtruth-restapi/src/models/template_update.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ diff --git a/crates/cloudtruth-restapi/src/models/update_user.rs b/crates/cloudtruth-restapi/src/models/update_user.rs new file mode 100644 index 00000000..d2965621 --- /dev/null +++ b/crates/cloudtruth-restapi/src/models/update_user.rs @@ -0,0 +1,24 @@ +/* + * CloudTruth Management API + * + * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@cloudtruth.com + * Generated by: https://openapi-generator.tech + */ + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct UpdateUser { + /// The threads this user is participating in with ChatGPT. + #[serde(rename = "chatgpt_threads")] + pub chatgpt_threads: Option<::std::collections::HashMap>, +} + +impl UpdateUser { + pub fn new( + chatgpt_threads: Option<::std::collections::HashMap>, + ) -> UpdateUser { + UpdateUser { chatgpt_threads } + } +} diff --git a/crates/cloudtruth-restapi/src/models/user.rs b/crates/cloudtruth-restapi/src/models/user.rs index c51df3c1..8569b589 100644 --- a/crates/cloudtruth-restapi/src/models/user.rs +++ b/crates/cloudtruth-restapi/src/models/user.rs @@ -3,7 +3,7 @@ * * CloudTruth centralizes your configuration parameters and secrets making them easier to manage and use as a team. * - * The version of the OpenAPI document: v1 + * The version of the OpenAPI document: 1.0.0 * Contact: support@cloudtruth.com * Generated by: https://openapi-generator.tech */ @@ -26,6 +26,9 @@ pub struct User { /// Membership identifier for user. #[serde(rename = "membership_id")] pub membership_id: Option, + /// The threads this user is participating in with ChatGPT. + #[serde(rename = "chatgpt_threads")] + pub chatgpt_threads: ::std::collections::HashMap, // TODO: One of these things is not like the others, why is this autogenerated as a required HashMap and not an