From 713ef4a9d2ce896195979a955fa68087165a6bb4 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Mar 2026 10:09:01 +0000 Subject: [PATCH] Generate intake --- services/intake/api_default.go | 189 +- services/intake/client.go | 7 + services/intake/configuration.go | 2 + services/intake/go.mod | 2 +- services/intake/go.sum | 4 +- services/intake/model_catalog_auth.go | 35 + services/intake/model_catalog_auth_patch.go | 35 + services/intake/model_catalog_auth_type.go | 19 +- services/intake/model_client_config.go | 32 + .../intake/model_create_intake_payload.go | 63 + .../model_create_intake_runner_payload.go | 64 + .../model_create_intake_user_payload.go | 64 + services/intake/model_dremio_auth.go | 32 + services/intake/model_dremio_auth_patch.go | 33 + services/intake/model_intake_catalog.go | 85 + services/intake/model_intake_catalog_patch.go | 86 + services/intake/model_intake_response.go | 164 +- .../intake/model_intake_runner_response.go | 123 +- services/intake/model_intake_user_response.go | 124 +- .../model_list_intake_runners_response.go | 34 + .../model_list_intake_users_response.go | 34 + .../intake/model_list_intakes_response.go | 34 + services/intake/model_partitioning_type.go | 22 +- .../intake/model_partitioning_update_type.go | 22 +- .../intake/model_update_intake_payload.go | 65 + .../model_update_intake_runner_payload.go | 66 + .../model_update_intake_user_payload.go | 65 + services/intake/model_user_type.go | 19 +- services/intake/oas_commit | 2 +- services/intake/utils.go | 81 + services/intake/v1betaapi/api_default.go | 2247 +++++++++++++++++ services/intake/v1betaapi/api_default_mock.go | 349 +++ services/intake/v1betaapi/client.go | 658 +++++ services/intake/v1betaapi/configuration.go | 40 + .../intake/v1betaapi/model_catalog_auth.go | 192 ++ .../v1betaapi/model_catalog_auth_patch.go | 160 ++ .../v1betaapi/model_catalog_auth_type.go | 110 + .../intake/v1betaapi/model_client_config.go | 186 ++ .../v1betaapi/model_create_intake_payload.go | 289 +++ .../model_create_intake_runner_payload.go | 290 +++ .../model_create_intake_user_payload.go | 301 +++ .../intake/v1betaapi/model_dremio_auth.go | 186 ++ .../v1betaapi/model_dremio_auth_patch.go | 162 ++ .../intake/v1betaapi/model_intake_catalog.go | 378 +++ .../v1betaapi/model_intake_catalog_patch.go | 350 +++ .../intake/v1betaapi/model_intake_response.go | 538 ++++ .../v1betaapi/model_intake_runner_response.go | 407 +++ .../v1betaapi/model_intake_user_response.go | 415 +++ .../model_list_intake_runners_response.go | 193 ++ .../model_list_intake_users_response.go | 193 ++ .../v1betaapi/model_list_intakes_response.go | 193 ++ .../v1betaapi/model_partitioning_type.go | 112 + .../model_partitioning_update_type.go | 112 + .../v1betaapi/model_update_intake_payload.go | 305 +++ .../model_update_intake_runner_payload.go | 274 ++ .../model_update_intake_user_payload.go | 277 ++ services/intake/v1betaapi/model_user_type.go | 110 + services/intake/v1betaapi/response.go | 47 + services/intake/v1betaapi/utils.go | 361 +++ services/intake/wait/deprecation.go | 2 + 60 files changed, 11004 insertions(+), 40 deletions(-) create mode 100644 services/intake/v1betaapi/api_default.go create mode 100644 services/intake/v1betaapi/api_default_mock.go create mode 100644 services/intake/v1betaapi/client.go create mode 100644 services/intake/v1betaapi/configuration.go create mode 100644 services/intake/v1betaapi/model_catalog_auth.go create mode 100644 services/intake/v1betaapi/model_catalog_auth_patch.go create mode 100644 services/intake/v1betaapi/model_catalog_auth_type.go create mode 100644 services/intake/v1betaapi/model_client_config.go create mode 100644 services/intake/v1betaapi/model_create_intake_payload.go create mode 100644 services/intake/v1betaapi/model_create_intake_runner_payload.go create mode 100644 services/intake/v1betaapi/model_create_intake_user_payload.go create mode 100644 services/intake/v1betaapi/model_dremio_auth.go create mode 100644 services/intake/v1betaapi/model_dremio_auth_patch.go create mode 100644 services/intake/v1betaapi/model_intake_catalog.go create mode 100644 services/intake/v1betaapi/model_intake_catalog_patch.go create mode 100644 services/intake/v1betaapi/model_intake_response.go create mode 100644 services/intake/v1betaapi/model_intake_runner_response.go create mode 100644 services/intake/v1betaapi/model_intake_user_response.go create mode 100644 services/intake/v1betaapi/model_list_intake_runners_response.go create mode 100644 services/intake/v1betaapi/model_list_intake_users_response.go create mode 100644 services/intake/v1betaapi/model_list_intakes_response.go create mode 100644 services/intake/v1betaapi/model_partitioning_type.go create mode 100644 services/intake/v1betaapi/model_partitioning_update_type.go create mode 100644 services/intake/v1betaapi/model_update_intake_payload.go create mode 100644 services/intake/v1betaapi/model_update_intake_runner_payload.go create mode 100644 services/intake/v1betaapi/model_update_intake_user_payload.go create mode 100644 services/intake/v1betaapi/model_user_type.go create mode 100644 services/intake/v1betaapi/response.go create mode 100644 services/intake/v1betaapi/utils.go create mode 100644 services/intake/wait/deprecation.go diff --git a/services/intake/api_default.go b/services/intake/api_default.go index 6834f24cb..280abafa5 100644 --- a/services/intake/api_default.go +++ b/services/intake/api_default.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -23,6 +24,7 @@ import ( "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DefaultApi interface { /* CreateIntake Method for CreateIntake @@ -32,6 +34,8 @@ type DefaultApi interface { @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @return ApiCreateIntakeRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateIntake(ctx context.Context, projectId string, regionId string) ApiCreateIntakeRequest /* @@ -42,6 +46,7 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @return IntakeResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateIntakeExecute(ctx context.Context, projectId string, regionId string) (*IntakeResponse, error) /* @@ -52,6 +57,8 @@ type DefaultApi interface { @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @return ApiCreateIntakeRunnerRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateIntakeRunner(ctx context.Context, projectId string, regionId string) ApiCreateIntakeRunnerRequest /* @@ -62,6 +69,7 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @return IntakeRunnerResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateIntakeRunnerExecute(ctx context.Context, projectId string, regionId string) (*IntakeRunnerResponse, error) /* @@ -73,6 +81,8 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @param intakeId The intake UUID. @return ApiCreateIntakeUserRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string) ApiCreateIntakeUserRequest /* @@ -84,6 +94,7 @@ type DefaultApi interface { @param intakeId The intake UUID. @return IntakeUserResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateIntakeUserExecute(ctx context.Context, projectId string, regionId string, intakeId string) (*IntakeUserResponse, error) /* @@ -95,11 +106,14 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @param intakeId The intake UUID. @return ApiDeleteIntakeRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiDeleteIntakeRequest /* DeleteIntakeExecute executes the request + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteIntakeExecute(ctx context.Context, projectId string, regionId string, intakeId string) error /* @@ -111,11 +125,14 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @param intakeRunnerId The intake runner UUID. @return ApiDeleteIntakeRunnerRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiDeleteIntakeRunnerRequest /* DeleteIntakeRunnerExecute executes the request + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteIntakeRunnerExecute(ctx context.Context, projectId string, regionId string, intakeRunnerId string) error /* @@ -128,11 +145,14 @@ type DefaultApi interface { @param intakeId The intake UUID. @param intakeUserId The intake user UUID. @return ApiDeleteIntakeUserRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiDeleteIntakeUserRequest /* DeleteIntakeUserExecute executes the request + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteIntakeUserExecute(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) error /* @@ -144,6 +164,8 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @param intakeId The intake UUID. @return ApiGetIntakeRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiGetIntakeRequest /* @@ -155,6 +177,7 @@ type DefaultApi interface { @param intakeId The intake UUID. @return IntakeResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetIntakeExecute(ctx context.Context, projectId string, regionId string, intakeId string) (*IntakeResponse, error) /* @@ -166,6 +189,8 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @param intakeRunnerId The intake runner UUID. @return ApiGetIntakeRunnerRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiGetIntakeRunnerRequest /* @@ -177,6 +202,7 @@ type DefaultApi interface { @param intakeRunnerId The intake runner UUID. @return IntakeRunnerResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetIntakeRunnerExecute(ctx context.Context, projectId string, regionId string, intakeRunnerId string) (*IntakeRunnerResponse, error) /* @@ -189,6 +215,8 @@ type DefaultApi interface { @param intakeId The intake UUID. @param intakeUserId The intake user UUID. @return ApiGetIntakeUserRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiGetIntakeUserRequest /* @@ -201,6 +229,7 @@ type DefaultApi interface { @param intakeUserId The intake user UUID. @return IntakeUserResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetIntakeUserExecute(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) (*IntakeUserResponse, error) /* @@ -211,6 +240,8 @@ type DefaultApi interface { @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @return ApiListIntakeRunnersRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListIntakeRunners(ctx context.Context, projectId string, regionId string) ApiListIntakeRunnersRequest /* @@ -221,6 +252,7 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @return ListIntakeRunnersResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListIntakeRunnersExecute(ctx context.Context, projectId string, regionId string) (*ListIntakeRunnersResponse, error) /* @@ -232,6 +264,8 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @param intakeId The intake UUID. @return ApiListIntakeUsersRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListIntakeUsers(ctx context.Context, projectId string, regionId string, intakeId string) ApiListIntakeUsersRequest /* @@ -243,6 +277,7 @@ type DefaultApi interface { @param intakeId The intake UUID. @return ListIntakeUsersResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListIntakeUsersExecute(ctx context.Context, projectId string, regionId string, intakeId string) (*ListIntakeUsersResponse, error) /* @@ -253,6 +288,8 @@ type DefaultApi interface { @param projectId The STACKIT portal project UUID the resource is located in. @param regionId The STACKIT region name the resource is located in. @return ApiListIntakesRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListIntakes(ctx context.Context, projectId string, regionId string) ApiListIntakesRequest /* @@ -263,6 +300,7 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @return ListIntakesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListIntakesExecute(ctx context.Context, projectId string, regionId string) (*ListIntakesResponse, error) /* @@ -274,6 +312,8 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @param intakeId The intake UUID. @return ApiUpdateIntakeRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiUpdateIntakeRequest /* @@ -285,6 +325,7 @@ type DefaultApi interface { @param intakeId The intake UUID. @return IntakeResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateIntakeExecute(ctx context.Context, projectId string, regionId string, intakeId string) (*IntakeResponse, error) /* @@ -296,6 +337,8 @@ type DefaultApi interface { @param regionId The STACKIT region name the resource is located in. @param intakeRunnerId The intake runner UUID. @return ApiUpdateIntakeRunnerRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiUpdateIntakeRunnerRequest /* @@ -307,6 +350,7 @@ type DefaultApi interface { @param intakeRunnerId The intake runner UUID. @return IntakeRunnerResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateIntakeRunnerExecute(ctx context.Context, projectId string, regionId string, intakeRunnerId string) (*IntakeRunnerResponse, error) /* @@ -319,6 +363,8 @@ type DefaultApi interface { @param intakeId The intake UUID. @param intakeUserId The intake user UUID. @return ApiUpdateIntakeUserRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiUpdateIntakeUserRequest /* @@ -331,95 +377,142 @@ type DefaultApi interface { @param intakeUserId The intake user UUID. @return IntakeUserResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateIntakeUserExecute(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) (*IntakeUserResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateIntakeRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateIntakePayload(createIntakePayload CreateIntakePayload) ApiCreateIntakeRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateIntakeRunnerRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateIntakeRunnerPayload(createIntakeRunnerPayload CreateIntakeRunnerPayload) ApiCreateIntakeRunnerRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeRunnerResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateIntakeUserRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateIntakeUserPayload(createIntakeUserPayload CreateIntakeUserPayload) ApiCreateIntakeUserRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeUserResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteIntakeRequest interface { // If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Force(force bool) ApiDeleteIntakeRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() error } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteIntakeRunnerRequest interface { // If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Force(force bool) ApiDeleteIntakeRunnerRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() error } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteIntakeUserRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() error } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetIntakeRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetIntakeRunnerRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeRunnerResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetIntakeUserRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeUserResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListIntakeRunnersRequest interface { // A token to retrieve the next page of results. + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageToken(pageToken string) ApiListIntakeRunnersRequest // Maximum number of items to return + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageSize(pageSize int32) ApiListIntakeRunnersRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListIntakeRunnersResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListIntakeUsersRequest interface { // A token to retrieve the next page of results. + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageToken(pageToken string) ApiListIntakeUsersRequest // Maximum number of items to return + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageSize(pageSize int32) ApiListIntakeUsersRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListIntakeUsersResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListIntakesRequest interface { // A token to retrieve the next page of results. + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageToken(pageToken string) ApiListIntakesRequest // Maximum number of items to return + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageSize(pageSize int32) ApiListIntakesRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListIntakesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateIntakeRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateIntakePayload(updateIntakePayload UpdateIntakePayload) ApiUpdateIntakeRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateIntakeRunnerRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateIntakeRunnerPayload(updateIntakeRunnerPayload UpdateIntakeRunnerPayload) ApiUpdateIntakeRunnerRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeRunnerResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateIntakeUserRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateIntakeUserPayload(updateIntakeUserPayload UpdateIntakeUserPayload) ApiUpdateIntakeUserRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*IntakeUserResponse, error) } // DefaultApiService DefaultApi service +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DefaultApiService service +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRequest struct { ctx context.Context apiService *DefaultApiService @@ -428,11 +521,13 @@ type CreateIntakeRequest struct { createIntakePayload *CreateIntakePayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateIntakeRequest) CreateIntakePayload(createIntakePayload CreateIntakePayload) ApiCreateIntakeRequest { r.createIntakePayload = &createIntakePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateIntakeRequest) Execute() (*IntakeResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -531,7 +626,7 @@ func (r CreateIntakeRequest) Execute() (*IntakeResponse, error) { /* CreateIntake: Method for CreateIntake -Creates a new intake within the project. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -547,6 +642,7 @@ func (a *APIClient) CreateIntake(ctx context.Context, projectId string, regionId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateIntakeExecute(ctx context.Context, projectId string, regionId string) (*IntakeResponse, error) { r := CreateIntakeRequest{ apiService: a.defaultApi, @@ -557,6 +653,7 @@ func (a *APIClient) CreateIntakeExecute(ctx context.Context, projectId string, r return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerRequest struct { ctx context.Context apiService *DefaultApiService @@ -565,11 +662,13 @@ type CreateIntakeRunnerRequest struct { createIntakeRunnerPayload *CreateIntakeRunnerPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateIntakeRunnerRequest) CreateIntakeRunnerPayload(createIntakeRunnerPayload CreateIntakeRunnerPayload) ApiCreateIntakeRunnerRequest { r.createIntakeRunnerPayload = &createIntakeRunnerPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -668,7 +767,7 @@ func (r CreateIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { /* CreateIntakeRunner: Method for CreateIntakeRunner -Creates a new intake runner within the project. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -684,6 +783,7 @@ func (a *APIClient) CreateIntakeRunner(ctx context.Context, projectId string, re } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateIntakeRunnerExecute(ctx context.Context, projectId string, regionId string) (*IntakeRunnerResponse, error) { r := CreateIntakeRunnerRequest{ apiService: a.defaultApi, @@ -694,6 +794,7 @@ func (a *APIClient) CreateIntakeRunnerExecute(ctx context.Context, projectId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserRequest struct { ctx context.Context apiService *DefaultApiService @@ -703,11 +804,13 @@ type CreateIntakeUserRequest struct { createIntakeUserPayload *CreateIntakeUserPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateIntakeUserRequest) CreateIntakeUserPayload(createIntakeUserPayload CreateIntakeUserPayload) ApiCreateIntakeUserRequest { r.createIntakeUserPayload = &createIntakeUserPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateIntakeUserRequest) Execute() (*IntakeUserResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -807,7 +910,7 @@ func (r CreateIntakeUserRequest) Execute() (*IntakeUserResponse, error) { /* CreateIntakeUser: Method for CreateIntakeUser -Creates a new user for this intake. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -825,6 +928,7 @@ func (a *APIClient) CreateIntakeUser(ctx context.Context, projectId string, regi } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateIntakeUserExecute(ctx context.Context, projectId string, regionId string, intakeId string) (*IntakeUserResponse, error) { r := CreateIntakeUserRequest{ apiService: a.defaultApi, @@ -836,6 +940,7 @@ func (a *APIClient) CreateIntakeUserExecute(ctx context.Context, projectId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteIntakeRequest struct { ctx context.Context apiService *DefaultApiService @@ -846,12 +951,13 @@ type DeleteIntakeRequest struct { } // If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteIntakeRequest) Force(force bool) ApiDeleteIntakeRequest { r.force = &force return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteIntakeRequest) Execute() error { var ( localVarHTTPMethod = http.MethodDelete @@ -938,7 +1044,7 @@ func (r DeleteIntakeRequest) Execute() error { /* DeleteIntake: Method for DeleteIntake -Deletes the given intake. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -956,6 +1062,7 @@ func (a *APIClient) DeleteIntake(ctx context.Context, projectId string, regionId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteIntakeExecute(ctx context.Context, projectId string, regionId string, intakeId string) error { r := DeleteIntakeRequest{ apiService: a.defaultApi, @@ -967,6 +1074,7 @@ func (a *APIClient) DeleteIntakeExecute(ctx context.Context, projectId string, r return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteIntakeRunnerRequest struct { ctx context.Context apiService *DefaultApiService @@ -977,12 +1085,13 @@ type DeleteIntakeRunnerRequest struct { } // If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteIntakeRunnerRequest) Force(force bool) ApiDeleteIntakeRunnerRequest { r.force = &force return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteIntakeRunnerRequest) Execute() error { var ( localVarHTTPMethod = http.MethodDelete @@ -1069,7 +1178,7 @@ func (r DeleteIntakeRunnerRequest) Execute() error { /* DeleteIntakeRunner: Method for DeleteIntakeRunner -Deletes the given intake runner. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -1087,6 +1196,7 @@ func (a *APIClient) DeleteIntakeRunner(ctx context.Context, projectId string, re } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteIntakeRunnerExecute(ctx context.Context, projectId string, regionId string, intakeRunnerId string) error { r := DeleteIntakeRunnerRequest{ apiService: a.defaultApi, @@ -1098,6 +1208,7 @@ func (a *APIClient) DeleteIntakeRunnerExecute(ctx context.Context, projectId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteIntakeUserRequest struct { ctx context.Context apiService *DefaultApiService @@ -1107,6 +1218,7 @@ type DeleteIntakeUserRequest struct { intakeUserId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteIntakeUserRequest) Execute() error { var ( localVarHTTPMethod = http.MethodDelete @@ -1191,7 +1303,7 @@ func (r DeleteIntakeUserRequest) Execute() error { /* DeleteIntakeUser: Method for DeleteIntakeUser -Deletes the given intake user. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -1211,6 +1323,7 @@ func (a *APIClient) DeleteIntakeUser(ctx context.Context, projectId string, regi } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteIntakeUserExecute(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) error { r := DeleteIntakeUserRequest{ apiService: a.defaultApi, @@ -1223,6 +1336,7 @@ func (a *APIClient) DeleteIntakeUserExecute(ctx context.Context, projectId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetIntakeRequest struct { ctx context.Context apiService *DefaultApiService @@ -1231,6 +1345,7 @@ type GetIntakeRequest struct { intakeId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetIntakeRequest) Execute() (*IntakeResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1325,7 +1440,7 @@ func (r GetIntakeRequest) Execute() (*IntakeResponse, error) { /* GetIntake: Method for GetIntake -Returns the details for the given intake. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -1343,6 +1458,7 @@ func (a *APIClient) GetIntake(ctx context.Context, projectId string, regionId st } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetIntakeExecute(ctx context.Context, projectId string, regionId string, intakeId string) (*IntakeResponse, error) { r := GetIntakeRequest{ apiService: a.defaultApi, @@ -1354,6 +1470,7 @@ func (a *APIClient) GetIntakeExecute(ctx context.Context, projectId string, regi return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetIntakeRunnerRequest struct { ctx context.Context apiService *DefaultApiService @@ -1362,6 +1479,7 @@ type GetIntakeRunnerRequest struct { intakeRunnerId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1456,7 +1574,7 @@ func (r GetIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { /* GetIntakeRunner: Method for GetIntakeRunner -Returns the details for the given intake runner. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -1474,6 +1592,7 @@ func (a *APIClient) GetIntakeRunner(ctx context.Context, projectId string, regio } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetIntakeRunnerExecute(ctx context.Context, projectId string, regionId string, intakeRunnerId string) (*IntakeRunnerResponse, error) { r := GetIntakeRunnerRequest{ apiService: a.defaultApi, @@ -1485,6 +1604,7 @@ func (a *APIClient) GetIntakeRunnerExecute(ctx context.Context, projectId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetIntakeUserRequest struct { ctx context.Context apiService *DefaultApiService @@ -1494,6 +1614,7 @@ type GetIntakeUserRequest struct { intakeUserId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetIntakeUserRequest) Execute() (*IntakeUserResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1589,7 +1710,7 @@ func (r GetIntakeUserRequest) Execute() (*IntakeUserResponse, error) { /* GetIntakeUser: Method for GetIntakeUser -Returns the details for the given user. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -1609,6 +1730,7 @@ func (a *APIClient) GetIntakeUser(ctx context.Context, projectId string, regionI } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetIntakeUserExecute(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) (*IntakeUserResponse, error) { r := GetIntakeUserRequest{ apiService: a.defaultApi, @@ -1621,6 +1743,7 @@ func (a *APIClient) GetIntakeUserExecute(ctx context.Context, projectId string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeRunnersRequest struct { ctx context.Context apiService *DefaultApiService @@ -1631,19 +1754,20 @@ type ListIntakeRunnersRequest struct { } // A token to retrieve the next page of results. - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakeRunnersRequest) PageToken(pageToken string) ApiListIntakeRunnersRequest { r.pageToken = &pageToken return r } // Maximum number of items to return - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakeRunnersRequest) PageSize(pageSize int32) ApiListIntakeRunnersRequest { r.pageSize = &pageSize return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakeRunnersRequest) Execute() (*ListIntakeRunnersResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1743,7 +1867,7 @@ func (r ListIntakeRunnersRequest) Execute() (*ListIntakeRunnersResponse, error) /* ListIntakeRunners: Method for ListIntakeRunners -Returns a list of all intake runners within the project. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -1759,6 +1883,7 @@ func (a *APIClient) ListIntakeRunners(ctx context.Context, projectId string, reg } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListIntakeRunnersExecute(ctx context.Context, projectId string, regionId string) (*ListIntakeRunnersResponse, error) { r := ListIntakeRunnersRequest{ apiService: a.defaultApi, @@ -1769,6 +1894,7 @@ func (a *APIClient) ListIntakeRunnersExecute(ctx context.Context, projectId stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeUsersRequest struct { ctx context.Context apiService *DefaultApiService @@ -1780,19 +1906,20 @@ type ListIntakeUsersRequest struct { } // A token to retrieve the next page of results. - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakeUsersRequest) PageToken(pageToken string) ApiListIntakeUsersRequest { r.pageToken = &pageToken return r } // Maximum number of items to return - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakeUsersRequest) PageSize(pageSize int32) ApiListIntakeUsersRequest { r.pageSize = &pageSize return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakeUsersRequest) Execute() (*ListIntakeUsersResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1893,7 +2020,7 @@ func (r ListIntakeUsersRequest) Execute() (*ListIntakeUsersResponse, error) { /* ListIntakeUsers: Method for ListIntakeUsers -Returns a list of all intake users within the project and intake. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -1911,6 +2038,7 @@ func (a *APIClient) ListIntakeUsers(ctx context.Context, projectId string, regio } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListIntakeUsersExecute(ctx context.Context, projectId string, regionId string, intakeId string) (*ListIntakeUsersResponse, error) { r := ListIntakeUsersRequest{ apiService: a.defaultApi, @@ -1922,6 +2050,7 @@ func (a *APIClient) ListIntakeUsersExecute(ctx context.Context, projectId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakesRequest struct { ctx context.Context apiService *DefaultApiService @@ -1932,19 +2061,20 @@ type ListIntakesRequest struct { } // A token to retrieve the next page of results. - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakesRequest) PageToken(pageToken string) ApiListIntakesRequest { r.pageToken = &pageToken return r } // Maximum number of items to return - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakesRequest) PageSize(pageSize int32) ApiListIntakesRequest { r.pageSize = &pageSize return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListIntakesRequest) Execute() (*ListIntakesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2044,7 +2174,7 @@ func (r ListIntakesRequest) Execute() (*ListIntakesResponse, error) { /* ListIntakes: Method for ListIntakes -Returns a list of all intakes within the project. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -2060,6 +2190,7 @@ func (a *APIClient) ListIntakes(ctx context.Context, projectId string, regionId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListIntakesExecute(ctx context.Context, projectId string, regionId string) (*ListIntakesResponse, error) { r := ListIntakesRequest{ apiService: a.defaultApi, @@ -2070,6 +2201,7 @@ func (a *APIClient) ListIntakesExecute(ctx context.Context, projectId string, re return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRequest struct { ctx context.Context apiService *DefaultApiService @@ -2079,11 +2211,13 @@ type UpdateIntakeRequest struct { updateIntakePayload *UpdateIntakePayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateIntakeRequest) UpdateIntakePayload(updateIntakePayload UpdateIntakePayload) ApiUpdateIntakeRequest { r.updateIntakePayload = &updateIntakePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateIntakeRequest) Execute() (*IntakeResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -2183,7 +2317,7 @@ func (r UpdateIntakeRequest) Execute() (*IntakeResponse, error) { /* UpdateIntake: Method for UpdateIntake -Updates the given intake. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -2201,6 +2335,7 @@ func (a *APIClient) UpdateIntake(ctx context.Context, projectId string, regionId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateIntakeExecute(ctx context.Context, projectId string, regionId string, intakeId string) (*IntakeResponse, error) { r := UpdateIntakeRequest{ apiService: a.defaultApi, @@ -2212,6 +2347,7 @@ func (a *APIClient) UpdateIntakeExecute(ctx context.Context, projectId string, r return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerRequest struct { ctx context.Context apiService *DefaultApiService @@ -2221,11 +2357,13 @@ type UpdateIntakeRunnerRequest struct { updateIntakeRunnerPayload *UpdateIntakeRunnerPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateIntakeRunnerRequest) UpdateIntakeRunnerPayload(updateIntakeRunnerPayload UpdateIntakeRunnerPayload) ApiUpdateIntakeRunnerRequest { r.updateIntakeRunnerPayload = &updateIntakeRunnerPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -2325,7 +2463,7 @@ func (r UpdateIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { /* UpdateIntakeRunner: Method for UpdateIntakeRunner -Updates a intake runner within the project. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -2343,6 +2481,7 @@ func (a *APIClient) UpdateIntakeRunner(ctx context.Context, projectId string, re } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateIntakeRunnerExecute(ctx context.Context, projectId string, regionId string, intakeRunnerId string) (*IntakeRunnerResponse, error) { r := UpdateIntakeRunnerRequest{ apiService: a.defaultApi, @@ -2354,6 +2493,7 @@ func (a *APIClient) UpdateIntakeRunnerExecute(ctx context.Context, projectId str return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserRequest struct { ctx context.Context apiService *DefaultApiService @@ -2364,11 +2504,13 @@ type UpdateIntakeUserRequest struct { updateIntakeUserPayload *UpdateIntakeUserPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateIntakeUserRequest) UpdateIntakeUserPayload(updateIntakeUserPayload UpdateIntakeUserPayload) ApiUpdateIntakeUserRequest { r.updateIntakeUserPayload = &updateIntakeUserPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateIntakeUserRequest) Execute() (*IntakeUserResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -2469,7 +2611,7 @@ func (r UpdateIntakeUserRequest) Execute() (*IntakeUserResponse, error) { /* UpdateIntakeUser: Method for UpdateIntakeUser -Updates the given intake user. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId The STACKIT portal project UUID the resource is located in. @@ -2489,6 +2631,7 @@ func (a *APIClient) UpdateIntakeUser(ctx context.Context, projectId string, regi } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateIntakeUserExecute(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) (*IntakeUserResponse, error) { r := UpdateIntakeUserRequest{ apiService: a.defaultApi, diff --git a/services/intake/client.go b/services/intake/client.go index 018246461..98d77c079 100644 --- a/services/intake/client.go +++ b/services/intake/client.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -44,18 +45,21 @@ var ( // APIClient manages communication with the STACKIT Intake API API v1beta.3.5 // In most cases there should be only one, shared, APIClient. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type APIClient struct { cfg *config.Configuration common service // Reuse a single struct instead of allocating one for each service on the heap. defaultApi *DefaultApiService } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type service struct { client DefaultApi } // NewAPIClient creates a new API client. // Optionally receives configuration options +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { cfg := NewConfiguration() @@ -147,6 +151,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func ParameterValueToString(obj interface{}, key string) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { return fmt.Sprintf("%v", obj) @@ -285,6 +290,7 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { // Allow modification of underlying config for alternate implementations and testing // Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (c *APIClient) GetConfig() *config.Configuration { return c.cfg } @@ -595,6 +601,7 @@ func parseCacheControl(headers http.Header) cacheControl { } // CacheExpires helper function to determine remaining time before repeating a request. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func CacheExpires(r *http.Response) time.Time { // Figure out when the cache expires. var expires time.Time diff --git a/services/intake/configuration.go b/services/intake/configuration.go index 0827ca010..293101f6f 100644 --- a/services/intake/configuration.go +++ b/services/intake/configuration.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -15,6 +16,7 @@ import ( ) // NewConfiguration returns a new Configuration object +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewConfiguration() *config.Configuration { cfg := &config.Configuration{ DefaultHeader: make(map[string]string), diff --git a/services/intake/go.mod b/services/intake/go.mod index 747604ba5..e5c837c92 100644 --- a/services/intake/go.mod +++ b/services/intake/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.21.1 + github.com/stackitcloud/stackit-sdk-go/core v0.22.0 ) require github.com/golang-jwt/jwt/v5 v5.3.1 // indirect diff --git a/services/intake/go.sum b/services/intake/go.sum index ca103c909..195011dd5 100644 --- a/services/intake/go.sum +++ b/services/intake/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts= -github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI= +github.com/stackitcloud/stackit-sdk-go/core v0.22.0 h1:6rViz7GnNwXSh51Lur5xuDzO8EWSZfN9J0HvEkBKq6c= +github.com/stackitcloud/stackit-sdk-go/core v0.22.0/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI= diff --git a/services/intake/model_catalog_auth.go b/services/intake/model_catalog_auth.go index ce7b4f4b3..22e70a672 100644 --- a/services/intake/model_catalog_auth.go +++ b/services/intake/model_catalog_auth.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CatalogAuth{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthGetDremioAttributeType = *DremioAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthGetDremioArgType = DremioAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthGetDremioRetType = DremioAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCatalogAuthGetDremioAttributeTypeOk(arg CatalogAuthGetDremioAttributeType) (ret CatalogAuthGetDremioRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCatalogAuthGetDremioAttributeTypeOk(arg CatalogAuthGetDremioAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCatalogAuthGetDremioAttributeType(arg *CatalogAuthGetDremioAttributeType, val CatalogAuthGetDremioRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setCatalogAuthGetDremioAttributeType(arg *CatalogAuthGetDremioAttributeType */ // isEnumRef +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthGetTypeAttributeType = *CatalogAuthType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthGetTypeArgType = CatalogAuthType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthGetTypeRetType = CatalogAuthType +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCatalogAuthGetTypeAttributeTypeOk(arg CatalogAuthGetTypeAttributeType) (ret CatalogAuthGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -53,23 +67,27 @@ func getCatalogAuthGetTypeAttributeTypeOk(arg CatalogAuthGetTypeAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCatalogAuthGetTypeAttributeType(arg *CatalogAuthGetTypeAttributeType, val CatalogAuthGetTypeRetType) { *arg = &val } // CatalogAuth Configures authentication for the Iceberg catalog +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuth struct { Dremio CatalogAuthGetDremioAttributeType `json:"dremio,omitempty"` // REQUIRED Type CatalogAuthGetTypeAttributeType `json:"type" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CatalogAuth CatalogAuth // NewCatalogAuth instantiates a new CatalogAuth object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCatalogAuth(types CatalogAuthGetTypeArgType) *CatalogAuth { this := CatalogAuth{} setCatalogAuthGetTypeAttributeType(&this.Type, types) @@ -79,12 +97,14 @@ func NewCatalogAuth(types CatalogAuthGetTypeArgType) *CatalogAuth { // NewCatalogAuthWithDefaults instantiates a new CatalogAuth object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCatalogAuthWithDefaults() *CatalogAuth { this := CatalogAuth{} return &this } // GetDremio returns the Dremio field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuth) GetDremio() (res CatalogAuthGetDremioRetType) { res, _ = o.GetDremioOk() return @@ -92,22 +112,26 @@ func (o *CatalogAuth) GetDremio() (res CatalogAuthGetDremioRetType) { // GetDremioOk returns a tuple with the Dremio field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuth) GetDremioOk() (ret CatalogAuthGetDremioRetType, ok bool) { return getCatalogAuthGetDremioAttributeTypeOk(o.Dremio) } // HasDremio returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuth) HasDremio() bool { _, ok := o.GetDremioOk() return ok } // SetDremio gets a reference to the given DremioAuth and assigns it to the Dremio field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuth) SetDremio(v CatalogAuthGetDremioRetType) { setCatalogAuthGetDremioAttributeType(&o.Dremio, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuth) GetType() (ret CatalogAuthGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -115,15 +139,18 @@ func (o *CatalogAuth) GetType() (ret CatalogAuthGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuth) GetTypeOk() (ret CatalogAuthGetTypeRetType, ok bool) { return getCatalogAuthGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuth) SetType(v CatalogAuthGetTypeRetType) { setCatalogAuthGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CatalogAuth) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogAuthGetDremioAttributeTypeOk(o.Dremio); ok { @@ -135,37 +162,45 @@ func (o CatalogAuth) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCatalogAuth struct { value *CatalogAuth isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuth) Get() *CatalogAuth { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuth) Set(val *CatalogAuth) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuth) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuth) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCatalogAuth(val *CatalogAuth) *NullableCatalogAuth { return &NullableCatalogAuth{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuth) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_catalog_auth_patch.go b/services/intake/model_catalog_auth_patch.go index b7339c80e..619f94018 100644 --- a/services/intake/model_catalog_auth_patch.go +++ b/services/intake/model_catalog_auth_patch.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CatalogAuthPatch{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthPatchGetDremioAttributeType = *DremioAuthPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthPatchGetDremioArgType = DremioAuthPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthPatchGetDremioRetType = DremioAuthPatch +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCatalogAuthPatchGetDremioAttributeTypeOk(arg CatalogAuthPatchGetDremioAttributeType) (ret CatalogAuthPatchGetDremioRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCatalogAuthPatchGetDremioAttributeTypeOk(arg CatalogAuthPatchGetDremioAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCatalogAuthPatchGetDremioAttributeType(arg *CatalogAuthPatchGetDremioAttributeType, val CatalogAuthPatchGetDremioRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setCatalogAuthPatchGetDremioAttributeType(arg *CatalogAuthPatchGetDremioAtt */ // isEnumRef +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthPatchGetTypeAttributeType = *CatalogAuthType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthPatchGetTypeArgType = CatalogAuthType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthPatchGetTypeRetType = CatalogAuthType +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCatalogAuthPatchGetTypeAttributeTypeOk(arg CatalogAuthPatchGetTypeAttributeType) (ret CatalogAuthPatchGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +67,13 @@ func getCatalogAuthPatchGetTypeAttributeTypeOk(arg CatalogAuthPatchGetTypeAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCatalogAuthPatchGetTypeAttributeType(arg *CatalogAuthPatchGetTypeAttributeType, val CatalogAuthPatchGetTypeRetType) { *arg = &val } // CatalogAuthPatch Configures authentication for the Iceberg catalog +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthPatch struct { Dremio CatalogAuthPatchGetDremioAttributeType `json:"dremio,omitempty"` Type CatalogAuthPatchGetTypeAttributeType `json:"type,omitempty"` @@ -67,6 +83,7 @@ type CatalogAuthPatch struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCatalogAuthPatch() *CatalogAuthPatch { this := CatalogAuthPatch{} return &this @@ -75,12 +92,14 @@ func NewCatalogAuthPatch() *CatalogAuthPatch { // NewCatalogAuthPatchWithDefaults instantiates a new CatalogAuthPatch object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCatalogAuthPatchWithDefaults() *CatalogAuthPatch { this := CatalogAuthPatch{} return &this } // GetDremio returns the Dremio field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuthPatch) GetDremio() (res CatalogAuthPatchGetDremioRetType) { res, _ = o.GetDremioOk() return @@ -88,22 +107,26 @@ func (o *CatalogAuthPatch) GetDremio() (res CatalogAuthPatchGetDremioRetType) { // GetDremioOk returns a tuple with the Dremio field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuthPatch) GetDremioOk() (ret CatalogAuthPatchGetDremioRetType, ok bool) { return getCatalogAuthPatchGetDremioAttributeTypeOk(o.Dremio) } // HasDremio returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuthPatch) HasDremio() bool { _, ok := o.GetDremioOk() return ok } // SetDremio gets a reference to the given DremioAuthPatch and assigns it to the Dremio field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuthPatch) SetDremio(v CatalogAuthPatchGetDremioRetType) { setCatalogAuthPatchGetDremioAttributeType(&o.Dremio, v) } // GetType returns the Type field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuthPatch) GetType() (res CatalogAuthPatchGetTypeRetType) { res, _ = o.GetTypeOk() return @@ -111,21 +134,25 @@ func (o *CatalogAuthPatch) GetType() (res CatalogAuthPatchGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuthPatch) GetTypeOk() (ret CatalogAuthPatchGetTypeRetType, ok bool) { return getCatalogAuthPatchGetTypeAttributeTypeOk(o.Type) } // HasType returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuthPatch) HasType() bool { _, ok := o.GetTypeOk() return ok } // SetType gets a reference to the given CatalogAuthType and assigns it to the Type field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CatalogAuthPatch) SetType(v CatalogAuthPatchGetTypeRetType) { setCatalogAuthPatchGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CatalogAuthPatch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogAuthPatchGetDremioAttributeTypeOk(o.Dremio); ok { @@ -137,37 +164,45 @@ func (o CatalogAuthPatch) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCatalogAuthPatch struct { value *CatalogAuthPatch isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuthPatch) Get() *CatalogAuthPatch { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuthPatch) Set(val *CatalogAuthPatch) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuthPatch) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuthPatch) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCatalogAuthPatch(val *CatalogAuthPatch) *NullableCatalogAuthPatch { return &NullableCatalogAuthPatch{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuthPatch) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuthPatch) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_catalog_auth_type.go b/services/intake/model_catalog_auth_type.go index f43f6384e..724272378 100644 --- a/services/intake/model_catalog_auth_type.go +++ b/services/intake/model_catalog_auth_type.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -16,20 +17,25 @@ import ( ) // CatalogAuthType Means of authentication for catalog requests +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CatalogAuthType string // List of catalogAuthType const ( - CATALOGAUTHTYPE_NONE CatalogAuthType = "none" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + CATALOGAUTHTYPE_NONE CatalogAuthType = "none" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CATALOGAUTHTYPE_DREMIO CatalogAuthType = "dremio" ) // All allowed values of CatalogAuthType enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedCatalogAuthTypeEnumValues = []CatalogAuthType{ "none", "dremio", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *CatalogAuthType) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -54,6 +60,7 @@ func (v *CatalogAuthType) UnmarshalJSON(src []byte) error { // NewCatalogAuthTypeFromValue returns a pointer to a valid CatalogAuthType // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCatalogAuthTypeFromValue(v string) (*CatalogAuthType, error) { ev := CatalogAuthType(v) if ev.IsValid() { @@ -64,6 +71,7 @@ func NewCatalogAuthTypeFromValue(v string) (*CatalogAuthType, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v CatalogAuthType) IsValid() bool { for _, existing := range AllowedCatalogAuthTypeEnumValues { if existing == v { @@ -74,41 +82,50 @@ func (v CatalogAuthType) IsValid() bool { } // Ptr returns reference to catalogAuthType value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v CatalogAuthType) Ptr() *CatalogAuthType { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCatalogAuthType struct { value *CatalogAuthType isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuthType) Get() *CatalogAuthType { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuthType) Set(val *CatalogAuthType) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuthType) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuthType) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCatalogAuthType(val *CatalogAuthType) *NullableCatalogAuthType { return &NullableCatalogAuthType{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCatalogAuthType) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCatalogAuthType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_client_config.go b/services/intake/model_client_config.go index 5a9cc0f56..39cdb0a80 100644 --- a/services/intake/model_client_config.go +++ b/services/intake/model_client_config.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &ClientConfig{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ClientConfigGetJavaAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getClientConfigGetJavaAttributeTypeOk(arg ClientConfigGetJavaAttributeType) (ret ClientConfigGetJavaRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getClientConfigGetJavaAttributeTypeOk(arg ClientConfigGetJavaAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setClientConfigGetJavaAttributeType(arg *ClientConfigGetJavaAttributeType, val ClientConfigGetJavaRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ClientConfigGetJavaArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ClientConfigGetJavaRetType = string /* @@ -43,8 +50,10 @@ type ClientConfigGetJavaRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ClientConfigGetLibrdkafkaAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getClientConfigGetLibrdkafkaAttributeTypeOk(arg ClientConfigGetLibrdkafkaAttributeType) (ret ClientConfigGetLibrdkafkaRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getClientConfigGetLibrdkafkaAttributeTypeOk(arg ClientConfigGetLibrdkafkaAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setClientConfigGetLibrdkafkaAttributeType(arg *ClientConfigGetLibrdkafkaAttributeType, val ClientConfigGetLibrdkafkaRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ClientConfigGetLibrdkafkaArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ClientConfigGetLibrdkafkaRetType = string // ClientConfig Configuration properties for supported clients. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ClientConfig struct { // Configuration for Java Kafka clients. // REQUIRED @@ -69,12 +83,14 @@ type ClientConfig struct { Librdkafka ClientConfigGetLibrdkafkaAttributeType `json:"librdkafka" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ClientConfig ClientConfig // NewClientConfig instantiates a new ClientConfig object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewClientConfig(java ClientConfigGetJavaArgType, librdkafka ClientConfigGetLibrdkafkaArgType) *ClientConfig { this := ClientConfig{} setClientConfigGetJavaAttributeType(&this.Java, java) @@ -85,12 +101,14 @@ func NewClientConfig(java ClientConfigGetJavaArgType, librdkafka ClientConfigGet // NewClientConfigWithDefaults instantiates a new ClientConfig object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewClientConfigWithDefaults() *ClientConfig { this := ClientConfig{} return &this } // GetJava returns the Java field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ClientConfig) GetJava() (ret ClientConfigGetJavaRetType) { ret, _ = o.GetJavaOk() return ret @@ -98,16 +116,19 @@ func (o *ClientConfig) GetJava() (ret ClientConfigGetJavaRetType) { // GetJavaOk returns a tuple with the Java field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ClientConfig) GetJavaOk() (ret ClientConfigGetJavaRetType, ok bool) { return getClientConfigGetJavaAttributeTypeOk(o.Java) } // SetJava sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ClientConfig) SetJava(v ClientConfigGetJavaRetType) { setClientConfigGetJavaAttributeType(&o.Java, v) } // GetLibrdkafka returns the Librdkafka field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ClientConfig) GetLibrdkafka() (ret ClientConfigGetLibrdkafkaRetType) { ret, _ = o.GetLibrdkafkaOk() return ret @@ -115,15 +136,18 @@ func (o *ClientConfig) GetLibrdkafka() (ret ClientConfigGetLibrdkafkaRetType) { // GetLibrdkafkaOk returns a tuple with the Librdkafka field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ClientConfig) GetLibrdkafkaOk() (ret ClientConfigGetLibrdkafkaRetType, ok bool) { return getClientConfigGetLibrdkafkaAttributeTypeOk(o.Librdkafka) } // SetLibrdkafka sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ClientConfig) SetLibrdkafka(v ClientConfigGetLibrdkafkaRetType) { setClientConfigGetLibrdkafkaAttributeType(&o.Librdkafka, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ClientConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getClientConfigGetJavaAttributeTypeOk(o.Java); ok { @@ -135,37 +159,45 @@ func (o ClientConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableClientConfig struct { value *ClientConfig isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableClientConfig) Get() *ClientConfig { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableClientConfig) Set(val *ClientConfig) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableClientConfig) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableClientConfig) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableClientConfig(val *ClientConfig) *NullableClientConfig { return &NullableClientConfig{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableClientConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableClientConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_create_intake_payload.go b/services/intake/model_create_intake_payload.go index 6c82ec88b..36dd676e8 100644 --- a/services/intake/model_create_intake_payload.go +++ b/services/intake/model_create_intake_payload.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CreateIntakePayload{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetCatalogAttributeType = *IntakeCatalog + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetCatalogArgType = IntakeCatalog + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetCatalogRetType = IntakeCatalog +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakePayloadGetCatalogAttributeTypeOk(arg CreateIntakePayloadGetCatalogAttributeType) (ret CreateIntakePayloadGetCatalogRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCreateIntakePayloadGetCatalogAttributeTypeOk(arg CreateIntakePayloadGetC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakePayloadGetCatalogAttributeType(arg *CreateIntakePayloadGetCatalogAttributeType, val CreateIntakePayloadGetCatalogRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setCreateIntakePayloadGetCatalogAttributeType(arg *CreateIntakePayloadGetCa */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakePayloadGetDescriptionAttributeTypeOk(arg CreateIntakePayloadGetDescriptionAttributeType) (ret CreateIntakePayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getCreateIntakePayloadGetDescriptionAttributeTypeOk(arg CreateIntakePayload return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakePayloadGetDescriptionAttributeType(arg *CreateIntakePayloadGetDescriptionAttributeType, val CreateIntakePayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetDescriptionRetType = string /* @@ -63,8 +77,10 @@ type CreateIntakePayloadGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakePayloadGetDisplayNameAttributeTypeOk(arg CreateIntakePayloadGetDisplayNameAttributeType) (ret CreateIntakePayloadGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getCreateIntakePayloadGetDisplayNameAttributeTypeOk(arg CreateIntakePayload return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakePayloadGetDisplayNameAttributeType(arg *CreateIntakePayloadGetDisplayNameAttributeType, val CreateIntakePayloadGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetDisplayNameRetType = string /* @@ -84,8 +104,10 @@ type CreateIntakePayloadGetDisplayNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetIntakeRunnerIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakePayloadGetIntakeRunnerIdAttributeTypeOk(arg CreateIntakePayloadGetIntakeRunnerIdAttributeType) (ret CreateIntakePayloadGetIntakeRunnerIdRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getCreateIntakePayloadGetIntakeRunnerIdAttributeTypeOk(arg CreateIntakePayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakePayloadGetIntakeRunnerIdAttributeType(arg *CreateIntakePayloadGetIntakeRunnerIdAttributeType, val CreateIntakePayloadGetIntakeRunnerIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetIntakeRunnerIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetIntakeRunnerIdRetType = string /* @@ -105,10 +131,16 @@ type CreateIntakePayloadGetIntakeRunnerIdRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayloadGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakePayloadGetLabelsAttributeTypeOk(arg CreateIntakePayloadGetLabelsAttributeType) (ret CreateIntakePayloadGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -116,11 +148,13 @@ func getCreateIntakePayloadGetLabelsAttributeTypeOk(arg CreateIntakePayloadGetLa return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakePayloadGetLabelsAttributeType(arg *CreateIntakePayloadGetLabelsAttributeType, val CreateIntakePayloadGetLabelsRetType) { *arg = val } // CreateIntakePayload struct for CreateIntakePayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakePayload struct { // REQUIRED Catalog CreateIntakePayloadGetCatalogAttributeType `json:"catalog" required:"true"` @@ -136,12 +170,14 @@ type CreateIntakePayload struct { Labels CreateIntakePayloadGetLabelsAttributeType `json:"labels,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateIntakePayload CreateIntakePayload // NewCreateIntakePayload instantiates a new CreateIntakePayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateIntakePayload(catalog CreateIntakePayloadGetCatalogArgType, displayName CreateIntakePayloadGetDisplayNameArgType, intakeRunnerId CreateIntakePayloadGetIntakeRunnerIdArgType) *CreateIntakePayload { this := CreateIntakePayload{} setCreateIntakePayloadGetCatalogAttributeType(&this.Catalog, catalog) @@ -153,12 +189,14 @@ func NewCreateIntakePayload(catalog CreateIntakePayloadGetCatalogArgType, displa // NewCreateIntakePayloadWithDefaults instantiates a new CreateIntakePayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateIntakePayloadWithDefaults() *CreateIntakePayload { this := CreateIntakePayload{} return &this } // GetCatalog returns the Catalog field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetCatalog() (ret CreateIntakePayloadGetCatalogRetType) { ret, _ = o.GetCatalogOk() return ret @@ -166,16 +204,19 @@ func (o *CreateIntakePayload) GetCatalog() (ret CreateIntakePayloadGetCatalogRet // GetCatalogOk returns a tuple with the Catalog field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetCatalogOk() (ret CreateIntakePayloadGetCatalogRetType, ok bool) { return getCreateIntakePayloadGetCatalogAttributeTypeOk(o.Catalog) } // SetCatalog sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) SetCatalog(v CreateIntakePayloadGetCatalogRetType) { setCreateIntakePayloadGetCatalogAttributeType(&o.Catalog, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetDescription() (res CreateIntakePayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -183,22 +224,26 @@ func (o *CreateIntakePayload) GetDescription() (res CreateIntakePayloadGetDescri // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetDescriptionOk() (ret CreateIntakePayloadGetDescriptionRetType, ok bool) { return getCreateIntakePayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) SetDescription(v CreateIntakePayloadGetDescriptionRetType) { setCreateIntakePayloadGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetDisplayName() (ret CreateIntakePayloadGetDisplayNameRetType) { ret, _ = o.GetDisplayNameOk() return ret @@ -206,16 +251,19 @@ func (o *CreateIntakePayload) GetDisplayName() (ret CreateIntakePayloadGetDispla // GetDisplayNameOk returns a tuple with the DisplayName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetDisplayNameOk() (ret CreateIntakePayloadGetDisplayNameRetType, ok bool) { return getCreateIntakePayloadGetDisplayNameAttributeTypeOk(o.DisplayName) } // SetDisplayName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) SetDisplayName(v CreateIntakePayloadGetDisplayNameRetType) { setCreateIntakePayloadGetDisplayNameAttributeType(&o.DisplayName, v) } // GetIntakeRunnerId returns the IntakeRunnerId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetIntakeRunnerId() (ret CreateIntakePayloadGetIntakeRunnerIdRetType) { ret, _ = o.GetIntakeRunnerIdOk() return ret @@ -223,16 +271,19 @@ func (o *CreateIntakePayload) GetIntakeRunnerId() (ret CreateIntakePayloadGetInt // GetIntakeRunnerIdOk returns a tuple with the IntakeRunnerId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetIntakeRunnerIdOk() (ret CreateIntakePayloadGetIntakeRunnerIdRetType, ok bool) { return getCreateIntakePayloadGetIntakeRunnerIdAttributeTypeOk(o.IntakeRunnerId) } // SetIntakeRunnerId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) SetIntakeRunnerId(v CreateIntakePayloadGetIntakeRunnerIdRetType) { setCreateIntakePayloadGetIntakeRunnerIdAttributeType(&o.IntakeRunnerId, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetLabels() (res CreateIntakePayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -241,21 +292,25 @@ func (o *CreateIntakePayload) GetLabels() (res CreateIntakePayloadGetLabelsRetTy // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) GetLabelsOk() (ret CreateIntakePayloadGetLabelsRetType, ok bool) { return getCreateIntakePayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakePayload) SetLabels(v CreateIntakePayloadGetLabelsRetType) { setCreateIntakePayloadGetLabelsAttributeType(&o.Labels, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateIntakePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateIntakePayloadGetCatalogAttributeTypeOk(o.Catalog); ok { @@ -276,37 +331,45 @@ func (o CreateIntakePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateIntakePayload struct { value *CreateIntakePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakePayload) Get() *CreateIntakePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakePayload) Set(val *CreateIntakePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateIntakePayload(val *CreateIntakePayload) *NullableCreateIntakePayload { return &NullableCreateIntakePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_create_intake_runner_payload.go b/services/intake/model_create_intake_runner_payload.go index fbc12f6a8..ece5d5263 100644 --- a/services/intake/model_create_intake_runner_payload.go +++ b/services/intake/model_create_intake_runner_payload.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateIntakeRunnerPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeRunnerPayloadGetDescriptionAttributeTypeOk(arg CreateIntakeRunnerPayloadGetDescriptionAttributeType) (ret CreateIntakeRunnerPayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateIntakeRunnerPayloadGetDescriptionAttributeTypeOk(arg CreateIntakeR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeRunnerPayloadGetDescriptionAttributeType(arg *CreateIntakeRunnerPayloadGetDescriptionAttributeType, val CreateIntakeRunnerPayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type CreateIntakeRunnerPayloadGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeRunnerPayloadGetDisplayNameAttributeTypeOk(arg CreateIntakeRunnerPayloadGetDisplayNameAttributeType) (ret CreateIntakeRunnerPayloadGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateIntakeRunnerPayloadGetDisplayNameAttributeTypeOk(arg CreateIntakeR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeRunnerPayloadGetDisplayNameAttributeType(arg *CreateIntakeRunnerPayloadGetDisplayNameAttributeType, val CreateIntakeRunnerPayloadGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetDisplayNameRetType = string /* @@ -64,10 +77,16 @@ type CreateIntakeRunnerPayloadGetDisplayNameRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeRunnerPayloadGetLabelsAttributeTypeOk(arg CreateIntakeRunnerPayloadGetLabelsAttributeType) (ret CreateIntakeRunnerPayloadGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -75,6 +94,7 @@ func getCreateIntakeRunnerPayloadGetLabelsAttributeTypeOk(arg CreateIntakeRunner return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeRunnerPayloadGetLabelsAttributeType(arg *CreateIntakeRunnerPayloadGetLabelsAttributeType, val CreateIntakeRunnerPayloadGetLabelsRetType) { *arg = val } @@ -84,10 +104,16 @@ func setCreateIntakeRunnerPayloadGetLabelsAttributeType(arg *CreateIntakeRunnerP */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetMaxMessageSizeKiBArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeTypeOk(arg CreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType) (ret CreateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +121,7 @@ func getCreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeTypeOk(arg CreateI return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType(arg *CreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType, val CreateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType) { *arg = &val } @@ -104,10 +131,16 @@ func setCreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType(arg *CreateIn */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetMaxMessagesPerHourArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayloadGetMaxMessagesPerHourRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeTypeOk(arg CreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType) (ret CreateIntakeRunnerPayloadGetMaxMessagesPerHourRetType, ok bool) { if arg == nil { return ret, false @@ -115,11 +148,13 @@ func getCreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeTypeOk(arg Create return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType(arg *CreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType, val CreateIntakeRunnerPayloadGetMaxMessagesPerHourRetType) { *arg = &val } // CreateIntakeRunnerPayload struct for CreateIntakeRunnerPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeRunnerPayload struct { // The description is a longer text chosen by the user to provide more context for the resource. Description CreateIntakeRunnerPayloadGetDescriptionAttributeType `json:"description,omitempty"` @@ -136,12 +171,14 @@ type CreateIntakeRunnerPayload struct { MaxMessagesPerHour CreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType `json:"maxMessagesPerHour" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateIntakeRunnerPayload CreateIntakeRunnerPayload // NewCreateIntakeRunnerPayload instantiates a new CreateIntakeRunnerPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateIntakeRunnerPayload(displayName CreateIntakeRunnerPayloadGetDisplayNameArgType, maxMessageSizeKiB CreateIntakeRunnerPayloadGetMaxMessageSizeKiBArgType, maxMessagesPerHour CreateIntakeRunnerPayloadGetMaxMessagesPerHourArgType) *CreateIntakeRunnerPayload { this := CreateIntakeRunnerPayload{} setCreateIntakeRunnerPayloadGetDisplayNameAttributeType(&this.DisplayName, displayName) @@ -153,12 +190,14 @@ func NewCreateIntakeRunnerPayload(displayName CreateIntakeRunnerPayloadGetDispla // NewCreateIntakeRunnerPayloadWithDefaults instantiates a new CreateIntakeRunnerPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateIntakeRunnerPayloadWithDefaults() *CreateIntakeRunnerPayload { this := CreateIntakeRunnerPayload{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetDescription() (res CreateIntakeRunnerPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -166,22 +205,26 @@ func (o *CreateIntakeRunnerPayload) GetDescription() (res CreateIntakeRunnerPayl // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetDescriptionOk() (ret CreateIntakeRunnerPayloadGetDescriptionRetType, ok bool) { return getCreateIntakeRunnerPayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) SetDescription(v CreateIntakeRunnerPayloadGetDescriptionRetType) { setCreateIntakeRunnerPayloadGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetDisplayName() (ret CreateIntakeRunnerPayloadGetDisplayNameRetType) { ret, _ = o.GetDisplayNameOk() return ret @@ -189,16 +232,19 @@ func (o *CreateIntakeRunnerPayload) GetDisplayName() (ret CreateIntakeRunnerPayl // GetDisplayNameOk returns a tuple with the DisplayName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetDisplayNameOk() (ret CreateIntakeRunnerPayloadGetDisplayNameRetType, ok bool) { return getCreateIntakeRunnerPayloadGetDisplayNameAttributeTypeOk(o.DisplayName) } // SetDisplayName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) SetDisplayName(v CreateIntakeRunnerPayloadGetDisplayNameRetType) { setCreateIntakeRunnerPayloadGetDisplayNameAttributeType(&o.DisplayName, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetLabels() (res CreateIntakeRunnerPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -207,22 +253,26 @@ func (o *CreateIntakeRunnerPayload) GetLabels() (res CreateIntakeRunnerPayloadGe // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetLabelsOk() (ret CreateIntakeRunnerPayloadGetLabelsRetType, ok bool) { return getCreateIntakeRunnerPayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) SetLabels(v CreateIntakeRunnerPayloadGetLabelsRetType) { setCreateIntakeRunnerPayloadGetLabelsAttributeType(&o.Labels, v) } // GetMaxMessageSizeKiB returns the MaxMessageSizeKiB field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetMaxMessageSizeKiB() (ret CreateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType) { ret, _ = o.GetMaxMessageSizeKiBOk() return ret @@ -230,16 +280,19 @@ func (o *CreateIntakeRunnerPayload) GetMaxMessageSizeKiB() (ret CreateIntakeRunn // GetMaxMessageSizeKiBOk returns a tuple with the MaxMessageSizeKiB field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetMaxMessageSizeKiBOk() (ret CreateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType, ok bool) { return getCreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeTypeOk(o.MaxMessageSizeKiB) } // SetMaxMessageSizeKiB sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) SetMaxMessageSizeKiB(v CreateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType) { setCreateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType(&o.MaxMessageSizeKiB, v) } // GetMaxMessagesPerHour returns the MaxMessagesPerHour field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetMaxMessagesPerHour() (ret CreateIntakeRunnerPayloadGetMaxMessagesPerHourRetType) { ret, _ = o.GetMaxMessagesPerHourOk() return ret @@ -247,15 +300,18 @@ func (o *CreateIntakeRunnerPayload) GetMaxMessagesPerHour() (ret CreateIntakeRun // GetMaxMessagesPerHourOk returns a tuple with the MaxMessagesPerHour field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) GetMaxMessagesPerHourOk() (ret CreateIntakeRunnerPayloadGetMaxMessagesPerHourRetType, ok bool) { return getCreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeTypeOk(o.MaxMessagesPerHour) } // SetMaxMessagesPerHour sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeRunnerPayload) SetMaxMessagesPerHour(v CreateIntakeRunnerPayloadGetMaxMessagesPerHourRetType) { setCreateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType(&o.MaxMessagesPerHour, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateIntakeRunnerPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateIntakeRunnerPayloadGetDescriptionAttributeTypeOk(o.Description); ok { @@ -276,37 +332,45 @@ func (o CreateIntakeRunnerPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateIntakeRunnerPayload struct { value *CreateIntakeRunnerPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakeRunnerPayload) Get() *CreateIntakeRunnerPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakeRunnerPayload) Set(val *CreateIntakeRunnerPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakeRunnerPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakeRunnerPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateIntakeRunnerPayload(val *CreateIntakeRunnerPayload) *NullableCreateIntakeRunnerPayload { return &NullableCreateIntakeRunnerPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakeRunnerPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakeRunnerPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_create_intake_user_payload.go b/services/intake/model_create_intake_user_payload.go index 32076b82a..f867f9f9d 100644 --- a/services/intake/model_create_intake_user_payload.go +++ b/services/intake/model_create_intake_user_payload.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateIntakeUserPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeUserPayloadGetDescriptionAttributeTypeOk(arg CreateIntakeUserPayloadGetDescriptionAttributeType) (ret CreateIntakeUserPayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateIntakeUserPayloadGetDescriptionAttributeTypeOk(arg CreateIntakeUse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeUserPayloadGetDescriptionAttributeType(arg *CreateIntakeUserPayloadGetDescriptionAttributeType, val CreateIntakeUserPayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type CreateIntakeUserPayloadGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeUserPayloadGetDisplayNameAttributeTypeOk(arg CreateIntakeUserPayloadGetDisplayNameAttributeType) (ret CreateIntakeUserPayloadGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateIntakeUserPayloadGetDisplayNameAttributeTypeOk(arg CreateIntakeUse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeUserPayloadGetDisplayNameAttributeType(arg *CreateIntakeUserPayloadGetDisplayNameAttributeType, val CreateIntakeUserPayloadGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetDisplayNameRetType = string /* @@ -64,10 +77,16 @@ type CreateIntakeUserPayloadGetDisplayNameRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeUserPayloadGetLabelsAttributeTypeOk(arg CreateIntakeUserPayloadGetLabelsAttributeType) (ret CreateIntakeUserPayloadGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -75,6 +94,7 @@ func getCreateIntakeUserPayloadGetLabelsAttributeTypeOk(arg CreateIntakeUserPayl return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeUserPayloadGetLabelsAttributeType(arg *CreateIntakeUserPayloadGetLabelsAttributeType, val CreateIntakeUserPayloadGetLabelsRetType) { *arg = val } @@ -84,8 +104,10 @@ func setCreateIntakeUserPayloadGetLabelsAttributeType(arg *CreateIntakeUserPaylo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeUserPayloadGetPasswordAttributeTypeOk(arg CreateIntakeUserPayloadGetPasswordAttributeType) (ret CreateIntakeUserPayloadGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getCreateIntakeUserPayloadGetPasswordAttributeTypeOk(arg CreateIntakeUserPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeUserPayloadGetPasswordAttributeType(arg *CreateIntakeUserPayloadGetPasswordAttributeType, val CreateIntakeUserPayloadGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetPasswordRetType = string /* @@ -105,10 +131,16 @@ type CreateIntakeUserPayloadGetPasswordRetType = string */ // isEnumRef +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetTypeAttributeType = *UserType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetTypeArgType = UserType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayloadGetTypeRetType = UserType +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateIntakeUserPayloadGetTypeAttributeTypeOk(arg CreateIntakeUserPayloadGetTypeAttributeType) (ret CreateIntakeUserPayloadGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -116,11 +148,13 @@ func getCreateIntakeUserPayloadGetTypeAttributeTypeOk(arg CreateIntakeUserPayloa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateIntakeUserPayloadGetTypeAttributeType(arg *CreateIntakeUserPayloadGetTypeAttributeType, val CreateIntakeUserPayloadGetTypeRetType) { *arg = &val } // CreateIntakeUserPayload struct for CreateIntakeUserPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateIntakeUserPayload struct { // The description is a longer text chosen by the user to provide more context for the resource. Description CreateIntakeUserPayloadGetDescriptionAttributeType `json:"description,omitempty"` @@ -135,12 +169,14 @@ type CreateIntakeUserPayload struct { Type CreateIntakeUserPayloadGetTypeAttributeType `json:"type,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateIntakeUserPayload CreateIntakeUserPayload // NewCreateIntakeUserPayload instantiates a new CreateIntakeUserPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateIntakeUserPayload(displayName CreateIntakeUserPayloadGetDisplayNameArgType, password CreateIntakeUserPayloadGetPasswordArgType) *CreateIntakeUserPayload { this := CreateIntakeUserPayload{} setCreateIntakeUserPayloadGetDisplayNameAttributeType(&this.DisplayName, displayName) @@ -151,6 +187,7 @@ func NewCreateIntakeUserPayload(displayName CreateIntakeUserPayloadGetDisplayNam // NewCreateIntakeUserPayloadWithDefaults instantiates a new CreateIntakeUserPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateIntakeUserPayloadWithDefaults() *CreateIntakeUserPayload { this := CreateIntakeUserPayload{} var types UserType = USERTYPE_INTAKE @@ -159,6 +196,7 @@ func NewCreateIntakeUserPayloadWithDefaults() *CreateIntakeUserPayload { } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetDescription() (res CreateIntakeUserPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -166,22 +204,26 @@ func (o *CreateIntakeUserPayload) GetDescription() (res CreateIntakeUserPayloadG // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetDescriptionOk() (ret CreateIntakeUserPayloadGetDescriptionRetType, ok bool) { return getCreateIntakeUserPayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) SetDescription(v CreateIntakeUserPayloadGetDescriptionRetType) { setCreateIntakeUserPayloadGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetDisplayName() (ret CreateIntakeUserPayloadGetDisplayNameRetType) { ret, _ = o.GetDisplayNameOk() return ret @@ -189,16 +231,19 @@ func (o *CreateIntakeUserPayload) GetDisplayName() (ret CreateIntakeUserPayloadG // GetDisplayNameOk returns a tuple with the DisplayName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetDisplayNameOk() (ret CreateIntakeUserPayloadGetDisplayNameRetType, ok bool) { return getCreateIntakeUserPayloadGetDisplayNameAttributeTypeOk(o.DisplayName) } // SetDisplayName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) SetDisplayName(v CreateIntakeUserPayloadGetDisplayNameRetType) { setCreateIntakeUserPayloadGetDisplayNameAttributeType(&o.DisplayName, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetLabels() (res CreateIntakeUserPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -207,22 +252,26 @@ func (o *CreateIntakeUserPayload) GetLabels() (res CreateIntakeUserPayloadGetLab // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetLabelsOk() (ret CreateIntakeUserPayloadGetLabelsRetType, ok bool) { return getCreateIntakeUserPayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) SetLabels(v CreateIntakeUserPayloadGetLabelsRetType) { setCreateIntakeUserPayloadGetLabelsAttributeType(&o.Labels, v) } // GetPassword returns the Password field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetPassword() (ret CreateIntakeUserPayloadGetPasswordRetType) { ret, _ = o.GetPasswordOk() return ret @@ -230,16 +279,19 @@ func (o *CreateIntakeUserPayload) GetPassword() (ret CreateIntakeUserPayloadGetP // GetPasswordOk returns a tuple with the Password field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetPasswordOk() (ret CreateIntakeUserPayloadGetPasswordRetType, ok bool) { return getCreateIntakeUserPayloadGetPasswordAttributeTypeOk(o.Password) } // SetPassword sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) SetPassword(v CreateIntakeUserPayloadGetPasswordRetType) { setCreateIntakeUserPayloadGetPasswordAttributeType(&o.Password, v) } // GetType returns the Type field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetType() (res CreateIntakeUserPayloadGetTypeRetType) { res, _ = o.GetTypeOk() return @@ -247,21 +299,25 @@ func (o *CreateIntakeUserPayload) GetType() (res CreateIntakeUserPayloadGetTypeR // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) GetTypeOk() (ret CreateIntakeUserPayloadGetTypeRetType, ok bool) { return getCreateIntakeUserPayloadGetTypeAttributeTypeOk(o.Type) } // HasType returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) HasType() bool { _, ok := o.GetTypeOk() return ok } // SetType gets a reference to the given UserType and assigns it to the Type field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateIntakeUserPayload) SetType(v CreateIntakeUserPayloadGetTypeRetType) { setCreateIntakeUserPayloadGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateIntakeUserPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateIntakeUserPayloadGetDescriptionAttributeTypeOk(o.Description); ok { @@ -282,37 +338,45 @@ func (o CreateIntakeUserPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateIntakeUserPayload struct { value *CreateIntakeUserPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakeUserPayload) Get() *CreateIntakeUserPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakeUserPayload) Set(val *CreateIntakeUserPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakeUserPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakeUserPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateIntakeUserPayload(val *CreateIntakeUserPayload) *NullableCreateIntakeUserPayload { return &NullableCreateIntakeUserPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateIntakeUserPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateIntakeUserPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_dremio_auth.go b/services/intake/model_dremio_auth.go index f9d8a072a..6631c5823 100644 --- a/services/intake/model_dremio_auth.go +++ b/services/intake/model_dremio_auth.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &DremioAuth{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthGetPersonalAccessTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getDremioAuthGetPersonalAccessTokenAttributeTypeOk(arg DremioAuthGetPersonalAccessTokenAttributeType) (ret DremioAuthGetPersonalAccessTokenRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getDremioAuthGetPersonalAccessTokenAttributeTypeOk(arg DremioAuthGetPersona return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setDremioAuthGetPersonalAccessTokenAttributeType(arg *DremioAuthGetPersonalAccessTokenAttributeType, val DremioAuthGetPersonalAccessTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthGetPersonalAccessTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthGetPersonalAccessTokenRetType = string /* @@ -43,8 +50,10 @@ type DremioAuthGetPersonalAccessTokenRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthGetTokenEndpointAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getDremioAuthGetTokenEndpointAttributeTypeOk(arg DremioAuthGetTokenEndpointAttributeType) (ret DremioAuthGetTokenEndpointRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getDremioAuthGetTokenEndpointAttributeTypeOk(arg DremioAuthGetTokenEndpoint return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setDremioAuthGetTokenEndpointAttributeType(arg *DremioAuthGetTokenEndpointAttributeType, val DremioAuthGetTokenEndpointRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthGetTokenEndpointArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthGetTokenEndpointRetType = string // DremioAuth struct for DremioAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuth struct { // A Dremio personal access token for authentication // REQUIRED @@ -69,12 +83,14 @@ type DremioAuth struct { TokenEndpoint DremioAuthGetTokenEndpointAttributeType `json:"tokenEndpoint" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _DremioAuth DremioAuth // NewDremioAuth instantiates a new DremioAuth object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewDremioAuth(personalAccessToken DremioAuthGetPersonalAccessTokenArgType, tokenEndpoint DremioAuthGetTokenEndpointArgType) *DremioAuth { this := DremioAuth{} setDremioAuthGetPersonalAccessTokenAttributeType(&this.PersonalAccessToken, personalAccessToken) @@ -85,12 +101,14 @@ func NewDremioAuth(personalAccessToken DremioAuthGetPersonalAccessTokenArgType, // NewDremioAuthWithDefaults instantiates a new DremioAuth object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewDremioAuthWithDefaults() *DremioAuth { this := DremioAuth{} return &this } // GetPersonalAccessToken returns the PersonalAccessToken field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuth) GetPersonalAccessToken() (ret DremioAuthGetPersonalAccessTokenRetType) { ret, _ = o.GetPersonalAccessTokenOk() return ret @@ -98,16 +116,19 @@ func (o *DremioAuth) GetPersonalAccessToken() (ret DremioAuthGetPersonalAccessTo // GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuth) GetPersonalAccessTokenOk() (ret DremioAuthGetPersonalAccessTokenRetType, ok bool) { return getDremioAuthGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken) } // SetPersonalAccessToken sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuth) SetPersonalAccessToken(v DremioAuthGetPersonalAccessTokenRetType) { setDremioAuthGetPersonalAccessTokenAttributeType(&o.PersonalAccessToken, v) } // GetTokenEndpoint returns the TokenEndpoint field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuth) GetTokenEndpoint() (ret DremioAuthGetTokenEndpointRetType) { ret, _ = o.GetTokenEndpointOk() return ret @@ -115,15 +136,18 @@ func (o *DremioAuth) GetTokenEndpoint() (ret DremioAuthGetTokenEndpointRetType) // GetTokenEndpointOk returns a tuple with the TokenEndpoint field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuth) GetTokenEndpointOk() (ret DremioAuthGetTokenEndpointRetType, ok bool) { return getDremioAuthGetTokenEndpointAttributeTypeOk(o.TokenEndpoint) } // SetTokenEndpoint sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuth) SetTokenEndpoint(v DremioAuthGetTokenEndpointRetType) { setDremioAuthGetTokenEndpointAttributeType(&o.TokenEndpoint, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o DremioAuth) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getDremioAuthGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken); ok { @@ -135,37 +159,45 @@ func (o DremioAuth) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableDremioAuth struct { value *DremioAuth isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDremioAuth) Get() *DremioAuth { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDremioAuth) Set(val *DremioAuth) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDremioAuth) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDremioAuth) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableDremioAuth(val *DremioAuth) *NullableDremioAuth { return &NullableDremioAuth{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDremioAuth) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDremioAuth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_dremio_auth_patch.go b/services/intake/model_dremio_auth_patch.go index 938f16627..553115705 100644 --- a/services/intake/model_dremio_auth_patch.go +++ b/services/intake/model_dremio_auth_patch.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &DremioAuthPatch{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthPatchGetPersonalAccessTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getDremioAuthPatchGetPersonalAccessTokenAttributeTypeOk(arg DremioAuthPatchGetPersonalAccessTokenAttributeType) (ret DremioAuthPatchGetPersonalAccessTokenRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getDremioAuthPatchGetPersonalAccessTokenAttributeTypeOk(arg DremioAuthPatch return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setDremioAuthPatchGetPersonalAccessTokenAttributeType(arg *DremioAuthPatchGetPersonalAccessTokenAttributeType, val DremioAuthPatchGetPersonalAccessTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthPatchGetPersonalAccessTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthPatchGetPersonalAccessTokenRetType = string /* @@ -43,8 +50,10 @@ type DremioAuthPatchGetPersonalAccessTokenRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthPatchGetTokenEndpointAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getDremioAuthPatchGetTokenEndpointAttributeTypeOk(arg DremioAuthPatchGetTokenEndpointAttributeType) (ret DremioAuthPatchGetTokenEndpointRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getDremioAuthPatchGetTokenEndpointAttributeTypeOk(arg DremioAuthPatchGetTok return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setDremioAuthPatchGetTokenEndpointAttributeType(arg *DremioAuthPatchGetTokenEndpointAttributeType, val DremioAuthPatchGetTokenEndpointRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthPatchGetTokenEndpointArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthPatchGetTokenEndpointRetType = string // DremioAuthPatch struct for DremioAuthPatch +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DremioAuthPatch struct { // A Dremio personal access token for authentication PersonalAccessToken DremioAuthPatchGetPersonalAccessTokenAttributeType `json:"personalAccessToken,omitempty"` @@ -71,6 +85,7 @@ type DremioAuthPatch struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewDremioAuthPatch() *DremioAuthPatch { this := DremioAuthPatch{} return &this @@ -79,12 +94,14 @@ func NewDremioAuthPatch() *DremioAuthPatch { // NewDremioAuthPatchWithDefaults instantiates a new DremioAuthPatch object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewDremioAuthPatchWithDefaults() *DremioAuthPatch { this := DremioAuthPatch{} return &this } // GetPersonalAccessToken returns the PersonalAccessToken field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuthPatch) GetPersonalAccessToken() (res DremioAuthPatchGetPersonalAccessTokenRetType) { res, _ = o.GetPersonalAccessTokenOk() return @@ -92,22 +109,26 @@ func (o *DremioAuthPatch) GetPersonalAccessToken() (res DremioAuthPatchGetPerson // GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuthPatch) GetPersonalAccessTokenOk() (ret DremioAuthPatchGetPersonalAccessTokenRetType, ok bool) { return getDremioAuthPatchGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken) } // HasPersonalAccessToken returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuthPatch) HasPersonalAccessToken() bool { _, ok := o.GetPersonalAccessTokenOk() return ok } // SetPersonalAccessToken gets a reference to the given string and assigns it to the PersonalAccessToken field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuthPatch) SetPersonalAccessToken(v DremioAuthPatchGetPersonalAccessTokenRetType) { setDremioAuthPatchGetPersonalAccessTokenAttributeType(&o.PersonalAccessToken, v) } // GetTokenEndpoint returns the TokenEndpoint field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuthPatch) GetTokenEndpoint() (res DremioAuthPatchGetTokenEndpointRetType) { res, _ = o.GetTokenEndpointOk() return @@ -115,21 +136,25 @@ func (o *DremioAuthPatch) GetTokenEndpoint() (res DremioAuthPatchGetTokenEndpoin // GetTokenEndpointOk returns a tuple with the TokenEndpoint field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuthPatch) GetTokenEndpointOk() (ret DremioAuthPatchGetTokenEndpointRetType, ok bool) { return getDremioAuthPatchGetTokenEndpointAttributeTypeOk(o.TokenEndpoint) } // HasTokenEndpoint returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuthPatch) HasTokenEndpoint() bool { _, ok := o.GetTokenEndpointOk() return ok } // SetTokenEndpoint gets a reference to the given string and assigns it to the TokenEndpoint field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *DremioAuthPatch) SetTokenEndpoint(v DremioAuthPatchGetTokenEndpointRetType) { setDremioAuthPatchGetTokenEndpointAttributeType(&o.TokenEndpoint, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o DremioAuthPatch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getDremioAuthPatchGetPersonalAccessTokenAttributeTypeOk(o.PersonalAccessToken); ok { @@ -141,37 +166,45 @@ func (o DremioAuthPatch) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableDremioAuthPatch struct { value *DremioAuthPatch isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDremioAuthPatch) Get() *DremioAuthPatch { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDremioAuthPatch) Set(val *DremioAuthPatch) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDremioAuthPatch) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDremioAuthPatch) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableDremioAuthPatch(val *DremioAuthPatch) *NullableDremioAuthPatch { return &NullableDremioAuthPatch{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableDremioAuthPatch) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableDremioAuthPatch) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_intake_catalog.go b/services/intake/model_intake_catalog.go index 995cb12c2..7aac507fb 100644 --- a/services/intake/model_intake_catalog.go +++ b/services/intake/model_intake_catalog.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &IntakeCatalog{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetAuthAttributeType = *CatalogAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetAuthArgType = CatalogAuth + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetAuthRetType = CatalogAuth +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogGetAuthAttributeTypeOk(arg IntakeCatalogGetAuthAttributeType) (ret IntakeCatalogGetAuthRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getIntakeCatalogGetAuthAttributeTypeOk(arg IntakeCatalogGetAuthAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogGetAuthAttributeType(arg *IntakeCatalogGetAuthAttributeType, val IntakeCatalogGetAuthRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setIntakeCatalogGetAuthAttributeType(arg *IntakeCatalogGetAuthAttributeType */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetNamespaceAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogGetNamespaceAttributeTypeOk(arg IntakeCatalogGetNamespaceAttributeType) (ret IntakeCatalogGetNamespaceRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getIntakeCatalogGetNamespaceAttributeTypeOk(arg IntakeCatalogGetNamespaceAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogGetNamespaceAttributeType(arg *IntakeCatalogGetNamespaceAttributeType, val IntakeCatalogGetNamespaceRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetNamespaceArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetNamespaceRetType = string /* @@ -63,10 +77,16 @@ type IntakeCatalogGetNamespaceRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetPartitionByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetPartitionByArgType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetPartitionByRetType = *[]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogGetPartitionByAttributeTypeOk(arg IntakeCatalogGetPartitionByAttributeType) (ret IntakeCatalogGetPartitionByRetType, ok bool) { if arg == nil { return nil, false @@ -74,6 +94,7 @@ func getIntakeCatalogGetPartitionByAttributeTypeOk(arg IntakeCatalogGetPartition return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogGetPartitionByAttributeType(arg *IntakeCatalogGetPartitionByAttributeType, val IntakeCatalogGetPartitionByRetType) { *arg = val } @@ -83,10 +104,16 @@ func setIntakeCatalogGetPartitionByAttributeType(arg *IntakeCatalogGetPartitionB */ // isEnumRef +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetPartitioningAttributeType = *PartitioningType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetPartitioningArgType = PartitioningType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetPartitioningRetType = PartitioningType +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogGetPartitioningAttributeTypeOk(arg IntakeCatalogGetPartitioningAttributeType) (ret IntakeCatalogGetPartitioningRetType, ok bool) { if arg == nil { return ret, false @@ -94,6 +121,7 @@ func getIntakeCatalogGetPartitioningAttributeTypeOk(arg IntakeCatalogGetPartitio return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogGetPartitioningAttributeType(arg *IntakeCatalogGetPartitioningAttributeType, val IntakeCatalogGetPartitioningRetType) { *arg = &val } @@ -103,8 +131,10 @@ func setIntakeCatalogGetPartitioningAttributeType(arg *IntakeCatalogGetPartition */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetTableNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogGetTableNameAttributeTypeOk(arg IntakeCatalogGetTableNameAttributeType) (ret IntakeCatalogGetTableNameRetType, ok bool) { if arg == nil { return ret, false @@ -112,11 +142,15 @@ func getIntakeCatalogGetTableNameAttributeTypeOk(arg IntakeCatalogGetTableNameAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogGetTableNameAttributeType(arg *IntakeCatalogGetTableNameAttributeType, val IntakeCatalogGetTableNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetTableNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetTableNameRetType = string /* @@ -124,8 +158,10 @@ type IntakeCatalogGetTableNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetUriAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogGetUriAttributeTypeOk(arg IntakeCatalogGetUriAttributeType) (ret IntakeCatalogGetUriRetType, ok bool) { if arg == nil { return ret, false @@ -133,11 +169,15 @@ func getIntakeCatalogGetUriAttributeTypeOk(arg IntakeCatalogGetUriAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogGetUriAttributeType(arg *IntakeCatalogGetUriAttributeType, val IntakeCatalogGetUriRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetUriArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetUriRetType = string /* @@ -145,8 +185,10 @@ type IntakeCatalogGetUriRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetWarehouseAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogGetWarehouseAttributeTypeOk(arg IntakeCatalogGetWarehouseAttributeType) (ret IntakeCatalogGetWarehouseRetType, ok bool) { if arg == nil { return ret, false @@ -154,14 +196,19 @@ func getIntakeCatalogGetWarehouseAttributeTypeOk(arg IntakeCatalogGetWarehouseAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogGetWarehouseAttributeType(arg *IntakeCatalogGetWarehouseAttributeType, val IntakeCatalogGetWarehouseRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetWarehouseArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogGetWarehouseRetType = string // IntakeCatalog The Iceberg catalog configuration +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalog struct { Auth IntakeCatalogGetAuthAttributeType `json:"auth,omitempty"` // The namespace to which data shall be written. It will be automatically created, if it does not exist. @@ -179,12 +226,14 @@ type IntakeCatalog struct { Warehouse IntakeCatalogGetWarehouseAttributeType `json:"warehouse" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _IntakeCatalog IntakeCatalog // NewIntakeCatalog instantiates a new IntakeCatalog object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeCatalog(uri IntakeCatalogGetUriArgType, warehouse IntakeCatalogGetWarehouseArgType) *IntakeCatalog { this := IntakeCatalog{} setIntakeCatalogGetUriAttributeType(&this.Uri, uri) @@ -195,6 +244,7 @@ func NewIntakeCatalog(uri IntakeCatalogGetUriArgType, warehouse IntakeCatalogGet // NewIntakeCatalogWithDefaults instantiates a new IntakeCatalog object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeCatalogWithDefaults() *IntakeCatalog { this := IntakeCatalog{} var namespace string = "intake" @@ -205,6 +255,7 @@ func NewIntakeCatalogWithDefaults() *IntakeCatalog { } // GetAuth returns the Auth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetAuth() (res IntakeCatalogGetAuthRetType) { res, _ = o.GetAuthOk() return @@ -212,22 +263,26 @@ func (o *IntakeCatalog) GetAuth() (res IntakeCatalogGetAuthRetType) { // GetAuthOk returns a tuple with the Auth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetAuthOk() (ret IntakeCatalogGetAuthRetType, ok bool) { return getIntakeCatalogGetAuthAttributeTypeOk(o.Auth) } // HasAuth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) HasAuth() bool { _, ok := o.GetAuthOk() return ok } // SetAuth gets a reference to the given CatalogAuth and assigns it to the Auth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) SetAuth(v IntakeCatalogGetAuthRetType) { setIntakeCatalogGetAuthAttributeType(&o.Auth, v) } // GetNamespace returns the Namespace field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetNamespace() (res IntakeCatalogGetNamespaceRetType) { res, _ = o.GetNamespaceOk() return @@ -235,22 +290,26 @@ func (o *IntakeCatalog) GetNamespace() (res IntakeCatalogGetNamespaceRetType) { // GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetNamespaceOk() (ret IntakeCatalogGetNamespaceRetType, ok bool) { return getIntakeCatalogGetNamespaceAttributeTypeOk(o.Namespace) } // HasNamespace returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) HasNamespace() bool { _, ok := o.GetNamespaceOk() return ok } // SetNamespace gets a reference to the given string and assigns it to the Namespace field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) SetNamespace(v IntakeCatalogGetNamespaceRetType) { setIntakeCatalogGetNamespaceAttributeType(&o.Namespace, v) } // GetPartitionBy returns the PartitionBy field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetPartitionBy() (res IntakeCatalogGetPartitionByRetType) { res, _ = o.GetPartitionByOk() return @@ -259,22 +318,26 @@ func (o *IntakeCatalog) GetPartitionBy() (res IntakeCatalogGetPartitionByRetType // GetPartitionByOk returns a tuple with the PartitionBy field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetPartitionByOk() (ret IntakeCatalogGetPartitionByRetType, ok bool) { return getIntakeCatalogGetPartitionByAttributeTypeOk(o.PartitionBy) } // HasPartitionBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) HasPartitionBy() bool { _, ok := o.GetPartitionByOk() return ok } // SetPartitionBy gets a reference to the given []string and assigns it to the PartitionBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) SetPartitionBy(v IntakeCatalogGetPartitionByRetType) { setIntakeCatalogGetPartitionByAttributeType(&o.PartitionBy, v) } // GetPartitioning returns the Partitioning field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetPartitioning() (res IntakeCatalogGetPartitioningRetType) { res, _ = o.GetPartitioningOk() return @@ -282,22 +345,26 @@ func (o *IntakeCatalog) GetPartitioning() (res IntakeCatalogGetPartitioningRetTy // GetPartitioningOk returns a tuple with the Partitioning field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetPartitioningOk() (ret IntakeCatalogGetPartitioningRetType, ok bool) { return getIntakeCatalogGetPartitioningAttributeTypeOk(o.Partitioning) } // HasPartitioning returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) HasPartitioning() bool { _, ok := o.GetPartitioningOk() return ok } // SetPartitioning gets a reference to the given PartitioningType and assigns it to the Partitioning field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) SetPartitioning(v IntakeCatalogGetPartitioningRetType) { setIntakeCatalogGetPartitioningAttributeType(&o.Partitioning, v) } // GetTableName returns the TableName field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetTableName() (res IntakeCatalogGetTableNameRetType) { res, _ = o.GetTableNameOk() return @@ -305,22 +372,26 @@ func (o *IntakeCatalog) GetTableName() (res IntakeCatalogGetTableNameRetType) { // GetTableNameOk returns a tuple with the TableName field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetTableNameOk() (ret IntakeCatalogGetTableNameRetType, ok bool) { return getIntakeCatalogGetTableNameAttributeTypeOk(o.TableName) } // HasTableName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) HasTableName() bool { _, ok := o.GetTableNameOk() return ok } // SetTableName gets a reference to the given string and assigns it to the TableName field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) SetTableName(v IntakeCatalogGetTableNameRetType) { setIntakeCatalogGetTableNameAttributeType(&o.TableName, v) } // GetUri returns the Uri field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetUri() (ret IntakeCatalogGetUriRetType) { ret, _ = o.GetUriOk() return ret @@ -328,16 +399,19 @@ func (o *IntakeCatalog) GetUri() (ret IntakeCatalogGetUriRetType) { // GetUriOk returns a tuple with the Uri field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetUriOk() (ret IntakeCatalogGetUriRetType, ok bool) { return getIntakeCatalogGetUriAttributeTypeOk(o.Uri) } // SetUri sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) SetUri(v IntakeCatalogGetUriRetType) { setIntakeCatalogGetUriAttributeType(&o.Uri, v) } // GetWarehouse returns the Warehouse field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetWarehouse() (ret IntakeCatalogGetWarehouseRetType) { ret, _ = o.GetWarehouseOk() return ret @@ -345,15 +419,18 @@ func (o *IntakeCatalog) GetWarehouse() (ret IntakeCatalogGetWarehouseRetType) { // GetWarehouseOk returns a tuple with the Warehouse field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) GetWarehouseOk() (ret IntakeCatalogGetWarehouseRetType, ok bool) { return getIntakeCatalogGetWarehouseAttributeTypeOk(o.Warehouse) } // SetWarehouse sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalog) SetWarehouse(v IntakeCatalogGetWarehouseRetType) { setIntakeCatalogGetWarehouseAttributeType(&o.Warehouse, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o IntakeCatalog) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getIntakeCatalogGetAuthAttributeTypeOk(o.Auth); ok { @@ -380,37 +457,45 @@ func (o IntakeCatalog) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableIntakeCatalog struct { value *IntakeCatalog isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeCatalog) Get() *IntakeCatalog { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeCatalog) Set(val *IntakeCatalog) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeCatalog) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeCatalog) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableIntakeCatalog(val *IntakeCatalog) *NullableIntakeCatalog { return &NullableIntakeCatalog{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeCatalog) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeCatalog) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_intake_catalog_patch.go b/services/intake/model_intake_catalog_patch.go index cf2b422e3..8f0eaf3e0 100644 --- a/services/intake/model_intake_catalog_patch.go +++ b/services/intake/model_intake_catalog_patch.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &IntakeCatalogPatch{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetAuthAttributeType = *CatalogAuthPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetAuthArgType = CatalogAuthPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetAuthRetType = CatalogAuthPatch +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogPatchGetAuthAttributeTypeOk(arg IntakeCatalogPatchGetAuthAttributeType) (ret IntakeCatalogPatchGetAuthRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getIntakeCatalogPatchGetAuthAttributeTypeOk(arg IntakeCatalogPatchGetAuthAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogPatchGetAuthAttributeType(arg *IntakeCatalogPatchGetAuthAttributeType, val IntakeCatalogPatchGetAuthRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setIntakeCatalogPatchGetAuthAttributeType(arg *IntakeCatalogPatchGetAuthAtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetNamespaceAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogPatchGetNamespaceAttributeTypeOk(arg IntakeCatalogPatchGetNamespaceAttributeType) (ret IntakeCatalogPatchGetNamespaceRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getIntakeCatalogPatchGetNamespaceAttributeTypeOk(arg IntakeCatalogPatchGetN return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogPatchGetNamespaceAttributeType(arg *IntakeCatalogPatchGetNamespaceAttributeType, val IntakeCatalogPatchGetNamespaceRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetNamespaceArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetNamespaceRetType = string /* @@ -63,10 +77,16 @@ type IntakeCatalogPatchGetNamespaceRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetPartitionByAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetPartitionByArgType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetPartitionByRetType = *[]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogPatchGetPartitionByAttributeTypeOk(arg IntakeCatalogPatchGetPartitionByAttributeType) (ret IntakeCatalogPatchGetPartitionByRetType, ok bool) { if arg == nil { return nil, false @@ -74,6 +94,7 @@ func getIntakeCatalogPatchGetPartitionByAttributeTypeOk(arg IntakeCatalogPatchGe return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogPatchGetPartitionByAttributeType(arg *IntakeCatalogPatchGetPartitionByAttributeType, val IntakeCatalogPatchGetPartitionByRetType) { *arg = val } @@ -83,10 +104,16 @@ func setIntakeCatalogPatchGetPartitionByAttributeType(arg *IntakeCatalogPatchGet */ // isEnumRef +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetPartitioningAttributeType = *PartitioningUpdateType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetPartitioningArgType = PartitioningUpdateType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetPartitioningRetType = PartitioningUpdateType +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogPatchGetPartitioningAttributeTypeOk(arg IntakeCatalogPatchGetPartitioningAttributeType) (ret IntakeCatalogPatchGetPartitioningRetType, ok bool) { if arg == nil { return ret, false @@ -94,6 +121,7 @@ func getIntakeCatalogPatchGetPartitioningAttributeTypeOk(arg IntakeCatalogPatchG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogPatchGetPartitioningAttributeType(arg *IntakeCatalogPatchGetPartitioningAttributeType, val IntakeCatalogPatchGetPartitioningRetType) { *arg = &val } @@ -103,8 +131,10 @@ func setIntakeCatalogPatchGetPartitioningAttributeType(arg *IntakeCatalogPatchGe */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetTableNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogPatchGetTableNameAttributeTypeOk(arg IntakeCatalogPatchGetTableNameAttributeType) (ret IntakeCatalogPatchGetTableNameRetType, ok bool) { if arg == nil { return ret, false @@ -112,11 +142,15 @@ func getIntakeCatalogPatchGetTableNameAttributeTypeOk(arg IntakeCatalogPatchGetT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogPatchGetTableNameAttributeType(arg *IntakeCatalogPatchGetTableNameAttributeType, val IntakeCatalogPatchGetTableNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetTableNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetTableNameRetType = string /* @@ -124,8 +158,10 @@ type IntakeCatalogPatchGetTableNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetUriAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogPatchGetUriAttributeTypeOk(arg IntakeCatalogPatchGetUriAttributeType) (ret IntakeCatalogPatchGetUriRetType, ok bool) { if arg == nil { return ret, false @@ -133,11 +169,15 @@ func getIntakeCatalogPatchGetUriAttributeTypeOk(arg IntakeCatalogPatchGetUriAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogPatchGetUriAttributeType(arg *IntakeCatalogPatchGetUriAttributeType, val IntakeCatalogPatchGetUriRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetUriArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetUriRetType = string /* @@ -145,8 +185,10 @@ type IntakeCatalogPatchGetUriRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetWarehouseAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeCatalogPatchGetWarehouseAttributeTypeOk(arg IntakeCatalogPatchGetWarehouseAttributeType) (ret IntakeCatalogPatchGetWarehouseRetType, ok bool) { if arg == nil { return ret, false @@ -154,14 +196,19 @@ func getIntakeCatalogPatchGetWarehouseAttributeTypeOk(arg IntakeCatalogPatchGetW return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeCatalogPatchGetWarehouseAttributeType(arg *IntakeCatalogPatchGetWarehouseAttributeType, val IntakeCatalogPatchGetWarehouseRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetWarehouseArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatchGetWarehouseRetType = string // IntakeCatalogPatch The Iceberg catalog configuration +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeCatalogPatch struct { Auth IntakeCatalogPatchGetAuthAttributeType `json:"auth,omitempty"` // The namespace to which data shall be written. It will be automatically created, if it does not exist. @@ -181,6 +228,7 @@ type IntakeCatalogPatch struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeCatalogPatch() *IntakeCatalogPatch { this := IntakeCatalogPatch{} return &this @@ -189,6 +237,7 @@ func NewIntakeCatalogPatch() *IntakeCatalogPatch { // NewIntakeCatalogPatchWithDefaults instantiates a new IntakeCatalogPatch object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeCatalogPatchWithDefaults() *IntakeCatalogPatch { this := IntakeCatalogPatch{} var namespace string = "intake" @@ -197,6 +246,7 @@ func NewIntakeCatalogPatchWithDefaults() *IntakeCatalogPatch { } // GetAuth returns the Auth field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetAuth() (res IntakeCatalogPatchGetAuthRetType) { res, _ = o.GetAuthOk() return @@ -204,22 +254,26 @@ func (o *IntakeCatalogPatch) GetAuth() (res IntakeCatalogPatchGetAuthRetType) { // GetAuthOk returns a tuple with the Auth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetAuthOk() (ret IntakeCatalogPatchGetAuthRetType, ok bool) { return getIntakeCatalogPatchGetAuthAttributeTypeOk(o.Auth) } // HasAuth returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) HasAuth() bool { _, ok := o.GetAuthOk() return ok } // SetAuth gets a reference to the given CatalogAuthPatch and assigns it to the Auth field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) SetAuth(v IntakeCatalogPatchGetAuthRetType) { setIntakeCatalogPatchGetAuthAttributeType(&o.Auth, v) } // GetNamespace returns the Namespace field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetNamespace() (res IntakeCatalogPatchGetNamespaceRetType) { res, _ = o.GetNamespaceOk() return @@ -227,22 +281,26 @@ func (o *IntakeCatalogPatch) GetNamespace() (res IntakeCatalogPatchGetNamespaceR // GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetNamespaceOk() (ret IntakeCatalogPatchGetNamespaceRetType, ok bool) { return getIntakeCatalogPatchGetNamespaceAttributeTypeOk(o.Namespace) } // HasNamespace returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) HasNamespace() bool { _, ok := o.GetNamespaceOk() return ok } // SetNamespace gets a reference to the given string and assigns it to the Namespace field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) SetNamespace(v IntakeCatalogPatchGetNamespaceRetType) { setIntakeCatalogPatchGetNamespaceAttributeType(&o.Namespace, v) } // GetPartitionBy returns the PartitionBy field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetPartitionBy() (res IntakeCatalogPatchGetPartitionByRetType) { res, _ = o.GetPartitionByOk() return @@ -251,22 +309,26 @@ func (o *IntakeCatalogPatch) GetPartitionBy() (res IntakeCatalogPatchGetPartitio // GetPartitionByOk returns a tuple with the PartitionBy field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetPartitionByOk() (ret IntakeCatalogPatchGetPartitionByRetType, ok bool) { return getIntakeCatalogPatchGetPartitionByAttributeTypeOk(o.PartitionBy) } // HasPartitionBy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) HasPartitionBy() bool { _, ok := o.GetPartitionByOk() return ok } // SetPartitionBy gets a reference to the given []string and assigns it to the PartitionBy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) SetPartitionBy(v IntakeCatalogPatchGetPartitionByRetType) { setIntakeCatalogPatchGetPartitionByAttributeType(&o.PartitionBy, v) } // GetPartitioning returns the Partitioning field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetPartitioning() (res IntakeCatalogPatchGetPartitioningRetType) { res, _ = o.GetPartitioningOk() return @@ -274,22 +336,26 @@ func (o *IntakeCatalogPatch) GetPartitioning() (res IntakeCatalogPatchGetPartiti // GetPartitioningOk returns a tuple with the Partitioning field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetPartitioningOk() (ret IntakeCatalogPatchGetPartitioningRetType, ok bool) { return getIntakeCatalogPatchGetPartitioningAttributeTypeOk(o.Partitioning) } // HasPartitioning returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) HasPartitioning() bool { _, ok := o.GetPartitioningOk() return ok } // SetPartitioning gets a reference to the given PartitioningUpdateType and assigns it to the Partitioning field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) SetPartitioning(v IntakeCatalogPatchGetPartitioningRetType) { setIntakeCatalogPatchGetPartitioningAttributeType(&o.Partitioning, v) } // GetTableName returns the TableName field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetTableName() (res IntakeCatalogPatchGetTableNameRetType) { res, _ = o.GetTableNameOk() return @@ -297,22 +363,26 @@ func (o *IntakeCatalogPatch) GetTableName() (res IntakeCatalogPatchGetTableNameR // GetTableNameOk returns a tuple with the TableName field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetTableNameOk() (ret IntakeCatalogPatchGetTableNameRetType, ok bool) { return getIntakeCatalogPatchGetTableNameAttributeTypeOk(o.TableName) } // HasTableName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) HasTableName() bool { _, ok := o.GetTableNameOk() return ok } // SetTableName gets a reference to the given string and assigns it to the TableName field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) SetTableName(v IntakeCatalogPatchGetTableNameRetType) { setIntakeCatalogPatchGetTableNameAttributeType(&o.TableName, v) } // GetUri returns the Uri field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetUri() (res IntakeCatalogPatchGetUriRetType) { res, _ = o.GetUriOk() return @@ -320,22 +390,26 @@ func (o *IntakeCatalogPatch) GetUri() (res IntakeCatalogPatchGetUriRetType) { // GetUriOk returns a tuple with the Uri field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetUriOk() (ret IntakeCatalogPatchGetUriRetType, ok bool) { return getIntakeCatalogPatchGetUriAttributeTypeOk(o.Uri) } // HasUri returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) HasUri() bool { _, ok := o.GetUriOk() return ok } // SetUri gets a reference to the given string and assigns it to the Uri field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) SetUri(v IntakeCatalogPatchGetUriRetType) { setIntakeCatalogPatchGetUriAttributeType(&o.Uri, v) } // GetWarehouse returns the Warehouse field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetWarehouse() (res IntakeCatalogPatchGetWarehouseRetType) { res, _ = o.GetWarehouseOk() return @@ -343,21 +417,25 @@ func (o *IntakeCatalogPatch) GetWarehouse() (res IntakeCatalogPatchGetWarehouseR // GetWarehouseOk returns a tuple with the Warehouse field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) GetWarehouseOk() (ret IntakeCatalogPatchGetWarehouseRetType, ok bool) { return getIntakeCatalogPatchGetWarehouseAttributeTypeOk(o.Warehouse) } // HasWarehouse returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) HasWarehouse() bool { _, ok := o.GetWarehouseOk() return ok } // SetWarehouse gets a reference to the given string and assigns it to the Warehouse field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeCatalogPatch) SetWarehouse(v IntakeCatalogPatchGetWarehouseRetType) { setIntakeCatalogPatchGetWarehouseAttributeType(&o.Warehouse, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o IntakeCatalogPatch) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getIntakeCatalogPatchGetAuthAttributeTypeOk(o.Auth); ok { @@ -384,37 +462,45 @@ func (o IntakeCatalogPatch) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableIntakeCatalogPatch struct { value *IntakeCatalogPatch isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeCatalogPatch) Get() *IntakeCatalogPatch { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeCatalogPatch) Set(val *IntakeCatalogPatch) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeCatalogPatch) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeCatalogPatch) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableIntakeCatalogPatch(val *IntakeCatalogPatch) *NullableIntakeCatalogPatch { return &NullableIntakeCatalogPatch{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeCatalogPatch) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeCatalogPatch) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_intake_response.go b/services/intake/model_intake_response.go index 76da84530..972d20bb3 100644 --- a/services/intake/model_intake_response.go +++ b/services/intake/model_intake_response.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -24,10 +25,16 @@ var _ MappedNullable = &IntakeResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetCatalogAttributeType = *IntakeCatalog + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetCatalogArgType = IntakeCatalog + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetCatalogRetType = IntakeCatalog +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetCatalogAttributeTypeOk(arg IntakeResponseGetCatalogAttributeType) (ret IntakeResponseGetCatalogRetType, ok bool) { if arg == nil { return ret, false @@ -35,6 +42,7 @@ func getIntakeResponseGetCatalogAttributeTypeOk(arg IntakeResponseGetCatalogAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetCatalogAttributeType(arg *IntakeResponseGetCatalogAttributeType, val IntakeResponseGetCatalogRetType) { *arg = &val } @@ -44,10 +52,16 @@ func setIntakeResponseGetCatalogAttributeType(arg *IntakeResponseGetCatalogAttri */ // isDateTime +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetCreateTimeAttributeType = *time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetCreateTimeArgType = time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetCreateTimeRetType = time.Time +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetCreateTimeAttributeTypeOk(arg IntakeResponseGetCreateTimeAttributeType) (ret IntakeResponseGetCreateTimeRetType, ok bool) { if arg == nil { return ret, false @@ -55,6 +69,7 @@ func getIntakeResponseGetCreateTimeAttributeTypeOk(arg IntakeResponseGetCreateTi return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetCreateTimeAttributeType(arg *IntakeResponseGetCreateTimeAttributeType, val IntakeResponseGetCreateTimeRetType) { *arg = &val } @@ -64,8 +79,10 @@ func setIntakeResponseGetCreateTimeAttributeType(arg *IntakeResponseGetCreateTim */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDeadLetterTopicAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetDeadLetterTopicAttributeTypeOk(arg IntakeResponseGetDeadLetterTopicAttributeType) (ret IntakeResponseGetDeadLetterTopicRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +90,15 @@ func getIntakeResponseGetDeadLetterTopicAttributeTypeOk(arg IntakeResponseGetDea return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetDeadLetterTopicAttributeType(arg *IntakeResponseGetDeadLetterTopicAttributeType, val IntakeResponseGetDeadLetterTopicRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDeadLetterTopicArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDeadLetterTopicRetType = string /* @@ -85,8 +106,10 @@ type IntakeResponseGetDeadLetterTopicRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetDescriptionAttributeTypeOk(arg IntakeResponseGetDescriptionAttributeType) (ret IntakeResponseGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +117,15 @@ func getIntakeResponseGetDescriptionAttributeTypeOk(arg IntakeResponseGetDescrip return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetDescriptionAttributeType(arg *IntakeResponseGetDescriptionAttributeType, val IntakeResponseGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDescriptionRetType = string /* @@ -106,8 +133,10 @@ type IntakeResponseGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetDisplayNameAttributeTypeOk(arg IntakeResponseGetDisplayNameAttributeType) (ret IntakeResponseGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -115,11 +144,15 @@ func getIntakeResponseGetDisplayNameAttributeTypeOk(arg IntakeResponseGetDisplay return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetDisplayNameAttributeType(arg *IntakeResponseGetDisplayNameAttributeType, val IntakeResponseGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetDisplayNameRetType = string /* @@ -127,8 +160,10 @@ type IntakeResponseGetDisplayNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetFailureMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetFailureMessageAttributeTypeOk(arg IntakeResponseGetFailureMessageAttributeType) (ret IntakeResponseGetFailureMessageRetType, ok bool) { if arg == nil { return ret, false @@ -136,11 +171,15 @@ func getIntakeResponseGetFailureMessageAttributeTypeOk(arg IntakeResponseGetFail return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetFailureMessageAttributeType(arg *IntakeResponseGetFailureMessageAttributeType, val IntakeResponseGetFailureMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetFailureMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetFailureMessageRetType = string /* @@ -148,8 +187,10 @@ type IntakeResponseGetFailureMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetIdAttributeTypeOk(arg IntakeResponseGetIdAttributeType) (ret IntakeResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -157,11 +198,15 @@ func getIntakeResponseGetIdAttributeTypeOk(arg IntakeResponseGetIdAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetIdAttributeType(arg *IntakeResponseGetIdAttributeType, val IntakeResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetIdRetType = string /* @@ -169,8 +214,10 @@ type IntakeResponseGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetIntakeRunnerIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetIntakeRunnerIdAttributeTypeOk(arg IntakeResponseGetIntakeRunnerIdAttributeType) (ret IntakeResponseGetIntakeRunnerIdRetType, ok bool) { if arg == nil { return ret, false @@ -178,11 +225,15 @@ func getIntakeResponseGetIntakeRunnerIdAttributeTypeOk(arg IntakeResponseGetInta return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetIntakeRunnerIdAttributeType(arg *IntakeResponseGetIntakeRunnerIdAttributeType, val IntakeResponseGetIntakeRunnerIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetIntakeRunnerIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetIntakeRunnerIdRetType = string /* @@ -190,10 +241,16 @@ type IntakeResponseGetIntakeRunnerIdRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetLabelsAttributeTypeOk(arg IntakeResponseGetLabelsAttributeType) (ret IntakeResponseGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -201,6 +258,7 @@ func getIntakeResponseGetLabelsAttributeTypeOk(arg IntakeResponseGetLabelsAttrib return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetLabelsAttributeType(arg *IntakeResponseGetLabelsAttributeType, val IntakeResponseGetLabelsRetType) { *arg = val } @@ -213,17 +271,23 @@ func setIntakeResponseGetLabelsAttributeType(arg *IntakeResponseGetLabelsAttribu // IntakeResponseState The current state of the resource. // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseState string // List of State const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INTAKERESPONSESTATE_RECONCILING IntakeResponseState = "reconciling" - INTAKERESPONSESTATE_ACTIVE IntakeResponseState = "active" - INTAKERESPONSESTATE_DELETING IntakeResponseState = "deleting" - INTAKERESPONSESTATE_FAILED IntakeResponseState = "failed" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INTAKERESPONSESTATE_ACTIVE IntakeResponseState = "active" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INTAKERESPONSESTATE_DELETING IntakeResponseState = "deleting" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INTAKERESPONSESTATE_FAILED IntakeResponseState = "failed" ) // All allowed values of IntakeResponse enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedIntakeResponseStateEnumValues = []IntakeResponseState{ "reconciling", "active", @@ -231,6 +295,7 @@ var AllowedIntakeResponseStateEnumValues = []IntakeResponseState{ "failed", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *IntakeResponseState) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -258,6 +323,7 @@ func (v *IntakeResponseState) UnmarshalJSON(src []byte) error { // NewIntakeResponseStateFromValue returns a pointer to a valid IntakeResponseState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeResponseStateFromValue(v IntakeResponseState) (*IntakeResponseState, error) { ev := IntakeResponseState(v) if ev.IsValid() { @@ -268,6 +334,7 @@ func NewIntakeResponseStateFromValue(v IntakeResponseState) (*IntakeResponseStat } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v IntakeResponseState) IsValid() bool { for _, existing := range AllowedIntakeResponseStateEnumValues { if existing == v { @@ -278,50 +345,65 @@ func (v IntakeResponseState) IsValid() bool { } // Ptr returns reference to StateState value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v IntakeResponseState) Ptr() *IntakeResponseState { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableIntakeResponseState struct { value *IntakeResponseState isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeResponseState) Get() *IntakeResponseState { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeResponseState) Set(val *IntakeResponseState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeResponseState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeResponseState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableIntakeResponseState(val *IntakeResponseState) *NullableIntakeResponseState { return &NullableIntakeResponseState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeResponseState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeResponseState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetStateAttributeType = *IntakeResponseState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetStateArgType = IntakeResponseState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetStateRetType = IntakeResponseState +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetStateAttributeTypeOk(arg IntakeResponseGetStateAttributeType) (ret IntakeResponseGetStateRetType, ok bool) { if arg == nil { return ret, false @@ -329,6 +411,7 @@ func getIntakeResponseGetStateAttributeTypeOk(arg IntakeResponseGetStateAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetStateAttributeType(arg *IntakeResponseGetStateAttributeType, val IntakeResponseGetStateRetType) { *arg = &val } @@ -338,8 +421,10 @@ func setIntakeResponseGetStateAttributeType(arg *IntakeResponseGetStateAttribute */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetTopicAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetTopicAttributeTypeOk(arg IntakeResponseGetTopicAttributeType) (ret IntakeResponseGetTopicRetType, ok bool) { if arg == nil { return ret, false @@ -347,11 +432,15 @@ func getIntakeResponseGetTopicAttributeTypeOk(arg IntakeResponseGetTopicAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetTopicAttributeType(arg *IntakeResponseGetTopicAttributeType, val IntakeResponseGetTopicRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetTopicArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetTopicRetType = string /* @@ -359,10 +448,16 @@ type IntakeResponseGetTopicRetType = string */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetUndeliveredMessageCountAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetUndeliveredMessageCountArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetUndeliveredMessageCountRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetUndeliveredMessageCountAttributeTypeOk(arg IntakeResponseGetUndeliveredMessageCountAttributeType) (ret IntakeResponseGetUndeliveredMessageCountRetType, ok bool) { if arg == nil { return ret, false @@ -370,6 +465,7 @@ func getIntakeResponseGetUndeliveredMessageCountAttributeTypeOk(arg IntakeRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetUndeliveredMessageCountAttributeType(arg *IntakeResponseGetUndeliveredMessageCountAttributeType, val IntakeResponseGetUndeliveredMessageCountRetType) { *arg = &val } @@ -379,8 +475,10 @@ func setIntakeResponseGetUndeliveredMessageCountAttributeType(arg *IntakeRespons */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetUriAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeResponseGetUriAttributeTypeOk(arg IntakeResponseGetUriAttributeType) (ret IntakeResponseGetUriRetType, ok bool) { if arg == nil { return ret, false @@ -388,14 +486,19 @@ func getIntakeResponseGetUriAttributeTypeOk(arg IntakeResponseGetUriAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeResponseGetUriAttributeType(arg *IntakeResponseGetUriAttributeType, val IntakeResponseGetUriRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetUriArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponseGetUriRetType = string // IntakeResponse struct for IntakeResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeResponse struct { // REQUIRED Catalog IntakeResponseGetCatalogAttributeType `json:"catalog" required:"true"` @@ -433,12 +536,14 @@ type IntakeResponse struct { Uri IntakeResponseGetUriAttributeType `json:"uri" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _IntakeResponse IntakeResponse // NewIntakeResponse instantiates a new IntakeResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeResponse(catalog IntakeResponseGetCatalogArgType, createTime IntakeResponseGetCreateTimeArgType, deadLetterTopic IntakeResponseGetDeadLetterTopicArgType, displayName IntakeResponseGetDisplayNameArgType, id IntakeResponseGetIdArgType, intakeRunnerId IntakeResponseGetIntakeRunnerIdArgType, state IntakeResponseGetStateArgType, topic IntakeResponseGetTopicArgType, uri IntakeResponseGetUriArgType) *IntakeResponse { this := IntakeResponse{} setIntakeResponseGetCatalogAttributeType(&this.Catalog, catalog) @@ -456,12 +561,14 @@ func NewIntakeResponse(catalog IntakeResponseGetCatalogArgType, createTime Intak // NewIntakeResponseWithDefaults instantiates a new IntakeResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeResponseWithDefaults() *IntakeResponse { this := IntakeResponse{} return &this } // GetCatalog returns the Catalog field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetCatalog() (ret IntakeResponseGetCatalogRetType) { ret, _ = o.GetCatalogOk() return ret @@ -469,16 +576,19 @@ func (o *IntakeResponse) GetCatalog() (ret IntakeResponseGetCatalogRetType) { // GetCatalogOk returns a tuple with the Catalog field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetCatalogOk() (ret IntakeResponseGetCatalogRetType, ok bool) { return getIntakeResponseGetCatalogAttributeTypeOk(o.Catalog) } // SetCatalog sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetCatalog(v IntakeResponseGetCatalogRetType) { setIntakeResponseGetCatalogAttributeType(&o.Catalog, v) } // GetCreateTime returns the CreateTime field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetCreateTime() (ret IntakeResponseGetCreateTimeRetType) { ret, _ = o.GetCreateTimeOk() return ret @@ -486,16 +596,19 @@ func (o *IntakeResponse) GetCreateTime() (ret IntakeResponseGetCreateTimeRetType // GetCreateTimeOk returns a tuple with the CreateTime field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetCreateTimeOk() (ret IntakeResponseGetCreateTimeRetType, ok bool) { return getIntakeResponseGetCreateTimeAttributeTypeOk(o.CreateTime) } // SetCreateTime sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetCreateTime(v IntakeResponseGetCreateTimeRetType) { setIntakeResponseGetCreateTimeAttributeType(&o.CreateTime, v) } // GetDeadLetterTopic returns the DeadLetterTopic field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetDeadLetterTopic() (ret IntakeResponseGetDeadLetterTopicRetType) { ret, _ = o.GetDeadLetterTopicOk() return ret @@ -503,16 +616,19 @@ func (o *IntakeResponse) GetDeadLetterTopic() (ret IntakeResponseGetDeadLetterTo // GetDeadLetterTopicOk returns a tuple with the DeadLetterTopic field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetDeadLetterTopicOk() (ret IntakeResponseGetDeadLetterTopicRetType, ok bool) { return getIntakeResponseGetDeadLetterTopicAttributeTypeOk(o.DeadLetterTopic) } // SetDeadLetterTopic sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetDeadLetterTopic(v IntakeResponseGetDeadLetterTopicRetType) { setIntakeResponseGetDeadLetterTopicAttributeType(&o.DeadLetterTopic, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetDescription() (res IntakeResponseGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -520,22 +636,26 @@ func (o *IntakeResponse) GetDescription() (res IntakeResponseGetDescriptionRetTy // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetDescriptionOk() (ret IntakeResponseGetDescriptionRetType, ok bool) { return getIntakeResponseGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetDescription(v IntakeResponseGetDescriptionRetType) { setIntakeResponseGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetDisplayName() (ret IntakeResponseGetDisplayNameRetType) { ret, _ = o.GetDisplayNameOk() return ret @@ -543,16 +663,19 @@ func (o *IntakeResponse) GetDisplayName() (ret IntakeResponseGetDisplayNameRetTy // GetDisplayNameOk returns a tuple with the DisplayName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetDisplayNameOk() (ret IntakeResponseGetDisplayNameRetType, ok bool) { return getIntakeResponseGetDisplayNameAttributeTypeOk(o.DisplayName) } // SetDisplayName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetDisplayName(v IntakeResponseGetDisplayNameRetType) { setIntakeResponseGetDisplayNameAttributeType(&o.DisplayName, v) } // GetFailureMessage returns the FailureMessage field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetFailureMessage() (res IntakeResponseGetFailureMessageRetType) { res, _ = o.GetFailureMessageOk() return @@ -560,22 +683,26 @@ func (o *IntakeResponse) GetFailureMessage() (res IntakeResponseGetFailureMessag // GetFailureMessageOk returns a tuple with the FailureMessage field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetFailureMessageOk() (ret IntakeResponseGetFailureMessageRetType, ok bool) { return getIntakeResponseGetFailureMessageAttributeTypeOk(o.FailureMessage) } // HasFailureMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) HasFailureMessage() bool { _, ok := o.GetFailureMessageOk() return ok } // SetFailureMessage gets a reference to the given string and assigns it to the FailureMessage field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetFailureMessage(v IntakeResponseGetFailureMessageRetType) { setIntakeResponseGetFailureMessageAttributeType(&o.FailureMessage, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetId() (ret IntakeResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -583,16 +710,19 @@ func (o *IntakeResponse) GetId() (ret IntakeResponseGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetIdOk() (ret IntakeResponseGetIdRetType, ok bool) { return getIntakeResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetId(v IntakeResponseGetIdRetType) { setIntakeResponseGetIdAttributeType(&o.Id, v) } // GetIntakeRunnerId returns the IntakeRunnerId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetIntakeRunnerId() (ret IntakeResponseGetIntakeRunnerIdRetType) { ret, _ = o.GetIntakeRunnerIdOk() return ret @@ -600,16 +730,19 @@ func (o *IntakeResponse) GetIntakeRunnerId() (ret IntakeResponseGetIntakeRunnerI // GetIntakeRunnerIdOk returns a tuple with the IntakeRunnerId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetIntakeRunnerIdOk() (ret IntakeResponseGetIntakeRunnerIdRetType, ok bool) { return getIntakeResponseGetIntakeRunnerIdAttributeTypeOk(o.IntakeRunnerId) } // SetIntakeRunnerId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetIntakeRunnerId(v IntakeResponseGetIntakeRunnerIdRetType) { setIntakeResponseGetIntakeRunnerIdAttributeType(&o.IntakeRunnerId, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetLabels() (res IntakeResponseGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -618,22 +751,26 @@ func (o *IntakeResponse) GetLabels() (res IntakeResponseGetLabelsRetType) { // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetLabelsOk() (ret IntakeResponseGetLabelsRetType, ok bool) { return getIntakeResponseGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetLabels(v IntakeResponseGetLabelsRetType) { setIntakeResponseGetLabelsAttributeType(&o.Labels, v) } // GetState returns the State field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetState() (ret IntakeResponseGetStateRetType) { ret, _ = o.GetStateOk() return ret @@ -641,16 +778,19 @@ func (o *IntakeResponse) GetState() (ret IntakeResponseGetStateRetType) { // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetStateOk() (ret IntakeResponseGetStateRetType, ok bool) { return getIntakeResponseGetStateAttributeTypeOk(o.State) } // SetState sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetState(v IntakeResponseGetStateRetType) { setIntakeResponseGetStateAttributeType(&o.State, v) } // GetTopic returns the Topic field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetTopic() (ret IntakeResponseGetTopicRetType) { ret, _ = o.GetTopicOk() return ret @@ -658,16 +798,19 @@ func (o *IntakeResponse) GetTopic() (ret IntakeResponseGetTopicRetType) { // GetTopicOk returns a tuple with the Topic field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetTopicOk() (ret IntakeResponseGetTopicRetType, ok bool) { return getIntakeResponseGetTopicAttributeTypeOk(o.Topic) } // SetTopic sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetTopic(v IntakeResponseGetTopicRetType) { setIntakeResponseGetTopicAttributeType(&o.Topic, v) } // GetUndeliveredMessageCount returns the UndeliveredMessageCount field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetUndeliveredMessageCount() (res IntakeResponseGetUndeliveredMessageCountRetType) { res, _ = o.GetUndeliveredMessageCountOk() return @@ -675,22 +818,26 @@ func (o *IntakeResponse) GetUndeliveredMessageCount() (res IntakeResponseGetUnde // GetUndeliveredMessageCountOk returns a tuple with the UndeliveredMessageCount field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetUndeliveredMessageCountOk() (ret IntakeResponseGetUndeliveredMessageCountRetType, ok bool) { return getIntakeResponseGetUndeliveredMessageCountAttributeTypeOk(o.UndeliveredMessageCount) } // HasUndeliveredMessageCount returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) HasUndeliveredMessageCount() bool { _, ok := o.GetUndeliveredMessageCountOk() return ok } // SetUndeliveredMessageCount gets a reference to the given int64 and assigns it to the UndeliveredMessageCount field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetUndeliveredMessageCount(v IntakeResponseGetUndeliveredMessageCountRetType) { setIntakeResponseGetUndeliveredMessageCountAttributeType(&o.UndeliveredMessageCount, v) } // GetUri returns the Uri field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetUri() (ret IntakeResponseGetUriRetType) { ret, _ = o.GetUriOk() return ret @@ -698,15 +845,18 @@ func (o *IntakeResponse) GetUri() (ret IntakeResponseGetUriRetType) { // GetUriOk returns a tuple with the Uri field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) GetUriOk() (ret IntakeResponseGetUriRetType, ok bool) { return getIntakeResponseGetUriAttributeTypeOk(o.Uri) } // SetUri sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeResponse) SetUri(v IntakeResponseGetUriRetType) { setIntakeResponseGetUriAttributeType(&o.Uri, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o IntakeResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getIntakeResponseGetCatalogAttributeTypeOk(o.Catalog); ok { @@ -751,37 +901,45 @@ func (o IntakeResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableIntakeResponse struct { value *IntakeResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeResponse) Get() *IntakeResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeResponse) Set(val *IntakeResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableIntakeResponse(val *IntakeResponse) *NullableIntakeResponse { return &NullableIntakeResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_intake_runner_response.go b/services/intake/model_intake_runner_response.go index c853c7597..8a734bac8 100644 --- a/services/intake/model_intake_runner_response.go +++ b/services/intake/model_intake_runner_response.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -24,10 +25,16 @@ var _ MappedNullable = &IntakeRunnerResponse{} */ // isDateTime +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetCreateTimeAttributeType = *time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetCreateTimeArgType = time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetCreateTimeRetType = time.Time +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetCreateTimeAttributeTypeOk(arg IntakeRunnerResponseGetCreateTimeAttributeType) (ret IntakeRunnerResponseGetCreateTimeRetType, ok bool) { if arg == nil { return ret, false @@ -35,6 +42,7 @@ func getIntakeRunnerResponseGetCreateTimeAttributeTypeOk(arg IntakeRunnerRespons return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetCreateTimeAttributeType(arg *IntakeRunnerResponseGetCreateTimeAttributeType, val IntakeRunnerResponseGetCreateTimeRetType) { *arg = &val } @@ -44,8 +52,10 @@ func setIntakeRunnerResponseGetCreateTimeAttributeType(arg *IntakeRunnerResponse */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetDescriptionAttributeTypeOk(arg IntakeRunnerResponseGetDescriptionAttributeType) (ret IntakeRunnerResponseGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +63,15 @@ func getIntakeRunnerResponseGetDescriptionAttributeTypeOk(arg IntakeRunnerRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetDescriptionAttributeType(arg *IntakeRunnerResponseGetDescriptionAttributeType, val IntakeRunnerResponseGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetDescriptionRetType = string /* @@ -65,8 +79,10 @@ type IntakeRunnerResponseGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetDisplayNameAttributeTypeOk(arg IntakeRunnerResponseGetDisplayNameAttributeType) (ret IntakeRunnerResponseGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +90,15 @@ func getIntakeRunnerResponseGetDisplayNameAttributeTypeOk(arg IntakeRunnerRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetDisplayNameAttributeType(arg *IntakeRunnerResponseGetDisplayNameAttributeType, val IntakeRunnerResponseGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetDisplayNameRetType = string /* @@ -86,8 +106,10 @@ type IntakeRunnerResponseGetDisplayNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetIdAttributeTypeOk(arg IntakeRunnerResponseGetIdAttributeType) (ret IntakeRunnerResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -95,11 +117,15 @@ func getIntakeRunnerResponseGetIdAttributeTypeOk(arg IntakeRunnerResponseGetIdAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetIdAttributeType(arg *IntakeRunnerResponseGetIdAttributeType, val IntakeRunnerResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetIdRetType = string /* @@ -107,10 +133,16 @@ type IntakeRunnerResponseGetIdRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetLabelsAttributeTypeOk(arg IntakeRunnerResponseGetLabelsAttributeType) (ret IntakeRunnerResponseGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -118,6 +150,7 @@ func getIntakeRunnerResponseGetLabelsAttributeTypeOk(arg IntakeRunnerResponseGet return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetLabelsAttributeType(arg *IntakeRunnerResponseGetLabelsAttributeType, val IntakeRunnerResponseGetLabelsRetType) { *arg = val } @@ -127,10 +160,16 @@ func setIntakeRunnerResponseGetLabelsAttributeType(arg *IntakeRunnerResponseGetL */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetMaxMessageSizeKiBAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetMaxMessageSizeKiBArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetMaxMessageSizeKiBRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetMaxMessageSizeKiBAttributeTypeOk(arg IntakeRunnerResponseGetMaxMessageSizeKiBAttributeType) (ret IntakeRunnerResponseGetMaxMessageSizeKiBRetType, ok bool) { if arg == nil { return ret, false @@ -138,6 +177,7 @@ func getIntakeRunnerResponseGetMaxMessageSizeKiBAttributeTypeOk(arg IntakeRunner return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetMaxMessageSizeKiBAttributeType(arg *IntakeRunnerResponseGetMaxMessageSizeKiBAttributeType, val IntakeRunnerResponseGetMaxMessageSizeKiBRetType) { *arg = &val } @@ -147,10 +187,16 @@ func setIntakeRunnerResponseGetMaxMessageSizeKiBAttributeType(arg *IntakeRunnerR */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetMaxMessagesPerHourAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetMaxMessagesPerHourArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetMaxMessagesPerHourRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetMaxMessagesPerHourAttributeTypeOk(arg IntakeRunnerResponseGetMaxMessagesPerHourAttributeType) (ret IntakeRunnerResponseGetMaxMessagesPerHourRetType, ok bool) { if arg == nil { return ret, false @@ -158,6 +204,7 @@ func getIntakeRunnerResponseGetMaxMessagesPerHourAttributeTypeOk(arg IntakeRunne return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetMaxMessagesPerHourAttributeType(arg *IntakeRunnerResponseGetMaxMessagesPerHourAttributeType, val IntakeRunnerResponseGetMaxMessagesPerHourRetType) { *arg = &val } @@ -170,22 +217,28 @@ func setIntakeRunnerResponseGetMaxMessagesPerHourAttributeType(arg *IntakeRunner // IntakeRunnerResponseState The current state of the resource. // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseState string // List of State const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INTAKERUNNERRESPONSESTATE_RECONCILING IntakeRunnerResponseState = "reconciling" - INTAKERUNNERRESPONSESTATE_ACTIVE IntakeRunnerResponseState = "active" - INTAKERUNNERRESPONSESTATE_DELETING IntakeRunnerResponseState = "deleting" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INTAKERUNNERRESPONSESTATE_ACTIVE IntakeRunnerResponseState = "active" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INTAKERUNNERRESPONSESTATE_DELETING IntakeRunnerResponseState = "deleting" ) // All allowed values of IntakeRunnerResponse enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedIntakeRunnerResponseStateEnumValues = []IntakeRunnerResponseState{ "reconciling", "active", "deleting", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *IntakeRunnerResponseState) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -213,6 +266,7 @@ func (v *IntakeRunnerResponseState) UnmarshalJSON(src []byte) error { // NewIntakeRunnerResponseStateFromValue returns a pointer to a valid IntakeRunnerResponseState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeRunnerResponseStateFromValue(v IntakeRunnerResponseState) (*IntakeRunnerResponseState, error) { ev := IntakeRunnerResponseState(v) if ev.IsValid() { @@ -223,6 +277,7 @@ func NewIntakeRunnerResponseStateFromValue(v IntakeRunnerResponseState) (*Intake } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v IntakeRunnerResponseState) IsValid() bool { for _, existing := range AllowedIntakeRunnerResponseStateEnumValues { if existing == v { @@ -233,50 +288,65 @@ func (v IntakeRunnerResponseState) IsValid() bool { } // Ptr returns reference to StateState value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v IntakeRunnerResponseState) Ptr() *IntakeRunnerResponseState { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableIntakeRunnerResponseState struct { value *IntakeRunnerResponseState isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeRunnerResponseState) Get() *IntakeRunnerResponseState { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeRunnerResponseState) Set(val *IntakeRunnerResponseState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeRunnerResponseState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeRunnerResponseState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableIntakeRunnerResponseState(val *IntakeRunnerResponseState) *NullableIntakeRunnerResponseState { return &NullableIntakeRunnerResponseState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeRunnerResponseState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeRunnerResponseState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetStateAttributeType = *IntakeRunnerResponseState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetStateArgType = IntakeRunnerResponseState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetStateRetType = IntakeRunnerResponseState +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetStateAttributeTypeOk(arg IntakeRunnerResponseGetStateAttributeType) (ret IntakeRunnerResponseGetStateRetType, ok bool) { if arg == nil { return ret, false @@ -284,6 +354,7 @@ func getIntakeRunnerResponseGetStateAttributeTypeOk(arg IntakeRunnerResponseGetS return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetStateAttributeType(arg *IntakeRunnerResponseGetStateAttributeType, val IntakeRunnerResponseGetStateRetType) { *arg = &val } @@ -293,8 +364,10 @@ func setIntakeRunnerResponseGetStateAttributeType(arg *IntakeRunnerResponseGetSt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetUriAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeRunnerResponseGetUriAttributeTypeOk(arg IntakeRunnerResponseGetUriAttributeType) (ret IntakeRunnerResponseGetUriRetType, ok bool) { if arg == nil { return ret, false @@ -302,14 +375,19 @@ func getIntakeRunnerResponseGetUriAttributeTypeOk(arg IntakeRunnerResponseGetUri return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeRunnerResponseGetUriAttributeType(arg *IntakeRunnerResponseGetUriAttributeType, val IntakeRunnerResponseGetUriRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetUriArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponseGetUriRetType = string // IntakeRunnerResponse struct for IntakeRunnerResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeRunnerResponse struct { // The point in time the resource was created. // REQUIRED @@ -338,12 +416,14 @@ type IntakeRunnerResponse struct { Uri IntakeRunnerResponseGetUriAttributeType `json:"uri" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _IntakeRunnerResponse IntakeRunnerResponse // NewIntakeRunnerResponse instantiates a new IntakeRunnerResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeRunnerResponse(createTime IntakeRunnerResponseGetCreateTimeArgType, displayName IntakeRunnerResponseGetDisplayNameArgType, id IntakeRunnerResponseGetIdArgType, maxMessageSizeKiB IntakeRunnerResponseGetMaxMessageSizeKiBArgType, maxMessagesPerHour IntakeRunnerResponseGetMaxMessagesPerHourArgType, state IntakeRunnerResponseGetStateArgType, uri IntakeRunnerResponseGetUriArgType) *IntakeRunnerResponse { this := IntakeRunnerResponse{} setIntakeRunnerResponseGetCreateTimeAttributeType(&this.CreateTime, createTime) @@ -359,12 +439,14 @@ func NewIntakeRunnerResponse(createTime IntakeRunnerResponseGetCreateTimeArgType // NewIntakeRunnerResponseWithDefaults instantiates a new IntakeRunnerResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeRunnerResponseWithDefaults() *IntakeRunnerResponse { this := IntakeRunnerResponse{} return &this } // GetCreateTime returns the CreateTime field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetCreateTime() (ret IntakeRunnerResponseGetCreateTimeRetType) { ret, _ = o.GetCreateTimeOk() return ret @@ -372,16 +454,19 @@ func (o *IntakeRunnerResponse) GetCreateTime() (ret IntakeRunnerResponseGetCreat // GetCreateTimeOk returns a tuple with the CreateTime field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetCreateTimeOk() (ret IntakeRunnerResponseGetCreateTimeRetType, ok bool) { return getIntakeRunnerResponseGetCreateTimeAttributeTypeOk(o.CreateTime) } // SetCreateTime sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetCreateTime(v IntakeRunnerResponseGetCreateTimeRetType) { setIntakeRunnerResponseGetCreateTimeAttributeType(&o.CreateTime, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetDescription() (res IntakeRunnerResponseGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -389,22 +474,26 @@ func (o *IntakeRunnerResponse) GetDescription() (res IntakeRunnerResponseGetDesc // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetDescriptionOk() (ret IntakeRunnerResponseGetDescriptionRetType, ok bool) { return getIntakeRunnerResponseGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetDescription(v IntakeRunnerResponseGetDescriptionRetType) { setIntakeRunnerResponseGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetDisplayName() (ret IntakeRunnerResponseGetDisplayNameRetType) { ret, _ = o.GetDisplayNameOk() return ret @@ -412,16 +501,19 @@ func (o *IntakeRunnerResponse) GetDisplayName() (ret IntakeRunnerResponseGetDisp // GetDisplayNameOk returns a tuple with the DisplayName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetDisplayNameOk() (ret IntakeRunnerResponseGetDisplayNameRetType, ok bool) { return getIntakeRunnerResponseGetDisplayNameAttributeTypeOk(o.DisplayName) } // SetDisplayName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetDisplayName(v IntakeRunnerResponseGetDisplayNameRetType) { setIntakeRunnerResponseGetDisplayNameAttributeType(&o.DisplayName, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetId() (ret IntakeRunnerResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -429,16 +521,19 @@ func (o *IntakeRunnerResponse) GetId() (ret IntakeRunnerResponseGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetIdOk() (ret IntakeRunnerResponseGetIdRetType, ok bool) { return getIntakeRunnerResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetId(v IntakeRunnerResponseGetIdRetType) { setIntakeRunnerResponseGetIdAttributeType(&o.Id, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetLabels() (res IntakeRunnerResponseGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -447,22 +542,26 @@ func (o *IntakeRunnerResponse) GetLabels() (res IntakeRunnerResponseGetLabelsRet // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetLabelsOk() (ret IntakeRunnerResponseGetLabelsRetType, ok bool) { return getIntakeRunnerResponseGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetLabels(v IntakeRunnerResponseGetLabelsRetType) { setIntakeRunnerResponseGetLabelsAttributeType(&o.Labels, v) } // GetMaxMessageSizeKiB returns the MaxMessageSizeKiB field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetMaxMessageSizeKiB() (ret IntakeRunnerResponseGetMaxMessageSizeKiBRetType) { ret, _ = o.GetMaxMessageSizeKiBOk() return ret @@ -470,16 +569,19 @@ func (o *IntakeRunnerResponse) GetMaxMessageSizeKiB() (ret IntakeRunnerResponseG // GetMaxMessageSizeKiBOk returns a tuple with the MaxMessageSizeKiB field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetMaxMessageSizeKiBOk() (ret IntakeRunnerResponseGetMaxMessageSizeKiBRetType, ok bool) { return getIntakeRunnerResponseGetMaxMessageSizeKiBAttributeTypeOk(o.MaxMessageSizeKiB) } // SetMaxMessageSizeKiB sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetMaxMessageSizeKiB(v IntakeRunnerResponseGetMaxMessageSizeKiBRetType) { setIntakeRunnerResponseGetMaxMessageSizeKiBAttributeType(&o.MaxMessageSizeKiB, v) } // GetMaxMessagesPerHour returns the MaxMessagesPerHour field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetMaxMessagesPerHour() (ret IntakeRunnerResponseGetMaxMessagesPerHourRetType) { ret, _ = o.GetMaxMessagesPerHourOk() return ret @@ -487,16 +589,19 @@ func (o *IntakeRunnerResponse) GetMaxMessagesPerHour() (ret IntakeRunnerResponse // GetMaxMessagesPerHourOk returns a tuple with the MaxMessagesPerHour field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetMaxMessagesPerHourOk() (ret IntakeRunnerResponseGetMaxMessagesPerHourRetType, ok bool) { return getIntakeRunnerResponseGetMaxMessagesPerHourAttributeTypeOk(o.MaxMessagesPerHour) } // SetMaxMessagesPerHour sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetMaxMessagesPerHour(v IntakeRunnerResponseGetMaxMessagesPerHourRetType) { setIntakeRunnerResponseGetMaxMessagesPerHourAttributeType(&o.MaxMessagesPerHour, v) } // GetState returns the State field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetState() (ret IntakeRunnerResponseGetStateRetType) { ret, _ = o.GetStateOk() return ret @@ -504,16 +609,19 @@ func (o *IntakeRunnerResponse) GetState() (ret IntakeRunnerResponseGetStateRetTy // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetStateOk() (ret IntakeRunnerResponseGetStateRetType, ok bool) { return getIntakeRunnerResponseGetStateAttributeTypeOk(o.State) } // SetState sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetState(v IntakeRunnerResponseGetStateRetType) { setIntakeRunnerResponseGetStateAttributeType(&o.State, v) } // GetUri returns the Uri field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetUri() (ret IntakeRunnerResponseGetUriRetType) { ret, _ = o.GetUriOk() return ret @@ -521,15 +629,18 @@ func (o *IntakeRunnerResponse) GetUri() (ret IntakeRunnerResponseGetUriRetType) // GetUriOk returns a tuple with the Uri field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) GetUriOk() (ret IntakeRunnerResponseGetUriRetType, ok bool) { return getIntakeRunnerResponseGetUriAttributeTypeOk(o.Uri) } // SetUri sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeRunnerResponse) SetUri(v IntakeRunnerResponseGetUriRetType) { setIntakeRunnerResponseGetUriAttributeType(&o.Uri, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o IntakeRunnerResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getIntakeRunnerResponseGetCreateTimeAttributeTypeOk(o.CreateTime); ok { @@ -562,37 +673,45 @@ func (o IntakeRunnerResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableIntakeRunnerResponse struct { value *IntakeRunnerResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeRunnerResponse) Get() *IntakeRunnerResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeRunnerResponse) Set(val *IntakeRunnerResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeRunnerResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeRunnerResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableIntakeRunnerResponse(val *IntakeRunnerResponse) *NullableIntakeRunnerResponse { return &NullableIntakeRunnerResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeRunnerResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeRunnerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_intake_user_response.go b/services/intake/model_intake_user_response.go index 49fcc419b..450bfaa73 100644 --- a/services/intake/model_intake_user_response.go +++ b/services/intake/model_intake_user_response.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -24,10 +25,16 @@ var _ MappedNullable = &IntakeUserResponse{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetClientConfigAttributeType = *ClientConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetClientConfigArgType = ClientConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetClientConfigRetType = ClientConfig +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetClientConfigAttributeTypeOk(arg IntakeUserResponseGetClientConfigAttributeType) (ret IntakeUserResponseGetClientConfigRetType, ok bool) { if arg == nil { return ret, false @@ -35,6 +42,7 @@ func getIntakeUserResponseGetClientConfigAttributeTypeOk(arg IntakeUserResponseG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetClientConfigAttributeType(arg *IntakeUserResponseGetClientConfigAttributeType, val IntakeUserResponseGetClientConfigRetType) { *arg = &val } @@ -44,10 +52,16 @@ func setIntakeUserResponseGetClientConfigAttributeType(arg *IntakeUserResponseGe */ // isDateTime +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetCreateTimeAttributeType = *time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetCreateTimeArgType = time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetCreateTimeRetType = time.Time +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetCreateTimeAttributeTypeOk(arg IntakeUserResponseGetCreateTimeAttributeType) (ret IntakeUserResponseGetCreateTimeRetType, ok bool) { if arg == nil { return ret, false @@ -55,6 +69,7 @@ func getIntakeUserResponseGetCreateTimeAttributeTypeOk(arg IntakeUserResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetCreateTimeAttributeType(arg *IntakeUserResponseGetCreateTimeAttributeType, val IntakeUserResponseGetCreateTimeRetType) { *arg = &val } @@ -64,8 +79,10 @@ func setIntakeUserResponseGetCreateTimeAttributeType(arg *IntakeUserResponseGetC */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetDescriptionAttributeTypeOk(arg IntakeUserResponseGetDescriptionAttributeType) (ret IntakeUserResponseGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +90,15 @@ func getIntakeUserResponseGetDescriptionAttributeTypeOk(arg IntakeUserResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetDescriptionAttributeType(arg *IntakeUserResponseGetDescriptionAttributeType, val IntakeUserResponseGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetDescriptionRetType = string /* @@ -85,8 +106,10 @@ type IntakeUserResponseGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetDisplayNameAttributeTypeOk(arg IntakeUserResponseGetDisplayNameAttributeType) (ret IntakeUserResponseGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +117,15 @@ func getIntakeUserResponseGetDisplayNameAttributeTypeOk(arg IntakeUserResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetDisplayNameAttributeType(arg *IntakeUserResponseGetDisplayNameAttributeType, val IntakeUserResponseGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetDisplayNameRetType = string /* @@ -106,8 +133,10 @@ type IntakeUserResponseGetDisplayNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetIdAttributeTypeOk(arg IntakeUserResponseGetIdAttributeType) (ret IntakeUserResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -115,11 +144,15 @@ func getIntakeUserResponseGetIdAttributeTypeOk(arg IntakeUserResponseGetIdAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetIdAttributeType(arg *IntakeUserResponseGetIdAttributeType, val IntakeUserResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetIdRetType = string /* @@ -127,10 +160,16 @@ type IntakeUserResponseGetIdRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetLabelsAttributeTypeOk(arg IntakeUserResponseGetLabelsAttributeType) (ret IntakeUserResponseGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -138,6 +177,7 @@ func getIntakeUserResponseGetLabelsAttributeTypeOk(arg IntakeUserResponseGetLabe return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetLabelsAttributeType(arg *IntakeUserResponseGetLabelsAttributeType, val IntakeUserResponseGetLabelsRetType) { *arg = val } @@ -150,22 +190,28 @@ func setIntakeUserResponseGetLabelsAttributeType(arg *IntakeUserResponseGetLabel // IntakeUserResponseState The current state of the resource. // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseState string // List of State const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INTAKEUSERRESPONSESTATE_RECONCILING IntakeUserResponseState = "reconciling" - INTAKEUSERRESPONSESTATE_ACTIVE IntakeUserResponseState = "active" - INTAKEUSERRESPONSESTATE_DELETING IntakeUserResponseState = "deleting" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INTAKEUSERRESPONSESTATE_ACTIVE IntakeUserResponseState = "active" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INTAKEUSERRESPONSESTATE_DELETING IntakeUserResponseState = "deleting" ) // All allowed values of IntakeUserResponse enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedIntakeUserResponseStateEnumValues = []IntakeUserResponseState{ "reconciling", "active", "deleting", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *IntakeUserResponseState) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -193,6 +239,7 @@ func (v *IntakeUserResponseState) UnmarshalJSON(src []byte) error { // NewIntakeUserResponseStateFromValue returns a pointer to a valid IntakeUserResponseState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeUserResponseStateFromValue(v IntakeUserResponseState) (*IntakeUserResponseState, error) { ev := IntakeUserResponseState(v) if ev.IsValid() { @@ -203,6 +250,7 @@ func NewIntakeUserResponseStateFromValue(v IntakeUserResponseState) (*IntakeUser } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v IntakeUserResponseState) IsValid() bool { for _, existing := range AllowedIntakeUserResponseStateEnumValues { if existing == v { @@ -213,50 +261,65 @@ func (v IntakeUserResponseState) IsValid() bool { } // Ptr returns reference to StateState value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v IntakeUserResponseState) Ptr() *IntakeUserResponseState { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableIntakeUserResponseState struct { value *IntakeUserResponseState isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeUserResponseState) Get() *IntakeUserResponseState { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeUserResponseState) Set(val *IntakeUserResponseState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeUserResponseState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeUserResponseState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableIntakeUserResponseState(val *IntakeUserResponseState) *NullableIntakeUserResponseState { return &NullableIntakeUserResponseState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeUserResponseState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeUserResponseState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetStateAttributeType = *IntakeUserResponseState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetStateArgType = IntakeUserResponseState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetStateRetType = IntakeUserResponseState +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetStateAttributeTypeOk(arg IntakeUserResponseGetStateAttributeType) (ret IntakeUserResponseGetStateRetType, ok bool) { if arg == nil { return ret, false @@ -264,6 +327,7 @@ func getIntakeUserResponseGetStateAttributeTypeOk(arg IntakeUserResponseGetState return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetStateAttributeType(arg *IntakeUserResponseGetStateAttributeType, val IntakeUserResponseGetStateRetType) { *arg = &val } @@ -273,10 +337,16 @@ func setIntakeUserResponseGetStateAttributeType(arg *IntakeUserResponseGetStateA */ // isEnumRef +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetTypeAttributeType = *UserType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetTypeArgType = UserType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetTypeRetType = UserType +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetTypeAttributeTypeOk(arg IntakeUserResponseGetTypeAttributeType) (ret IntakeUserResponseGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -284,6 +354,7 @@ func getIntakeUserResponseGetTypeAttributeTypeOk(arg IntakeUserResponseGetTypeAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetTypeAttributeType(arg *IntakeUserResponseGetTypeAttributeType, val IntakeUserResponseGetTypeRetType) { *arg = &val } @@ -293,8 +364,10 @@ func setIntakeUserResponseGetTypeAttributeType(arg *IntakeUserResponseGetTypeAtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetUserAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getIntakeUserResponseGetUserAttributeTypeOk(arg IntakeUserResponseGetUserAttributeType) (ret IntakeUserResponseGetUserRetType, ok bool) { if arg == nil { return ret, false @@ -302,14 +375,19 @@ func getIntakeUserResponseGetUserAttributeTypeOk(arg IntakeUserResponseGetUserAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setIntakeUserResponseGetUserAttributeType(arg *IntakeUserResponseGetUserAttributeType, val IntakeUserResponseGetUserRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetUserArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponseGetUserRetType = string // IntakeUserResponse struct for IntakeUserResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type IntakeUserResponse struct { ClientConfig IntakeUserResponseGetClientConfigAttributeType `json:"clientConfig,omitempty"` // The point in time the resource was created. @@ -335,12 +413,14 @@ type IntakeUserResponse struct { User IntakeUserResponseGetUserAttributeType `json:"user" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _IntakeUserResponse IntakeUserResponse // NewIntakeUserResponse instantiates a new IntakeUserResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeUserResponse(createTime IntakeUserResponseGetCreateTimeArgType, displayName IntakeUserResponseGetDisplayNameArgType, id IntakeUserResponseGetIdArgType, state IntakeUserResponseGetStateArgType, types IntakeUserResponseGetTypeArgType, user IntakeUserResponseGetUserArgType) *IntakeUserResponse { this := IntakeUserResponse{} setIntakeUserResponseGetCreateTimeAttributeType(&this.CreateTime, createTime) @@ -355,6 +435,7 @@ func NewIntakeUserResponse(createTime IntakeUserResponseGetCreateTimeArgType, di // NewIntakeUserResponseWithDefaults instantiates a new IntakeUserResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewIntakeUserResponseWithDefaults() *IntakeUserResponse { this := IntakeUserResponse{} var types UserType = USERTYPE_INTAKE @@ -363,6 +444,7 @@ func NewIntakeUserResponseWithDefaults() *IntakeUserResponse { } // GetClientConfig returns the ClientConfig field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetClientConfig() (res IntakeUserResponseGetClientConfigRetType) { res, _ = o.GetClientConfigOk() return @@ -370,22 +452,26 @@ func (o *IntakeUserResponse) GetClientConfig() (res IntakeUserResponseGetClientC // GetClientConfigOk returns a tuple with the ClientConfig field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetClientConfigOk() (ret IntakeUserResponseGetClientConfigRetType, ok bool) { return getIntakeUserResponseGetClientConfigAttributeTypeOk(o.ClientConfig) } // HasClientConfig returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) HasClientConfig() bool { _, ok := o.GetClientConfigOk() return ok } // SetClientConfig gets a reference to the given ClientConfig and assigns it to the ClientConfig field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetClientConfig(v IntakeUserResponseGetClientConfigRetType) { setIntakeUserResponseGetClientConfigAttributeType(&o.ClientConfig, v) } // GetCreateTime returns the CreateTime field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetCreateTime() (ret IntakeUserResponseGetCreateTimeRetType) { ret, _ = o.GetCreateTimeOk() return ret @@ -393,16 +479,19 @@ func (o *IntakeUserResponse) GetCreateTime() (ret IntakeUserResponseGetCreateTim // GetCreateTimeOk returns a tuple with the CreateTime field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetCreateTimeOk() (ret IntakeUserResponseGetCreateTimeRetType, ok bool) { return getIntakeUserResponseGetCreateTimeAttributeTypeOk(o.CreateTime) } // SetCreateTime sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetCreateTime(v IntakeUserResponseGetCreateTimeRetType) { setIntakeUserResponseGetCreateTimeAttributeType(&o.CreateTime, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetDescription() (res IntakeUserResponseGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -410,22 +499,26 @@ func (o *IntakeUserResponse) GetDescription() (res IntakeUserResponseGetDescript // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetDescriptionOk() (ret IntakeUserResponseGetDescriptionRetType, ok bool) { return getIntakeUserResponseGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetDescription(v IntakeUserResponseGetDescriptionRetType) { setIntakeUserResponseGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetDisplayName() (ret IntakeUserResponseGetDisplayNameRetType) { ret, _ = o.GetDisplayNameOk() return ret @@ -433,16 +526,19 @@ func (o *IntakeUserResponse) GetDisplayName() (ret IntakeUserResponseGetDisplayN // GetDisplayNameOk returns a tuple with the DisplayName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetDisplayNameOk() (ret IntakeUserResponseGetDisplayNameRetType, ok bool) { return getIntakeUserResponseGetDisplayNameAttributeTypeOk(o.DisplayName) } // SetDisplayName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetDisplayName(v IntakeUserResponseGetDisplayNameRetType) { setIntakeUserResponseGetDisplayNameAttributeType(&o.DisplayName, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetId() (ret IntakeUserResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -450,16 +546,19 @@ func (o *IntakeUserResponse) GetId() (ret IntakeUserResponseGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetIdOk() (ret IntakeUserResponseGetIdRetType, ok bool) { return getIntakeUserResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetId(v IntakeUserResponseGetIdRetType) { setIntakeUserResponseGetIdAttributeType(&o.Id, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetLabels() (res IntakeUserResponseGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -468,22 +567,26 @@ func (o *IntakeUserResponse) GetLabels() (res IntakeUserResponseGetLabelsRetType // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetLabelsOk() (ret IntakeUserResponseGetLabelsRetType, ok bool) { return getIntakeUserResponseGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetLabels(v IntakeUserResponseGetLabelsRetType) { setIntakeUserResponseGetLabelsAttributeType(&o.Labels, v) } // GetState returns the State field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetState() (ret IntakeUserResponseGetStateRetType) { ret, _ = o.GetStateOk() return ret @@ -491,16 +594,19 @@ func (o *IntakeUserResponse) GetState() (ret IntakeUserResponseGetStateRetType) // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetStateOk() (ret IntakeUserResponseGetStateRetType, ok bool) { return getIntakeUserResponseGetStateAttributeTypeOk(o.State) } // SetState sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetState(v IntakeUserResponseGetStateRetType) { setIntakeUserResponseGetStateAttributeType(&o.State, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetType() (ret IntakeUserResponseGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -508,16 +614,19 @@ func (o *IntakeUserResponse) GetType() (ret IntakeUserResponseGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetTypeOk() (ret IntakeUserResponseGetTypeRetType, ok bool) { return getIntakeUserResponseGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetType(v IntakeUserResponseGetTypeRetType) { setIntakeUserResponseGetTypeAttributeType(&o.Type, v) } // GetUser returns the User field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetUser() (ret IntakeUserResponseGetUserRetType) { ret, _ = o.GetUserOk() return ret @@ -525,15 +634,18 @@ func (o *IntakeUserResponse) GetUser() (ret IntakeUserResponseGetUserRetType) { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) GetUserOk() (ret IntakeUserResponseGetUserRetType, ok bool) { return getIntakeUserResponseGetUserAttributeTypeOk(o.User) } // SetUser sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *IntakeUserResponse) SetUser(v IntakeUserResponseGetUserRetType) { setIntakeUserResponseGetUserAttributeType(&o.User, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o IntakeUserResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getIntakeUserResponseGetClientConfigAttributeTypeOk(o.ClientConfig); ok { @@ -566,37 +678,45 @@ func (o IntakeUserResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableIntakeUserResponse struct { value *IntakeUserResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeUserResponse) Get() *IntakeUserResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeUserResponse) Set(val *IntakeUserResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeUserResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeUserResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableIntakeUserResponse(val *IntakeUserResponse) *NullableIntakeUserResponse { return &NullableIntakeUserResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableIntakeUserResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableIntakeUserResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_list_intake_runners_response.go b/services/intake/model_list_intake_runners_response.go index 670651926..14c6380cb 100644 --- a/services/intake/model_list_intake_runners_response.go +++ b/services/intake/model_list_intake_runners_response.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListIntakeRunnersResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeRunnersResponseGetIntakeRunnersAttributeType = *[]IntakeRunnerResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeRunnersResponseGetIntakeRunnersArgType = []IntakeRunnerResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeRunnersResponseGetIntakeRunnersRetType = []IntakeRunnerResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListIntakeRunnersResponseGetIntakeRunnersAttributeTypeOk(arg ListIntakeRunnersResponseGetIntakeRunnersAttributeType) (ret ListIntakeRunnersResponseGetIntakeRunnersRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getListIntakeRunnersResponseGetIntakeRunnersAttributeTypeOk(arg ListIntakeR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListIntakeRunnersResponseGetIntakeRunnersAttributeType(arg *ListIntakeRunnersResponseGetIntakeRunnersAttributeType, val ListIntakeRunnersResponseGetIntakeRunnersRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setListIntakeRunnersResponseGetIntakeRunnersAttributeType(arg *ListIntakeRu */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeRunnersResponseGetNextPageTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListIntakeRunnersResponseGetNextPageTokenAttributeTypeOk(arg ListIntakeRunnersResponseGetNextPageTokenAttributeType) (ret ListIntakeRunnersResponseGetNextPageTokenRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getListIntakeRunnersResponseGetNextPageTokenAttributeTypeOk(arg ListIntakeR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListIntakeRunnersResponseGetNextPageTokenAttributeType(arg *ListIntakeRunnersResponseGetNextPageTokenAttributeType, val ListIntakeRunnersResponseGetNextPageTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeRunnersResponseGetNextPageTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeRunnersResponseGetNextPageTokenRetType = string // ListIntakeRunnersResponse struct for ListIntakeRunnersResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeRunnersResponse struct { // REQUIRED IntakeRunners ListIntakeRunnersResponseGetIntakeRunnersAttributeType `json:"intakeRunners" required:"true"` @@ -66,12 +81,14 @@ type ListIntakeRunnersResponse struct { NextPageToken ListIntakeRunnersResponseGetNextPageTokenAttributeType `json:"nextPageToken,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListIntakeRunnersResponse ListIntakeRunnersResponse // NewListIntakeRunnersResponse instantiates a new ListIntakeRunnersResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListIntakeRunnersResponse(intakeRunners ListIntakeRunnersResponseGetIntakeRunnersArgType) *ListIntakeRunnersResponse { this := ListIntakeRunnersResponse{} setListIntakeRunnersResponseGetIntakeRunnersAttributeType(&this.IntakeRunners, intakeRunners) @@ -81,12 +98,14 @@ func NewListIntakeRunnersResponse(intakeRunners ListIntakeRunnersResponseGetInta // NewListIntakeRunnersResponseWithDefaults instantiates a new ListIntakeRunnersResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListIntakeRunnersResponseWithDefaults() *ListIntakeRunnersResponse { this := ListIntakeRunnersResponse{} return &this } // GetIntakeRunners returns the IntakeRunners field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeRunnersResponse) GetIntakeRunners() (ret ListIntakeRunnersResponseGetIntakeRunnersRetType) { ret, _ = o.GetIntakeRunnersOk() return ret @@ -94,16 +113,19 @@ func (o *ListIntakeRunnersResponse) GetIntakeRunners() (ret ListIntakeRunnersRes // GetIntakeRunnersOk returns a tuple with the IntakeRunners field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeRunnersResponse) GetIntakeRunnersOk() (ret ListIntakeRunnersResponseGetIntakeRunnersRetType, ok bool) { return getListIntakeRunnersResponseGetIntakeRunnersAttributeTypeOk(o.IntakeRunners) } // SetIntakeRunners sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeRunnersResponse) SetIntakeRunners(v ListIntakeRunnersResponseGetIntakeRunnersRetType) { setListIntakeRunnersResponseGetIntakeRunnersAttributeType(&o.IntakeRunners, v) } // GetNextPageToken returns the NextPageToken field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeRunnersResponse) GetNextPageToken() (res ListIntakeRunnersResponseGetNextPageTokenRetType) { res, _ = o.GetNextPageTokenOk() return @@ -111,21 +133,25 @@ func (o *ListIntakeRunnersResponse) GetNextPageToken() (res ListIntakeRunnersRes // GetNextPageTokenOk returns a tuple with the NextPageToken field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeRunnersResponse) GetNextPageTokenOk() (ret ListIntakeRunnersResponseGetNextPageTokenRetType, ok bool) { return getListIntakeRunnersResponseGetNextPageTokenAttributeTypeOk(o.NextPageToken) } // HasNextPageToken returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeRunnersResponse) HasNextPageToken() bool { _, ok := o.GetNextPageTokenOk() return ok } // SetNextPageToken gets a reference to the given string and assigns it to the NextPageToken field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeRunnersResponse) SetNextPageToken(v ListIntakeRunnersResponseGetNextPageTokenRetType) { setListIntakeRunnersResponseGetNextPageTokenAttributeType(&o.NextPageToken, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListIntakeRunnersResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListIntakeRunnersResponseGetIntakeRunnersAttributeTypeOk(o.IntakeRunners); ok { @@ -137,37 +163,45 @@ func (o ListIntakeRunnersResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListIntakeRunnersResponse struct { value *ListIntakeRunnersResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakeRunnersResponse) Get() *ListIntakeRunnersResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakeRunnersResponse) Set(val *ListIntakeRunnersResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakeRunnersResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakeRunnersResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListIntakeRunnersResponse(val *ListIntakeRunnersResponse) *NullableListIntakeRunnersResponse { return &NullableListIntakeRunnersResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakeRunnersResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakeRunnersResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_list_intake_users_response.go b/services/intake/model_list_intake_users_response.go index 10eddbb8e..2fab6abdb 100644 --- a/services/intake/model_list_intake_users_response.go +++ b/services/intake/model_list_intake_users_response.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListIntakeUsersResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeUsersResponseGetIntakeUsersAttributeType = *[]IntakeUserResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeUsersResponseGetIntakeUsersArgType = []IntakeUserResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeUsersResponseGetIntakeUsersRetType = []IntakeUserResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListIntakeUsersResponseGetIntakeUsersAttributeTypeOk(arg ListIntakeUsersResponseGetIntakeUsersAttributeType) (ret ListIntakeUsersResponseGetIntakeUsersRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getListIntakeUsersResponseGetIntakeUsersAttributeTypeOk(arg ListIntakeUsers return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListIntakeUsersResponseGetIntakeUsersAttributeType(arg *ListIntakeUsersResponseGetIntakeUsersAttributeType, val ListIntakeUsersResponseGetIntakeUsersRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setListIntakeUsersResponseGetIntakeUsersAttributeType(arg *ListIntakeUsersR */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeUsersResponseGetNextPageTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListIntakeUsersResponseGetNextPageTokenAttributeTypeOk(arg ListIntakeUsersResponseGetNextPageTokenAttributeType) (ret ListIntakeUsersResponseGetNextPageTokenRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getListIntakeUsersResponseGetNextPageTokenAttributeTypeOk(arg ListIntakeUse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListIntakeUsersResponseGetNextPageTokenAttributeType(arg *ListIntakeUsersResponseGetNextPageTokenAttributeType, val ListIntakeUsersResponseGetNextPageTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeUsersResponseGetNextPageTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeUsersResponseGetNextPageTokenRetType = string // ListIntakeUsersResponse struct for ListIntakeUsersResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakeUsersResponse struct { // REQUIRED IntakeUsers ListIntakeUsersResponseGetIntakeUsersAttributeType `json:"intakeUsers" required:"true"` @@ -66,12 +81,14 @@ type ListIntakeUsersResponse struct { NextPageToken ListIntakeUsersResponseGetNextPageTokenAttributeType `json:"nextPageToken,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListIntakeUsersResponse ListIntakeUsersResponse // NewListIntakeUsersResponse instantiates a new ListIntakeUsersResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListIntakeUsersResponse(intakeUsers ListIntakeUsersResponseGetIntakeUsersArgType) *ListIntakeUsersResponse { this := ListIntakeUsersResponse{} setListIntakeUsersResponseGetIntakeUsersAttributeType(&this.IntakeUsers, intakeUsers) @@ -81,12 +98,14 @@ func NewListIntakeUsersResponse(intakeUsers ListIntakeUsersResponseGetIntakeUser // NewListIntakeUsersResponseWithDefaults instantiates a new ListIntakeUsersResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListIntakeUsersResponseWithDefaults() *ListIntakeUsersResponse { this := ListIntakeUsersResponse{} return &this } // GetIntakeUsers returns the IntakeUsers field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeUsersResponse) GetIntakeUsers() (ret ListIntakeUsersResponseGetIntakeUsersRetType) { ret, _ = o.GetIntakeUsersOk() return ret @@ -94,16 +113,19 @@ func (o *ListIntakeUsersResponse) GetIntakeUsers() (ret ListIntakeUsersResponseG // GetIntakeUsersOk returns a tuple with the IntakeUsers field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeUsersResponse) GetIntakeUsersOk() (ret ListIntakeUsersResponseGetIntakeUsersRetType, ok bool) { return getListIntakeUsersResponseGetIntakeUsersAttributeTypeOk(o.IntakeUsers) } // SetIntakeUsers sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeUsersResponse) SetIntakeUsers(v ListIntakeUsersResponseGetIntakeUsersRetType) { setListIntakeUsersResponseGetIntakeUsersAttributeType(&o.IntakeUsers, v) } // GetNextPageToken returns the NextPageToken field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeUsersResponse) GetNextPageToken() (res ListIntakeUsersResponseGetNextPageTokenRetType) { res, _ = o.GetNextPageTokenOk() return @@ -111,21 +133,25 @@ func (o *ListIntakeUsersResponse) GetNextPageToken() (res ListIntakeUsersRespons // GetNextPageTokenOk returns a tuple with the NextPageToken field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeUsersResponse) GetNextPageTokenOk() (ret ListIntakeUsersResponseGetNextPageTokenRetType, ok bool) { return getListIntakeUsersResponseGetNextPageTokenAttributeTypeOk(o.NextPageToken) } // HasNextPageToken returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeUsersResponse) HasNextPageToken() bool { _, ok := o.GetNextPageTokenOk() return ok } // SetNextPageToken gets a reference to the given string and assigns it to the NextPageToken field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakeUsersResponse) SetNextPageToken(v ListIntakeUsersResponseGetNextPageTokenRetType) { setListIntakeUsersResponseGetNextPageTokenAttributeType(&o.NextPageToken, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListIntakeUsersResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListIntakeUsersResponseGetIntakeUsersAttributeTypeOk(o.IntakeUsers); ok { @@ -137,37 +163,45 @@ func (o ListIntakeUsersResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListIntakeUsersResponse struct { value *ListIntakeUsersResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakeUsersResponse) Get() *ListIntakeUsersResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakeUsersResponse) Set(val *ListIntakeUsersResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakeUsersResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakeUsersResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListIntakeUsersResponse(val *ListIntakeUsersResponse) *NullableListIntakeUsersResponse { return &NullableListIntakeUsersResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakeUsersResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakeUsersResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_list_intakes_response.go b/services/intake/model_list_intakes_response.go index b272f2515..787370799 100644 --- a/services/intake/model_list_intakes_response.go +++ b/services/intake/model_list_intakes_response.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListIntakesResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakesResponseGetIntakesAttributeType = *[]IntakeResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakesResponseGetIntakesArgType = []IntakeResponse + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakesResponseGetIntakesRetType = []IntakeResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListIntakesResponseGetIntakesAttributeTypeOk(arg ListIntakesResponseGetIntakesAttributeType) (ret ListIntakesResponseGetIntakesRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getListIntakesResponseGetIntakesAttributeTypeOk(arg ListIntakesResponseGetI return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListIntakesResponseGetIntakesAttributeType(arg *ListIntakesResponseGetIntakesAttributeType, val ListIntakesResponseGetIntakesRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setListIntakesResponseGetIntakesAttributeType(arg *ListIntakesResponseGetIn */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakesResponseGetNextPageTokenAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListIntakesResponseGetNextPageTokenAttributeTypeOk(arg ListIntakesResponseGetNextPageTokenAttributeType) (ret ListIntakesResponseGetNextPageTokenRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getListIntakesResponseGetNextPageTokenAttributeTypeOk(arg ListIntakesRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListIntakesResponseGetNextPageTokenAttributeType(arg *ListIntakesResponseGetNextPageTokenAttributeType, val ListIntakesResponseGetNextPageTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakesResponseGetNextPageTokenArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakesResponseGetNextPageTokenRetType = string // ListIntakesResponse struct for ListIntakesResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListIntakesResponse struct { // REQUIRED Intakes ListIntakesResponseGetIntakesAttributeType `json:"intakes" required:"true"` @@ -66,12 +81,14 @@ type ListIntakesResponse struct { NextPageToken ListIntakesResponseGetNextPageTokenAttributeType `json:"nextPageToken,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListIntakesResponse ListIntakesResponse // NewListIntakesResponse instantiates a new ListIntakesResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListIntakesResponse(intakes ListIntakesResponseGetIntakesArgType) *ListIntakesResponse { this := ListIntakesResponse{} setListIntakesResponseGetIntakesAttributeType(&this.Intakes, intakes) @@ -81,12 +98,14 @@ func NewListIntakesResponse(intakes ListIntakesResponseGetIntakesArgType) *ListI // NewListIntakesResponseWithDefaults instantiates a new ListIntakesResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListIntakesResponseWithDefaults() *ListIntakesResponse { this := ListIntakesResponse{} return &this } // GetIntakes returns the Intakes field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakesResponse) GetIntakes() (ret ListIntakesResponseGetIntakesRetType) { ret, _ = o.GetIntakesOk() return ret @@ -94,16 +113,19 @@ func (o *ListIntakesResponse) GetIntakes() (ret ListIntakesResponseGetIntakesRet // GetIntakesOk returns a tuple with the Intakes field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakesResponse) GetIntakesOk() (ret ListIntakesResponseGetIntakesRetType, ok bool) { return getListIntakesResponseGetIntakesAttributeTypeOk(o.Intakes) } // SetIntakes sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakesResponse) SetIntakes(v ListIntakesResponseGetIntakesRetType) { setListIntakesResponseGetIntakesAttributeType(&o.Intakes, v) } // GetNextPageToken returns the NextPageToken field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakesResponse) GetNextPageToken() (res ListIntakesResponseGetNextPageTokenRetType) { res, _ = o.GetNextPageTokenOk() return @@ -111,21 +133,25 @@ func (o *ListIntakesResponse) GetNextPageToken() (res ListIntakesResponseGetNext // GetNextPageTokenOk returns a tuple with the NextPageToken field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakesResponse) GetNextPageTokenOk() (ret ListIntakesResponseGetNextPageTokenRetType, ok bool) { return getListIntakesResponseGetNextPageTokenAttributeTypeOk(o.NextPageToken) } // HasNextPageToken returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakesResponse) HasNextPageToken() bool { _, ok := o.GetNextPageTokenOk() return ok } // SetNextPageToken gets a reference to the given string and assigns it to the NextPageToken field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListIntakesResponse) SetNextPageToken(v ListIntakesResponseGetNextPageTokenRetType) { setListIntakesResponseGetNextPageTokenAttributeType(&o.NextPageToken, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListIntakesResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListIntakesResponseGetIntakesAttributeTypeOk(o.Intakes); ok { @@ -137,37 +163,45 @@ func (o ListIntakesResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListIntakesResponse struct { value *ListIntakesResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakesResponse) Get() *ListIntakesResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakesResponse) Set(val *ListIntakesResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakesResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakesResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListIntakesResponse(val *ListIntakesResponse) *NullableListIntakesResponse { return &NullableListIntakesResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListIntakesResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListIntakesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_partitioning_type.go b/services/intake/model_partitioning_type.go index 6e1b9c603..44db290de 100644 --- a/services/intake/model_partitioning_type.go +++ b/services/intake/model_partitioning_type.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -16,22 +17,28 @@ import ( ) // PartitioningType The target table's partitioning. * `none` disables partitioning, the default. * `intake-time` configures daily partitioning based on the automatically created ingestion time column `__intake_ts`. * `manual` allows arbitrary Iceberg partitioning expression to be set via `partitionBy`. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartitioningType string // List of partitioningType const ( - PARTITIONINGTYPE_NONE PartitioningType = "none" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTITIONINGTYPE_NONE PartitioningType = "none" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PARTITIONINGTYPE_INTAKE_TIME PartitioningType = "intake-time" - PARTITIONINGTYPE_MANUAL PartitioningType = "manual" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTITIONINGTYPE_MANUAL PartitioningType = "manual" ) // All allowed values of PartitioningType enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedPartitioningTypeEnumValues = []PartitioningType{ "none", "intake-time", "manual", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *PartitioningType) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -56,6 +63,7 @@ func (v *PartitioningType) UnmarshalJSON(src []byte) error { // NewPartitioningTypeFromValue returns a pointer to a valid PartitioningType // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartitioningTypeFromValue(v string) (*PartitioningType, error) { ev := PartitioningType(v) if ev.IsValid() { @@ -66,6 +74,7 @@ func NewPartitioningTypeFromValue(v string) (*PartitioningType, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v PartitioningType) IsValid() bool { for _, existing := range AllowedPartitioningTypeEnumValues { if existing == v { @@ -76,41 +85,50 @@ func (v PartitioningType) IsValid() bool { } // Ptr returns reference to partitioningType value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v PartitioningType) Ptr() *PartitioningType { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartitioningType struct { value *PartitioningType isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartitioningType) Get() *PartitioningType { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartitioningType) Set(val *PartitioningType) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartitioningType) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartitioningType) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartitioningType(val *PartitioningType) *NullablePartitioningType { return &NullablePartitioningType{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartitioningType) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartitioningType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_partitioning_update_type.go b/services/intake/model_partitioning_update_type.go index 43d9174cb..335173a3c 100644 --- a/services/intake/model_partitioning_update_type.go +++ b/services/intake/model_partitioning_update_type.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -16,22 +17,28 @@ import ( ) // PartitioningUpdateType The target table's partitioning. * `none` disables partitioning. * `intake-time` configures daily partitioning based on the automatically created ingestion time column `__intake_ts`. * `manual` allows arbitrary Iceberg partitioning expression to be set via `partitionBy`. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartitioningUpdateType string // List of partitioningUpdateType const ( - PARTITIONINGUPDATETYPE_NONE PartitioningUpdateType = "none" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTITIONINGUPDATETYPE_NONE PartitioningUpdateType = "none" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PARTITIONINGUPDATETYPE_INTAKE_TIME PartitioningUpdateType = "intake-time" - PARTITIONINGUPDATETYPE_MANUAL PartitioningUpdateType = "manual" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + PARTITIONINGUPDATETYPE_MANUAL PartitioningUpdateType = "manual" ) // All allowed values of PartitioningUpdateType enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedPartitioningUpdateTypeEnumValues = []PartitioningUpdateType{ "none", "intake-time", "manual", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *PartitioningUpdateType) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -56,6 +63,7 @@ func (v *PartitioningUpdateType) UnmarshalJSON(src []byte) error { // NewPartitioningUpdateTypeFromValue returns a pointer to a valid PartitioningUpdateType // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartitioningUpdateTypeFromValue(v string) (*PartitioningUpdateType, error) { ev := PartitioningUpdateType(v) if ev.IsValid() { @@ -66,6 +74,7 @@ func NewPartitioningUpdateTypeFromValue(v string) (*PartitioningUpdateType, erro } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v PartitioningUpdateType) IsValid() bool { for _, existing := range AllowedPartitioningUpdateTypeEnumValues { if existing == v { @@ -76,41 +85,50 @@ func (v PartitioningUpdateType) IsValid() bool { } // Ptr returns reference to partitioningUpdateType value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v PartitioningUpdateType) Ptr() *PartitioningUpdateType { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartitioningUpdateType struct { value *PartitioningUpdateType isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartitioningUpdateType) Get() *PartitioningUpdateType { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartitioningUpdateType) Set(val *PartitioningUpdateType) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartitioningUpdateType) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartitioningUpdateType) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartitioningUpdateType(val *PartitioningUpdateType) *NullablePartitioningUpdateType { return &NullablePartitioningUpdateType{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartitioningUpdateType) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartitioningUpdateType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_update_intake_payload.go b/services/intake/model_update_intake_payload.go index a20fb7617..232aa2d63 100644 --- a/services/intake/model_update_intake_payload.go +++ b/services/intake/model_update_intake_payload.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &UpdateIntakePayload{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetCatalogAttributeType = *IntakeCatalogPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetCatalogArgType = IntakeCatalogPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetCatalogRetType = IntakeCatalogPatch +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakePayloadGetCatalogAttributeTypeOk(arg UpdateIntakePayloadGetCatalogAttributeType) (ret UpdateIntakePayloadGetCatalogRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getUpdateIntakePayloadGetCatalogAttributeTypeOk(arg UpdateIntakePayloadGetC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakePayloadGetCatalogAttributeType(arg *UpdateIntakePayloadGetCatalogAttributeType, val UpdateIntakePayloadGetCatalogRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setUpdateIntakePayloadGetCatalogAttributeType(arg *UpdateIntakePayloadGetCa */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakePayloadGetDescriptionAttributeTypeOk(arg UpdateIntakePayloadGetDescriptionAttributeType) (ret UpdateIntakePayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getUpdateIntakePayloadGetDescriptionAttributeTypeOk(arg UpdateIntakePayload return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakePayloadGetDescriptionAttributeType(arg *UpdateIntakePayloadGetDescriptionAttributeType, val UpdateIntakePayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetDescriptionRetType = string /* @@ -63,8 +77,10 @@ type UpdateIntakePayloadGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakePayloadGetDisplayNameAttributeTypeOk(arg UpdateIntakePayloadGetDisplayNameAttributeType) (ret UpdateIntakePayloadGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getUpdateIntakePayloadGetDisplayNameAttributeTypeOk(arg UpdateIntakePayload return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakePayloadGetDisplayNameAttributeType(arg *UpdateIntakePayloadGetDisplayNameAttributeType, val UpdateIntakePayloadGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetDisplayNameRetType = string /* @@ -84,8 +104,10 @@ type UpdateIntakePayloadGetDisplayNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetIntakeRunnerIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakePayloadGetIntakeRunnerIdAttributeTypeOk(arg UpdateIntakePayloadGetIntakeRunnerIdAttributeType) (ret UpdateIntakePayloadGetIntakeRunnerIdRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getUpdateIntakePayloadGetIntakeRunnerIdAttributeTypeOk(arg UpdateIntakePayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakePayloadGetIntakeRunnerIdAttributeType(arg *UpdateIntakePayloadGetIntakeRunnerIdAttributeType, val UpdateIntakePayloadGetIntakeRunnerIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetIntakeRunnerIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetIntakeRunnerIdRetType = string /* @@ -105,10 +131,16 @@ type UpdateIntakePayloadGetIntakeRunnerIdRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayloadGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakePayloadGetLabelsAttributeTypeOk(arg UpdateIntakePayloadGetLabelsAttributeType) (ret UpdateIntakePayloadGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -116,11 +148,13 @@ func getUpdateIntakePayloadGetLabelsAttributeTypeOk(arg UpdateIntakePayloadGetLa return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakePayloadGetLabelsAttributeType(arg *UpdateIntakePayloadGetLabelsAttributeType, val UpdateIntakePayloadGetLabelsRetType) { *arg = val } // UpdateIntakePayload struct for UpdateIntakePayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakePayload struct { Catalog UpdateIntakePayloadGetCatalogAttributeType `json:"catalog,omitempty"` // The description is a longer text chosen by the user to provide more context for the resource. @@ -134,12 +168,14 @@ type UpdateIntakePayload struct { Labels UpdateIntakePayloadGetLabelsAttributeType `json:"labels,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateIntakePayload UpdateIntakePayload // NewUpdateIntakePayload instantiates a new UpdateIntakePayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateIntakePayload(intakeRunnerId UpdateIntakePayloadGetIntakeRunnerIdArgType) *UpdateIntakePayload { this := UpdateIntakePayload{} setUpdateIntakePayloadGetIntakeRunnerIdAttributeType(&this.IntakeRunnerId, intakeRunnerId) @@ -149,12 +185,14 @@ func NewUpdateIntakePayload(intakeRunnerId UpdateIntakePayloadGetIntakeRunnerIdA // NewUpdateIntakePayloadWithDefaults instantiates a new UpdateIntakePayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateIntakePayloadWithDefaults() *UpdateIntakePayload { this := UpdateIntakePayload{} return &this } // GetCatalog returns the Catalog field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetCatalog() (res UpdateIntakePayloadGetCatalogRetType) { res, _ = o.GetCatalogOk() return @@ -162,22 +200,26 @@ func (o *UpdateIntakePayload) GetCatalog() (res UpdateIntakePayloadGetCatalogRet // GetCatalogOk returns a tuple with the Catalog field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetCatalogOk() (ret UpdateIntakePayloadGetCatalogRetType, ok bool) { return getUpdateIntakePayloadGetCatalogAttributeTypeOk(o.Catalog) } // HasCatalog returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) HasCatalog() bool { _, ok := o.GetCatalogOk() return ok } // SetCatalog gets a reference to the given IntakeCatalogPatch and assigns it to the Catalog field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) SetCatalog(v UpdateIntakePayloadGetCatalogRetType) { setUpdateIntakePayloadGetCatalogAttributeType(&o.Catalog, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetDescription() (res UpdateIntakePayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -185,22 +227,26 @@ func (o *UpdateIntakePayload) GetDescription() (res UpdateIntakePayloadGetDescri // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetDescriptionOk() (ret UpdateIntakePayloadGetDescriptionRetType, ok bool) { return getUpdateIntakePayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) SetDescription(v UpdateIntakePayloadGetDescriptionRetType) { setUpdateIntakePayloadGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetDisplayName() (res UpdateIntakePayloadGetDisplayNameRetType) { res, _ = o.GetDisplayNameOk() return @@ -208,22 +254,26 @@ func (o *UpdateIntakePayload) GetDisplayName() (res UpdateIntakePayloadGetDispla // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetDisplayNameOk() (ret UpdateIntakePayloadGetDisplayNameRetType, ok bool) { return getUpdateIntakePayloadGetDisplayNameAttributeTypeOk(o.DisplayName) } // HasDisplayName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) HasDisplayName() bool { _, ok := o.GetDisplayNameOk() return ok } // SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) SetDisplayName(v UpdateIntakePayloadGetDisplayNameRetType) { setUpdateIntakePayloadGetDisplayNameAttributeType(&o.DisplayName, v) } // GetIntakeRunnerId returns the IntakeRunnerId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetIntakeRunnerId() (ret UpdateIntakePayloadGetIntakeRunnerIdRetType) { ret, _ = o.GetIntakeRunnerIdOk() return ret @@ -231,16 +281,19 @@ func (o *UpdateIntakePayload) GetIntakeRunnerId() (ret UpdateIntakePayloadGetInt // GetIntakeRunnerIdOk returns a tuple with the IntakeRunnerId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetIntakeRunnerIdOk() (ret UpdateIntakePayloadGetIntakeRunnerIdRetType, ok bool) { return getUpdateIntakePayloadGetIntakeRunnerIdAttributeTypeOk(o.IntakeRunnerId) } // SetIntakeRunnerId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) SetIntakeRunnerId(v UpdateIntakePayloadGetIntakeRunnerIdRetType) { setUpdateIntakePayloadGetIntakeRunnerIdAttributeType(&o.IntakeRunnerId, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetLabels() (res UpdateIntakePayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -249,21 +302,25 @@ func (o *UpdateIntakePayload) GetLabels() (res UpdateIntakePayloadGetLabelsRetTy // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) GetLabelsOk() (ret UpdateIntakePayloadGetLabelsRetType, ok bool) { return getUpdateIntakePayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakePayload) SetLabels(v UpdateIntakePayloadGetLabelsRetType) { setUpdateIntakePayloadGetLabelsAttributeType(&o.Labels, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateIntakePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateIntakePayloadGetCatalogAttributeTypeOk(o.Catalog); ok { @@ -284,37 +341,45 @@ func (o UpdateIntakePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateIntakePayload struct { value *UpdateIntakePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakePayload) Get() *UpdateIntakePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakePayload) Set(val *UpdateIntakePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateIntakePayload(val *UpdateIntakePayload) *NullableUpdateIntakePayload { return &NullableUpdateIntakePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_update_intake_runner_payload.go b/services/intake/model_update_intake_runner_payload.go index 1baddc644..539a42486 100644 --- a/services/intake/model_update_intake_runner_payload.go +++ b/services/intake/model_update_intake_runner_payload.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateIntakeRunnerPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeRunnerPayloadGetDescriptionAttributeTypeOk(arg UpdateIntakeRunnerPayloadGetDescriptionAttributeType) (ret UpdateIntakeRunnerPayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateIntakeRunnerPayloadGetDescriptionAttributeTypeOk(arg UpdateIntakeR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeRunnerPayloadGetDescriptionAttributeType(arg *UpdateIntakeRunnerPayloadGetDescriptionAttributeType, val UpdateIntakeRunnerPayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type UpdateIntakeRunnerPayloadGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeRunnerPayloadGetDisplayNameAttributeTypeOk(arg UpdateIntakeRunnerPayloadGetDisplayNameAttributeType) (ret UpdateIntakeRunnerPayloadGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getUpdateIntakeRunnerPayloadGetDisplayNameAttributeTypeOk(arg UpdateIntakeR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeRunnerPayloadGetDisplayNameAttributeType(arg *UpdateIntakeRunnerPayloadGetDisplayNameAttributeType, val UpdateIntakeRunnerPayloadGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetDisplayNameRetType = string /* @@ -64,10 +77,16 @@ type UpdateIntakeRunnerPayloadGetDisplayNameRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeRunnerPayloadGetLabelsAttributeTypeOk(arg UpdateIntakeRunnerPayloadGetLabelsAttributeType) (ret UpdateIntakeRunnerPayloadGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -75,6 +94,7 @@ func getUpdateIntakeRunnerPayloadGetLabelsAttributeTypeOk(arg UpdateIntakeRunner return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeRunnerPayloadGetLabelsAttributeType(arg *UpdateIntakeRunnerPayloadGetLabelsAttributeType, val UpdateIntakeRunnerPayloadGetLabelsRetType) { *arg = val } @@ -84,10 +104,16 @@ func setUpdateIntakeRunnerPayloadGetLabelsAttributeType(arg *UpdateIntakeRunnerP */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeTypeOk(arg UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType) (ret UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +121,7 @@ func getUpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeTypeOk(arg UpdateI return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType(arg *UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType, val UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType) { *arg = &val } @@ -104,10 +131,16 @@ func setUpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType(arg *UpdateIn */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetMaxMessagesPerHourArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayloadGetMaxMessagesPerHourRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeTypeOk(arg UpdateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType) (ret UpdateIntakeRunnerPayloadGetMaxMessagesPerHourRetType, ok bool) { if arg == nil { return ret, false @@ -115,11 +148,13 @@ func getUpdateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeTypeOk(arg Update return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType(arg *UpdateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType, val UpdateIntakeRunnerPayloadGetMaxMessagesPerHourRetType) { *arg = &val } // UpdateIntakeRunnerPayload struct for UpdateIntakeRunnerPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeRunnerPayload struct { // The description is a longer text chosen by the user to provide more context for the resource. Description UpdateIntakeRunnerPayloadGetDescriptionAttributeType `json:"description,omitempty"` @@ -137,6 +172,7 @@ type UpdateIntakeRunnerPayload struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateIntakeRunnerPayload() *UpdateIntakeRunnerPayload { this := UpdateIntakeRunnerPayload{} return &this @@ -145,12 +181,14 @@ func NewUpdateIntakeRunnerPayload() *UpdateIntakeRunnerPayload { // NewUpdateIntakeRunnerPayloadWithDefaults instantiates a new UpdateIntakeRunnerPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateIntakeRunnerPayloadWithDefaults() *UpdateIntakeRunnerPayload { this := UpdateIntakeRunnerPayload{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetDescription() (res UpdateIntakeRunnerPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -158,22 +196,26 @@ func (o *UpdateIntakeRunnerPayload) GetDescription() (res UpdateIntakeRunnerPayl // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetDescriptionOk() (ret UpdateIntakeRunnerPayloadGetDescriptionRetType, ok bool) { return getUpdateIntakeRunnerPayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) SetDescription(v UpdateIntakeRunnerPayloadGetDescriptionRetType) { setUpdateIntakeRunnerPayloadGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetDisplayName() (res UpdateIntakeRunnerPayloadGetDisplayNameRetType) { res, _ = o.GetDisplayNameOk() return @@ -181,22 +223,26 @@ func (o *UpdateIntakeRunnerPayload) GetDisplayName() (res UpdateIntakeRunnerPayl // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetDisplayNameOk() (ret UpdateIntakeRunnerPayloadGetDisplayNameRetType, ok bool) { return getUpdateIntakeRunnerPayloadGetDisplayNameAttributeTypeOk(o.DisplayName) } // HasDisplayName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) HasDisplayName() bool { _, ok := o.GetDisplayNameOk() return ok } // SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) SetDisplayName(v UpdateIntakeRunnerPayloadGetDisplayNameRetType) { setUpdateIntakeRunnerPayloadGetDisplayNameAttributeType(&o.DisplayName, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetLabels() (res UpdateIntakeRunnerPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -205,22 +251,26 @@ func (o *UpdateIntakeRunnerPayload) GetLabels() (res UpdateIntakeRunnerPayloadGe // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetLabelsOk() (ret UpdateIntakeRunnerPayloadGetLabelsRetType, ok bool) { return getUpdateIntakeRunnerPayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) SetLabels(v UpdateIntakeRunnerPayloadGetLabelsRetType) { setUpdateIntakeRunnerPayloadGetLabelsAttributeType(&o.Labels, v) } // GetMaxMessageSizeKiB returns the MaxMessageSizeKiB field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetMaxMessageSizeKiB() (res UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType) { res, _ = o.GetMaxMessageSizeKiBOk() return @@ -228,22 +278,26 @@ func (o *UpdateIntakeRunnerPayload) GetMaxMessageSizeKiB() (res UpdateIntakeRunn // GetMaxMessageSizeKiBOk returns a tuple with the MaxMessageSizeKiB field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetMaxMessageSizeKiBOk() (ret UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType, ok bool) { return getUpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeTypeOk(o.MaxMessageSizeKiB) } // HasMaxMessageSizeKiB returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) HasMaxMessageSizeKiB() bool { _, ok := o.GetMaxMessageSizeKiBOk() return ok } // SetMaxMessageSizeKiB gets a reference to the given int64 and assigns it to the MaxMessageSizeKiB field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) SetMaxMessageSizeKiB(v UpdateIntakeRunnerPayloadGetMaxMessageSizeKiBRetType) { setUpdateIntakeRunnerPayloadGetMaxMessageSizeKiBAttributeType(&o.MaxMessageSizeKiB, v) } // GetMaxMessagesPerHour returns the MaxMessagesPerHour field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetMaxMessagesPerHour() (res UpdateIntakeRunnerPayloadGetMaxMessagesPerHourRetType) { res, _ = o.GetMaxMessagesPerHourOk() return @@ -251,21 +305,25 @@ func (o *UpdateIntakeRunnerPayload) GetMaxMessagesPerHour() (res UpdateIntakeRun // GetMaxMessagesPerHourOk returns a tuple with the MaxMessagesPerHour field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) GetMaxMessagesPerHourOk() (ret UpdateIntakeRunnerPayloadGetMaxMessagesPerHourRetType, ok bool) { return getUpdateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeTypeOk(o.MaxMessagesPerHour) } // HasMaxMessagesPerHour returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) HasMaxMessagesPerHour() bool { _, ok := o.GetMaxMessagesPerHourOk() return ok } // SetMaxMessagesPerHour gets a reference to the given int64 and assigns it to the MaxMessagesPerHour field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeRunnerPayload) SetMaxMessagesPerHour(v UpdateIntakeRunnerPayloadGetMaxMessagesPerHourRetType) { setUpdateIntakeRunnerPayloadGetMaxMessagesPerHourAttributeType(&o.MaxMessagesPerHour, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateIntakeRunnerPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateIntakeRunnerPayloadGetDescriptionAttributeTypeOk(o.Description); ok { @@ -286,37 +344,45 @@ func (o UpdateIntakeRunnerPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateIntakeRunnerPayload struct { value *UpdateIntakeRunnerPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakeRunnerPayload) Get() *UpdateIntakeRunnerPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakeRunnerPayload) Set(val *UpdateIntakeRunnerPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakeRunnerPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakeRunnerPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateIntakeRunnerPayload(val *UpdateIntakeRunnerPayload) *NullableUpdateIntakeRunnerPayload { return &NullableUpdateIntakeRunnerPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakeRunnerPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakeRunnerPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_update_intake_user_payload.go b/services/intake/model_update_intake_user_payload.go index d761c18fa..2ffdfa845 100644 --- a/services/intake/model_update_intake_user_payload.go +++ b/services/intake/model_update_intake_user_payload.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateIntakeUserPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeUserPayloadGetDescriptionAttributeTypeOk(arg UpdateIntakeUserPayloadGetDescriptionAttributeType) (ret UpdateIntakeUserPayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateIntakeUserPayloadGetDescriptionAttributeTypeOk(arg UpdateIntakeUse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeUserPayloadGetDescriptionAttributeType(arg *UpdateIntakeUserPayloadGetDescriptionAttributeType, val UpdateIntakeUserPayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type UpdateIntakeUserPayloadGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetDisplayNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeUserPayloadGetDisplayNameAttributeTypeOk(arg UpdateIntakeUserPayloadGetDisplayNameAttributeType) (ret UpdateIntakeUserPayloadGetDisplayNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getUpdateIntakeUserPayloadGetDisplayNameAttributeTypeOk(arg UpdateIntakeUse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeUserPayloadGetDisplayNameAttributeType(arg *UpdateIntakeUserPayloadGetDisplayNameAttributeType, val UpdateIntakeUserPayloadGetDisplayNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetDisplayNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetDisplayNameRetType = string /* @@ -64,10 +77,16 @@ type UpdateIntakeUserPayloadGetDisplayNameRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetLabelsAttributeType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetLabelsArgType = *map[string]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetLabelsRetType = *map[string]string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeUserPayloadGetLabelsAttributeTypeOk(arg UpdateIntakeUserPayloadGetLabelsAttributeType) (ret UpdateIntakeUserPayloadGetLabelsRetType, ok bool) { if arg == nil { return nil, false @@ -75,6 +94,7 @@ func getUpdateIntakeUserPayloadGetLabelsAttributeTypeOk(arg UpdateIntakeUserPayl return arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeUserPayloadGetLabelsAttributeType(arg *UpdateIntakeUserPayloadGetLabelsAttributeType, val UpdateIntakeUserPayloadGetLabelsRetType) { *arg = val } @@ -84,8 +104,10 @@ func setUpdateIntakeUserPayloadGetLabelsAttributeType(arg *UpdateIntakeUserPaylo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeUserPayloadGetPasswordAttributeTypeOk(arg UpdateIntakeUserPayloadGetPasswordAttributeType) (ret UpdateIntakeUserPayloadGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getUpdateIntakeUserPayloadGetPasswordAttributeTypeOk(arg UpdateIntakeUserPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeUserPayloadGetPasswordAttributeType(arg *UpdateIntakeUserPayloadGetPasswordAttributeType, val UpdateIntakeUserPayloadGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetPasswordRetType = string /* @@ -105,10 +131,16 @@ type UpdateIntakeUserPayloadGetPasswordRetType = string */ // isEnumRef +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetTypeAttributeType = *UserType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetTypeArgType = UserType + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayloadGetTypeRetType = UserType +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateIntakeUserPayloadGetTypeAttributeTypeOk(arg UpdateIntakeUserPayloadGetTypeAttributeType) (ret UpdateIntakeUserPayloadGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -116,11 +148,13 @@ func getUpdateIntakeUserPayloadGetTypeAttributeTypeOk(arg UpdateIntakeUserPayloa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateIntakeUserPayloadGetTypeAttributeType(arg *UpdateIntakeUserPayloadGetTypeAttributeType, val UpdateIntakeUserPayloadGetTypeRetType) { *arg = &val } // UpdateIntakeUserPayload struct for UpdateIntakeUserPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateIntakeUserPayload struct { // The description is a longer text chosen by the user to provide more context for the resource. Description UpdateIntakeUserPayloadGetDescriptionAttributeType `json:"description,omitempty"` @@ -137,6 +171,7 @@ type UpdateIntakeUserPayload struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateIntakeUserPayload() *UpdateIntakeUserPayload { this := UpdateIntakeUserPayload{} return &this @@ -145,6 +180,7 @@ func NewUpdateIntakeUserPayload() *UpdateIntakeUserPayload { // NewUpdateIntakeUserPayloadWithDefaults instantiates a new UpdateIntakeUserPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateIntakeUserPayloadWithDefaults() *UpdateIntakeUserPayload { this := UpdateIntakeUserPayload{} var types UserType = USERTYPE_INTAKE @@ -153,6 +189,7 @@ func NewUpdateIntakeUserPayloadWithDefaults() *UpdateIntakeUserPayload { } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetDescription() (res UpdateIntakeUserPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -160,22 +197,26 @@ func (o *UpdateIntakeUserPayload) GetDescription() (res UpdateIntakeUserPayloadG // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetDescriptionOk() (ret UpdateIntakeUserPayloadGetDescriptionRetType, ok bool) { return getUpdateIntakeUserPayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) SetDescription(v UpdateIntakeUserPayloadGetDescriptionRetType) { setUpdateIntakeUserPayloadGetDescriptionAttributeType(&o.Description, v) } // GetDisplayName returns the DisplayName field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetDisplayName() (res UpdateIntakeUserPayloadGetDisplayNameRetType) { res, _ = o.GetDisplayNameOk() return @@ -183,22 +224,26 @@ func (o *UpdateIntakeUserPayload) GetDisplayName() (res UpdateIntakeUserPayloadG // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetDisplayNameOk() (ret UpdateIntakeUserPayloadGetDisplayNameRetType, ok bool) { return getUpdateIntakeUserPayloadGetDisplayNameAttributeTypeOk(o.DisplayName) } // HasDisplayName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) HasDisplayName() bool { _, ok := o.GetDisplayNameOk() return ok } // SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) SetDisplayName(v UpdateIntakeUserPayloadGetDisplayNameRetType) { setUpdateIntakeUserPayloadGetDisplayNameAttributeType(&o.DisplayName, v) } // GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetLabels() (res UpdateIntakeUserPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() return @@ -207,22 +252,26 @@ func (o *UpdateIntakeUserPayload) GetLabels() (res UpdateIntakeUserPayloadGetLab // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetLabelsOk() (ret UpdateIntakeUserPayloadGetLabelsRetType, ok bool) { return getUpdateIntakeUserPayloadGetLabelsAttributeTypeOk(o.Labels) } // HasLabels returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) HasLabels() bool { _, ok := o.GetLabelsOk() return ok } // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) SetLabels(v UpdateIntakeUserPayloadGetLabelsRetType) { setUpdateIntakeUserPayloadGetLabelsAttributeType(&o.Labels, v) } // GetPassword returns the Password field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetPassword() (res UpdateIntakeUserPayloadGetPasswordRetType) { res, _ = o.GetPasswordOk() return @@ -230,22 +279,26 @@ func (o *UpdateIntakeUserPayload) GetPassword() (res UpdateIntakeUserPayloadGetP // GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetPasswordOk() (ret UpdateIntakeUserPayloadGetPasswordRetType, ok bool) { return getUpdateIntakeUserPayloadGetPasswordAttributeTypeOk(o.Password) } // HasPassword returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) HasPassword() bool { _, ok := o.GetPasswordOk() return ok } // SetPassword gets a reference to the given string and assigns it to the Password field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) SetPassword(v UpdateIntakeUserPayloadGetPasswordRetType) { setUpdateIntakeUserPayloadGetPasswordAttributeType(&o.Password, v) } // GetType returns the Type field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetType() (res UpdateIntakeUserPayloadGetTypeRetType) { res, _ = o.GetTypeOk() return @@ -253,21 +306,25 @@ func (o *UpdateIntakeUserPayload) GetType() (res UpdateIntakeUserPayloadGetTypeR // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) GetTypeOk() (ret UpdateIntakeUserPayloadGetTypeRetType, ok bool) { return getUpdateIntakeUserPayloadGetTypeAttributeTypeOk(o.Type) } // HasType returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) HasType() bool { _, ok := o.GetTypeOk() return ok } // SetType gets a reference to the given UserType and assigns it to the Type field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateIntakeUserPayload) SetType(v UpdateIntakeUserPayloadGetTypeRetType) { setUpdateIntakeUserPayloadGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateIntakeUserPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateIntakeUserPayloadGetDescriptionAttributeTypeOk(o.Description); ok { @@ -288,37 +345,45 @@ func (o UpdateIntakeUserPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateIntakeUserPayload struct { value *UpdateIntakeUserPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakeUserPayload) Get() *UpdateIntakeUserPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakeUserPayload) Set(val *UpdateIntakeUserPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakeUserPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakeUserPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateIntakeUserPayload(val *UpdateIntakeUserPayload) *NullableUpdateIntakeUserPayload { return &NullableUpdateIntakeUserPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateIntakeUserPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateIntakeUserPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/model_user_type.go b/services/intake/model_user_type.go index 13d6c6f33..8631dc044 100644 --- a/services/intake/model_user_type.go +++ b/services/intake/model_user_type.go @@ -8,6 +8,7 @@ API version: 1beta.3.5 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package intake import ( @@ -16,20 +17,25 @@ import ( ) // UserType Type of user, 'intake' allows writing to the Intake, 'dead-letter' allows reading from the dead-letter queue +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UserType string // List of userType const ( - USERTYPE_INTAKE UserType = "intake" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + USERTYPE_INTAKE UserType = "intake" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead USERTYPE_DEAD_LETTER UserType = "dead-letter" ) // All allowed values of UserType enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedUserTypeEnumValues = []UserType{ "intake", "dead-letter", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *UserType) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -54,6 +60,7 @@ func (v *UserType) UnmarshalJSON(src []byte) error { // NewUserTypeFromValue returns a pointer to a valid UserType // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUserTypeFromValue(v string) (*UserType, error) { ev := UserType(v) if ev.IsValid() { @@ -64,6 +71,7 @@ func NewUserTypeFromValue(v string) (*UserType, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v UserType) IsValid() bool { for _, existing := range AllowedUserTypeEnumValues { if existing == v { @@ -74,41 +82,50 @@ func (v UserType) IsValid() bool { } // Ptr returns reference to userType value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v UserType) Ptr() *UserType { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUserType struct { value *UserType isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUserType) Get() *UserType { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUserType) Set(val *UserType) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUserType) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUserType) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUserType(val *UserType) *NullableUserType { return &NullableUserType{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUserType) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUserType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/intake/oas_commit b/services/intake/oas_commit index 588ee296b..ce6daad77 100644 --- a/services/intake/oas_commit +++ b/services/intake/oas_commit @@ -1 +1 @@ -964ac4ce34f0b6417f2496a1d48585c4926dee3a +c7b7067e851e34b30406b4069041ecc0eaac64ae diff --git a/services/intake/utils.go b/services/intake/utils.go index ffb691006..39bd09605 100644 --- a/services/intake/utils.go +++ b/services/intake/utils.go @@ -18,341 +18,419 @@ import ( ) // PtrBool is a helper routine that returns a pointer to given boolean value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrBool(v bool) *bool { return &v } // PtrInt is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt(v int) *int { return &v } // PtrInt32 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt32(v int32) *int32 { return &v } // PtrInt64 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt64(v int64) *int64 { return &v } // PtrFloat32 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrFloat32(v float32) *float32 { return &v } // PtrFloat64 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrFloat64(v float64) *float64 { return &v } // PtrString is a helper routine that returns a pointer to given string value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrString(v string) *string { return &v } // PtrTime is helper routine that returns a pointer to given Time value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrTime(v time.Time) *time.Time { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableValue[T any] struct { value *T isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) Get() *T { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Set(val *T) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBool struct { value *bool isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) Get() *bool { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) Set(val *bool) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBool(val *bool) *NullableBool { return &NullableBool{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt struct { value *int isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) Get() *int { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) Set(val *int) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt(val *int) *NullableInt { return &NullableInt{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt32 struct { value *int32 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) Get() *int32 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Set(val *int32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt32(val *int32) *NullableInt32 { return &NullableInt32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt64 struct { value *int64 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) Get() *int64 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Set(val *int64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt64(val *int64) *NullableInt64 { return &NullableInt64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableFloat32 struct { value *float32 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) Get() *float32 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Set(val *float32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableFloat32(val *float32) *NullableFloat32 { return &NullableFloat32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableFloat64 struct { value *float64 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) Get() *float64 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Set(val *float64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableFloat64(val *float64) *NullableFloat64 { return &NullableFloat64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableString struct { value *string isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) Get() *string { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) Set(val *string) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableString(val *string) *NullableString { return &NullableString{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTime struct { value *time.Time isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) Get() *time.Time { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) Set(val *time.Time) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTime(val *time.Time) *NullableTime { return &NullableTime{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) MarshalJSON() ([]byte, error) { return v.value.MarshalJSON() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } // IsNil checks if an input is nil +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func IsNil(i interface{}) bool { if i == nil { return true @@ -369,13 +447,16 @@ func IsNil(i interface{}) bool { return false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MappedNullable interface { ToMap() (map[string]interface{}, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" // randString returns a random string with a specified length. It panics if n <= 0. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func randString(n int) string { b := make([]byte, n) for i := range b { diff --git a/services/intake/v1betaapi/api_default.go b/services/intake/v1betaapi/api_default.go new file mode 100644 index 000000000..a386e850a --- /dev/null +++ b/services/intake/v1betaapi/api_default.go @@ -0,0 +1,2247 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1betaapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/stackitcloud/stackit-sdk-go/core/config" + "github.com/stackitcloud/stackit-sdk-go/core/oapierror" +) + +type DefaultAPI interface { + + /* + CreateIntake Method for CreateIntake + + Creates a new intake within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @return ApiCreateIntakeRequest + */ + CreateIntake(ctx context.Context, projectId string, regionId string) ApiCreateIntakeRequest + + // CreateIntakeExecute executes the request + // @return IntakeResponse + CreateIntakeExecute(r ApiCreateIntakeRequest) (*IntakeResponse, error) + + /* + CreateIntakeRunner Method for CreateIntakeRunner + + Creates a new intake runner within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @return ApiCreateIntakeRunnerRequest + */ + CreateIntakeRunner(ctx context.Context, projectId string, regionId string) ApiCreateIntakeRunnerRequest + + // CreateIntakeRunnerExecute executes the request + // @return IntakeRunnerResponse + CreateIntakeRunnerExecute(r ApiCreateIntakeRunnerRequest) (*IntakeRunnerResponse, error) + + /* + CreateIntakeUser Method for CreateIntakeUser + + Creates a new user for this intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiCreateIntakeUserRequest + */ + CreateIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string) ApiCreateIntakeUserRequest + + // CreateIntakeUserExecute executes the request + // @return IntakeUserResponse + CreateIntakeUserExecute(r ApiCreateIntakeUserRequest) (*IntakeUserResponse, error) + + /* + DeleteIntake Method for DeleteIntake + + Deletes the given intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiDeleteIntakeRequest + */ + DeleteIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiDeleteIntakeRequest + + // DeleteIntakeExecute executes the request + DeleteIntakeExecute(r ApiDeleteIntakeRequest) error + + /* + DeleteIntakeRunner Method for DeleteIntakeRunner + + Deletes the given intake runner. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeRunnerId The intake runner UUID. + @return ApiDeleteIntakeRunnerRequest + */ + DeleteIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiDeleteIntakeRunnerRequest + + // DeleteIntakeRunnerExecute executes the request + DeleteIntakeRunnerExecute(r ApiDeleteIntakeRunnerRequest) error + + /* + DeleteIntakeUser Method for DeleteIntakeUser + + Deletes the given intake user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @param intakeUserId The intake user UUID. + @return ApiDeleteIntakeUserRequest + */ + DeleteIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiDeleteIntakeUserRequest + + // DeleteIntakeUserExecute executes the request + DeleteIntakeUserExecute(r ApiDeleteIntakeUserRequest) error + + /* + GetIntake Method for GetIntake + + Returns the details for the given intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiGetIntakeRequest + */ + GetIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiGetIntakeRequest + + // GetIntakeExecute executes the request + // @return IntakeResponse + GetIntakeExecute(r ApiGetIntakeRequest) (*IntakeResponse, error) + + /* + GetIntakeRunner Method for GetIntakeRunner + + Returns the details for the given intake runner. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeRunnerId The intake runner UUID. + @return ApiGetIntakeRunnerRequest + */ + GetIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiGetIntakeRunnerRequest + + // GetIntakeRunnerExecute executes the request + // @return IntakeRunnerResponse + GetIntakeRunnerExecute(r ApiGetIntakeRunnerRequest) (*IntakeRunnerResponse, error) + + /* + GetIntakeUser Method for GetIntakeUser + + Returns the details for the given user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @param intakeUserId The intake user UUID. + @return ApiGetIntakeUserRequest + */ + GetIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiGetIntakeUserRequest + + // GetIntakeUserExecute executes the request + // @return IntakeUserResponse + GetIntakeUserExecute(r ApiGetIntakeUserRequest) (*IntakeUserResponse, error) + + /* + ListIntakeRunners Method for ListIntakeRunners + + Returns a list of all intake runners within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @return ApiListIntakeRunnersRequest + */ + ListIntakeRunners(ctx context.Context, projectId string, regionId string) ApiListIntakeRunnersRequest + + // ListIntakeRunnersExecute executes the request + // @return ListIntakeRunnersResponse + ListIntakeRunnersExecute(r ApiListIntakeRunnersRequest) (*ListIntakeRunnersResponse, error) + + /* + ListIntakeUsers Method for ListIntakeUsers + + Returns a list of all intake users within the project and intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiListIntakeUsersRequest + */ + ListIntakeUsers(ctx context.Context, projectId string, regionId string, intakeId string) ApiListIntakeUsersRequest + + // ListIntakeUsersExecute executes the request + // @return ListIntakeUsersResponse + ListIntakeUsersExecute(r ApiListIntakeUsersRequest) (*ListIntakeUsersResponse, error) + + /* + ListIntakes Method for ListIntakes + + Returns a list of all intakes within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @return ApiListIntakesRequest + */ + ListIntakes(ctx context.Context, projectId string, regionId string) ApiListIntakesRequest + + // ListIntakesExecute executes the request + // @return ListIntakesResponse + ListIntakesExecute(r ApiListIntakesRequest) (*ListIntakesResponse, error) + + /* + UpdateIntake Method for UpdateIntake + + Updates the given intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiUpdateIntakeRequest + */ + UpdateIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiUpdateIntakeRequest + + // UpdateIntakeExecute executes the request + // @return IntakeResponse + UpdateIntakeExecute(r ApiUpdateIntakeRequest) (*IntakeResponse, error) + + /* + UpdateIntakeRunner Method for UpdateIntakeRunner + + Updates a intake runner within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeRunnerId The intake runner UUID. + @return ApiUpdateIntakeRunnerRequest + */ + UpdateIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiUpdateIntakeRunnerRequest + + // UpdateIntakeRunnerExecute executes the request + // @return IntakeRunnerResponse + UpdateIntakeRunnerExecute(r ApiUpdateIntakeRunnerRequest) (*IntakeRunnerResponse, error) + + /* + UpdateIntakeUser Method for UpdateIntakeUser + + Updates the given intake user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @param intakeUserId The intake user UUID. + @return ApiUpdateIntakeUserRequest + */ + UpdateIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiUpdateIntakeUserRequest + + // UpdateIntakeUserExecute executes the request + // @return IntakeUserResponse + UpdateIntakeUserExecute(r ApiUpdateIntakeUserRequest) (*IntakeUserResponse, error) +} + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiCreateIntakeRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + createIntakePayload *CreateIntakePayload +} + +func (r ApiCreateIntakeRequest) CreateIntakePayload(createIntakePayload CreateIntakePayload) ApiCreateIntakeRequest { + r.createIntakePayload = &createIntakePayload + return r +} + +func (r ApiCreateIntakeRequest) Execute() (*IntakeResponse, error) { + return r.ApiService.CreateIntakeExecute(r) +} + +/* +CreateIntake Method for CreateIntake + +Creates a new intake within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @return ApiCreateIntakeRequest +*/ +func (a *DefaultAPIService) CreateIntake(ctx context.Context, projectId string, regionId string) ApiCreateIntakeRequest { + return ApiCreateIntakeRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + } +} + +// Execute executes the request +// +// @return IntakeResponse +func (a *DefaultAPIService) CreateIntakeExecute(r ApiCreateIntakeRequest) (*IntakeResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateIntake") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createIntakePayload == nil { + return localVarReturnValue, reportError("createIntakePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createIntakePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateIntakeRunnerRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + createIntakeRunnerPayload *CreateIntakeRunnerPayload +} + +func (r ApiCreateIntakeRunnerRequest) CreateIntakeRunnerPayload(createIntakeRunnerPayload CreateIntakeRunnerPayload) ApiCreateIntakeRunnerRequest { + r.createIntakeRunnerPayload = &createIntakeRunnerPayload + return r +} + +func (r ApiCreateIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { + return r.ApiService.CreateIntakeRunnerExecute(r) +} + +/* +CreateIntakeRunner Method for CreateIntakeRunner + +Creates a new intake runner within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @return ApiCreateIntakeRunnerRequest +*/ +func (a *DefaultAPIService) CreateIntakeRunner(ctx context.Context, projectId string, regionId string) ApiCreateIntakeRunnerRequest { + return ApiCreateIntakeRunnerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + } +} + +// Execute executes the request +// +// @return IntakeRunnerResponse +func (a *DefaultAPIService) CreateIntakeRunnerExecute(r ApiCreateIntakeRunnerRequest) (*IntakeRunnerResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeRunnerResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateIntakeRunner") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createIntakeRunnerPayload == nil { + return localVarReturnValue, reportError("createIntakeRunnerPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createIntakeRunnerPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiCreateIntakeUserRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeId string + createIntakeUserPayload *CreateIntakeUserPayload +} + +func (r ApiCreateIntakeUserRequest) CreateIntakeUserPayload(createIntakeUserPayload CreateIntakeUserPayload) ApiCreateIntakeUserRequest { + r.createIntakeUserPayload = &createIntakeUserPayload + return r +} + +func (r ApiCreateIntakeUserRequest) Execute() (*IntakeUserResponse, error) { + return r.ApiService.CreateIntakeUserExecute(r) +} + +/* +CreateIntakeUser Method for CreateIntakeUser + +Creates a new user for this intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiCreateIntakeUserRequest +*/ +func (a *DefaultAPIService) CreateIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string) ApiCreateIntakeUserRequest { + return ApiCreateIntakeUserRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// Execute executes the request +// +// @return IntakeUserResponse +func (a *DefaultAPIService) CreateIntakeUserExecute(r ApiCreateIntakeUserRequest) (*IntakeUserResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeUserResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateIntakeUser") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeId"+"}", url.PathEscape(parameterValueToString(r.intakeId, "intakeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createIntakeUserPayload == nil { + return localVarReturnValue, reportError("createIntakeUserPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createIntakeUserPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteIntakeRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeId string + force *bool +} + +// If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. +func (r ApiDeleteIntakeRequest) Force(force bool) ApiDeleteIntakeRequest { + r.force = &force + return r +} + +func (r ApiDeleteIntakeRequest) Execute() error { + return r.ApiService.DeleteIntakeExecute(r) +} + +/* +DeleteIntake Method for DeleteIntake + +Deletes the given intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiDeleteIntakeRequest +*/ +func (a *DefaultAPIService) DeleteIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiDeleteIntakeRequest { + return ApiDeleteIntakeRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) DeleteIntakeExecute(r ApiDeleteIntakeRequest) error { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteIntake") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeId"+"}", url.PathEscape(parameterValueToString(r.intakeId, "intakeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.force != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "force", r.force, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "force", defaultValue, "form", "") + r.force = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return newErr + } + + return nil +} + +type ApiDeleteIntakeRunnerRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeRunnerId string + force *bool +} + +// If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. +func (r ApiDeleteIntakeRunnerRequest) Force(force bool) ApiDeleteIntakeRunnerRequest { + r.force = &force + return r +} + +func (r ApiDeleteIntakeRunnerRequest) Execute() error { + return r.ApiService.DeleteIntakeRunnerExecute(r) +} + +/* +DeleteIntakeRunner Method for DeleteIntakeRunner + +Deletes the given intake runner. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeRunnerId The intake runner UUID. + @return ApiDeleteIntakeRunnerRequest +*/ +func (a *DefaultAPIService) DeleteIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiDeleteIntakeRunnerRequest { + return ApiDeleteIntakeRunnerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeRunnerId: intakeRunnerId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) DeleteIntakeRunnerExecute(r ApiDeleteIntakeRunnerRequest) error { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteIntakeRunner") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeRunnerId"+"}", url.PathEscape(parameterValueToString(r.intakeRunnerId, "intakeRunnerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.force != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "force", r.force, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "force", defaultValue, "form", "") + r.force = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return newErr + } + + return nil +} + +type ApiDeleteIntakeUserRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeId string + intakeUserId string +} + +func (r ApiDeleteIntakeUserRequest) Execute() error { + return r.ApiService.DeleteIntakeUserExecute(r) +} + +/* +DeleteIntakeUser Method for DeleteIntakeUser + +Deletes the given intake user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @param intakeUserId The intake user UUID. + @return ApiDeleteIntakeUserRequest +*/ +func (a *DefaultAPIService) DeleteIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiDeleteIntakeUserRequest { + return ApiDeleteIntakeUserRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + intakeUserId: intakeUserId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) DeleteIntakeUserExecute(r ApiDeleteIntakeUserRequest) error { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteIntakeUser") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeId"+"}", url.PathEscape(parameterValueToString(r.intakeId, "intakeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeUserId"+"}", url.PathEscape(parameterValueToString(r.intakeUserId, "intakeUserId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return newErr + } + + return nil +} + +type ApiGetIntakeRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeId string +} + +func (r ApiGetIntakeRequest) Execute() (*IntakeResponse, error) { + return r.ApiService.GetIntakeExecute(r) +} + +/* +GetIntake Method for GetIntake + +Returns the details for the given intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiGetIntakeRequest +*/ +func (a *DefaultAPIService) GetIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiGetIntakeRequest { + return ApiGetIntakeRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// Execute executes the request +// +// @return IntakeResponse +func (a *DefaultAPIService) GetIntakeExecute(r ApiGetIntakeRequest) (*IntakeResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetIntake") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeId"+"}", url.PathEscape(parameterValueToString(r.intakeId, "intakeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetIntakeRunnerRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeRunnerId string +} + +func (r ApiGetIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { + return r.ApiService.GetIntakeRunnerExecute(r) +} + +/* +GetIntakeRunner Method for GetIntakeRunner + +Returns the details for the given intake runner. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeRunnerId The intake runner UUID. + @return ApiGetIntakeRunnerRequest +*/ +func (a *DefaultAPIService) GetIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiGetIntakeRunnerRequest { + return ApiGetIntakeRunnerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeRunnerId: intakeRunnerId, + } +} + +// Execute executes the request +// +// @return IntakeRunnerResponse +func (a *DefaultAPIService) GetIntakeRunnerExecute(r ApiGetIntakeRunnerRequest) (*IntakeRunnerResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeRunnerResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetIntakeRunner") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeRunnerId"+"}", url.PathEscape(parameterValueToString(r.intakeRunnerId, "intakeRunnerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetIntakeUserRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeId string + intakeUserId string +} + +func (r ApiGetIntakeUserRequest) Execute() (*IntakeUserResponse, error) { + return r.ApiService.GetIntakeUserExecute(r) +} + +/* +GetIntakeUser Method for GetIntakeUser + +Returns the details for the given user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @param intakeUserId The intake user UUID. + @return ApiGetIntakeUserRequest +*/ +func (a *DefaultAPIService) GetIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiGetIntakeUserRequest { + return ApiGetIntakeUserRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + intakeUserId: intakeUserId, + } +} + +// Execute executes the request +// +// @return IntakeUserResponse +func (a *DefaultAPIService) GetIntakeUserExecute(r ApiGetIntakeUserRequest) (*IntakeUserResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeUserResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetIntakeUser") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeId"+"}", url.PathEscape(parameterValueToString(r.intakeId, "intakeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeUserId"+"}", url.PathEscape(parameterValueToString(r.intakeUserId, "intakeUserId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListIntakeRunnersRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + pageToken *string + pageSize *int32 +} + +// A token to retrieve the next page of results. +func (r ApiListIntakeRunnersRequest) PageToken(pageToken string) ApiListIntakeRunnersRequest { + r.pageToken = &pageToken + return r +} + +// Maximum number of items to return +func (r ApiListIntakeRunnersRequest) PageSize(pageSize int32) ApiListIntakeRunnersRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiListIntakeRunnersRequest) Execute() (*ListIntakeRunnersResponse, error) { + return r.ApiService.ListIntakeRunnersExecute(r) +} + +/* +ListIntakeRunners Method for ListIntakeRunners + +Returns a list of all intake runners within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @return ApiListIntakeRunnersRequest +*/ +func (a *DefaultAPIService) ListIntakeRunners(ctx context.Context, projectId string, regionId string) ApiListIntakeRunnersRequest { + return ApiListIntakeRunnersRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + } +} + +// Execute executes the request +// +// @return ListIntakeRunnersResponse +func (a *DefaultAPIService) ListIntakeRunnersExecute(r ApiListIntakeRunnersRequest) (*ListIntakeRunnersResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntakeRunnersResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListIntakeRunners") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pageToken != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageToken", r.pageToken, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "form", "") + } else { + var defaultValue int32 = 10 + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", defaultValue, "form", "") + r.pageSize = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListIntakeUsersRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeId string + pageToken *string + pageSize *int32 +} + +// A token to retrieve the next page of results. +func (r ApiListIntakeUsersRequest) PageToken(pageToken string) ApiListIntakeUsersRequest { + r.pageToken = &pageToken + return r +} + +// Maximum number of items to return +func (r ApiListIntakeUsersRequest) PageSize(pageSize int32) ApiListIntakeUsersRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiListIntakeUsersRequest) Execute() (*ListIntakeUsersResponse, error) { + return r.ApiService.ListIntakeUsersExecute(r) +} + +/* +ListIntakeUsers Method for ListIntakeUsers + +Returns a list of all intake users within the project and intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiListIntakeUsersRequest +*/ +func (a *DefaultAPIService) ListIntakeUsers(ctx context.Context, projectId string, regionId string, intakeId string) ApiListIntakeUsersRequest { + return ApiListIntakeUsersRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// Execute executes the request +// +// @return ListIntakeUsersResponse +func (a *DefaultAPIService) ListIntakeUsersExecute(r ApiListIntakeUsersRequest) (*ListIntakeUsersResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntakeUsersResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListIntakeUsers") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeId"+"}", url.PathEscape(parameterValueToString(r.intakeId, "intakeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pageToken != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageToken", r.pageToken, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "form", "") + } else { + var defaultValue int32 = 10 + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", defaultValue, "form", "") + r.pageSize = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListIntakesRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + pageToken *string + pageSize *int32 +} + +// A token to retrieve the next page of results. +func (r ApiListIntakesRequest) PageToken(pageToken string) ApiListIntakesRequest { + r.pageToken = &pageToken + return r +} + +// Maximum number of items to return +func (r ApiListIntakesRequest) PageSize(pageSize int32) ApiListIntakesRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiListIntakesRequest) Execute() (*ListIntakesResponse, error) { + return r.ApiService.ListIntakesExecute(r) +} + +/* +ListIntakes Method for ListIntakes + +Returns a list of all intakes within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @return ApiListIntakesRequest +*/ +func (a *DefaultAPIService) ListIntakes(ctx context.Context, projectId string, regionId string) ApiListIntakesRequest { + return ApiListIntakesRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + } +} + +// Execute executes the request +// +// @return ListIntakesResponse +func (a *DefaultAPIService) ListIntakesExecute(r ApiListIntakesRequest) (*ListIntakesResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntakesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListIntakes") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pageToken != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageToken", r.pageToken, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "form", "") + } else { + var defaultValue int32 = 10 + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", defaultValue, "form", "") + r.pageSize = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateIntakeRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeId string + updateIntakePayload *UpdateIntakePayload +} + +func (r ApiUpdateIntakeRequest) UpdateIntakePayload(updateIntakePayload UpdateIntakePayload) ApiUpdateIntakeRequest { + r.updateIntakePayload = &updateIntakePayload + return r +} + +func (r ApiUpdateIntakeRequest) Execute() (*IntakeResponse, error) { + return r.ApiService.UpdateIntakeExecute(r) +} + +/* +UpdateIntake Method for UpdateIntake + +Updates the given intake. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @return ApiUpdateIntakeRequest +*/ +func (a *DefaultAPIService) UpdateIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiUpdateIntakeRequest { + return ApiUpdateIntakeRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// Execute executes the request +// +// @return IntakeResponse +func (a *DefaultAPIService) UpdateIntakeExecute(r ApiUpdateIntakeRequest) (*IntakeResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateIntake") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeId"+"}", url.PathEscape(parameterValueToString(r.intakeId, "intakeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateIntakePayload == nil { + return localVarReturnValue, reportError("updateIntakePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateIntakePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateIntakeRunnerRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeRunnerId string + updateIntakeRunnerPayload *UpdateIntakeRunnerPayload +} + +func (r ApiUpdateIntakeRunnerRequest) UpdateIntakeRunnerPayload(updateIntakeRunnerPayload UpdateIntakeRunnerPayload) ApiUpdateIntakeRunnerRequest { + r.updateIntakeRunnerPayload = &updateIntakeRunnerPayload + return r +} + +func (r ApiUpdateIntakeRunnerRequest) Execute() (*IntakeRunnerResponse, error) { + return r.ApiService.UpdateIntakeRunnerExecute(r) +} + +/* +UpdateIntakeRunner Method for UpdateIntakeRunner + +Updates a intake runner within the project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeRunnerId The intake runner UUID. + @return ApiUpdateIntakeRunnerRequest +*/ +func (a *DefaultAPIService) UpdateIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiUpdateIntakeRunnerRequest { + return ApiUpdateIntakeRunnerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeRunnerId: intakeRunnerId, + } +} + +// Execute executes the request +// +// @return IntakeRunnerResponse +func (a *DefaultAPIService) UpdateIntakeRunnerExecute(r ApiUpdateIntakeRunnerRequest) (*IntakeRunnerResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeRunnerResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateIntakeRunner") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeRunnerId"+"}", url.PathEscape(parameterValueToString(r.intakeRunnerId, "intakeRunnerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateIntakeRunnerPayload == nil { + return localVarReturnValue, reportError("updateIntakeRunnerPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateIntakeRunnerPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiUpdateIntakeUserRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + intakeId string + intakeUserId string + updateIntakeUserPayload *UpdateIntakeUserPayload +} + +func (r ApiUpdateIntakeUserRequest) UpdateIntakeUserPayload(updateIntakeUserPayload UpdateIntakeUserPayload) ApiUpdateIntakeUserRequest { + r.updateIntakeUserPayload = &updateIntakeUserPayload + return r +} + +func (r ApiUpdateIntakeUserRequest) Execute() (*IntakeUserResponse, error) { + return r.ApiService.UpdateIntakeUserExecute(r) +} + +/* +UpdateIntakeUser Method for UpdateIntakeUser + +Updates the given intake user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The STACKIT portal project UUID the resource is located in. + @param regionId The STACKIT region name the resource is located in. + @param intakeId The intake UUID. + @param intakeUserId The intake user UUID. + @return ApiUpdateIntakeUserRequest +*/ +func (a *DefaultAPIService) UpdateIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiUpdateIntakeUserRequest { + return ApiUpdateIntakeUserRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + intakeUserId: intakeUserId, + } +} + +// Execute executes the request +// +// @return IntakeUserResponse +func (a *DefaultAPIService) UpdateIntakeUserExecute(r ApiUpdateIntakeUserRequest) (*IntakeUserResponse, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IntakeUserResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateIntakeUser") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeId"+"}", url.PathEscape(parameterValueToString(r.intakeId, "intakeId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"intakeUserId"+"}", url.PathEscape(parameterValueToString(r.intakeUserId, "intakeUserId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateIntakeUserPayload == nil { + return localVarReturnValue, reportError("updateIntakeUserPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateIntakeUserPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} diff --git a/services/intake/v1betaapi/api_default_mock.go b/services/intake/v1betaapi/api_default_mock.go new file mode 100644 index 000000000..01fdcbcb4 --- /dev/null +++ b/services/intake/v1betaapi/api_default_mock.go @@ -0,0 +1,349 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "context" +) + +// assert the implementation matches the interface +var _ DefaultAPI = &DefaultAPIServiceMock{} + +// DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. +// By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. +type DefaultAPIServiceMock struct { + // CreateIntakeExecuteMock can be populated to implement the behavior of the CreateIntakeExecute function of this mock + CreateIntakeExecuteMock *func(r ApiCreateIntakeRequest) (*IntakeResponse, error) + // CreateIntakeRunnerExecuteMock can be populated to implement the behavior of the CreateIntakeRunnerExecute function of this mock + CreateIntakeRunnerExecuteMock *func(r ApiCreateIntakeRunnerRequest) (*IntakeRunnerResponse, error) + // CreateIntakeUserExecuteMock can be populated to implement the behavior of the CreateIntakeUserExecute function of this mock + CreateIntakeUserExecuteMock *func(r ApiCreateIntakeUserRequest) (*IntakeUserResponse, error) + // DeleteIntakeExecuteMock can be populated to implement the behavior of the DeleteIntakeExecute function of this mock + DeleteIntakeExecuteMock *func(r ApiDeleteIntakeRequest) error + // DeleteIntakeRunnerExecuteMock can be populated to implement the behavior of the DeleteIntakeRunnerExecute function of this mock + DeleteIntakeRunnerExecuteMock *func(r ApiDeleteIntakeRunnerRequest) error + // DeleteIntakeUserExecuteMock can be populated to implement the behavior of the DeleteIntakeUserExecute function of this mock + DeleteIntakeUserExecuteMock *func(r ApiDeleteIntakeUserRequest) error + // GetIntakeExecuteMock can be populated to implement the behavior of the GetIntakeExecute function of this mock + GetIntakeExecuteMock *func(r ApiGetIntakeRequest) (*IntakeResponse, error) + // GetIntakeRunnerExecuteMock can be populated to implement the behavior of the GetIntakeRunnerExecute function of this mock + GetIntakeRunnerExecuteMock *func(r ApiGetIntakeRunnerRequest) (*IntakeRunnerResponse, error) + // GetIntakeUserExecuteMock can be populated to implement the behavior of the GetIntakeUserExecute function of this mock + GetIntakeUserExecuteMock *func(r ApiGetIntakeUserRequest) (*IntakeUserResponse, error) + // ListIntakeRunnersExecuteMock can be populated to implement the behavior of the ListIntakeRunnersExecute function of this mock + ListIntakeRunnersExecuteMock *func(r ApiListIntakeRunnersRequest) (*ListIntakeRunnersResponse, error) + // ListIntakeUsersExecuteMock can be populated to implement the behavior of the ListIntakeUsersExecute function of this mock + ListIntakeUsersExecuteMock *func(r ApiListIntakeUsersRequest) (*ListIntakeUsersResponse, error) + // ListIntakesExecuteMock can be populated to implement the behavior of the ListIntakesExecute function of this mock + ListIntakesExecuteMock *func(r ApiListIntakesRequest) (*ListIntakesResponse, error) + // UpdateIntakeExecuteMock can be populated to implement the behavior of the UpdateIntakeExecute function of this mock + UpdateIntakeExecuteMock *func(r ApiUpdateIntakeRequest) (*IntakeResponse, error) + // UpdateIntakeRunnerExecuteMock can be populated to implement the behavior of the UpdateIntakeRunnerExecute function of this mock + UpdateIntakeRunnerExecuteMock *func(r ApiUpdateIntakeRunnerRequest) (*IntakeRunnerResponse, error) + // UpdateIntakeUserExecuteMock can be populated to implement the behavior of the UpdateIntakeUserExecute function of this mock + UpdateIntakeUserExecuteMock *func(r ApiUpdateIntakeUserRequest) (*IntakeUserResponse, error) +} + +func (a DefaultAPIServiceMock) CreateIntake(ctx context.Context, projectId string, regionId string) ApiCreateIntakeRequest { + return ApiCreateIntakeRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + } +} + +// CreateIntakeExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateIntakeExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateIntakeExecute(r ApiCreateIntakeRequest) (*IntakeResponse, error) { + if a.CreateIntakeExecuteMock == nil { + var localVarReturnValue *IntakeResponse + return localVarReturnValue, nil + } + + return (*a.CreateIntakeExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateIntakeRunner(ctx context.Context, projectId string, regionId string) ApiCreateIntakeRunnerRequest { + return ApiCreateIntakeRunnerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + } +} + +// CreateIntakeRunnerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateIntakeRunnerExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateIntakeRunnerExecute(r ApiCreateIntakeRunnerRequest) (*IntakeRunnerResponse, error) { + if a.CreateIntakeRunnerExecuteMock == nil { + var localVarReturnValue *IntakeRunnerResponse + return localVarReturnValue, nil + } + + return (*a.CreateIntakeRunnerExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string) ApiCreateIntakeUserRequest { + return ApiCreateIntakeUserRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// CreateIntakeUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateIntakeUserExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateIntakeUserExecute(r ApiCreateIntakeUserRequest) (*IntakeUserResponse, error) { + if a.CreateIntakeUserExecuteMock == nil { + var localVarReturnValue *IntakeUserResponse + return localVarReturnValue, nil + } + + return (*a.CreateIntakeUserExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiDeleteIntakeRequest { + return ApiDeleteIntakeRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// DeleteIntakeExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteIntakeExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteIntakeExecute(r ApiDeleteIntakeRequest) error { + if a.DeleteIntakeExecuteMock == nil { + return nil + } + + return (*a.DeleteIntakeExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiDeleteIntakeRunnerRequest { + return ApiDeleteIntakeRunnerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeRunnerId: intakeRunnerId, + } +} + +// DeleteIntakeRunnerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteIntakeRunnerExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteIntakeRunnerExecute(r ApiDeleteIntakeRunnerRequest) error { + if a.DeleteIntakeRunnerExecuteMock == nil { + return nil + } + + return (*a.DeleteIntakeRunnerExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiDeleteIntakeUserRequest { + return ApiDeleteIntakeUserRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + intakeUserId: intakeUserId, + } +} + +// DeleteIntakeUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteIntakeUserExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteIntakeUserExecute(r ApiDeleteIntakeUserRequest) error { + if a.DeleteIntakeUserExecuteMock == nil { + return nil + } + + return (*a.DeleteIntakeUserExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiGetIntakeRequest { + return ApiGetIntakeRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// GetIntakeExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetIntakeExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetIntakeExecute(r ApiGetIntakeRequest) (*IntakeResponse, error) { + if a.GetIntakeExecuteMock == nil { + var localVarReturnValue *IntakeResponse + return localVarReturnValue, nil + } + + return (*a.GetIntakeExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiGetIntakeRunnerRequest { + return ApiGetIntakeRunnerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeRunnerId: intakeRunnerId, + } +} + +// GetIntakeRunnerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetIntakeRunnerExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetIntakeRunnerExecute(r ApiGetIntakeRunnerRequest) (*IntakeRunnerResponse, error) { + if a.GetIntakeRunnerExecuteMock == nil { + var localVarReturnValue *IntakeRunnerResponse + return localVarReturnValue, nil + } + + return (*a.GetIntakeRunnerExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiGetIntakeUserRequest { + return ApiGetIntakeUserRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + intakeUserId: intakeUserId, + } +} + +// GetIntakeUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetIntakeUserExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetIntakeUserExecute(r ApiGetIntakeUserRequest) (*IntakeUserResponse, error) { + if a.GetIntakeUserExecuteMock == nil { + var localVarReturnValue *IntakeUserResponse + return localVarReturnValue, nil + } + + return (*a.GetIntakeUserExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListIntakeRunners(ctx context.Context, projectId string, regionId string) ApiListIntakeRunnersRequest { + return ApiListIntakeRunnersRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + } +} + +// ListIntakeRunnersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListIntakeRunnersExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListIntakeRunnersExecute(r ApiListIntakeRunnersRequest) (*ListIntakeRunnersResponse, error) { + if a.ListIntakeRunnersExecuteMock == nil { + var localVarReturnValue *ListIntakeRunnersResponse + return localVarReturnValue, nil + } + + return (*a.ListIntakeRunnersExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListIntakeUsers(ctx context.Context, projectId string, regionId string, intakeId string) ApiListIntakeUsersRequest { + return ApiListIntakeUsersRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// ListIntakeUsersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListIntakeUsersExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListIntakeUsersExecute(r ApiListIntakeUsersRequest) (*ListIntakeUsersResponse, error) { + if a.ListIntakeUsersExecuteMock == nil { + var localVarReturnValue *ListIntakeUsersResponse + return localVarReturnValue, nil + } + + return (*a.ListIntakeUsersExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListIntakes(ctx context.Context, projectId string, regionId string) ApiListIntakesRequest { + return ApiListIntakesRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + } +} + +// ListIntakesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListIntakesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListIntakesExecute(r ApiListIntakesRequest) (*ListIntakesResponse, error) { + if a.ListIntakesExecuteMock == nil { + var localVarReturnValue *ListIntakesResponse + return localVarReturnValue, nil + } + + return (*a.ListIntakesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateIntake(ctx context.Context, projectId string, regionId string, intakeId string) ApiUpdateIntakeRequest { + return ApiUpdateIntakeRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + } +} + +// UpdateIntakeExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateIntakeExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateIntakeExecute(r ApiUpdateIntakeRequest) (*IntakeResponse, error) { + if a.UpdateIntakeExecuteMock == nil { + var localVarReturnValue *IntakeResponse + return localVarReturnValue, nil + } + + return (*a.UpdateIntakeExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateIntakeRunner(ctx context.Context, projectId string, regionId string, intakeRunnerId string) ApiUpdateIntakeRunnerRequest { + return ApiUpdateIntakeRunnerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeRunnerId: intakeRunnerId, + } +} + +// UpdateIntakeRunnerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateIntakeRunnerExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateIntakeRunnerExecute(r ApiUpdateIntakeRunnerRequest) (*IntakeRunnerResponse, error) { + if a.UpdateIntakeRunnerExecuteMock == nil { + var localVarReturnValue *IntakeRunnerResponse + return localVarReturnValue, nil + } + + return (*a.UpdateIntakeRunnerExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateIntakeUser(ctx context.Context, projectId string, regionId string, intakeId string, intakeUserId string) ApiUpdateIntakeUserRequest { + return ApiUpdateIntakeUserRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + intakeId: intakeId, + intakeUserId: intakeUserId, + } +} + +// UpdateIntakeUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateIntakeUserExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateIntakeUserExecute(r ApiUpdateIntakeUserRequest) (*IntakeUserResponse, error) { + if a.UpdateIntakeUserExecuteMock == nil { + var localVarReturnValue *IntakeUserResponse + return localVarReturnValue, nil + } + + return (*a.UpdateIntakeUserExecuteMock)(r) +} diff --git a/services/intake/v1betaapi/client.go b/services/intake/v1betaapi/client.go new file mode 100644 index 000000000..84aab0dc2 --- /dev/null +++ b/services/intake/v1betaapi/client.go @@ -0,0 +1,658 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1betaapi + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "github.com/stackitcloud/stackit-sdk-go/core/auth" + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the STACKIT Intake API API v1beta.3.5 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *config.Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI DefaultAPI +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { + cfg := NewConfiguration() + + for _, option := range opts { + err := option(cfg) + if err != nil { + return nil, fmt.Errorf("configuring the client: %w", err) + } + } + + err := config.ConfigureRegion(cfg) + if err != nil { + return nil, fmt.Errorf("configuring region: %w", err) + } + + if cfg.HTTPClient == nil { + cfg.HTTPClient = &http.Client{} + } + + authRoundTripper, err := auth.SetupAuth(cfg) + if err != nil { + return nil, fmt.Errorf("setting up authentication: %w", err) + } + + roundTripper := authRoundTripper + if cfg.Middleware != nil { + roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...) + } + + cfg.HTTPClient.Transport = roundTripper + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + + return c, nil +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { + return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) + } + + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + var keyPrefixForCollectionType = keyPrefix + if style == "deepObject" { + keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *config.Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/services/intake/v1betaapi/configuration.go b/services/intake/v1betaapi/configuration.go new file mode 100644 index 000000000..1595ace00 --- /dev/null +++ b/services/intake/v1betaapi/configuration.go @@ -0,0 +1,40 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1betaapi + +import ( + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *config.Configuration { + cfg := &config.Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "stackit-sdk-go/intake", + Debug: false, + Servers: config.ServerConfigurations{ + { + URL: "https://intake.api.{region}stackit.cloud", + Description: "No description provided", + Variables: map[string]config.ServerVariable{ + "region": { + Description: "No description provided", + DefaultValue: "eu01.", + EnumValues: []string{ + "eu01.", + }, + }, + }, + }, + }, + OperationServers: map[string]config.ServerConfigurations{}, + } + return cfg +} diff --git a/services/intake/v1betaapi/model_catalog_auth.go b/services/intake/v1betaapi/model_catalog_auth.go new file mode 100644 index 000000000..2a098c2ef --- /dev/null +++ b/services/intake/v1betaapi/model_catalog_auth.go @@ -0,0 +1,192 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CatalogAuth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CatalogAuth{} + +// CatalogAuth Configures authentication for the Iceberg catalog +type CatalogAuth struct { + Dremio *DremioAuth `json:"dremio,omitempty"` + Type CatalogAuthType `json:"type"` +} + +type _CatalogAuth CatalogAuth + +// NewCatalogAuth instantiates a new CatalogAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCatalogAuth(types CatalogAuthType) *CatalogAuth { + this := CatalogAuth{} + this.Type = types + return &this +} + +// NewCatalogAuthWithDefaults instantiates a new CatalogAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCatalogAuthWithDefaults() *CatalogAuth { + this := CatalogAuth{} + return &this +} + +// GetDremio returns the Dremio field value if set, zero value otherwise. +func (o *CatalogAuth) GetDremio() DremioAuth { + if o == nil || IsNil(o.Dremio) { + var ret DremioAuth + return ret + } + return *o.Dremio +} + +// GetDremioOk returns a tuple with the Dremio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CatalogAuth) GetDremioOk() (*DremioAuth, bool) { + if o == nil || IsNil(o.Dremio) { + return nil, false + } + return o.Dremio, true +} + +// HasDremio returns a boolean if a field has been set. +func (o *CatalogAuth) HasDremio() bool { + if o != nil && !IsNil(o.Dremio) { + return true + } + + return false +} + +// SetDremio gets a reference to the given DremioAuth and assigns it to the Dremio field. +func (o *CatalogAuth) SetDremio(v DremioAuth) { + o.Dremio = &v +} + +// GetType returns the Type field value +func (o *CatalogAuth) GetType() CatalogAuthType { + if o == nil { + var ret CatalogAuthType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CatalogAuth) GetTypeOk() (*CatalogAuthType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CatalogAuth) SetType(v CatalogAuthType) { + o.Type = v +} + +func (o CatalogAuth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CatalogAuth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Dremio) { + toSerialize["dremio"] = o.Dremio + } + toSerialize["type"] = o.Type + return toSerialize, nil +} + +func (o *CatalogAuth) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCatalogAuth := _CatalogAuth{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCatalogAuth) + + if err != nil { + return err + } + + *o = CatalogAuth(varCatalogAuth) + + return err +} + +type NullableCatalogAuth struct { + value *CatalogAuth + isSet bool +} + +func (v NullableCatalogAuth) Get() *CatalogAuth { + return v.value +} + +func (v *NullableCatalogAuth) Set(val *CatalogAuth) { + v.value = val + v.isSet = true +} + +func (v NullableCatalogAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableCatalogAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCatalogAuth(val *CatalogAuth) *NullableCatalogAuth { + return &NullableCatalogAuth{value: val, isSet: true} +} + +func (v NullableCatalogAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCatalogAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_catalog_auth_patch.go b/services/intake/v1betaapi/model_catalog_auth_patch.go new file mode 100644 index 000000000..ec555069e --- /dev/null +++ b/services/intake/v1betaapi/model_catalog_auth_patch.go @@ -0,0 +1,160 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" +) + +// checks if the CatalogAuthPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CatalogAuthPatch{} + +// CatalogAuthPatch Configures authentication for the Iceberg catalog +type CatalogAuthPatch struct { + Dremio *DremioAuthPatch `json:"dremio,omitempty"` + Type *CatalogAuthType `json:"type,omitempty"` +} + +// NewCatalogAuthPatch instantiates a new CatalogAuthPatch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCatalogAuthPatch() *CatalogAuthPatch { + this := CatalogAuthPatch{} + return &this +} + +// NewCatalogAuthPatchWithDefaults instantiates a new CatalogAuthPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCatalogAuthPatchWithDefaults() *CatalogAuthPatch { + this := CatalogAuthPatch{} + return &this +} + +// GetDremio returns the Dremio field value if set, zero value otherwise. +func (o *CatalogAuthPatch) GetDremio() DremioAuthPatch { + if o == nil || IsNil(o.Dremio) { + var ret DremioAuthPatch + return ret + } + return *o.Dremio +} + +// GetDremioOk returns a tuple with the Dremio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CatalogAuthPatch) GetDremioOk() (*DremioAuthPatch, bool) { + if o == nil || IsNil(o.Dremio) { + return nil, false + } + return o.Dremio, true +} + +// HasDremio returns a boolean if a field has been set. +func (o *CatalogAuthPatch) HasDremio() bool { + if o != nil && !IsNil(o.Dremio) { + return true + } + + return false +} + +// SetDremio gets a reference to the given DremioAuthPatch and assigns it to the Dremio field. +func (o *CatalogAuthPatch) SetDremio(v DremioAuthPatch) { + o.Dremio = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CatalogAuthPatch) GetType() CatalogAuthType { + if o == nil || IsNil(o.Type) { + var ret CatalogAuthType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CatalogAuthPatch) GetTypeOk() (*CatalogAuthType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CatalogAuthPatch) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CatalogAuthType and assigns it to the Type field. +func (o *CatalogAuthPatch) SetType(v CatalogAuthType) { + o.Type = &v +} + +func (o CatalogAuthPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CatalogAuthPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Dremio) { + toSerialize["dremio"] = o.Dremio + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableCatalogAuthPatch struct { + value *CatalogAuthPatch + isSet bool +} + +func (v NullableCatalogAuthPatch) Get() *CatalogAuthPatch { + return v.value +} + +func (v *NullableCatalogAuthPatch) Set(val *CatalogAuthPatch) { + v.value = val + v.isSet = true +} + +func (v NullableCatalogAuthPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableCatalogAuthPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCatalogAuthPatch(val *CatalogAuthPatch) *NullableCatalogAuthPatch { + return &NullableCatalogAuthPatch{value: val, isSet: true} +} + +func (v NullableCatalogAuthPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCatalogAuthPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_catalog_auth_type.go b/services/intake/v1betaapi/model_catalog_auth_type.go new file mode 100644 index 000000000..b9927d318 --- /dev/null +++ b/services/intake/v1betaapi/model_catalog_auth_type.go @@ -0,0 +1,110 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" + "fmt" +) + +// CatalogAuthType Means of authentication for catalog requests +type CatalogAuthType string + +// List of catalogAuthType +const ( + CATALOGAUTHTYPE_NONE CatalogAuthType = "none" + CATALOGAUTHTYPE_DREMIO CatalogAuthType = "dremio" +) + +// All allowed values of CatalogAuthType enum +var AllowedCatalogAuthTypeEnumValues = []CatalogAuthType{ + "none", + "dremio", +} + +func (v *CatalogAuthType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CatalogAuthType(value) + for _, existing := range AllowedCatalogAuthTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CatalogAuthType", value) +} + +// NewCatalogAuthTypeFromValue returns a pointer to a valid CatalogAuthType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCatalogAuthTypeFromValue(v string) (*CatalogAuthType, error) { + ev := CatalogAuthType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CatalogAuthType: valid values are %v", v, AllowedCatalogAuthTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CatalogAuthType) IsValid() bool { + for _, existing := range AllowedCatalogAuthTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to catalogAuthType value +func (v CatalogAuthType) Ptr() *CatalogAuthType { + return &v +} + +type NullableCatalogAuthType struct { + value *CatalogAuthType + isSet bool +} + +func (v NullableCatalogAuthType) Get() *CatalogAuthType { + return v.value +} + +func (v *NullableCatalogAuthType) Set(val *CatalogAuthType) { + v.value = val + v.isSet = true +} + +func (v NullableCatalogAuthType) IsSet() bool { + return v.isSet +} + +func (v *NullableCatalogAuthType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCatalogAuthType(val *CatalogAuthType) *NullableCatalogAuthType { + return &NullableCatalogAuthType{value: val, isSet: true} +} + +func (v NullableCatalogAuthType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCatalogAuthType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_client_config.go b/services/intake/v1betaapi/model_client_config.go new file mode 100644 index 000000000..6acef9176 --- /dev/null +++ b/services/intake/v1betaapi/model_client_config.go @@ -0,0 +1,186 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ClientConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClientConfig{} + +// ClientConfig Configuration properties for supported clients. +type ClientConfig struct { + // Configuration for Java Kafka clients. + Java string `json:"java"` + // Configuration for Kafka clients using librdkafka + Librdkafka string `json:"librdkafka"` +} + +type _ClientConfig ClientConfig + +// NewClientConfig instantiates a new ClientConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientConfig(java string, librdkafka string) *ClientConfig { + this := ClientConfig{} + this.Java = java + this.Librdkafka = librdkafka + return &this +} + +// NewClientConfigWithDefaults instantiates a new ClientConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientConfigWithDefaults() *ClientConfig { + this := ClientConfig{} + return &this +} + +// GetJava returns the Java field value +func (o *ClientConfig) GetJava() string { + if o == nil { + var ret string + return ret + } + + return o.Java +} + +// GetJavaOk returns a tuple with the Java field value +// and a boolean to check if the value has been set. +func (o *ClientConfig) GetJavaOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Java, true +} + +// SetJava sets field value +func (o *ClientConfig) SetJava(v string) { + o.Java = v +} + +// GetLibrdkafka returns the Librdkafka field value +func (o *ClientConfig) GetLibrdkafka() string { + if o == nil { + var ret string + return ret + } + + return o.Librdkafka +} + +// GetLibrdkafkaOk returns a tuple with the Librdkafka field value +// and a boolean to check if the value has been set. +func (o *ClientConfig) GetLibrdkafkaOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Librdkafka, true +} + +// SetLibrdkafka sets field value +func (o *ClientConfig) SetLibrdkafka(v string) { + o.Librdkafka = v +} + +func (o ClientConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClientConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["java"] = o.Java + toSerialize["librdkafka"] = o.Librdkafka + return toSerialize, nil +} + +func (o *ClientConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "java", + "librdkafka", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varClientConfig := _ClientConfig{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varClientConfig) + + if err != nil { + return err + } + + *o = ClientConfig(varClientConfig) + + return err +} + +type NullableClientConfig struct { + value *ClientConfig + isSet bool +} + +func (v NullableClientConfig) Get() *ClientConfig { + return v.value +} + +func (v *NullableClientConfig) Set(val *ClientConfig) { + v.value = val + v.isSet = true +} + +func (v NullableClientConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableClientConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClientConfig(val *ClientConfig) *NullableClientConfig { + return &NullableClientConfig{value: val, isSet: true} +} + +func (v NullableClientConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClientConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_create_intake_payload.go b/services/intake/v1betaapi/model_create_intake_payload.go new file mode 100644 index 000000000..eadb544ea --- /dev/null +++ b/services/intake/v1betaapi/model_create_intake_payload.go @@ -0,0 +1,289 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateIntakePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateIntakePayload{} + +// CreateIntakePayload struct for CreateIntakePayload +type CreateIntakePayload struct { + Catalog IntakeCatalog `json:"catalog"` + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName string `json:"displayName" validate:"regexp=^[\\\\p{L}\\\\p{N} -]{1,32}$"` + // The unique id of the intake runner this intake should run on. + IntakeRunnerId string `json:"intakeRunnerId"` + // Labels are a set of key-value pairs assigned to resources. + Labels map[string]string `json:"labels,omitempty"` +} + +type _CreateIntakePayload CreateIntakePayload + +// NewCreateIntakePayload instantiates a new CreateIntakePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateIntakePayload(catalog IntakeCatalog, displayName string, intakeRunnerId string) *CreateIntakePayload { + this := CreateIntakePayload{} + this.Catalog = catalog + this.DisplayName = displayName + this.IntakeRunnerId = intakeRunnerId + return &this +} + +// NewCreateIntakePayloadWithDefaults instantiates a new CreateIntakePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateIntakePayloadWithDefaults() *CreateIntakePayload { + this := CreateIntakePayload{} + return &this +} + +// GetCatalog returns the Catalog field value +func (o *CreateIntakePayload) GetCatalog() IntakeCatalog { + if o == nil { + var ret IntakeCatalog + return ret + } + + return o.Catalog +} + +// GetCatalogOk returns a tuple with the Catalog field value +// and a boolean to check if the value has been set. +func (o *CreateIntakePayload) GetCatalogOk() (*IntakeCatalog, bool) { + if o == nil { + return nil, false + } + return &o.Catalog, true +} + +// SetCatalog sets field value +func (o *CreateIntakePayload) SetCatalog(v IntakeCatalog) { + o.Catalog = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateIntakePayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateIntakePayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateIntakePayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateIntakePayload) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *CreateIntakePayload) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *CreateIntakePayload) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *CreateIntakePayload) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetIntakeRunnerId returns the IntakeRunnerId field value +func (o *CreateIntakePayload) GetIntakeRunnerId() string { + if o == nil { + var ret string + return ret + } + + return o.IntakeRunnerId +} + +// GetIntakeRunnerIdOk returns a tuple with the IntakeRunnerId field value +// and a boolean to check if the value has been set. +func (o *CreateIntakePayload) GetIntakeRunnerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IntakeRunnerId, true +} + +// SetIntakeRunnerId sets field value +func (o *CreateIntakePayload) SetIntakeRunnerId(v string) { + o.IntakeRunnerId = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateIntakePayload) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateIntakePayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateIntakePayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *CreateIntakePayload) SetLabels(v map[string]string) { + o.Labels = v +} + +func (o CreateIntakePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateIntakePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["catalog"] = o.Catalog + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["displayName"] = o.DisplayName + toSerialize["intakeRunnerId"] = o.IntakeRunnerId + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +func (o *CreateIntakePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "catalog", + "displayName", + "intakeRunnerId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateIntakePayload := _CreateIntakePayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateIntakePayload) + + if err != nil { + return err + } + + *o = CreateIntakePayload(varCreateIntakePayload) + + return err +} + +type NullableCreateIntakePayload struct { + value *CreateIntakePayload + isSet bool +} + +func (v NullableCreateIntakePayload) Get() *CreateIntakePayload { + return v.value +} + +func (v *NullableCreateIntakePayload) Set(val *CreateIntakePayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateIntakePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateIntakePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateIntakePayload(val *CreateIntakePayload) *NullableCreateIntakePayload { + return &NullableCreateIntakePayload{value: val, isSet: true} +} + +func (v NullableCreateIntakePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateIntakePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_create_intake_runner_payload.go b/services/intake/v1betaapi/model_create_intake_runner_payload.go new file mode 100644 index 000000000..bf5089d7d --- /dev/null +++ b/services/intake/v1betaapi/model_create_intake_runner_payload.go @@ -0,0 +1,290 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateIntakeRunnerPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateIntakeRunnerPayload{} + +// CreateIntakeRunnerPayload struct for CreateIntakeRunnerPayload +type CreateIntakeRunnerPayload struct { + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName string `json:"displayName" validate:"regexp=^[\\\\p{L}\\\\p{N} -]{1,32}$"` + // Labels are a set of key-value pairs assigned to resources. + Labels map[string]string `json:"labels,omitempty"` + // The maximum size of a message in kibibytes (1 KiB = 1024 bytes). + MaxMessageSizeKiB int32 `json:"maxMessageSizeKiB"` + // The maximum number of messages per hour. + MaxMessagesPerHour int32 `json:"maxMessagesPerHour"` +} + +type _CreateIntakeRunnerPayload CreateIntakeRunnerPayload + +// NewCreateIntakeRunnerPayload instantiates a new CreateIntakeRunnerPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateIntakeRunnerPayload(displayName string, maxMessageSizeKiB int32, maxMessagesPerHour int32) *CreateIntakeRunnerPayload { + this := CreateIntakeRunnerPayload{} + this.DisplayName = displayName + this.MaxMessageSizeKiB = maxMessageSizeKiB + this.MaxMessagesPerHour = maxMessagesPerHour + return &this +} + +// NewCreateIntakeRunnerPayloadWithDefaults instantiates a new CreateIntakeRunnerPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateIntakeRunnerPayloadWithDefaults() *CreateIntakeRunnerPayload { + this := CreateIntakeRunnerPayload{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateIntakeRunnerPayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateIntakeRunnerPayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateIntakeRunnerPayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateIntakeRunnerPayload) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *CreateIntakeRunnerPayload) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *CreateIntakeRunnerPayload) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *CreateIntakeRunnerPayload) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateIntakeRunnerPayload) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateIntakeRunnerPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateIntakeRunnerPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *CreateIntakeRunnerPayload) SetLabels(v map[string]string) { + o.Labels = v +} + +// GetMaxMessageSizeKiB returns the MaxMessageSizeKiB field value +func (o *CreateIntakeRunnerPayload) GetMaxMessageSizeKiB() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MaxMessageSizeKiB +} + +// GetMaxMessageSizeKiBOk returns a tuple with the MaxMessageSizeKiB field value +// and a boolean to check if the value has been set. +func (o *CreateIntakeRunnerPayload) GetMaxMessageSizeKiBOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MaxMessageSizeKiB, true +} + +// SetMaxMessageSizeKiB sets field value +func (o *CreateIntakeRunnerPayload) SetMaxMessageSizeKiB(v int32) { + o.MaxMessageSizeKiB = v +} + +// GetMaxMessagesPerHour returns the MaxMessagesPerHour field value +func (o *CreateIntakeRunnerPayload) GetMaxMessagesPerHour() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MaxMessagesPerHour +} + +// GetMaxMessagesPerHourOk returns a tuple with the MaxMessagesPerHour field value +// and a boolean to check if the value has been set. +func (o *CreateIntakeRunnerPayload) GetMaxMessagesPerHourOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MaxMessagesPerHour, true +} + +// SetMaxMessagesPerHour sets field value +func (o *CreateIntakeRunnerPayload) SetMaxMessagesPerHour(v int32) { + o.MaxMessagesPerHour = v +} + +func (o CreateIntakeRunnerPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateIntakeRunnerPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["displayName"] = o.DisplayName + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + toSerialize["maxMessageSizeKiB"] = o.MaxMessageSizeKiB + toSerialize["maxMessagesPerHour"] = o.MaxMessagesPerHour + return toSerialize, nil +} + +func (o *CreateIntakeRunnerPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "displayName", + "maxMessageSizeKiB", + "maxMessagesPerHour", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateIntakeRunnerPayload := _CreateIntakeRunnerPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateIntakeRunnerPayload) + + if err != nil { + return err + } + + *o = CreateIntakeRunnerPayload(varCreateIntakeRunnerPayload) + + return err +} + +type NullableCreateIntakeRunnerPayload struct { + value *CreateIntakeRunnerPayload + isSet bool +} + +func (v NullableCreateIntakeRunnerPayload) Get() *CreateIntakeRunnerPayload { + return v.value +} + +func (v *NullableCreateIntakeRunnerPayload) Set(val *CreateIntakeRunnerPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateIntakeRunnerPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateIntakeRunnerPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateIntakeRunnerPayload(val *CreateIntakeRunnerPayload) *NullableCreateIntakeRunnerPayload { + return &NullableCreateIntakeRunnerPayload{value: val, isSet: true} +} + +func (v NullableCreateIntakeRunnerPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateIntakeRunnerPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_create_intake_user_payload.go b/services/intake/v1betaapi/model_create_intake_user_payload.go new file mode 100644 index 000000000..4f8c1c2d3 --- /dev/null +++ b/services/intake/v1betaapi/model_create_intake_user_payload.go @@ -0,0 +1,301 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateIntakeUserPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateIntakeUserPayload{} + +// CreateIntakeUserPayload struct for CreateIntakeUserPayload +type CreateIntakeUserPayload struct { + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName string `json:"displayName" validate:"regexp=^[\\\\p{L}\\\\p{N} -]{1,32}$"` + // Labels are key-value pairs associated with the resource. + Labels map[string]string `json:"labels,omitempty"` + // A password chosen by the user. The password must consist of at least of each of these categories: * lower case letter * upper case letter * number * other character + Password string `json:"password"` + Type *UserType `json:"type,omitempty"` +} + +type _CreateIntakeUserPayload CreateIntakeUserPayload + +// NewCreateIntakeUserPayload instantiates a new CreateIntakeUserPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateIntakeUserPayload(displayName string, password string) *CreateIntakeUserPayload { + this := CreateIntakeUserPayload{} + this.DisplayName = displayName + this.Password = password + var types UserType = USERTYPE_INTAKE + this.Type = &types + return &this +} + +// NewCreateIntakeUserPayloadWithDefaults instantiates a new CreateIntakeUserPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateIntakeUserPayloadWithDefaults() *CreateIntakeUserPayload { + this := CreateIntakeUserPayload{} + var types UserType = USERTYPE_INTAKE + this.Type = &types + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateIntakeUserPayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateIntakeUserPayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateIntakeUserPayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateIntakeUserPayload) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *CreateIntakeUserPayload) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *CreateIntakeUserPayload) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *CreateIntakeUserPayload) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateIntakeUserPayload) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateIntakeUserPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateIntakeUserPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *CreateIntakeUserPayload) SetLabels(v map[string]string) { + o.Labels = v +} + +// GetPassword returns the Password field value +func (o *CreateIntakeUserPayload) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *CreateIntakeUserPayload) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *CreateIntakeUserPayload) SetPassword(v string) { + o.Password = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CreateIntakeUserPayload) GetType() UserType { + if o == nil || IsNil(o.Type) { + var ret UserType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateIntakeUserPayload) GetTypeOk() (*UserType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CreateIntakeUserPayload) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given UserType and assigns it to the Type field. +func (o *CreateIntakeUserPayload) SetType(v UserType) { + o.Type = &v +} + +func (o CreateIntakeUserPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateIntakeUserPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["displayName"] = o.DisplayName + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + toSerialize["password"] = o.Password + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +func (o *CreateIntakeUserPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "displayName", + "password", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateIntakeUserPayload := _CreateIntakeUserPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateIntakeUserPayload) + + if err != nil { + return err + } + + *o = CreateIntakeUserPayload(varCreateIntakeUserPayload) + + return err +} + +type NullableCreateIntakeUserPayload struct { + value *CreateIntakeUserPayload + isSet bool +} + +func (v NullableCreateIntakeUserPayload) Get() *CreateIntakeUserPayload { + return v.value +} + +func (v *NullableCreateIntakeUserPayload) Set(val *CreateIntakeUserPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateIntakeUserPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateIntakeUserPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateIntakeUserPayload(val *CreateIntakeUserPayload) *NullableCreateIntakeUserPayload { + return &NullableCreateIntakeUserPayload{value: val, isSet: true} +} + +func (v NullableCreateIntakeUserPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateIntakeUserPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_dremio_auth.go b/services/intake/v1betaapi/model_dremio_auth.go new file mode 100644 index 000000000..f356c662f --- /dev/null +++ b/services/intake/v1betaapi/model_dremio_auth.go @@ -0,0 +1,186 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the DremioAuth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DremioAuth{} + +// DremioAuth struct for DremioAuth +type DremioAuth struct { + // A Dremio personal access token for authentication + PersonalAccessToken string `json:"personalAccessToken"` + // The URL to the Dremio instance's OAuth 2.0 token endpoint + TokenEndpoint string `json:"tokenEndpoint"` +} + +type _DremioAuth DremioAuth + +// NewDremioAuth instantiates a new DremioAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDremioAuth(personalAccessToken string, tokenEndpoint string) *DremioAuth { + this := DremioAuth{} + this.PersonalAccessToken = personalAccessToken + this.TokenEndpoint = tokenEndpoint + return &this +} + +// NewDremioAuthWithDefaults instantiates a new DremioAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDremioAuthWithDefaults() *DremioAuth { + this := DremioAuth{} + return &this +} + +// GetPersonalAccessToken returns the PersonalAccessToken field value +func (o *DremioAuth) GetPersonalAccessToken() string { + if o == nil { + var ret string + return ret + } + + return o.PersonalAccessToken +} + +// GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field value +// and a boolean to check if the value has been set. +func (o *DremioAuth) GetPersonalAccessTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PersonalAccessToken, true +} + +// SetPersonalAccessToken sets field value +func (o *DremioAuth) SetPersonalAccessToken(v string) { + o.PersonalAccessToken = v +} + +// GetTokenEndpoint returns the TokenEndpoint field value +func (o *DremioAuth) GetTokenEndpoint() string { + if o == nil { + var ret string + return ret + } + + return o.TokenEndpoint +} + +// GetTokenEndpointOk returns a tuple with the TokenEndpoint field value +// and a boolean to check if the value has been set. +func (o *DremioAuth) GetTokenEndpointOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenEndpoint, true +} + +// SetTokenEndpoint sets field value +func (o *DremioAuth) SetTokenEndpoint(v string) { + o.TokenEndpoint = v +} + +func (o DremioAuth) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DremioAuth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["personalAccessToken"] = o.PersonalAccessToken + toSerialize["tokenEndpoint"] = o.TokenEndpoint + return toSerialize, nil +} + +func (o *DremioAuth) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "personalAccessToken", + "tokenEndpoint", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDremioAuth := _DremioAuth{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varDremioAuth) + + if err != nil { + return err + } + + *o = DremioAuth(varDremioAuth) + + return err +} + +type NullableDremioAuth struct { + value *DremioAuth + isSet bool +} + +func (v NullableDremioAuth) Get() *DremioAuth { + return v.value +} + +func (v *NullableDremioAuth) Set(val *DremioAuth) { + v.value = val + v.isSet = true +} + +func (v NullableDremioAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableDremioAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDremioAuth(val *DremioAuth) *NullableDremioAuth { + return &NullableDremioAuth{value: val, isSet: true} +} + +func (v NullableDremioAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDremioAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_dremio_auth_patch.go b/services/intake/v1betaapi/model_dremio_auth_patch.go new file mode 100644 index 000000000..95d9207b2 --- /dev/null +++ b/services/intake/v1betaapi/model_dremio_auth_patch.go @@ -0,0 +1,162 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" +) + +// checks if the DremioAuthPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DremioAuthPatch{} + +// DremioAuthPatch struct for DremioAuthPatch +type DremioAuthPatch struct { + // A Dremio personal access token for authentication + PersonalAccessToken *string `json:"personalAccessToken,omitempty"` + // The URL to the Dremio instance's OAuth 2.0 token endpoint + TokenEndpoint *string `json:"tokenEndpoint,omitempty"` +} + +// NewDremioAuthPatch instantiates a new DremioAuthPatch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDremioAuthPatch() *DremioAuthPatch { + this := DremioAuthPatch{} + return &this +} + +// NewDremioAuthPatchWithDefaults instantiates a new DremioAuthPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDremioAuthPatchWithDefaults() *DremioAuthPatch { + this := DremioAuthPatch{} + return &this +} + +// GetPersonalAccessToken returns the PersonalAccessToken field value if set, zero value otherwise. +func (o *DremioAuthPatch) GetPersonalAccessToken() string { + if o == nil || IsNil(o.PersonalAccessToken) { + var ret string + return ret + } + return *o.PersonalAccessToken +} + +// GetPersonalAccessTokenOk returns a tuple with the PersonalAccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DremioAuthPatch) GetPersonalAccessTokenOk() (*string, bool) { + if o == nil || IsNil(o.PersonalAccessToken) { + return nil, false + } + return o.PersonalAccessToken, true +} + +// HasPersonalAccessToken returns a boolean if a field has been set. +func (o *DremioAuthPatch) HasPersonalAccessToken() bool { + if o != nil && !IsNil(o.PersonalAccessToken) { + return true + } + + return false +} + +// SetPersonalAccessToken gets a reference to the given string and assigns it to the PersonalAccessToken field. +func (o *DremioAuthPatch) SetPersonalAccessToken(v string) { + o.PersonalAccessToken = &v +} + +// GetTokenEndpoint returns the TokenEndpoint field value if set, zero value otherwise. +func (o *DremioAuthPatch) GetTokenEndpoint() string { + if o == nil || IsNil(o.TokenEndpoint) { + var ret string + return ret + } + return *o.TokenEndpoint +} + +// GetTokenEndpointOk returns a tuple with the TokenEndpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DremioAuthPatch) GetTokenEndpointOk() (*string, bool) { + if o == nil || IsNil(o.TokenEndpoint) { + return nil, false + } + return o.TokenEndpoint, true +} + +// HasTokenEndpoint returns a boolean if a field has been set. +func (o *DremioAuthPatch) HasTokenEndpoint() bool { + if o != nil && !IsNil(o.TokenEndpoint) { + return true + } + + return false +} + +// SetTokenEndpoint gets a reference to the given string and assigns it to the TokenEndpoint field. +func (o *DremioAuthPatch) SetTokenEndpoint(v string) { + o.TokenEndpoint = &v +} + +func (o DremioAuthPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DremioAuthPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PersonalAccessToken) { + toSerialize["personalAccessToken"] = o.PersonalAccessToken + } + if !IsNil(o.TokenEndpoint) { + toSerialize["tokenEndpoint"] = o.TokenEndpoint + } + return toSerialize, nil +} + +type NullableDremioAuthPatch struct { + value *DremioAuthPatch + isSet bool +} + +func (v NullableDremioAuthPatch) Get() *DremioAuthPatch { + return v.value +} + +func (v *NullableDremioAuthPatch) Set(val *DremioAuthPatch) { + v.value = val + v.isSet = true +} + +func (v NullableDremioAuthPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableDremioAuthPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDremioAuthPatch(val *DremioAuthPatch) *NullableDremioAuthPatch { + return &NullableDremioAuthPatch{value: val, isSet: true} +} + +func (v NullableDremioAuthPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDremioAuthPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_intake_catalog.go b/services/intake/v1betaapi/model_intake_catalog.go new file mode 100644 index 000000000..38b8ec00a --- /dev/null +++ b/services/intake/v1betaapi/model_intake_catalog.go @@ -0,0 +1,378 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the IntakeCatalog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IntakeCatalog{} + +// IntakeCatalog The Iceberg catalog configuration +type IntakeCatalog struct { + Auth *CatalogAuth `json:"auth,omitempty"` + // The namespace to which data shall be written. It will be automatically created, if it does not exist. + Namespace *string `json:"namespace,omitempty"` + // List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. Partitioning configuration of an Intake can be changed after creation, but will only take effect once the table has been changed as well. In case of not updating the table to a new one, the old partitioning configuration will remain. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. + PartitionBy []string `json:"partitionBy,omitempty"` + Partitioning *PartitioningType `json:"partitioning,omitempty"` + // The table name is a short name chosen by the user to identify the table in Iceberg. + TableName *string `json:"tableName,omitempty"` + // The URI to the Iceberg catalog endpoint + Uri string `json:"uri"` + // The Iceberg warehouse to connect to, required when the catalog has no default warehouse configured. + Warehouse string `json:"warehouse"` +} + +type _IntakeCatalog IntakeCatalog + +// NewIntakeCatalog instantiates a new IntakeCatalog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIntakeCatalog(uri string, warehouse string) *IntakeCatalog { + this := IntakeCatalog{} + var namespace string = "intake" + this.Namespace = &namespace + var partitioning PartitioningType = PARTITIONINGTYPE_NONE + this.Partitioning = &partitioning + this.Uri = uri + this.Warehouse = warehouse + return &this +} + +// NewIntakeCatalogWithDefaults instantiates a new IntakeCatalog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIntakeCatalogWithDefaults() *IntakeCatalog { + this := IntakeCatalog{} + var namespace string = "intake" + this.Namespace = &namespace + var partitioning PartitioningType = PARTITIONINGTYPE_NONE + this.Partitioning = &partitioning + return &this +} + +// GetAuth returns the Auth field value if set, zero value otherwise. +func (o *IntakeCatalog) GetAuth() CatalogAuth { + if o == nil || IsNil(o.Auth) { + var ret CatalogAuth + return ret + } + return *o.Auth +} + +// GetAuthOk returns a tuple with the Auth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalog) GetAuthOk() (*CatalogAuth, bool) { + if o == nil || IsNil(o.Auth) { + return nil, false + } + return o.Auth, true +} + +// HasAuth returns a boolean if a field has been set. +func (o *IntakeCatalog) HasAuth() bool { + if o != nil && !IsNil(o.Auth) { + return true + } + + return false +} + +// SetAuth gets a reference to the given CatalogAuth and assigns it to the Auth field. +func (o *IntakeCatalog) SetAuth(v CatalogAuth) { + o.Auth = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *IntakeCatalog) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalog) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *IntakeCatalog) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *IntakeCatalog) SetNamespace(v string) { + o.Namespace = &v +} + +// GetPartitionBy returns the PartitionBy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IntakeCatalog) GetPartitionBy() []string { + if o == nil { + var ret []string + return ret + } + return o.PartitionBy +} + +// GetPartitionByOk returns a tuple with the PartitionBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IntakeCatalog) GetPartitionByOk() ([]string, bool) { + if o == nil || IsNil(o.PartitionBy) { + return nil, false + } + return o.PartitionBy, true +} + +// HasPartitionBy returns a boolean if a field has been set. +func (o *IntakeCatalog) HasPartitionBy() bool { + if o != nil && !IsNil(o.PartitionBy) { + return true + } + + return false +} + +// SetPartitionBy gets a reference to the given []string and assigns it to the PartitionBy field. +func (o *IntakeCatalog) SetPartitionBy(v []string) { + o.PartitionBy = v +} + +// GetPartitioning returns the Partitioning field value if set, zero value otherwise. +func (o *IntakeCatalog) GetPartitioning() PartitioningType { + if o == nil || IsNil(o.Partitioning) { + var ret PartitioningType + return ret + } + return *o.Partitioning +} + +// GetPartitioningOk returns a tuple with the Partitioning field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalog) GetPartitioningOk() (*PartitioningType, bool) { + if o == nil || IsNil(o.Partitioning) { + return nil, false + } + return o.Partitioning, true +} + +// HasPartitioning returns a boolean if a field has been set. +func (o *IntakeCatalog) HasPartitioning() bool { + if o != nil && !IsNil(o.Partitioning) { + return true + } + + return false +} + +// SetPartitioning gets a reference to the given PartitioningType and assigns it to the Partitioning field. +func (o *IntakeCatalog) SetPartitioning(v PartitioningType) { + o.Partitioning = &v +} + +// GetTableName returns the TableName field value if set, zero value otherwise. +func (o *IntakeCatalog) GetTableName() string { + if o == nil || IsNil(o.TableName) { + var ret string + return ret + } + return *o.TableName +} + +// GetTableNameOk returns a tuple with the TableName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalog) GetTableNameOk() (*string, bool) { + if o == nil || IsNil(o.TableName) { + return nil, false + } + return o.TableName, true +} + +// HasTableName returns a boolean if a field has been set. +func (o *IntakeCatalog) HasTableName() bool { + if o != nil && !IsNil(o.TableName) { + return true + } + + return false +} + +// SetTableName gets a reference to the given string and assigns it to the TableName field. +func (o *IntakeCatalog) SetTableName(v string) { + o.TableName = &v +} + +// GetUri returns the Uri field value +func (o *IntakeCatalog) GetUri() string { + if o == nil { + var ret string + return ret + } + + return o.Uri +} + +// GetUriOk returns a tuple with the Uri field value +// and a boolean to check if the value has been set. +func (o *IntakeCatalog) GetUriOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uri, true +} + +// SetUri sets field value +func (o *IntakeCatalog) SetUri(v string) { + o.Uri = v +} + +// GetWarehouse returns the Warehouse field value +func (o *IntakeCatalog) GetWarehouse() string { + if o == nil { + var ret string + return ret + } + + return o.Warehouse +} + +// GetWarehouseOk returns a tuple with the Warehouse field value +// and a boolean to check if the value has been set. +func (o *IntakeCatalog) GetWarehouseOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Warehouse, true +} + +// SetWarehouse sets field value +func (o *IntakeCatalog) SetWarehouse(v string) { + o.Warehouse = v +} + +func (o IntakeCatalog) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IntakeCatalog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Auth) { + toSerialize["auth"] = o.Auth + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if o.PartitionBy != nil { + toSerialize["partitionBy"] = o.PartitionBy + } + if !IsNil(o.Partitioning) { + toSerialize["partitioning"] = o.Partitioning + } + if !IsNil(o.TableName) { + toSerialize["tableName"] = o.TableName + } + toSerialize["uri"] = o.Uri + toSerialize["warehouse"] = o.Warehouse + return toSerialize, nil +} + +func (o *IntakeCatalog) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "uri", + "warehouse", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIntakeCatalog := _IntakeCatalog{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varIntakeCatalog) + + if err != nil { + return err + } + + *o = IntakeCatalog(varIntakeCatalog) + + return err +} + +type NullableIntakeCatalog struct { + value *IntakeCatalog + isSet bool +} + +func (v NullableIntakeCatalog) Get() *IntakeCatalog { + return v.value +} + +func (v *NullableIntakeCatalog) Set(val *IntakeCatalog) { + v.value = val + v.isSet = true +} + +func (v NullableIntakeCatalog) IsSet() bool { + return v.isSet +} + +func (v *NullableIntakeCatalog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIntakeCatalog(val *IntakeCatalog) *NullableIntakeCatalog { + return &NullableIntakeCatalog{value: val, isSet: true} +} + +func (v NullableIntakeCatalog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIntakeCatalog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_intake_catalog_patch.go b/services/intake/v1betaapi/model_intake_catalog_patch.go new file mode 100644 index 000000000..1fedf753b --- /dev/null +++ b/services/intake/v1betaapi/model_intake_catalog_patch.go @@ -0,0 +1,350 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" +) + +// checks if the IntakeCatalogPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IntakeCatalogPatch{} + +// IntakeCatalogPatch The Iceberg catalog configuration +type IntakeCatalogPatch struct { + Auth *CatalogAuthPatch `json:"auth,omitempty"` + // The namespace to which data shall be written. It will be automatically created, if it does not exist. + Namespace *string `json:"namespace,omitempty"` + // List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. + PartitionBy []string `json:"partitionBy,omitempty"` + Partitioning *PartitioningUpdateType `json:"partitioning,omitempty"` + // The table name is a short name chosen by the user to identify the table in Iceberg. + TableName *string `json:"tableName,omitempty"` + // The URI to the Iceberg catalog endpoint + Uri *string `json:"uri,omitempty"` + // The Iceberg warehouse to connect to, required when the catalog has no default warehouse configured. + Warehouse *string `json:"warehouse,omitempty"` +} + +// NewIntakeCatalogPatch instantiates a new IntakeCatalogPatch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIntakeCatalogPatch() *IntakeCatalogPatch { + this := IntakeCatalogPatch{} + var namespace string = "intake" + this.Namespace = &namespace + return &this +} + +// NewIntakeCatalogPatchWithDefaults instantiates a new IntakeCatalogPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIntakeCatalogPatchWithDefaults() *IntakeCatalogPatch { + this := IntakeCatalogPatch{} + var namespace string = "intake" + this.Namespace = &namespace + return &this +} + +// GetAuth returns the Auth field value if set, zero value otherwise. +func (o *IntakeCatalogPatch) GetAuth() CatalogAuthPatch { + if o == nil || IsNil(o.Auth) { + var ret CatalogAuthPatch + return ret + } + return *o.Auth +} + +// GetAuthOk returns a tuple with the Auth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalogPatch) GetAuthOk() (*CatalogAuthPatch, bool) { + if o == nil || IsNil(o.Auth) { + return nil, false + } + return o.Auth, true +} + +// HasAuth returns a boolean if a field has been set. +func (o *IntakeCatalogPatch) HasAuth() bool { + if o != nil && !IsNil(o.Auth) { + return true + } + + return false +} + +// SetAuth gets a reference to the given CatalogAuthPatch and assigns it to the Auth field. +func (o *IntakeCatalogPatch) SetAuth(v CatalogAuthPatch) { + o.Auth = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *IntakeCatalogPatch) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalogPatch) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *IntakeCatalogPatch) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *IntakeCatalogPatch) SetNamespace(v string) { + o.Namespace = &v +} + +// GetPartitionBy returns the PartitionBy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IntakeCatalogPatch) GetPartitionBy() []string { + if o == nil { + var ret []string + return ret + } + return o.PartitionBy +} + +// GetPartitionByOk returns a tuple with the PartitionBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IntakeCatalogPatch) GetPartitionByOk() ([]string, bool) { + if o == nil || IsNil(o.PartitionBy) { + return nil, false + } + return o.PartitionBy, true +} + +// HasPartitionBy returns a boolean if a field has been set. +func (o *IntakeCatalogPatch) HasPartitionBy() bool { + if o != nil && !IsNil(o.PartitionBy) { + return true + } + + return false +} + +// SetPartitionBy gets a reference to the given []string and assigns it to the PartitionBy field. +func (o *IntakeCatalogPatch) SetPartitionBy(v []string) { + o.PartitionBy = v +} + +// GetPartitioning returns the Partitioning field value if set, zero value otherwise. +func (o *IntakeCatalogPatch) GetPartitioning() PartitioningUpdateType { + if o == nil || IsNil(o.Partitioning) { + var ret PartitioningUpdateType + return ret + } + return *o.Partitioning +} + +// GetPartitioningOk returns a tuple with the Partitioning field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalogPatch) GetPartitioningOk() (*PartitioningUpdateType, bool) { + if o == nil || IsNil(o.Partitioning) { + return nil, false + } + return o.Partitioning, true +} + +// HasPartitioning returns a boolean if a field has been set. +func (o *IntakeCatalogPatch) HasPartitioning() bool { + if o != nil && !IsNil(o.Partitioning) { + return true + } + + return false +} + +// SetPartitioning gets a reference to the given PartitioningUpdateType and assigns it to the Partitioning field. +func (o *IntakeCatalogPatch) SetPartitioning(v PartitioningUpdateType) { + o.Partitioning = &v +} + +// GetTableName returns the TableName field value if set, zero value otherwise. +func (o *IntakeCatalogPatch) GetTableName() string { + if o == nil || IsNil(o.TableName) { + var ret string + return ret + } + return *o.TableName +} + +// GetTableNameOk returns a tuple with the TableName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalogPatch) GetTableNameOk() (*string, bool) { + if o == nil || IsNil(o.TableName) { + return nil, false + } + return o.TableName, true +} + +// HasTableName returns a boolean if a field has been set. +func (o *IntakeCatalogPatch) HasTableName() bool { + if o != nil && !IsNil(o.TableName) { + return true + } + + return false +} + +// SetTableName gets a reference to the given string and assigns it to the TableName field. +func (o *IntakeCatalogPatch) SetTableName(v string) { + o.TableName = &v +} + +// GetUri returns the Uri field value if set, zero value otherwise. +func (o *IntakeCatalogPatch) GetUri() string { + if o == nil || IsNil(o.Uri) { + var ret string + return ret + } + return *o.Uri +} + +// GetUriOk returns a tuple with the Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalogPatch) GetUriOk() (*string, bool) { + if o == nil || IsNil(o.Uri) { + return nil, false + } + return o.Uri, true +} + +// HasUri returns a boolean if a field has been set. +func (o *IntakeCatalogPatch) HasUri() bool { + if o != nil && !IsNil(o.Uri) { + return true + } + + return false +} + +// SetUri gets a reference to the given string and assigns it to the Uri field. +func (o *IntakeCatalogPatch) SetUri(v string) { + o.Uri = &v +} + +// GetWarehouse returns the Warehouse field value if set, zero value otherwise. +func (o *IntakeCatalogPatch) GetWarehouse() string { + if o == nil || IsNil(o.Warehouse) { + var ret string + return ret + } + return *o.Warehouse +} + +// GetWarehouseOk returns a tuple with the Warehouse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeCatalogPatch) GetWarehouseOk() (*string, bool) { + if o == nil || IsNil(o.Warehouse) { + return nil, false + } + return o.Warehouse, true +} + +// HasWarehouse returns a boolean if a field has been set. +func (o *IntakeCatalogPatch) HasWarehouse() bool { + if o != nil && !IsNil(o.Warehouse) { + return true + } + + return false +} + +// SetWarehouse gets a reference to the given string and assigns it to the Warehouse field. +func (o *IntakeCatalogPatch) SetWarehouse(v string) { + o.Warehouse = &v +} + +func (o IntakeCatalogPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IntakeCatalogPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Auth) { + toSerialize["auth"] = o.Auth + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if o.PartitionBy != nil { + toSerialize["partitionBy"] = o.PartitionBy + } + if !IsNil(o.Partitioning) { + toSerialize["partitioning"] = o.Partitioning + } + if !IsNil(o.TableName) { + toSerialize["tableName"] = o.TableName + } + if !IsNil(o.Uri) { + toSerialize["uri"] = o.Uri + } + if !IsNil(o.Warehouse) { + toSerialize["warehouse"] = o.Warehouse + } + return toSerialize, nil +} + +type NullableIntakeCatalogPatch struct { + value *IntakeCatalogPatch + isSet bool +} + +func (v NullableIntakeCatalogPatch) Get() *IntakeCatalogPatch { + return v.value +} + +func (v *NullableIntakeCatalogPatch) Set(val *IntakeCatalogPatch) { + v.value = val + v.isSet = true +} + +func (v NullableIntakeCatalogPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableIntakeCatalogPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIntakeCatalogPatch(val *IntakeCatalogPatch) *NullableIntakeCatalogPatch { + return &NullableIntakeCatalogPatch{value: val, isSet: true} +} + +func (v NullableIntakeCatalogPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIntakeCatalogPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_intake_response.go b/services/intake/v1betaapi/model_intake_response.go new file mode 100644 index 000000000..bf5ad85b0 --- /dev/null +++ b/services/intake/v1betaapi/model_intake_response.go @@ -0,0 +1,538 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" + "time" +) + +// checks if the IntakeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IntakeResponse{} + +// IntakeResponse struct for IntakeResponse +type IntakeResponse struct { + Catalog IntakeCatalog `json:"catalog"` + // The point in time the resource was created. + CreateTime time.Time `json:"create_time"` + // The topic where undelivered messages are published (Dead Letter Queue). + DeadLetterTopic string `json:"deadLetterTopic"` + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName string `json:"displayName"` + // A human-readable description of the error, if the state is 'failed'. + FailureMessage *string `json:"failure_message,omitempty"` + // A auto generated unique id which identifies the resource. + Id string `json:"id"` + // The unique id of the intake runner this intake is running on. + IntakeRunnerId string `json:"intakeRunnerId"` + // Labels are a set of key-value pairs assigned to resources. + Labels map[string]string `json:"labels,omitempty"` + // The current state of the resource. + State string `json:"state"` + // The topic to publish data to. + Topic string `json:"topic"` + // Number of messages that failed delivery and were sent to the Dead Letter Queue. + UndeliveredMessageCount *int64 `json:"undeliveredMessageCount,omitempty"` + // The URI for reaching the resource. + Uri string `json:"uri"` +} + +type _IntakeResponse IntakeResponse + +// NewIntakeResponse instantiates a new IntakeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIntakeResponse(catalog IntakeCatalog, createTime time.Time, deadLetterTopic string, displayName string, id string, intakeRunnerId string, state string, topic string, uri string) *IntakeResponse { + this := IntakeResponse{} + this.Catalog = catalog + this.CreateTime = createTime + this.DeadLetterTopic = deadLetterTopic + this.DisplayName = displayName + this.Id = id + this.IntakeRunnerId = intakeRunnerId + this.State = state + this.Topic = topic + this.Uri = uri + return &this +} + +// NewIntakeResponseWithDefaults instantiates a new IntakeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIntakeResponseWithDefaults() *IntakeResponse { + this := IntakeResponse{} + return &this +} + +// GetCatalog returns the Catalog field value +func (o *IntakeResponse) GetCatalog() IntakeCatalog { + if o == nil { + var ret IntakeCatalog + return ret + } + + return o.Catalog +} + +// GetCatalogOk returns a tuple with the Catalog field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetCatalogOk() (*IntakeCatalog, bool) { + if o == nil { + return nil, false + } + return &o.Catalog, true +} + +// SetCatalog sets field value +func (o *IntakeResponse) SetCatalog(v IntakeCatalog) { + o.Catalog = v +} + +// GetCreateTime returns the CreateTime field value +func (o *IntakeResponse) GetCreateTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreateTime +} + +// GetCreateTimeOk returns a tuple with the CreateTime field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetCreateTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreateTime, true +} + +// SetCreateTime sets field value +func (o *IntakeResponse) SetCreateTime(v time.Time) { + o.CreateTime = v +} + +// GetDeadLetterTopic returns the DeadLetterTopic field value +func (o *IntakeResponse) GetDeadLetterTopic() string { + if o == nil { + var ret string + return ret + } + + return o.DeadLetterTopic +} + +// GetDeadLetterTopicOk returns a tuple with the DeadLetterTopic field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetDeadLetterTopicOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DeadLetterTopic, true +} + +// SetDeadLetterTopic sets field value +func (o *IntakeResponse) SetDeadLetterTopic(v string) { + o.DeadLetterTopic = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *IntakeResponse) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *IntakeResponse) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *IntakeResponse) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *IntakeResponse) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *IntakeResponse) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetFailureMessage returns the FailureMessage field value if set, zero value otherwise. +func (o *IntakeResponse) GetFailureMessage() string { + if o == nil || IsNil(o.FailureMessage) { + var ret string + return ret + } + return *o.FailureMessage +} + +// GetFailureMessageOk returns a tuple with the FailureMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetFailureMessageOk() (*string, bool) { + if o == nil || IsNil(o.FailureMessage) { + return nil, false + } + return o.FailureMessage, true +} + +// HasFailureMessage returns a boolean if a field has been set. +func (o *IntakeResponse) HasFailureMessage() bool { + if o != nil && !IsNil(o.FailureMessage) { + return true + } + + return false +} + +// SetFailureMessage gets a reference to the given string and assigns it to the FailureMessage field. +func (o *IntakeResponse) SetFailureMessage(v string) { + o.FailureMessage = &v +} + +// GetId returns the Id field value +func (o *IntakeResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *IntakeResponse) SetId(v string) { + o.Id = v +} + +// GetIntakeRunnerId returns the IntakeRunnerId field value +func (o *IntakeResponse) GetIntakeRunnerId() string { + if o == nil { + var ret string + return ret + } + + return o.IntakeRunnerId +} + +// GetIntakeRunnerIdOk returns a tuple with the IntakeRunnerId field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetIntakeRunnerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IntakeRunnerId, true +} + +// SetIntakeRunnerId sets field value +func (o *IntakeResponse) SetIntakeRunnerId(v string) { + o.IntakeRunnerId = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IntakeResponse) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IntakeResponse) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *IntakeResponse) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *IntakeResponse) SetLabels(v map[string]string) { + o.Labels = v +} + +// GetState returns the State field value +func (o *IntakeResponse) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *IntakeResponse) SetState(v string) { + o.State = v +} + +// GetTopic returns the Topic field value +func (o *IntakeResponse) GetTopic() string { + if o == nil { + var ret string + return ret + } + + return o.Topic +} + +// GetTopicOk returns a tuple with the Topic field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetTopicOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Topic, true +} + +// SetTopic sets field value +func (o *IntakeResponse) SetTopic(v string) { + o.Topic = v +} + +// GetUndeliveredMessageCount returns the UndeliveredMessageCount field value if set, zero value otherwise. +func (o *IntakeResponse) GetUndeliveredMessageCount() int64 { + if o == nil || IsNil(o.UndeliveredMessageCount) { + var ret int64 + return ret + } + return *o.UndeliveredMessageCount +} + +// GetUndeliveredMessageCountOk returns a tuple with the UndeliveredMessageCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetUndeliveredMessageCountOk() (*int64, bool) { + if o == nil || IsNil(o.UndeliveredMessageCount) { + return nil, false + } + return o.UndeliveredMessageCount, true +} + +// HasUndeliveredMessageCount returns a boolean if a field has been set. +func (o *IntakeResponse) HasUndeliveredMessageCount() bool { + if o != nil && !IsNil(o.UndeliveredMessageCount) { + return true + } + + return false +} + +// SetUndeliveredMessageCount gets a reference to the given int64 and assigns it to the UndeliveredMessageCount field. +func (o *IntakeResponse) SetUndeliveredMessageCount(v int64) { + o.UndeliveredMessageCount = &v +} + +// GetUri returns the Uri field value +func (o *IntakeResponse) GetUri() string { + if o == nil { + var ret string + return ret + } + + return o.Uri +} + +// GetUriOk returns a tuple with the Uri field value +// and a boolean to check if the value has been set. +func (o *IntakeResponse) GetUriOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uri, true +} + +// SetUri sets field value +func (o *IntakeResponse) SetUri(v string) { + o.Uri = v +} + +func (o IntakeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IntakeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["catalog"] = o.Catalog + toSerialize["create_time"] = o.CreateTime + toSerialize["deadLetterTopic"] = o.DeadLetterTopic + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["displayName"] = o.DisplayName + if !IsNil(o.FailureMessage) { + toSerialize["failure_message"] = o.FailureMessage + } + toSerialize["id"] = o.Id + toSerialize["intakeRunnerId"] = o.IntakeRunnerId + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + toSerialize["state"] = o.State + toSerialize["topic"] = o.Topic + if !IsNil(o.UndeliveredMessageCount) { + toSerialize["undeliveredMessageCount"] = o.UndeliveredMessageCount + } + toSerialize["uri"] = o.Uri + return toSerialize, nil +} + +func (o *IntakeResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "catalog", + "create_time", + "deadLetterTopic", + "displayName", + "id", + "intakeRunnerId", + "state", + "topic", + "uri", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIntakeResponse := _IntakeResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varIntakeResponse) + + if err != nil { + return err + } + + *o = IntakeResponse(varIntakeResponse) + + return err +} + +type NullableIntakeResponse struct { + value *IntakeResponse + isSet bool +} + +func (v NullableIntakeResponse) Get() *IntakeResponse { + return v.value +} + +func (v *NullableIntakeResponse) Set(val *IntakeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIntakeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIntakeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIntakeResponse(val *IntakeResponse) *NullableIntakeResponse { + return &NullableIntakeResponse{value: val, isSet: true} +} + +func (v NullableIntakeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIntakeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_intake_runner_response.go b/services/intake/v1betaapi/model_intake_runner_response.go new file mode 100644 index 000000000..bd538de44 --- /dev/null +++ b/services/intake/v1betaapi/model_intake_runner_response.go @@ -0,0 +1,407 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" + "time" +) + +// checks if the IntakeRunnerResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IntakeRunnerResponse{} + +// IntakeRunnerResponse struct for IntakeRunnerResponse +type IntakeRunnerResponse struct { + // The point in time the resource was created. + CreateTime time.Time `json:"create_time"` + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName string `json:"displayName"` + // A auto generated unique id which identifies the resource. + Id string `json:"id"` + // Labels are a set of key-value pairs assigned to resources. + Labels map[string]string `json:"labels,omitempty"` + // The maximum size of a message in kibibytes (1 KiB = 1024 bytes). + MaxMessageSizeKiB int32 `json:"maxMessageSizeKiB"` + // The maximum number of messages per hour. + MaxMessagesPerHour int32 `json:"maxMessagesPerHour"` + // The current state of the resource. + State string `json:"state"` + // The URI for reaching the resource. + Uri string `json:"uri"` +} + +type _IntakeRunnerResponse IntakeRunnerResponse + +// NewIntakeRunnerResponse instantiates a new IntakeRunnerResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIntakeRunnerResponse(createTime time.Time, displayName string, id string, maxMessageSizeKiB int32, maxMessagesPerHour int32, state string, uri string) *IntakeRunnerResponse { + this := IntakeRunnerResponse{} + this.CreateTime = createTime + this.DisplayName = displayName + this.Id = id + this.MaxMessageSizeKiB = maxMessageSizeKiB + this.MaxMessagesPerHour = maxMessagesPerHour + this.State = state + this.Uri = uri + return &this +} + +// NewIntakeRunnerResponseWithDefaults instantiates a new IntakeRunnerResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIntakeRunnerResponseWithDefaults() *IntakeRunnerResponse { + this := IntakeRunnerResponse{} + return &this +} + +// GetCreateTime returns the CreateTime field value +func (o *IntakeRunnerResponse) GetCreateTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreateTime +} + +// GetCreateTimeOk returns a tuple with the CreateTime field value +// and a boolean to check if the value has been set. +func (o *IntakeRunnerResponse) GetCreateTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreateTime, true +} + +// SetCreateTime sets field value +func (o *IntakeRunnerResponse) SetCreateTime(v time.Time) { + o.CreateTime = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *IntakeRunnerResponse) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeRunnerResponse) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *IntakeRunnerResponse) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *IntakeRunnerResponse) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *IntakeRunnerResponse) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *IntakeRunnerResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *IntakeRunnerResponse) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetId returns the Id field value +func (o *IntakeRunnerResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *IntakeRunnerResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *IntakeRunnerResponse) SetId(v string) { + o.Id = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IntakeRunnerResponse) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IntakeRunnerResponse) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *IntakeRunnerResponse) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *IntakeRunnerResponse) SetLabels(v map[string]string) { + o.Labels = v +} + +// GetMaxMessageSizeKiB returns the MaxMessageSizeKiB field value +func (o *IntakeRunnerResponse) GetMaxMessageSizeKiB() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MaxMessageSizeKiB +} + +// GetMaxMessageSizeKiBOk returns a tuple with the MaxMessageSizeKiB field value +// and a boolean to check if the value has been set. +func (o *IntakeRunnerResponse) GetMaxMessageSizeKiBOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MaxMessageSizeKiB, true +} + +// SetMaxMessageSizeKiB sets field value +func (o *IntakeRunnerResponse) SetMaxMessageSizeKiB(v int32) { + o.MaxMessageSizeKiB = v +} + +// GetMaxMessagesPerHour returns the MaxMessagesPerHour field value +func (o *IntakeRunnerResponse) GetMaxMessagesPerHour() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MaxMessagesPerHour +} + +// GetMaxMessagesPerHourOk returns a tuple with the MaxMessagesPerHour field value +// and a boolean to check if the value has been set. +func (o *IntakeRunnerResponse) GetMaxMessagesPerHourOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MaxMessagesPerHour, true +} + +// SetMaxMessagesPerHour sets field value +func (o *IntakeRunnerResponse) SetMaxMessagesPerHour(v int32) { + o.MaxMessagesPerHour = v +} + +// GetState returns the State field value +func (o *IntakeRunnerResponse) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *IntakeRunnerResponse) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *IntakeRunnerResponse) SetState(v string) { + o.State = v +} + +// GetUri returns the Uri field value +func (o *IntakeRunnerResponse) GetUri() string { + if o == nil { + var ret string + return ret + } + + return o.Uri +} + +// GetUriOk returns a tuple with the Uri field value +// and a boolean to check if the value has been set. +func (o *IntakeRunnerResponse) GetUriOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uri, true +} + +// SetUri sets field value +func (o *IntakeRunnerResponse) SetUri(v string) { + o.Uri = v +} + +func (o IntakeRunnerResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IntakeRunnerResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["create_time"] = o.CreateTime + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["displayName"] = o.DisplayName + toSerialize["id"] = o.Id + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + toSerialize["maxMessageSizeKiB"] = o.MaxMessageSizeKiB + toSerialize["maxMessagesPerHour"] = o.MaxMessagesPerHour + toSerialize["state"] = o.State + toSerialize["uri"] = o.Uri + return toSerialize, nil +} + +func (o *IntakeRunnerResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "create_time", + "displayName", + "id", + "maxMessageSizeKiB", + "maxMessagesPerHour", + "state", + "uri", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIntakeRunnerResponse := _IntakeRunnerResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varIntakeRunnerResponse) + + if err != nil { + return err + } + + *o = IntakeRunnerResponse(varIntakeRunnerResponse) + + return err +} + +type NullableIntakeRunnerResponse struct { + value *IntakeRunnerResponse + isSet bool +} + +func (v NullableIntakeRunnerResponse) Get() *IntakeRunnerResponse { + return v.value +} + +func (v *NullableIntakeRunnerResponse) Set(val *IntakeRunnerResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIntakeRunnerResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIntakeRunnerResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIntakeRunnerResponse(val *IntakeRunnerResponse) *NullableIntakeRunnerResponse { + return &NullableIntakeRunnerResponse{value: val, isSet: true} +} + +func (v NullableIntakeRunnerResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIntakeRunnerResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_intake_user_response.go b/services/intake/v1betaapi/model_intake_user_response.go new file mode 100644 index 000000000..49d4a8e4b --- /dev/null +++ b/services/intake/v1betaapi/model_intake_user_response.go @@ -0,0 +1,415 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" + "time" +) + +// checks if the IntakeUserResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IntakeUserResponse{} + +// IntakeUserResponse struct for IntakeUserResponse +type IntakeUserResponse struct { + ClientConfig *ClientConfig `json:"clientConfig,omitempty"` + // The point in time the resource was created. + CreateTime time.Time `json:"create_time"` + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName string `json:"displayName"` + // A auto generated unique id which identifies the resource. + Id string `json:"id"` + // Labels are a set of key-value pairs assigned to resources. + Labels map[string]string `json:"labels,omitempty"` + // The current state of the resource. + State string `json:"state"` + Type UserType `json:"type"` + // The user to connect to the intake. + User string `json:"user"` +} + +type _IntakeUserResponse IntakeUserResponse + +// NewIntakeUserResponse instantiates a new IntakeUserResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIntakeUserResponse(createTime time.Time, displayName string, id string, state string, types UserType, user string) *IntakeUserResponse { + this := IntakeUserResponse{} + this.CreateTime = createTime + this.DisplayName = displayName + this.Id = id + this.State = state + this.Type = types + this.User = user + return &this +} + +// NewIntakeUserResponseWithDefaults instantiates a new IntakeUserResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIntakeUserResponseWithDefaults() *IntakeUserResponse { + this := IntakeUserResponse{} + var types UserType = USERTYPE_INTAKE + this.Type = types + return &this +} + +// GetClientConfig returns the ClientConfig field value if set, zero value otherwise. +func (o *IntakeUserResponse) GetClientConfig() ClientConfig { + if o == nil || IsNil(o.ClientConfig) { + var ret ClientConfig + return ret + } + return *o.ClientConfig +} + +// GetClientConfigOk returns a tuple with the ClientConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeUserResponse) GetClientConfigOk() (*ClientConfig, bool) { + if o == nil || IsNil(o.ClientConfig) { + return nil, false + } + return o.ClientConfig, true +} + +// HasClientConfig returns a boolean if a field has been set. +func (o *IntakeUserResponse) HasClientConfig() bool { + if o != nil && !IsNil(o.ClientConfig) { + return true + } + + return false +} + +// SetClientConfig gets a reference to the given ClientConfig and assigns it to the ClientConfig field. +func (o *IntakeUserResponse) SetClientConfig(v ClientConfig) { + o.ClientConfig = &v +} + +// GetCreateTime returns the CreateTime field value +func (o *IntakeUserResponse) GetCreateTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreateTime +} + +// GetCreateTimeOk returns a tuple with the CreateTime field value +// and a boolean to check if the value has been set. +func (o *IntakeUserResponse) GetCreateTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreateTime, true +} + +// SetCreateTime sets field value +func (o *IntakeUserResponse) SetCreateTime(v time.Time) { + o.CreateTime = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *IntakeUserResponse) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IntakeUserResponse) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *IntakeUserResponse) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *IntakeUserResponse) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *IntakeUserResponse) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *IntakeUserResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *IntakeUserResponse) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetId returns the Id field value +func (o *IntakeUserResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *IntakeUserResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *IntakeUserResponse) SetId(v string) { + o.Id = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IntakeUserResponse) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IntakeUserResponse) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *IntakeUserResponse) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *IntakeUserResponse) SetLabels(v map[string]string) { + o.Labels = v +} + +// GetState returns the State field value +func (o *IntakeUserResponse) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *IntakeUserResponse) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *IntakeUserResponse) SetState(v string) { + o.State = v +} + +// GetType returns the Type field value +func (o *IntakeUserResponse) GetType() UserType { + if o == nil { + var ret UserType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *IntakeUserResponse) GetTypeOk() (*UserType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *IntakeUserResponse) SetType(v UserType) { + o.Type = v +} + +// GetUser returns the User field value +func (o *IntakeUserResponse) GetUser() string { + if o == nil { + var ret string + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *IntakeUserResponse) GetUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *IntakeUserResponse) SetUser(v string) { + o.User = v +} + +func (o IntakeUserResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IntakeUserResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ClientConfig) { + toSerialize["clientConfig"] = o.ClientConfig + } + toSerialize["create_time"] = o.CreateTime + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["displayName"] = o.DisplayName + toSerialize["id"] = o.Id + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + toSerialize["state"] = o.State + toSerialize["type"] = o.Type + toSerialize["user"] = o.User + return toSerialize, nil +} + +func (o *IntakeUserResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "create_time", + "displayName", + "id", + "state", + "type", + "user", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varIntakeUserResponse := _IntakeUserResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varIntakeUserResponse) + + if err != nil { + return err + } + + *o = IntakeUserResponse(varIntakeUserResponse) + + return err +} + +type NullableIntakeUserResponse struct { + value *IntakeUserResponse + isSet bool +} + +func (v NullableIntakeUserResponse) Get() *IntakeUserResponse { + return v.value +} + +func (v *NullableIntakeUserResponse) Set(val *IntakeUserResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIntakeUserResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIntakeUserResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIntakeUserResponse(val *IntakeUserResponse) *NullableIntakeUserResponse { + return &NullableIntakeUserResponse{value: val, isSet: true} +} + +func (v NullableIntakeUserResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIntakeUserResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_list_intake_runners_response.go b/services/intake/v1betaapi/model_list_intake_runners_response.go new file mode 100644 index 000000000..1ef330436 --- /dev/null +++ b/services/intake/v1betaapi/model_list_intake_runners_response.go @@ -0,0 +1,193 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListIntakeRunnersResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListIntakeRunnersResponse{} + +// ListIntakeRunnersResponse struct for ListIntakeRunnersResponse +type ListIntakeRunnersResponse struct { + IntakeRunners []IntakeRunnerResponse `json:"intakeRunners"` + // A token to retrieve the next page of results. + NextPageToken *string `json:"nextPageToken,omitempty"` +} + +type _ListIntakeRunnersResponse ListIntakeRunnersResponse + +// NewListIntakeRunnersResponse instantiates a new ListIntakeRunnersResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListIntakeRunnersResponse(intakeRunners []IntakeRunnerResponse) *ListIntakeRunnersResponse { + this := ListIntakeRunnersResponse{} + this.IntakeRunners = intakeRunners + return &this +} + +// NewListIntakeRunnersResponseWithDefaults instantiates a new ListIntakeRunnersResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListIntakeRunnersResponseWithDefaults() *ListIntakeRunnersResponse { + this := ListIntakeRunnersResponse{} + return &this +} + +// GetIntakeRunners returns the IntakeRunners field value +func (o *ListIntakeRunnersResponse) GetIntakeRunners() []IntakeRunnerResponse { + if o == nil { + var ret []IntakeRunnerResponse + return ret + } + + return o.IntakeRunners +} + +// GetIntakeRunnersOk returns a tuple with the IntakeRunners field value +// and a boolean to check if the value has been set. +func (o *ListIntakeRunnersResponse) GetIntakeRunnersOk() ([]IntakeRunnerResponse, bool) { + if o == nil { + return nil, false + } + return o.IntakeRunners, true +} + +// SetIntakeRunners sets field value +func (o *ListIntakeRunnersResponse) SetIntakeRunners(v []IntakeRunnerResponse) { + o.IntakeRunners = v +} + +// GetNextPageToken returns the NextPageToken field value if set, zero value otherwise. +func (o *ListIntakeRunnersResponse) GetNextPageToken() string { + if o == nil || IsNil(o.NextPageToken) { + var ret string + return ret + } + return *o.NextPageToken +} + +// GetNextPageTokenOk returns a tuple with the NextPageToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListIntakeRunnersResponse) GetNextPageTokenOk() (*string, bool) { + if o == nil || IsNil(o.NextPageToken) { + return nil, false + } + return o.NextPageToken, true +} + +// HasNextPageToken returns a boolean if a field has been set. +func (o *ListIntakeRunnersResponse) HasNextPageToken() bool { + if o != nil && !IsNil(o.NextPageToken) { + return true + } + + return false +} + +// SetNextPageToken gets a reference to the given string and assigns it to the NextPageToken field. +func (o *ListIntakeRunnersResponse) SetNextPageToken(v string) { + o.NextPageToken = &v +} + +func (o ListIntakeRunnersResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListIntakeRunnersResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["intakeRunners"] = o.IntakeRunners + if !IsNil(o.NextPageToken) { + toSerialize["nextPageToken"] = o.NextPageToken + } + return toSerialize, nil +} + +func (o *ListIntakeRunnersResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "intakeRunners", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListIntakeRunnersResponse := _ListIntakeRunnersResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListIntakeRunnersResponse) + + if err != nil { + return err + } + + *o = ListIntakeRunnersResponse(varListIntakeRunnersResponse) + + return err +} + +type NullableListIntakeRunnersResponse struct { + value *ListIntakeRunnersResponse + isSet bool +} + +func (v NullableListIntakeRunnersResponse) Get() *ListIntakeRunnersResponse { + return v.value +} + +func (v *NullableListIntakeRunnersResponse) Set(val *ListIntakeRunnersResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListIntakeRunnersResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListIntakeRunnersResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListIntakeRunnersResponse(val *ListIntakeRunnersResponse) *NullableListIntakeRunnersResponse { + return &NullableListIntakeRunnersResponse{value: val, isSet: true} +} + +func (v NullableListIntakeRunnersResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListIntakeRunnersResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_list_intake_users_response.go b/services/intake/v1betaapi/model_list_intake_users_response.go new file mode 100644 index 000000000..390230021 --- /dev/null +++ b/services/intake/v1betaapi/model_list_intake_users_response.go @@ -0,0 +1,193 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListIntakeUsersResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListIntakeUsersResponse{} + +// ListIntakeUsersResponse struct for ListIntakeUsersResponse +type ListIntakeUsersResponse struct { + IntakeUsers []IntakeUserResponse `json:"intakeUsers"` + // A token to retrieve the next page of results. + NextPageToken *string `json:"nextPageToken,omitempty"` +} + +type _ListIntakeUsersResponse ListIntakeUsersResponse + +// NewListIntakeUsersResponse instantiates a new ListIntakeUsersResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListIntakeUsersResponse(intakeUsers []IntakeUserResponse) *ListIntakeUsersResponse { + this := ListIntakeUsersResponse{} + this.IntakeUsers = intakeUsers + return &this +} + +// NewListIntakeUsersResponseWithDefaults instantiates a new ListIntakeUsersResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListIntakeUsersResponseWithDefaults() *ListIntakeUsersResponse { + this := ListIntakeUsersResponse{} + return &this +} + +// GetIntakeUsers returns the IntakeUsers field value +func (o *ListIntakeUsersResponse) GetIntakeUsers() []IntakeUserResponse { + if o == nil { + var ret []IntakeUserResponse + return ret + } + + return o.IntakeUsers +} + +// GetIntakeUsersOk returns a tuple with the IntakeUsers field value +// and a boolean to check if the value has been set. +func (o *ListIntakeUsersResponse) GetIntakeUsersOk() ([]IntakeUserResponse, bool) { + if o == nil { + return nil, false + } + return o.IntakeUsers, true +} + +// SetIntakeUsers sets field value +func (o *ListIntakeUsersResponse) SetIntakeUsers(v []IntakeUserResponse) { + o.IntakeUsers = v +} + +// GetNextPageToken returns the NextPageToken field value if set, zero value otherwise. +func (o *ListIntakeUsersResponse) GetNextPageToken() string { + if o == nil || IsNil(o.NextPageToken) { + var ret string + return ret + } + return *o.NextPageToken +} + +// GetNextPageTokenOk returns a tuple with the NextPageToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListIntakeUsersResponse) GetNextPageTokenOk() (*string, bool) { + if o == nil || IsNil(o.NextPageToken) { + return nil, false + } + return o.NextPageToken, true +} + +// HasNextPageToken returns a boolean if a field has been set. +func (o *ListIntakeUsersResponse) HasNextPageToken() bool { + if o != nil && !IsNil(o.NextPageToken) { + return true + } + + return false +} + +// SetNextPageToken gets a reference to the given string and assigns it to the NextPageToken field. +func (o *ListIntakeUsersResponse) SetNextPageToken(v string) { + o.NextPageToken = &v +} + +func (o ListIntakeUsersResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListIntakeUsersResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["intakeUsers"] = o.IntakeUsers + if !IsNil(o.NextPageToken) { + toSerialize["nextPageToken"] = o.NextPageToken + } + return toSerialize, nil +} + +func (o *ListIntakeUsersResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "intakeUsers", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListIntakeUsersResponse := _ListIntakeUsersResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListIntakeUsersResponse) + + if err != nil { + return err + } + + *o = ListIntakeUsersResponse(varListIntakeUsersResponse) + + return err +} + +type NullableListIntakeUsersResponse struct { + value *ListIntakeUsersResponse + isSet bool +} + +func (v NullableListIntakeUsersResponse) Get() *ListIntakeUsersResponse { + return v.value +} + +func (v *NullableListIntakeUsersResponse) Set(val *ListIntakeUsersResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListIntakeUsersResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListIntakeUsersResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListIntakeUsersResponse(val *ListIntakeUsersResponse) *NullableListIntakeUsersResponse { + return &NullableListIntakeUsersResponse{value: val, isSet: true} +} + +func (v NullableListIntakeUsersResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListIntakeUsersResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_list_intakes_response.go b/services/intake/v1betaapi/model_list_intakes_response.go new file mode 100644 index 000000000..efcd8f1d2 --- /dev/null +++ b/services/intake/v1betaapi/model_list_intakes_response.go @@ -0,0 +1,193 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListIntakesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListIntakesResponse{} + +// ListIntakesResponse struct for ListIntakesResponse +type ListIntakesResponse struct { + Intakes []IntakeResponse `json:"intakes"` + // A token to retrieve the next page of results. + NextPageToken *string `json:"nextPageToken,omitempty"` +} + +type _ListIntakesResponse ListIntakesResponse + +// NewListIntakesResponse instantiates a new ListIntakesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListIntakesResponse(intakes []IntakeResponse) *ListIntakesResponse { + this := ListIntakesResponse{} + this.Intakes = intakes + return &this +} + +// NewListIntakesResponseWithDefaults instantiates a new ListIntakesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListIntakesResponseWithDefaults() *ListIntakesResponse { + this := ListIntakesResponse{} + return &this +} + +// GetIntakes returns the Intakes field value +func (o *ListIntakesResponse) GetIntakes() []IntakeResponse { + if o == nil { + var ret []IntakeResponse + return ret + } + + return o.Intakes +} + +// GetIntakesOk returns a tuple with the Intakes field value +// and a boolean to check if the value has been set. +func (o *ListIntakesResponse) GetIntakesOk() ([]IntakeResponse, bool) { + if o == nil { + return nil, false + } + return o.Intakes, true +} + +// SetIntakes sets field value +func (o *ListIntakesResponse) SetIntakes(v []IntakeResponse) { + o.Intakes = v +} + +// GetNextPageToken returns the NextPageToken field value if set, zero value otherwise. +func (o *ListIntakesResponse) GetNextPageToken() string { + if o == nil || IsNil(o.NextPageToken) { + var ret string + return ret + } + return *o.NextPageToken +} + +// GetNextPageTokenOk returns a tuple with the NextPageToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListIntakesResponse) GetNextPageTokenOk() (*string, bool) { + if o == nil || IsNil(o.NextPageToken) { + return nil, false + } + return o.NextPageToken, true +} + +// HasNextPageToken returns a boolean if a field has been set. +func (o *ListIntakesResponse) HasNextPageToken() bool { + if o != nil && !IsNil(o.NextPageToken) { + return true + } + + return false +} + +// SetNextPageToken gets a reference to the given string and assigns it to the NextPageToken field. +func (o *ListIntakesResponse) SetNextPageToken(v string) { + o.NextPageToken = &v +} + +func (o ListIntakesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListIntakesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["intakes"] = o.Intakes + if !IsNil(o.NextPageToken) { + toSerialize["nextPageToken"] = o.NextPageToken + } + return toSerialize, nil +} + +func (o *ListIntakesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "intakes", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListIntakesResponse := _ListIntakesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListIntakesResponse) + + if err != nil { + return err + } + + *o = ListIntakesResponse(varListIntakesResponse) + + return err +} + +type NullableListIntakesResponse struct { + value *ListIntakesResponse + isSet bool +} + +func (v NullableListIntakesResponse) Get() *ListIntakesResponse { + return v.value +} + +func (v *NullableListIntakesResponse) Set(val *ListIntakesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListIntakesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListIntakesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListIntakesResponse(val *ListIntakesResponse) *NullableListIntakesResponse { + return &NullableListIntakesResponse{value: val, isSet: true} +} + +func (v NullableListIntakesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListIntakesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_partitioning_type.go b/services/intake/v1betaapi/model_partitioning_type.go new file mode 100644 index 000000000..edaaa6d5d --- /dev/null +++ b/services/intake/v1betaapi/model_partitioning_type.go @@ -0,0 +1,112 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" + "fmt" +) + +// PartitioningType The target table's partitioning. * `none` disables partitioning, the default. * `intake-time` configures daily partitioning based on the automatically created ingestion time column `__intake_ts`. * `manual` allows arbitrary Iceberg partitioning expression to be set via `partitionBy`. +type PartitioningType string + +// List of partitioningType +const ( + PARTITIONINGTYPE_NONE PartitioningType = "none" + PARTITIONINGTYPE_INTAKE_TIME PartitioningType = "intake-time" + PARTITIONINGTYPE_MANUAL PartitioningType = "manual" +) + +// All allowed values of PartitioningType enum +var AllowedPartitioningTypeEnumValues = []PartitioningType{ + "none", + "intake-time", + "manual", +} + +func (v *PartitioningType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PartitioningType(value) + for _, existing := range AllowedPartitioningTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PartitioningType", value) +} + +// NewPartitioningTypeFromValue returns a pointer to a valid PartitioningType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPartitioningTypeFromValue(v string) (*PartitioningType, error) { + ev := PartitioningType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PartitioningType: valid values are %v", v, AllowedPartitioningTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PartitioningType) IsValid() bool { + for _, existing := range AllowedPartitioningTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to partitioningType value +func (v PartitioningType) Ptr() *PartitioningType { + return &v +} + +type NullablePartitioningType struct { + value *PartitioningType + isSet bool +} + +func (v NullablePartitioningType) Get() *PartitioningType { + return v.value +} + +func (v *NullablePartitioningType) Set(val *PartitioningType) { + v.value = val + v.isSet = true +} + +func (v NullablePartitioningType) IsSet() bool { + return v.isSet +} + +func (v *NullablePartitioningType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartitioningType(val *PartitioningType) *NullablePartitioningType { + return &NullablePartitioningType{value: val, isSet: true} +} + +func (v NullablePartitioningType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartitioningType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_partitioning_update_type.go b/services/intake/v1betaapi/model_partitioning_update_type.go new file mode 100644 index 000000000..c567c7201 --- /dev/null +++ b/services/intake/v1betaapi/model_partitioning_update_type.go @@ -0,0 +1,112 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" + "fmt" +) + +// PartitioningUpdateType The target table's partitioning. * `none` disables partitioning. * `intake-time` configures daily partitioning based on the automatically created ingestion time column `__intake_ts`. * `manual` allows arbitrary Iceberg partitioning expression to be set via `partitionBy`. +type PartitioningUpdateType string + +// List of partitioningUpdateType +const ( + PARTITIONINGUPDATETYPE_NONE PartitioningUpdateType = "none" + PARTITIONINGUPDATETYPE_INTAKE_TIME PartitioningUpdateType = "intake-time" + PARTITIONINGUPDATETYPE_MANUAL PartitioningUpdateType = "manual" +) + +// All allowed values of PartitioningUpdateType enum +var AllowedPartitioningUpdateTypeEnumValues = []PartitioningUpdateType{ + "none", + "intake-time", + "manual", +} + +func (v *PartitioningUpdateType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PartitioningUpdateType(value) + for _, existing := range AllowedPartitioningUpdateTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PartitioningUpdateType", value) +} + +// NewPartitioningUpdateTypeFromValue returns a pointer to a valid PartitioningUpdateType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPartitioningUpdateTypeFromValue(v string) (*PartitioningUpdateType, error) { + ev := PartitioningUpdateType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PartitioningUpdateType: valid values are %v", v, AllowedPartitioningUpdateTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PartitioningUpdateType) IsValid() bool { + for _, existing := range AllowedPartitioningUpdateTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to partitioningUpdateType value +func (v PartitioningUpdateType) Ptr() *PartitioningUpdateType { + return &v +} + +type NullablePartitioningUpdateType struct { + value *PartitioningUpdateType + isSet bool +} + +func (v NullablePartitioningUpdateType) Get() *PartitioningUpdateType { + return v.value +} + +func (v *NullablePartitioningUpdateType) Set(val *PartitioningUpdateType) { + v.value = val + v.isSet = true +} + +func (v NullablePartitioningUpdateType) IsSet() bool { + return v.isSet +} + +func (v *NullablePartitioningUpdateType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartitioningUpdateType(val *PartitioningUpdateType) *NullablePartitioningUpdateType { + return &NullablePartitioningUpdateType{value: val, isSet: true} +} + +func (v NullablePartitioningUpdateType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartitioningUpdateType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_update_intake_payload.go b/services/intake/v1betaapi/model_update_intake_payload.go new file mode 100644 index 000000000..5e75dfff5 --- /dev/null +++ b/services/intake/v1betaapi/model_update_intake_payload.go @@ -0,0 +1,305 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateIntakePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateIntakePayload{} + +// UpdateIntakePayload struct for UpdateIntakePayload +type UpdateIntakePayload struct { + Catalog *IntakeCatalogPatch `json:"catalog,omitempty"` + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName *string `json:"displayName,omitempty"` + // The unique id of the intake runner this intake should run on. + IntakeRunnerId string `json:"intakeRunnerId"` + // Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. + Labels map[string]string `json:"labels,omitempty"` +} + +type _UpdateIntakePayload UpdateIntakePayload + +// NewUpdateIntakePayload instantiates a new UpdateIntakePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateIntakePayload(intakeRunnerId string) *UpdateIntakePayload { + this := UpdateIntakePayload{} + this.IntakeRunnerId = intakeRunnerId + return &this +} + +// NewUpdateIntakePayloadWithDefaults instantiates a new UpdateIntakePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateIntakePayloadWithDefaults() *UpdateIntakePayload { + this := UpdateIntakePayload{} + return &this +} + +// GetCatalog returns the Catalog field value if set, zero value otherwise. +func (o *UpdateIntakePayload) GetCatalog() IntakeCatalogPatch { + if o == nil || IsNil(o.Catalog) { + var ret IntakeCatalogPatch + return ret + } + return *o.Catalog +} + +// GetCatalogOk returns a tuple with the Catalog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakePayload) GetCatalogOk() (*IntakeCatalogPatch, bool) { + if o == nil || IsNil(o.Catalog) { + return nil, false + } + return o.Catalog, true +} + +// HasCatalog returns a boolean if a field has been set. +func (o *UpdateIntakePayload) HasCatalog() bool { + if o != nil && !IsNil(o.Catalog) { + return true + } + + return false +} + +// SetCatalog gets a reference to the given IntakeCatalogPatch and assigns it to the Catalog field. +func (o *UpdateIntakePayload) SetCatalog(v IntakeCatalogPatch) { + o.Catalog = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateIntakePayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakePayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateIntakePayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateIntakePayload) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *UpdateIntakePayload) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakePayload) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *UpdateIntakePayload) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *UpdateIntakePayload) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetIntakeRunnerId returns the IntakeRunnerId field value +func (o *UpdateIntakePayload) GetIntakeRunnerId() string { + if o == nil { + var ret string + return ret + } + + return o.IntakeRunnerId +} + +// GetIntakeRunnerIdOk returns a tuple with the IntakeRunnerId field value +// and a boolean to check if the value has been set. +func (o *UpdateIntakePayload) GetIntakeRunnerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IntakeRunnerId, true +} + +// SetIntakeRunnerId sets field value +func (o *UpdateIntakePayload) SetIntakeRunnerId(v string) { + o.IntakeRunnerId = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateIntakePayload) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdateIntakePayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateIntakePayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateIntakePayload) SetLabels(v map[string]string) { + o.Labels = v +} + +func (o UpdateIntakePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateIntakePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Catalog) { + toSerialize["catalog"] = o.Catalog + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + toSerialize["intakeRunnerId"] = o.IntakeRunnerId + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +func (o *UpdateIntakePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "intakeRunnerId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateIntakePayload := _UpdateIntakePayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateIntakePayload) + + if err != nil { + return err + } + + *o = UpdateIntakePayload(varUpdateIntakePayload) + + return err +} + +type NullableUpdateIntakePayload struct { + value *UpdateIntakePayload + isSet bool +} + +func (v NullableUpdateIntakePayload) Get() *UpdateIntakePayload { + return v.value +} + +func (v *NullableUpdateIntakePayload) Set(val *UpdateIntakePayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateIntakePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateIntakePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateIntakePayload(val *UpdateIntakePayload) *NullableUpdateIntakePayload { + return &NullableUpdateIntakePayload{value: val, isSet: true} +} + +func (v NullableUpdateIntakePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateIntakePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_update_intake_runner_payload.go b/services/intake/v1betaapi/model_update_intake_runner_payload.go new file mode 100644 index 000000000..13e073e33 --- /dev/null +++ b/services/intake/v1betaapi/model_update_intake_runner_payload.go @@ -0,0 +1,274 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" +) + +// checks if the UpdateIntakeRunnerPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateIntakeRunnerPayload{} + +// UpdateIntakeRunnerPayload struct for UpdateIntakeRunnerPayload +type UpdateIntakeRunnerPayload struct { + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName *string `json:"displayName,omitempty"` + // Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. + Labels map[string]string `json:"labels,omitempty"` + // The maximum size of a message in kibibytes (1 KiB = 1024 bytes). + MaxMessageSizeKiB *int32 `json:"maxMessageSizeKiB,omitempty"` + // The maximum number of messages per hour. + MaxMessagesPerHour *int32 `json:"maxMessagesPerHour,omitempty"` +} + +// NewUpdateIntakeRunnerPayload instantiates a new UpdateIntakeRunnerPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateIntakeRunnerPayload() *UpdateIntakeRunnerPayload { + this := UpdateIntakeRunnerPayload{} + return &this +} + +// NewUpdateIntakeRunnerPayloadWithDefaults instantiates a new UpdateIntakeRunnerPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateIntakeRunnerPayloadWithDefaults() *UpdateIntakeRunnerPayload { + this := UpdateIntakeRunnerPayload{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateIntakeRunnerPayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakeRunnerPayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateIntakeRunnerPayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateIntakeRunnerPayload) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *UpdateIntakeRunnerPayload) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakeRunnerPayload) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *UpdateIntakeRunnerPayload) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *UpdateIntakeRunnerPayload) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateIntakeRunnerPayload) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdateIntakeRunnerPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateIntakeRunnerPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateIntakeRunnerPayload) SetLabels(v map[string]string) { + o.Labels = v +} + +// GetMaxMessageSizeKiB returns the MaxMessageSizeKiB field value if set, zero value otherwise. +func (o *UpdateIntakeRunnerPayload) GetMaxMessageSizeKiB() int32 { + if o == nil || IsNil(o.MaxMessageSizeKiB) { + var ret int32 + return ret + } + return *o.MaxMessageSizeKiB +} + +// GetMaxMessageSizeKiBOk returns a tuple with the MaxMessageSizeKiB field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakeRunnerPayload) GetMaxMessageSizeKiBOk() (*int32, bool) { + if o == nil || IsNil(o.MaxMessageSizeKiB) { + return nil, false + } + return o.MaxMessageSizeKiB, true +} + +// HasMaxMessageSizeKiB returns a boolean if a field has been set. +func (o *UpdateIntakeRunnerPayload) HasMaxMessageSizeKiB() bool { + if o != nil && !IsNil(o.MaxMessageSizeKiB) { + return true + } + + return false +} + +// SetMaxMessageSizeKiB gets a reference to the given int32 and assigns it to the MaxMessageSizeKiB field. +func (o *UpdateIntakeRunnerPayload) SetMaxMessageSizeKiB(v int32) { + o.MaxMessageSizeKiB = &v +} + +// GetMaxMessagesPerHour returns the MaxMessagesPerHour field value if set, zero value otherwise. +func (o *UpdateIntakeRunnerPayload) GetMaxMessagesPerHour() int32 { + if o == nil || IsNil(o.MaxMessagesPerHour) { + var ret int32 + return ret + } + return *o.MaxMessagesPerHour +} + +// GetMaxMessagesPerHourOk returns a tuple with the MaxMessagesPerHour field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakeRunnerPayload) GetMaxMessagesPerHourOk() (*int32, bool) { + if o == nil || IsNil(o.MaxMessagesPerHour) { + return nil, false + } + return o.MaxMessagesPerHour, true +} + +// HasMaxMessagesPerHour returns a boolean if a field has been set. +func (o *UpdateIntakeRunnerPayload) HasMaxMessagesPerHour() bool { + if o != nil && !IsNil(o.MaxMessagesPerHour) { + return true + } + + return false +} + +// SetMaxMessagesPerHour gets a reference to the given int32 and assigns it to the MaxMessagesPerHour field. +func (o *UpdateIntakeRunnerPayload) SetMaxMessagesPerHour(v int32) { + o.MaxMessagesPerHour = &v +} + +func (o UpdateIntakeRunnerPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateIntakeRunnerPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.MaxMessageSizeKiB) { + toSerialize["maxMessageSizeKiB"] = o.MaxMessageSizeKiB + } + if !IsNil(o.MaxMessagesPerHour) { + toSerialize["maxMessagesPerHour"] = o.MaxMessagesPerHour + } + return toSerialize, nil +} + +type NullableUpdateIntakeRunnerPayload struct { + value *UpdateIntakeRunnerPayload + isSet bool +} + +func (v NullableUpdateIntakeRunnerPayload) Get() *UpdateIntakeRunnerPayload { + return v.value +} + +func (v *NullableUpdateIntakeRunnerPayload) Set(val *UpdateIntakeRunnerPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateIntakeRunnerPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateIntakeRunnerPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateIntakeRunnerPayload(val *UpdateIntakeRunnerPayload) *NullableUpdateIntakeRunnerPayload { + return &NullableUpdateIntakeRunnerPayload{value: val, isSet: true} +} + +func (v NullableUpdateIntakeRunnerPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateIntakeRunnerPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_update_intake_user_payload.go b/services/intake/v1betaapi/model_update_intake_user_payload.go new file mode 100644 index 000000000..495817941 --- /dev/null +++ b/services/intake/v1betaapi/model_update_intake_user_payload.go @@ -0,0 +1,277 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" +) + +// checks if the UpdateIntakeUserPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateIntakeUserPayload{} + +// UpdateIntakeUserPayload struct for UpdateIntakeUserPayload +type UpdateIntakeUserPayload struct { + // The description is a longer text chosen by the user to provide more context for the resource. + Description *string `json:"description,omitempty"` + // The display name is a short name chosen by the user to identify the resource. + DisplayName *string `json:"displayName,omitempty"` + // Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. + Labels map[string]string `json:"labels,omitempty"` + // A password chosen by the user. + Password *string `json:"password,omitempty"` + Type *UserType `json:"type,omitempty"` +} + +// NewUpdateIntakeUserPayload instantiates a new UpdateIntakeUserPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateIntakeUserPayload() *UpdateIntakeUserPayload { + this := UpdateIntakeUserPayload{} + var types UserType = USERTYPE_INTAKE + this.Type = &types + return &this +} + +// NewUpdateIntakeUserPayloadWithDefaults instantiates a new UpdateIntakeUserPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateIntakeUserPayloadWithDefaults() *UpdateIntakeUserPayload { + this := UpdateIntakeUserPayload{} + var types UserType = USERTYPE_INTAKE + this.Type = &types + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateIntakeUserPayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakeUserPayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateIntakeUserPayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateIntakeUserPayload) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *UpdateIntakeUserPayload) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakeUserPayload) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *UpdateIntakeUserPayload) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *UpdateIntakeUserPayload) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateIntakeUserPayload) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdateIntakeUserPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateIntakeUserPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateIntakeUserPayload) SetLabels(v map[string]string) { + o.Labels = v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *UpdateIntakeUserPayload) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakeUserPayload) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *UpdateIntakeUserPayload) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *UpdateIntakeUserPayload) SetPassword(v string) { + o.Password = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *UpdateIntakeUserPayload) GetType() UserType { + if o == nil || IsNil(o.Type) { + var ret UserType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntakeUserPayload) GetTypeOk() (*UserType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *UpdateIntakeUserPayload) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given UserType and assigns it to the Type field. +func (o *UpdateIntakeUserPayload) SetType(v UserType) { + o.Type = &v +} + +func (o UpdateIntakeUserPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateIntakeUserPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableUpdateIntakeUserPayload struct { + value *UpdateIntakeUserPayload + isSet bool +} + +func (v NullableUpdateIntakeUserPayload) Get() *UpdateIntakeUserPayload { + return v.value +} + +func (v *NullableUpdateIntakeUserPayload) Set(val *UpdateIntakeUserPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateIntakeUserPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateIntakeUserPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateIntakeUserPayload(val *UpdateIntakeUserPayload) *NullableUpdateIntakeUserPayload { + return &NullableUpdateIntakeUserPayload{value: val, isSet: true} +} + +func (v NullableUpdateIntakeUserPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateIntakeUserPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/model_user_type.go b/services/intake/v1betaapi/model_user_type.go new file mode 100644 index 000000000..6ce5f0ff7 --- /dev/null +++ b/services/intake/v1betaapi/model_user_type.go @@ -0,0 +1,110 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "encoding/json" + "fmt" +) + +// UserType Type of user, 'intake' allows writing to the Intake, 'dead-letter' allows reading from the dead-letter queue +type UserType string + +// List of userType +const ( + USERTYPE_INTAKE UserType = "intake" + USERTYPE_DEAD_LETTER UserType = "dead-letter" +) + +// All allowed values of UserType enum +var AllowedUserTypeEnumValues = []UserType{ + "intake", + "dead-letter", +} + +func (v *UserType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := UserType(value) + for _, existing := range AllowedUserTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid UserType", value) +} + +// NewUserTypeFromValue returns a pointer to a valid UserType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewUserTypeFromValue(v string) (*UserType, error) { + ev := UserType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for UserType: valid values are %v", v, AllowedUserTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v UserType) IsValid() bool { + for _, existing := range AllowedUserTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to userType value +func (v UserType) Ptr() *UserType { + return &v +} + +type NullableUserType struct { + value *UserType + isSet bool +} + +func (v NullableUserType) Get() *UserType { + return v.value +} + +func (v *NullableUserType) Set(val *UserType) { + v.value = val + v.isSet = true +} + +func (v NullableUserType) IsSet() bool { + return v.isSet +} + +func (v *NullableUserType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserType(val *UserType) *NullableUserType { + return &NullableUserType{value: val, isSet: true} +} + +func (v NullableUserType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/intake/v1betaapi/response.go b/services/intake/v1betaapi/response.go new file mode 100644 index 000000000..29b945079 --- /dev/null +++ b/services/intake/v1betaapi/response.go @@ -0,0 +1,47 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/services/intake/v1betaapi/utils.go b/services/intake/v1betaapi/utils.go new file mode 100644 index 000000000..bfb240dd8 --- /dev/null +++ b/services/intake/v1betaapi/utils.go @@ -0,0 +1,361 @@ +/* +STACKIT Intake API + +This API provides endpoints for managing Intakes. + +API version: 1beta.3.5 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1betaapi + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} diff --git a/services/intake/wait/deprecation.go b/services/intake/wait/deprecation.go new file mode 100644 index 000000000..58f184c09 --- /dev/null +++ b/services/intake/wait/deprecation.go @@ -0,0 +1,2 @@ +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +package wait