diff --git a/CHANGELOG.md b/CHANGELOG.md index f2a147355..aed2b0ea5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,8 +24,12 @@ - Bump STACKIT SDK resourcemanager module from `v0.18.0` to `v0.18.1` - [v1.2.1](services/iaas/CHANGELOG.md#v121) - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` -- `intake`: [v0.3.1](services/intake/CHANGELOG.md#v031) - - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` +- `intake`: + - [v0.4.0](services/intake/CHANGELOG.md#v040) + - **Feature:** Add new enum type `PartitioningUpdateType` + - **Feature:** Add fields `PartitionBy` and `Partitioning` to `IntakeCatalogPatch` model struct + - [v0.3.1](services/intake/CHANGELOG.md#v031) + - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` - `kms`: [v1.1.1](services/kms/CHANGELOG.md#v111) - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` - `lbapplication`: [v0.5.2](services/lbapplication/CHANGELOG.md#v052) diff --git a/services/intake/CHANGELOG.md b/services/intake/CHANGELOG.md index 86168b2f3..0033d5bac 100644 --- a/services/intake/CHANGELOG.md +++ b/services/intake/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.4.0 +- **Feature:** Add new enum type `PartitioningUpdateType` +- **Feature:** Add fields `PartitionBy` and `Partitioning` to `IntakeCatalogPatch` model struct + ## v0.3.1 - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` diff --git a/services/intake/VERSION b/services/intake/VERSION index 1e66a6163..fb7a04cff 100644 --- a/services/intake/VERSION +++ b/services/intake/VERSION @@ -1 +1 @@ -v0.3.1 \ No newline at end of file +v0.4.0 diff --git a/services/intake/api_default.go b/services/intake/api_default.go index 4c75c938c..6834f24cb 100644 --- a/services/intake/api_default.go +++ b/services/intake/api_default.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/client.go b/services/intake/client.go index f8374c862..7b0837c78 100644 --- a/services/intake/client.go +++ b/services/intake/client.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the STACKIT Intake API API v1beta.3.4 +// 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 diff --git a/services/intake/configuration.go b/services/intake/configuration.go index 08e65c143..0827ca010 100644 --- a/services/intake/configuration.go +++ b/services/intake/configuration.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth.go b/services/intake/model_catalog_auth.go index fba3e5fc8..ce7b4f4b3 100644 --- a/services/intake/model_catalog_auth.go +++ b/services/intake/model_catalog_auth.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_patch.go b/services/intake/model_catalog_auth_patch.go index 7550800f2..b7339c80e 100644 --- a/services/intake/model_catalog_auth_patch.go +++ b/services/intake/model_catalog_auth_patch.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_patch_test.go b/services/intake/model_catalog_auth_patch_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_catalog_auth_patch_test.go +++ b/services/intake/model_catalog_auth_patch_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_test.go b/services/intake/model_catalog_auth_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_catalog_auth_test.go +++ b/services/intake/model_catalog_auth_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_type.go b/services/intake/model_catalog_auth_type.go index 3cedfc675..f43f6384e 100644 --- a/services/intake/model_catalog_auth_type.go +++ b/services/intake/model_catalog_auth_type.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_type_test.go b/services/intake/model_catalog_auth_type_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_catalog_auth_type_test.go +++ b/services/intake/model_catalog_auth_type_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_client_config.go b/services/intake/model_client_config.go index 7d25a38e8..5a9cc0f56 100644 --- a/services/intake/model_client_config.go +++ b/services/intake/model_client_config.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_client_config_test.go b/services/intake/model_client_config_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_client_config_test.go +++ b/services/intake/model_client_config_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_payload.go b/services/intake/model_create_intake_payload.go index 634a66d7b..6c82ec88b 100644 --- a/services/intake/model_create_intake_payload.go +++ b/services/intake/model_create_intake_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_payload_test.go b/services/intake/model_create_intake_payload_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_create_intake_payload_test.go +++ b/services/intake/model_create_intake_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_runner_payload.go b/services/intake/model_create_intake_runner_payload.go index 4c9a18622..fbc12f6a8 100644 --- a/services/intake/model_create_intake_runner_payload.go +++ b/services/intake/model_create_intake_runner_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_runner_payload_test.go b/services/intake/model_create_intake_runner_payload_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_create_intake_runner_payload_test.go +++ b/services/intake/model_create_intake_runner_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_user_payload.go b/services/intake/model_create_intake_user_payload.go index 14c0e2307..32076b82a 100644 --- a/services/intake/model_create_intake_user_payload.go +++ b/services/intake/model_create_intake_user_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_user_payload_test.go b/services/intake/model_create_intake_user_payload_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_create_intake_user_payload_test.go +++ b/services/intake/model_create_intake_user_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_dremio_auth.go b/services/intake/model_dremio_auth.go index 846d05ce7..f9d8a072a 100644 --- a/services/intake/model_dremio_auth.go +++ b/services/intake/model_dremio_auth.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_dremio_auth_patch.go b/services/intake/model_dremio_auth_patch.go index add8ca3b8..938f16627 100644 --- a/services/intake/model_dremio_auth_patch.go +++ b/services/intake/model_dremio_auth_patch.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_dremio_auth_patch_test.go b/services/intake/model_dremio_auth_patch_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_dremio_auth_patch_test.go +++ b/services/intake/model_dremio_auth_patch_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_dremio_auth_test.go b/services/intake/model_dremio_auth_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_dremio_auth_test.go +++ b/services/intake/model_dremio_auth_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_catalog.go b/services/intake/model_intake_catalog.go index 4e2e10fc4..995cb12c2 100644 --- a/services/intake/model_intake_catalog.go +++ b/services/intake/model_intake_catalog.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -166,7 +166,7 @@ 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. Namespace IntakeCatalogGetNamespaceAttributeType `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 cannot be changed after creation. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. + // 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 IntakeCatalogGetPartitionByAttributeType `json:"partitionBy,omitempty"` Partitioning IntakeCatalogGetPartitioningAttributeType `json:"partitioning,omitempty"` // The table name is a short name chosen by the user to identify the table in Iceberg. diff --git a/services/intake/model_intake_catalog_patch.go b/services/intake/model_intake_catalog_patch.go index 74cd080ed..cf2b422e3 100644 --- a/services/intake/model_intake_catalog_patch.go +++ b/services/intake/model_intake_catalog_patch.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -58,6 +58,46 @@ func setIntakeCatalogPatchGetNamespaceAttributeType(arg *IntakeCatalogPatchGetNa type IntakeCatalogPatchGetNamespaceArgType = string type IntakeCatalogPatchGetNamespaceRetType = string +/* + types and functions for partitionBy +*/ + +// isArray +type IntakeCatalogPatchGetPartitionByAttributeType = *[]string +type IntakeCatalogPatchGetPartitionByArgType = *[]string +type IntakeCatalogPatchGetPartitionByRetType = *[]string + +func getIntakeCatalogPatchGetPartitionByAttributeTypeOk(arg IntakeCatalogPatchGetPartitionByAttributeType) (ret IntakeCatalogPatchGetPartitionByRetType, ok bool) { + if arg == nil { + return nil, false + } + return arg, true +} + +func setIntakeCatalogPatchGetPartitionByAttributeType(arg *IntakeCatalogPatchGetPartitionByAttributeType, val IntakeCatalogPatchGetPartitionByRetType) { + *arg = val +} + +/* + types and functions for partitioning +*/ + +// isEnumRef +type IntakeCatalogPatchGetPartitioningAttributeType = *PartitioningUpdateType +type IntakeCatalogPatchGetPartitioningArgType = PartitioningUpdateType +type IntakeCatalogPatchGetPartitioningRetType = PartitioningUpdateType + +func getIntakeCatalogPatchGetPartitioningAttributeTypeOk(arg IntakeCatalogPatchGetPartitioningAttributeType) (ret IntakeCatalogPatchGetPartitioningRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setIntakeCatalogPatchGetPartitioningAttributeType(arg *IntakeCatalogPatchGetPartitioningAttributeType, val IntakeCatalogPatchGetPartitioningRetType) { + *arg = &val +} + /* types and functions for tableName */ @@ -126,6 +166,9 @@ 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. Namespace IntakeCatalogPatchGetNamespaceAttributeType `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 IntakeCatalogPatchGetPartitionByAttributeType `json:"partitionBy,omitempty"` + Partitioning IntakeCatalogPatchGetPartitioningAttributeType `json:"partitioning,omitempty"` // The table name is a short name chosen by the user to identify the table in Iceberg. TableName IntakeCatalogPatchGetTableNameAttributeType `json:"tableName,omitempty"` // The URI to the Iceberg catalog endpoint @@ -199,6 +242,53 @@ func (o *IntakeCatalogPatch) SetNamespace(v IntakeCatalogPatchGetNamespaceRetTyp setIntakeCatalogPatchGetNamespaceAttributeType(&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() (res IntakeCatalogPatchGetPartitionByRetType) { + res, _ = o.GetPartitionByOk() + return +} + +// 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() (ret IntakeCatalogPatchGetPartitionByRetType, ok bool) { + return getIntakeCatalogPatchGetPartitionByAttributeTypeOk(o.PartitionBy) +} + +// HasPartitionBy returns a boolean if a field has been set. +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. +func (o *IntakeCatalogPatch) SetPartitionBy(v IntakeCatalogPatchGetPartitionByRetType) { + setIntakeCatalogPatchGetPartitionByAttributeType(&o.PartitionBy, v) +} + +// GetPartitioning returns the Partitioning field value if set, zero value otherwise. +func (o *IntakeCatalogPatch) GetPartitioning() (res IntakeCatalogPatchGetPartitioningRetType) { + res, _ = o.GetPartitioningOk() + return +} + +// 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() (ret IntakeCatalogPatchGetPartitioningRetType, ok bool) { + return getIntakeCatalogPatchGetPartitioningAttributeTypeOk(o.Partitioning) +} + +// HasPartitioning returns a boolean if a field has been set. +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. +func (o *IntakeCatalogPatch) SetPartitioning(v IntakeCatalogPatchGetPartitioningRetType) { + setIntakeCatalogPatchGetPartitioningAttributeType(&o.Partitioning, v) +} + // GetTableName returns the TableName field value if set, zero value otherwise. func (o *IntakeCatalogPatch) GetTableName() (res IntakeCatalogPatchGetTableNameRetType) { res, _ = o.GetTableNameOk() @@ -276,6 +366,12 @@ func (o IntakeCatalogPatch) ToMap() (map[string]interface{}, error) { if val, ok := getIntakeCatalogPatchGetNamespaceAttributeTypeOk(o.Namespace); ok { toSerialize["Namespace"] = val } + if val, ok := getIntakeCatalogPatchGetPartitionByAttributeTypeOk(o.PartitionBy); ok { + toSerialize["PartitionBy"] = val + } + if val, ok := getIntakeCatalogPatchGetPartitioningAttributeTypeOk(o.Partitioning); ok { + toSerialize["Partitioning"] = val + } if val, ok := getIntakeCatalogPatchGetTableNameAttributeTypeOk(o.TableName); ok { toSerialize["TableName"] = val } diff --git a/services/intake/model_intake_catalog_patch_test.go b/services/intake/model_intake_catalog_patch_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_intake_catalog_patch_test.go +++ b/services/intake/model_intake_catalog_patch_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_catalog_test.go b/services/intake/model_intake_catalog_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_intake_catalog_test.go +++ b/services/intake/model_intake_catalog_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_response.go b/services/intake/model_intake_response.go index 3d9836647..76da84530 100644 --- a/services/intake/model_intake_response.go +++ b/services/intake/model_intake_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_response_test.go b/services/intake/model_intake_response_test.go index de8c1793c..3c575524f 100644 --- a/services/intake/model_intake_response_test.go +++ b/services/intake/model_intake_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_runner_response.go b/services/intake/model_intake_runner_response.go index 58e8a1767..c853c7597 100644 --- a/services/intake/model_intake_runner_response.go +++ b/services/intake/model_intake_runner_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_runner_response_test.go b/services/intake/model_intake_runner_response_test.go index 54f73ae3f..1847dbfbf 100644 --- a/services/intake/model_intake_runner_response_test.go +++ b/services/intake/model_intake_runner_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_user_response.go b/services/intake/model_intake_user_response.go index 556a8320f..49fcc419b 100644 --- a/services/intake/model_intake_user_response.go +++ b/services/intake/model_intake_user_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_user_response_test.go b/services/intake/model_intake_user_response_test.go index 4ff501051..5c84c763d 100644 --- a/services/intake/model_intake_user_response_test.go +++ b/services/intake/model_intake_user_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intake_runners_response.go b/services/intake/model_list_intake_runners_response.go index 71547cd00..670651926 100644 --- a/services/intake/model_list_intake_runners_response.go +++ b/services/intake/model_list_intake_runners_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intake_runners_response_test.go b/services/intake/model_list_intake_runners_response_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_list_intake_runners_response_test.go +++ b/services/intake/model_list_intake_runners_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intake_users_response.go b/services/intake/model_list_intake_users_response.go index a6f8cb325..10eddbb8e 100644 --- a/services/intake/model_list_intake_users_response.go +++ b/services/intake/model_list_intake_users_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intake_users_response_test.go b/services/intake/model_list_intake_users_response_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_list_intake_users_response_test.go +++ b/services/intake/model_list_intake_users_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intakes_response.go b/services/intake/model_list_intakes_response.go index 5373accf6..b272f2515 100644 --- a/services/intake/model_list_intakes_response.go +++ b/services/intake/model_list_intakes_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intakes_response_test.go b/services/intake/model_list_intakes_response_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_list_intakes_response_test.go +++ b/services/intake/model_list_intakes_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_partitioning_type.go b/services/intake/model_partitioning_type.go index 2659e7353..6e1b9c603 100644 --- a/services/intake/model_partitioning_type.go +++ b/services/intake/model_partitioning_type.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_partitioning_type_test.go b/services/intake/model_partitioning_type_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_partitioning_type_test.go +++ b/services/intake/model_partitioning_type_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_partitioning_update_type.go b/services/intake/model_partitioning_update_type.go new file mode 100644 index 000000000..43d9174cb --- /dev/null +++ b/services/intake/model_partitioning_update_type.go @@ -0,0 +1,117 @@ +/* +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 intake + +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 + } + // Allow unmarshalling zero value for testing purposes + var zeroValue string + if value == zeroValue { + return nil + } + 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/model_partitioning_update_type_test.go b/services/intake/model_partitioning_update_type_test.go new file mode 100644 index 000000000..b0387d195 --- /dev/null +++ b/services/intake/model_partitioning_update_type_test.go @@ -0,0 +1,11 @@ +/* +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 intake diff --git a/services/intake/model_update_intake_payload.go b/services/intake/model_update_intake_payload.go index 3c49fcc8e..a20fb7617 100644 --- a/services/intake/model_update_intake_payload.go +++ b/services/intake/model_update_intake_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_payload_test.go b/services/intake/model_update_intake_payload_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_update_intake_payload_test.go +++ b/services/intake/model_update_intake_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_runner_payload.go b/services/intake/model_update_intake_runner_payload.go index d9a6879c6..1baddc644 100644 --- a/services/intake/model_update_intake_runner_payload.go +++ b/services/intake/model_update_intake_runner_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_runner_payload_test.go b/services/intake/model_update_intake_runner_payload_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_update_intake_runner_payload_test.go +++ b/services/intake/model_update_intake_runner_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_user_payload.go b/services/intake/model_update_intake_user_payload.go index d5ed24a77..d761c18fa 100644 --- a/services/intake/model_update_intake_user_payload.go +++ b/services/intake/model_update_intake_user_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_user_payload_test.go b/services/intake/model_update_intake_user_payload_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_update_intake_user_payload_test.go +++ b/services/intake/model_update_intake_user_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_user_type.go b/services/intake/model_user_type.go index 05de35406..13d6c6f33 100644 --- a/services/intake/model_user_type.go +++ b/services/intake/model_user_type.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_user_type_test.go b/services/intake/model_user_type_test.go index 8dda1cef5..b0387d195 100644 --- a/services/intake/model_user_type_test.go +++ b/services/intake/model_user_type_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/utils.go b/services/intake/utils.go index aa0eccba0..ffb691006 100644 --- a/services/intake/utils.go +++ b/services/intake/utils.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.3.4 +API version: 1beta.3.5 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.